Skip to content

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

test(providers): cover chat runtime provider behaviour

Steven Enamakel0aba5d424fcf
diff --git a/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx b/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx
index 79e9d22332..678647a15b 100644
--- a/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx
+++ b/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx
@@ -3115,11 +3115,7 @@ describe('ChatRuntimeProvider — detached sub-agent approvals', () => {
});
expect(runtime().pendingApprovalByThread['t-sub']?.requestId).toBe('appr-b');
act(() => {
- listeners.onApprovalDecided?.({
- thread_id: 't-sub',
- request_id: 'appr-b',
- message: 'deny',
- });
+ listeners.onApprovalDecided?.({ thread_id: 't-sub', request_id: 'appr-b', message: 'deny' });
});
expect(runtime().pendingApprovalByThread['t-sub']).toBeUndefined();
});