Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/assistant-ui/thread.tsx,app/src/lib/assistantUiMock/Subagent

Steven Enamakel6913e47e4113
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index 3320244500..fa7e17dda0 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -362,6 +362,17 @@ const AssistantMessage: FC = () => {
data-slot="aui_assistant-message-root"
data-role="assistant"
className="fade-in slide-in-from-bottom-1 animate-in relative -mb-7.5 pb-7.5 duration-150 [contain-intrinsic-size:auto_200px] [content-visibility:auto]">
+ {/*
+ * One vertical rhythm for the whole message, rather than each part
+ * bringing its own margin. Measured before this change the gaps ran
+ * 16 / 0 / 0 / 16 / 0 / 0 px — `reasoning-root` carries `mb-4` and
+ * nothing else carried anything, so a reasoning block sat apart while a
+ * tool group and the prose beneath it touched. `[&>*+*]:mt-3` spaces
+ * adjacent blocks evenly and the `mb-0` override neutralises the one
+ * component with an opinion. The chain-of-thought wrapper below gets the
+ * same pair, because reasoning and tool groups are siblings *inside* it
+ * rather than of it, so spacing only the outer level misses them.
+ */}
<div
data-slot="aui_assistant-message-content"
className="text-foreground [&>*+*]:mt-3 [&_[data-slot=reasoning-root]]:mb-0 px-2 leading-relaxed wrap-break-word">
diff --git a/app/src/lib/assistantUiMock/SubagentCall.tsx b/app/src/lib/assistantUiMock/SubagentCall.tsx
index 86ac6af754..ae39ddc356 100644
--- a/app/src/lib/assistantUiMock/SubagentCall.tsx
+++ b/app/src/lib/assistantUiMock/SubagentCall.tsx
@@ -76,7 +76,7 @@ export const SubagentCall: ToolCallMessagePartComponent = ({ args, result }) =>
data-slot="aui_subagent-call"
defaultOpen
className={cn(
- 'aui-subagent-call border-border/60 dark:border-muted-foreground/15 my-2 rounded-xl border',
+ 'aui-subagent-call border-border/60 dark:border-muted-foreground/15 rounded-xl border',
running && 'border-dashed'
)}>
<CollapsibleTrigger className="group/subagent text-muted-foreground hover:text-foreground flex w-full items-center gap-2 px-3 py-2 text-sm transition-colors">