Skip to content

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

test(ContextUsage): add assertions for context window label

Steven Enamakele3249cc00053
diff --git a/app/src/features/conversations/aui/ContextUsage.test.tsx b/app/src/features/conversations/aui/ContextUsage.test.tsx
index 6b4155b0a6..24eb34e9ea 100644
--- a/app/src/features/conversations/aui/ContextUsage.test.tsx
+++ b/app/src/features/conversations/aui/ContextUsage.test.tsx
@@ -99,6 +99,8 @@ describe('ContextUsage', () => {
expect(popover).toHaveTextContent('Identity');
expect(popover).not.toHaveTextContent('## Identity');
expect(popover).toHaveTextContent('Headroom');
+ expect(popover).toHaveTextContent('Context window');
+ expect(popover).not.toHaveTextContent('conversations.composer');
// The core's window wins inside the breakdown.
expect(popover).toHaveTextContent('7,300 / 100,000');
});