The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): put the transcript's hairlines on one stroke token
Brooklyn Nicholson277a6f944a31
diff --git a/apps/desktop/src/components/assistant-ui/directive-text.tsx b/apps/desktop/src/components/assistant-ui/directive-text.tsxindex 418f59eda71..3c6e4df2760 100644--- a/apps/desktop/src/components/assistant-ui/directive-text.tsx+++ b/apps/desktop/src/components/assistant-ui/directive-text.tsx@@ -418,7 +418,7 @@ export function DirectiveContent({ text }: { text: string }) {{images.map((src, index) => (<ZoomableImagealt=""- className="max-h-48 max-w-full rounded-lg border border-border/60 object-contain"+ className="max-h-48 max-w-full rounded-lg border border-(--ui-stroke-tertiary) object-contain"draggable={false}key={`img-${index}`}slot="aui_embedded-image"@@ -481,7 +481,7 @@ const DirectiveImage: FC<{ id: string; label: string }> = ({ id, label }) => {return (<ZoomableImagealt={label}- className="max-h-48 max-w-full rounded-lg border border-border/60 object-contain"+ className="max-h-48 max-w-full rounded-lg border border-(--ui-stroke-tertiary) object-contain"draggable={false}slot="aui_directive-image"src={src}diff --git a/apps/desktop/src/components/assistant-ui/embeds/alert.tsx b/apps/desktop/src/components/assistant-ui/embeds/alert.tsxindex d2c55e43d71..147b359c353 100644--- a/apps/desktop/src/components/assistant-ui/embeds/alert.tsx+++ b/apps/desktop/src/components/assistant-ui/embeds/alert.tsx@@ -112,7 +112,7 @@ export function MarkdownAlert({ children, type }: { children: ReactNode; type: Areturn (<div- className="my-2 rounded-lg border border-border bg-muted/25 px-3 py-2 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0"+ className="my-2 rounded-lg border border-(--ui-stroke-tertiary) bg-muted/25 px-3 py-2 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0"data-slot="aui_markdown-alert"><div className={cn('mb-1 flex items-center gap-1.5 text-[0.8125rem] font-semibold', style.accent)}>diff --git a/apps/desktop/src/components/assistant-ui/markdown-text.tsx b/apps/desktop/src/components/assistant-ui/markdown-text.tsxindex f6a35b57647..cad8f0d7407 100644--- a/apps/desktop/src/components/assistant-ui/markdown-text.tsx+++ b/apps/desktop/src/components/assistant-ui/markdown-text.tsx@@ -197,7 +197,7 @@ function MediaAttachment({ path }: { path: string }) {if (kind === 'audio' && src) {return (- <span className="my-3 block max-w-md rounded-xl border border-border bg-muted/35 p-3">+ <span className="my-3 block max-w-md rounded-xl border border-(--ui-stroke-tertiary) bg-muted/35 p-3"><span className="mb-2 block truncate text-xs font-medium text-muted-foreground">{name}</span><audio className="block w-full" controls onError={() => setFailed(true)} preload="metadata" src={src} />{failed && <OpenMediaButton kind="audio" path={path} />}@@ -207,7 +207,7 @@ function MediaAttachment({ path }: { path: string }) {if (kind === 'video' && src) {return (- <span className="my-3 block max-w-2xl rounded-xl border border-border bg-muted/35 p-3">+ <span className="my-3 block max-w-2xl rounded-xl border border-(--ui-stroke-tertiary) bg-muted/35 p-3"><span className="mb-2 block truncate text-xs font-medium text-muted-foreground">{name}</span><videoclassName="block max-h-112 w-full rounded-lg bg-black"@@ -440,7 +440,7 @@ function HugeTextFallback({ containerClassName, text }: { containerClassName?: sreturn (<divclassName={cn(- 'aui-md w-full max-w-none overflow-hidden rounded-[0.625rem] border border-border font-mono text-[0.7rem] leading-relaxed text-foreground/90',+ 'aui-md w-full max-w-none overflow-hidden rounded-[0.625rem] border border-(--ui-stroke-tertiary) font-mono text-[0.7rem] leading-relaxed text-foreground/90',containerClassName)}>@@ -527,7 +527,7 @@ function MarkdownTextSurface({return (<blockquote- className={cn('border-s-2 border-border ps-3 text-muted-foreground italic', className)}+ className={cn('border-s-2 border-(--ui-stroke-tertiary) ps-3 text-muted-foreground italic', className)}dir="auto"{...props}>@@ -545,10 +545,10 @@ function MarkdownTextSurface({<li className={cn('leading-(--dt-line-height)', className)} {...props} />),table: ({ className, ...props }: ComponentProps<'table'>) => (- <div className="aui-md-table my-2 max-w-full overflow-x-auto rounded-[0.375rem] border border-border">+ <div className="aui-md-table my-2 max-w-full overflow-x-auto rounded-[0.375rem] border border-(--ui-stroke-tertiary)"><tableclassName={cn(- 'm-0 w-full min-w-[18rem] border-collapse text-[0.8125rem] [&_tr]:border-b [&_tr]:border-border last:[&_tr]:border-0',+ 'm-0 w-full min-w-[18rem] border-collapse text-[0.8125rem] [&_tr]:border-b [&_tr]:border-(--ui-stroke-tertiary) last:[&_tr]:border-0',className)}{...props}diff --git a/apps/desktop/src/components/assistant-ui/thread/user-message-text.tsx b/apps/desktop/src/components/assistant-ui/thread/user-message-text.tsxindex 4235f94bf69..cd0bdf1f631 100644--- a/apps/desktop/src/components/assistant-ui/thread/user-message-text.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/user-message-text.tsx@@ -104,7 +104,7 @@ export const UserMessageText: FC<UserMessageTextProps> = ({ className, text }) =if (segment.kind === 'fence') {return (<pre- className="my-1.5 max-w-full overflow-x-auto rounded-md border border-border/45 bg-[color-mix(in_srgb,currentColor_5%,transparent)] px-2.5 py-2 font-mono text-[0.86em] leading-snug"+ className="my-1.5 max-w-full overflow-x-auto rounded-md border border-(--ui-stroke-tertiary) bg-[color-mix(in_srgb,currentColor_5%,transparent)] px-2.5 py-2 font-mono text-[0.86em] leading-snug"data-slot="aui_user-fence"key={`fence-${segmentIndex}`}>diff --git a/apps/desktop/src/components/chat/compact-markdown.tsx b/apps/desktop/src/components/chat/compact-markdown.tsxindex 8426be108a5..ad89e6ff2da 100644--- a/apps/desktop/src/components/chat/compact-markdown.tsx+++ b/apps/desktop/src/components/chat/compact-markdown.tsx@@ -11,16 +11,16 @@ import { cn } from '@/lib/utils'// instead of being dumped as raw text.const TAG_CLASSES = {- blockquote: 'mt-2 mb-2 border-l-2 border-border/70 pl-2.5 italic text-muted-foreground/85',+ blockquote: 'mt-2 mb-2 border-l-2 border-(--ui-stroke-tertiary) pl-2.5 italic text-muted-foreground/85',h1: 'mt-3 mb-1.5 text-sm font-semibold tracking-tight text-foreground first:mt-0',h2: 'mt-3 mb-1.5 text-[0.82rem] font-semibold tracking-tight text-foreground first:mt-0',h3: 'mt-2.5 mb-1 text-[0.78rem] font-semibold text-foreground first:mt-0',h4: 'mt-2 mb-1 text-[0.74rem] font-semibold text-foreground first:mt-0',- hr: 'my-2 border-border/50',+ hr: 'my-2 border-(--ui-stroke-tertiary)',li: 'marker:text-muted-foreground/60',ol: 'mb-2 list-decimal pl-5 last:mb-0',p: 'mb-1.5 leading-relaxed last:mb-0',- pre: 'mb-2 overflow-x-auto rounded-md border border-border/60 bg-background/70 p-2 font-mono text-[0.7rem] leading-[1.55] last:mb-0',+ pre: 'mb-2 overflow-x-auto rounded-md border border-(--ui-stroke-tertiary) bg-background/70 p-2 font-mono text-[0.7rem] leading-[1.55] last:mb-0',td: 'px-2 py-1 align-top leading-snug',th: 'px-2 py-1 text-left text-[0.62rem] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80',thead: 'bg-muted/40',@@ -66,10 +66,10 @@ function MarkdownCode({ className, ...rest }: ComponentProps<'code'>) {function MarkdownTable({ className, ...rest }: ComponentProps<'table'>) {return (- <div className="mb-2 max-w-full overflow-x-auto rounded-md border border-border/60 last:mb-0">+ <div className="mb-2 max-w-full overflow-x-auto rounded-md border border-(--ui-stroke-tertiary) last:mb-0"><tableclassName={cn(- 'w-full border-collapse text-[0.72rem] [&_tr]:border-b [&_tr]:border-border/50 last:[&_tr]:border-0',+ 'w-full border-collapse text-[0.72rem] [&_tr]:border-b [&_tr]:border-(--ui-stroke-tertiary) last:[&_tr]:border-0',className)}{...rest}diff --git a/apps/desktop/src/components/chat/preview-attachment.tsx b/apps/desktop/src/components/chat/preview-attachment.tsxindex 8a166356578..177aef3ae09 100644--- a/apps/desktop/src/components/chat/preview-attachment.tsx+++ b/apps/desktop/src/components/chat/preview-attachment.tsx@@ -95,7 +95,7 @@ export function PreviewAttachment({ source = 'manual', target }: { source?: Prev}return (- <div className="flex w-full max-w-160 items-center gap-2 rounded-lg border border-border/55 bg-card/55 px-2.5 py-1.5 text-sm">+ <div className="flex w-full max-w-160 items-center gap-2 rounded-lg border border-(--ui-stroke-tertiary) bg-card/55 px-2.5 py-1.5 text-sm"><span className="grid size-6 shrink-0 place-items-center rounded-md bg-muted/55 text-muted-foreground/85"><MonitorPlay className="size-3.5" /></span>@@ -103,7 +103,7 @@ export function PreviewAttachment({ source = 'manual', target }: { source?: Prev{name}</span><button- className="shrink-0 rounded-md border border-border/55 bg-background/40 px-2 py-1 text-[0.7rem] font-medium text-muted-foreground transition-colors hover:bg-accent/55 hover:text-foreground disabled:opacity-50"+ className="shrink-0 rounded-md border border-(--ui-stroke-tertiary) bg-background/40 px-2 py-1 text-[0.7rem] font-medium text-muted-foreground transition-colors hover:bg-accent/55 hover:text-foreground disabled:opacity-50"disabled={opening}onClick={() => void togglePreview()}type="button"