fix: propagate config to AgentExecutionDisplay to fix type errors

This commit is contained in:
mingholy.lmh 2025-09-15 14:11:36 +08:00
parent acb93b1e1b
commit f3cf732493
4 changed files with 16 additions and 1 deletions

View file

@ -68,6 +68,8 @@ const renderWithContext = (
};
describe('<ToolMessage />', () => {
const mockConfig = {} as any; // Mock config for tests
const baseProps: ToolMessageProps = {
callId: 'tool-123',
name: 'test-tool',
@ -77,6 +79,7 @@ describe('<ToolMessage />', () => {
terminalWidth: 80,
confirmationDetails: undefined,
emphasis: 'medium',
config: mockConfig,
};
it('renders basic tool information', () => {
@ -212,6 +215,7 @@ describe('<ToolMessage />', () => {
terminalWidth: 80,
callId: 'test-call-id-2',
confirmationDetails: undefined,
config: mockConfig,
};
const { lastFrame } = renderWithContext(