feat: Display pending and confirming tool calls (#22106)

Co-authored-by: Spencer <spencertang@google.com>
This commit is contained in:
Sri Pasumarthi
2026-03-11 22:57:37 -07:00
committed by GitHub
parent 10ab958378
commit 41d4f59f5e
8 changed files with 96 additions and 21 deletions
@@ -159,4 +159,22 @@ describe('ThinkingMessage', () => {
await expect(renderResult).toMatchSvgSnapshot();
renderResult.unmount();
});
it('filters out progress dots and empty lines', async () => {
const renderResult = renderWithProviders(
<ThinkingMessage
thought={{ subject: '...', description: 'Thinking\n.\n..\n...\nDone' }}
terminalWidth={80}
isFirstThinking={true}
/>,
);
await renderResult.waitUntilReady();
const output = renderResult.lastFrame();
expect(output).toContain('Thinking');
expect(output).toContain('Done');
expect(renderResult.lastFrame()).toMatchSnapshot();
await expect(renderResult).toMatchSvgSnapshot();
renderResult.unmount();
});
});