Skip to content

The agent that grows with you

fix(desktop): one weight and one gap for transcript scaffolding

Brooklyn Nicholson7a10e48e2ffa
diff --git a/apps/desktop/src/components/assistant-ui/thread/status.tsx b/apps/desktop/src/components/assistant-ui/thread/status.tsx
index dba6f0b46ba..62ad0940f75 100644
--- a/apps/desktop/src/components/assistant-ui/thread/status.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/status.tsx
@@ -234,7 +234,7 @@ export const StreamStallIndicator: FC = () => {
}
return (
- <StatusRow className="mt-1.5" data-slot="aui_stream-stall" label={hint || 'Hermes is thinking'}>
+ <StatusRow data-slot="aui_stream-stall" label={hint || 'Hermes is thinking'}>
<span aria-hidden="true" className="dither inline-block size-3 rounded-[2px] text-midground/80 animate-pulse" />
{hint && <HintText>{hint}</HintText>}
<ActivityTimerText seconds={elapsed} />
diff --git a/apps/desktop/src/components/chat/scaffold-row.tsx b/apps/desktop/src/components/chat/scaffold-row.tsx
index d4d27866371..dd30ff1025c 100644
--- a/apps/desktop/src/components/chat/scaffold-row.tsx
+++ b/apps/desktop/src/components/chat/scaffold-row.tsx
@@ -13,7 +13,7 @@ import { DisclosureRow } from '@/components/chat/disclosure-row'
* different kinds of line for what is one kind of thing.
*/
export const SCAFFOLD_LABEL_CLASS =
- 'text-[length:var(--conversation-tool-font-size)] font-medium leading-(--conversation-line-height) text-(--conversation-scaffold-text)'
+ 'text-[length:var(--conversation-tool-font-size)] leading-(--conversation-line-height) text-(--conversation-scaffold-text)'
/** Durations, counts and diff stats trailing a scaffold label. */
export const SCAFFOLD_META_CLASS = 'shrink-0 text-[0.625rem] tabular-nums text-(--conversation-scaffold-meta)'
diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.css
index 7135a6146b2..106b196b1af 100644
--- a/apps/desktop/src/styles.css
+++ b/apps/desktop/src/styles.css
@@ -1501,24 +1501,33 @@ text-* variant utilities. */ .btn-arc {
/* Conversation block rhythm. assistant-ui renders each range as a direct child
of the message content with no per-part wrapper, so adjacency rules cover
every pairing — first block needs no reset, nested tool rows are untouched.
- Two tiers: scaffolding (tool / thinking) gets a roomy block gap so it reads
- as separate from the reply; consecutive prose collapses to a tight paragraph
- rhythm so split-out text parts don't look like a big gap. */
-/* Scaffolding adjacent to anything → roomy block gap. */
-[data-slot='aui_assistant-message-content']
- > :is([data-slot='tool-block'], [data-slot='aui_thinking-disclosure'])
- + :is([data-slot='tool-block'], [data-slot='aui_thinking-disclosure'], .aui-md),
+
+ One gap between top-level blocks, whatever they are. Spelling out which
+ *pairs* qualified meant the live status line (not tool, thinking or prose)
+ fell through every branch and carried its own half-size margin instead. */
[data-slot='aui_assistant-message-content']
- > .aui-md
- + :is([data-slot='tool-block'], [data-slot='aui_thinking-disclosure']) {
+ > :is([data-slot='tool-block'], [data-slot='aui_thinking-disclosure'], [data-slot='aui_stream-stall'], .aui-md)
+ + :is([data-slot='tool-block'], [data-slot='aui_thinking-disclosure'], [data-slot='aui_stream-stall'], .aui-md) {
margin-top: var(--turn-block-gap);
}
-/* Prose ↔ prose → tight paragraph rhythm, matching in-block paragraph spacing. */
+/* Except prose ↔ prose: one reading column that happens to arrive as several
+ parts, so it keeps the in-block paragraph rhythm. Same specificity as the
+ rule above and deliberately after it. */
[data-slot='aui_assistant-message-content'] > .aui-md + .aui-md {
margin-top: var(--paragraph-gap);
}
+/* A streaming turn is sealed into several assistant bubbles as it goes
+ (`message.interim`) and rehydrates into fewer, so the same two blocks are
+ sometimes siblings inside one bubble and sometimes split across two. The
+ flex gap between bubbles is the turn gap — half the block gap — which made
+ the rhythm visibly tighten and then relax as a turn settled. Top it up so
+ the column ticks at one interval either way. */
+[data-slot='aui_turn-pair'] > [data-slot='aui_assistant-message-root'] + [data-slot='aui_assistant-message-root'] {
+ margin-top: calc(var(--turn-block-gap) - var(--conversation-turn-gap));
+}
+
/* Message action bars — flat icon hits with default dim; only the hovered/focused control is full-strength. */
[data-slot='aui_msg-actions'] button {
border: 0;