diff options
| author | Adam Malczewski <[email protected]> | 2026-10-15 08:27:26 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-10-15 08:27:26 +0900 |
| commit | 8676bd29452f7539622901cb5ae703a3fdaebd07 (patch) | |
| tree | 8472958c36ff915045605ee671152cdfeda39c61 /src/features/chat/ui.test.ts | |
| parent | a8b15ac6a495eae27577e6161f320574bcf795f0 (diff) | |
| download | dispatch-web-8676bd29452f7539622901cb5ae703a3fdaebd07.tar.gz dispatch-web-8676bd29452f7539622901cb5ae703a3fdaebd07.zip | |
feat(tool-call-cards): pair calls and results in summarized collapsible bubbles
Diffstat (limited to 'src/features/chat/ui.test.ts')
| -rw-r--r-- | src/features/chat/ui.test.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/features/chat/ui.test.ts b/src/features/chat/ui.test.ts index 3c7fd0d..c3a76d4 100644 --- a/src/features/chat/ui.test.ts +++ b/src/features/chat/ui.test.ts @@ -210,7 +210,7 @@ describe("ChatView", () => { expect(log.children).toHaveLength(0); }); - it("groups batched tool calls (shared stepId) into one DaisyUI list", async () => { + it("renders parallel tool calls (shared stepId) as separate bubbles", async () => { const chunks: RenderedChunk[] = [ { seq: 1, @@ -254,10 +254,12 @@ describe("ChatView", () => { const { container } = render(ChatView, { props: { chunks } }); await openAllCollapses(container); - // Batched calls render as collapsible cards (one per call), not a list. + // Parallel calls render as independent collapsible cards (one per bubble). const collapses = container.querySelectorAll(".collapse"); expect(collapses).toHaveLength(2); + expect(container.querySelectorAll(".chat-bubble")).toHaveLength(2); + // Both call names + the available result are shown; the result is absorbed // (no standalone tool-result card). expect(screen.getByText("read_file")).toBeInTheDocument(); |
