The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
import { createContext, useContext, type ReactNode } from "react";
import { CellMarquee } from "./CellMarquee";
const MarqueeContext = createContext(false);
/** Opt-in overflow treatment; existing production layouts keep their current labels. */
export function TruncatedTextMarqueeProvider({ children }: { children: ReactNode }) {
return <MarqueeContext.Provider value>{children}</MarqueeContext.Provider>;
}
export function TruncatedText({ children, className, title, as: Tag = "span", marqueeResetKey }: {
children: ReactNode;
className?: string;
title?: string;
as?: "span" | "h2" | "p";
marqueeResetKey?: string | number | boolean;
}) {
const marquee = useContext(MarqueeContext);
return <Tag className={className} title={marquee ? undefined : title}>{marquee
? <CellMarquee cell="truncated-label" interactWithParent tabbable={false} resetKey={marqueeResetKey}>{children}</CellMarquee>
: children}</Tag>;
}