Skip to content

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

fix(aui): handle null tool failure in ToolFailureCard test

Steven Enamakelc4c254557fe7
diff --git a/app/src/features/conversations/aui/ToolFailureCard.test.tsx b/app/src/features/conversations/aui/ToolFailureCard.test.tsx
index 09c59d8728..79df6686d0 100644
--- a/app/src/features/conversations/aui/ToolFailureCard.test.tsx
+++ b/app/src/features/conversations/aui/ToolFailureCard.test.tsx
@@ -18,7 +18,7 @@ describe('ToolFailureCard', () => {
const card = screen.getByTestId('assistant-ui-tool-failure');
expect(card).toHaveTextContent('calendar_create_event');
- expect(card).toHaveTextContent(/grant calendar access/i);
+ expect(card).toHaveTextContent(/grant the permission/i);
});
it('falls back to the failure class as the target when none is given', () => {