The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): keep elapsed status text from overlapping
Brooklyn Nicholson0265797b8de9
diff --git a/apps/desktop/src/components/assistant-ui/thread/status.tsx b/apps/desktop/src/components/assistant-ui/thread/status.tsxindex 492a73b1f1d..d48c04e2cc6 100644--- a/apps/desktop/src/components/assistant-ui/thread/status.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/status.tsx@@ -31,7 +31,7 @@ const StatusRow: FC<{ children: ReactNode; label: string } & React.ComponentProparia-label={label}aria-live="polite"className={cn(- 'flex max-w-full items-center gap-1.5 self-start leading-(--conversation-line-height)',+ 'flex min-w-0 max-w-full items-center gap-1.5 self-start leading-(--conversation-line-height)','text-(--conversation-scaffold-text)',className)}@@ -47,7 +47,7 @@ const StatusRow: FC<{ children: ReactNode; label: string } & React.ComponentPropconst COMPACTION_LABEL = 'Summarizing thread'const HintText: FC<{ children: ReactNode }> = ({ children }) => (- <span className={cn(SCAFFOLD_LABEL_CLASS, 'shimmer min-w-0 truncate')}>{children}</span>+ <span className={cn(SCAFFOLD_LABEL_CLASS, 'shimmer min-w-0 flex-1 truncate')}>{children}</span>)/** These indicators render inside whichever transcript mounted them, so everydiff --git a/apps/desktop/src/components/chat/disclosure-row.tsx b/apps/desktop/src/components/chat/disclosure-row.tsxindex fc81ea867c7..7180d2610d0 100644--- a/apps/desktop/src/components/chat/disclosure-row.tsx+++ b/apps/desktop/src/components/chat/disclosure-row.tsx@@ -14,11 +14,10 @@ import { cn } from '@/lib/utils'// title text, NOT the full row — and reaches just past the chevron with// `-mx-1.5 px-1.5` so it reads as a soft hit-target rather than a slab// stretching to the message edge.-// - `trailing` overlays the right edge (absolute) and must stay-// non-interactive (e.g. a duration timer) — an opacity-0-but-clickable-// control there steals clicks from the caret. Interactive controls go in-// `action`, which lays out *in flow* at the far right so it never sits on-// top of the caret's hit-target, no matter how long the title is.+// - `trailing` stays in flow (e.g. a duration timer), so the title always+// reserves space for it instead of painting underneath it. Interactive+// controls go in `action`, which lays out *in flow* at the far right so it+// never sits on top of the caret's hit-target.export function DisclosureRow({action,children,@@ -68,7 +67,7 @@ export function DisclosureRow({</span>)}{trailing && (- <span className="absolute right-1 top-0 flex h-(--conversation-line-height) items-center">{trailing}</span>+ <span className="flex h-(--conversation-line-height) shrink-0 items-center pl-1.5">{trailing}</span>)}</div>)diff --git a/apps/desktop/src/components/chat/scaffold-row.tsx b/apps/desktop/src/components/chat/scaffold-row.tsxindex 23e0c737a78..e192837511e 100644--- a/apps/desktop/src/components/chat/scaffold-row.tsx+++ b/apps/desktop/src/components/chat/scaffold-row.tsx@@ -24,7 +24,7 @@ export const SCAFFOLD_META_CLASS = 'shrink-0 text-[0.625rem] tabular-nums text-(/*** One scaffold line. `children` is the label and whatever trails it in flow- * (meta, diff counts); `trailing` overlays the right edge for a live timer.+ * (meta, diff counts); `trailing` reserves a right-side slot for a live timer.*/export function ScaffoldRow({children,