Skip to content

The agent that grows with you

fix(desktop): keep status corners fixed and allow nested scroll handoff

brooklyn!682a95258ce9
diff --git a/apps/desktop/DESIGN.md b/apps/desktop/DESIGN.md
index 7335f3ce58f..65f9e02249d 100644
--- a/apps/desktop/DESIGN.md
+++ b/apps/desktop/DESIGN.md
@@ -293,6 +293,19 @@ so glass and message-bubble transparency do not reveal scrolling text.
pause/resume preserve the user's disclosure choice. Error banners meet the
stack's top edge without a blank padding strip. File and preview links remain
visible at the bottom of the stack, below the queue and all status groups.
+- Status-stack rows use `StatusRow` with a leading `dismiss` action, a state
+ icon and optional trailing actions. `StatusDismissButton` owns the Codicon
+ close button for previews, background tasks and queued prompts; do not swap
+ it for a trash icon or a CSS glyph. Icons and controls align to the first text
+ line, including messages with attachment metadata.
+- `status-stack.css` owns the shared columns and `0.25rem` nesting step. Rows
+ own their padding and full-width hover fill. `StatusControlRow` uses the same
+ columns for goal/loop/heartbeat details; `StatusPendingIcon` supplies the
+ dashed marker for tasks and criteria. The first row has `0.5rem` top inset.
+- Keep the rounded status card stationary, with the bounded scroll viewport
+ inside it. The outer scroll boundary uses `overscroll-behavior-y: contain`;
+ nested rosters and transcripts use `auto` so wheel input can hand off at an
+ edge without trapping it or scrolling the chat behind the stack.
- Install, onboarding, connecting, boot failure, and reauthentication are
distinct states with shared visual primitives. Preserve their recovery
semantics when unifying appearance.
diff --git a/apps/desktop/src/app/chat/composer/status-stack/index.tsx b/apps/desktop/src/app/chat/composer/status-stack/index.tsx
index 104689fc030..d4eba9eafa4 100644
--- a/apps/desktop/src/app/chat/composer/status-stack/index.tsx
+++ b/apps/desktop/src/app/chat/composer/status-stack/index.tsx
@@ -280,7 +280,7 @@ export function ComposerStatusStack({ onSubmit, queue, sessionId }: ComposerStat
// Artifact links stay visible at the bottom, nearest the composer, even when
// the queue or background group expands.
if (previewRows.length > 0) {
- sections.push({ key: 'preview', node: <div className="px-1 py-0.5">{previewRows}</div> })
+ sections.push({ key: 'preview', node: <div className="status-artifacts">{previewRows}</div> })
}
// Micro actions are the TOP-MOST thing in the whole overlay lane — above the
@@ -302,7 +302,7 @@ export function ComposerStatusStack({ onSubmit, queue, sessionId }: ComposerStat
// In flow in the dock column, directly above the composer. The dock is
// bottom-anchored, so this grows upward over the thread without needing
// to be positioned — and it shares the dock's left edge for free.
- className="flex max-h-[40vh] min-h-0 flex-col overflow-y-auto"
+ className="flex max-h-[40vh] min-h-0 flex-col overflow-hidden"
data-slot="composer-status-stack"
onPointerDownCapture={() => blurComposerInput()}
>
@@ -318,18 +318,23 @@ export function ComposerStatusStack({ onSubmit, queue, sessionId }: ComposerStat
composerDockCard('top'),
// Inset (mx-2) so the stack reads slightly narrower than the composer
// surface below it — the original look.
- 'mx-2 overflow-hidden rounded-b-none border-b border-b-transparent'
+ 'mx-2 flex min-h-0 max-h-[inherit] shrink flex-col overflow-hidden rounded-b-none border-b border-b-transparent'
)}
>
- <div
- className={cn(
- 'transition-opacity duration-200 ease-out',
- scrolledUp ? 'opacity-30 group-hover/composer:opacity-100' : 'opacity-100'
- )}
- >
- {sections.map(section => (
- <div key={section.key}>{section.node}</div>
- ))}
+ <div className="min-h-0 overflow-y-auto overscroll-y-contain" data-slot="status-stack-scroll">
+ <div
+ className={cn(
+ 'transition-opacity duration-200 ease-out',
+ scrolledUp ? 'opacity-30 group-hover/composer:opacity-100' : 'opacity-100'
+ )}
+ data-slot="status-stack-content"
+ >
+ {sections.map(section => (
+ <div data-slot="status-stack-section" key={section.key}>
+ {section.node}
+ </div>
+ ))}
+ </div>
</div>
</div>
)}
diff --git a/apps/desktop/src/app/chat/composer/status-stack/subagent-transcript.tsx b/apps/desktop/src/app/chat/composer/status-stack/subagent-transcript.tsx
index 542c45b87eb..129bdf8d828 100644
--- a/apps/desktop/src/app/chat/composer/status-stack/subagent-transcript.tsx
+++ b/apps/desktop/src/app/chat/composer/status-stack/subagent-transcript.tsx
@@ -62,7 +62,7 @@ export function SubagentTranscript({ sessionId, subagentId }: { sessionId: strin
<h4 className="text-(--ui-text-secondary)">{t.agents.extendedTranscript}</h4>
{tail?.truncated && <p className="text-(--ui-text-tertiary)">{t.agents.transcriptTruncated}</p>}
{tail?.available ? (
- <pre className="max-h-[30vh] overflow-auto whitespace-pre-wrap break-words font-mono text-[0.68rem]">
+ <pre className="max-h-[30vh] overflow-auto overscroll-y-auto whitespace-pre-wrap break-words font-mono text-[0.68rem]">
{tail.text}
</pre>
) : (