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