Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(conversations): cover todo list fallback to call args

Steven Enamakel96331cfee724
diff --git a/app/src/features/conversations/aui/TodoListPart.test.tsx b/app/src/features/conversations/aui/TodoListPart.test.tsx
index 87d25ce0ae..f6cafb5a64 100644
--- a/app/src/features/conversations/aui/TodoListPart.test.tsx
+++ b/app/src/features/conversations/aui/TodoListPart.test.tsx
@@ -90,6 +90,27 @@ describe('TodoListPart', () => {
expect(screen.getByText('Celebrate')).toBeInTheDocument();
});
+ it('uses the call arguments when the settled tool result is not a todo payload', () => {
+ render(
+ <TodoListPart
+ {...baseProps}
+ toolCallId="call-receipt-fallback"
+ args={{
+ todos: [
+ { content: 'Prepare release', status: 'completed' },
+ { content: 'Publish release', status: 'pending' },
+ ],
+ } as never}
+ result={'Updated 1 of 2 tasks.' as never}
+ status={{ type: 'complete' }}
+ />
+ );
+
+ const toggle = screen.getByRole('button', { expanded: false });
+ expect(toggle).toHaveTextContent('1/2');
+ expect(toggle).toHaveTextContent('Publish release');
+ });
+
it('renders nothing when there are no items', () => {
const { container } = render(
<TodoListPart