From cf2d1dd3e90acbbb25071ea15eef79cc8c7496a3 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Fri, 12 Jun 2026 17:18:05 -0500 Subject: [PATCH] fix(tui): restore subtask invocation spacing (#32109) --- packages/tui/src/routes/session/index.tsx | 5 ++- .../inline-tool-wrap-snapshot.test.tsx.snap | 16 +++++++++ .../tui/inline-tool-wrap-snapshot.test.tsx | 36 +++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx index 922272f0e..fde5a367e 100644 --- a/packages/tui/src/routes/session/index.tsx +++ b/packages/tui/src/routes/session/index.tsx @@ -1527,6 +1527,7 @@ function AssistantMessage(props: { message: AssistantMessage; parts: Part[]; las - + + + ▣ Build · Little Frank · 53.1s + + + {"Build Task — Review changes\n↳ 48 toolcalls · 1m 40s"} + + + ) +} + +function AssistantErrorBeforeSubagentFixture() { + return ( + + + Managed inference requires an active Member plan + + + {"Build Task — Review changes\n↳ 48 toolcalls · 1m 40s"} + + + ) +} + function StickyScrollFixture(props: { separated: boolean; scroll: (scroll: ScrollBoxRenderable) => void }) { return ( @@ -276,6 +302,16 @@ describe("TUI inline tool wrapping", () => { expect(await renderFrame(() => , { width: 72, height: 8 })).toMatchSnapshot() }) + test("separates a subagent from the previous assistant summary", async () => { + expect( + await renderFrame(() => , { width: 72, height: 5 }), + ).toMatchSnapshot() + }) + + test("separates a subagent from the previous assistant error", async () => { + expect(await renderFrame(() => , { width: 72, height: 7 })).toMatchSnapshot() + }) + test("updates sticky-bottom geometry when a text separator mounts and unmounts", async () => { const [separated, setSeparated] = createSignal(false) let scroll: ScrollBoxRenderable | undefined