From 96fd4c0f4f51c1ec704ab14d4f393c026c8ecd2d Mon Sep 17 00:00:00 2001 From: can1357 Date: Mon, 1 Jun 2026 20:42:22 +0200 Subject: [PATCH] test(coding-agent): removed warm-cache refresh performance test case - Removed the status-line context cache test that benchmarked warm-cache refreshes on a 200-message session. --- .../test/status-line-context-cache.test.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/packages/coding-agent/test/status-line-context-cache.test.ts b/packages/coding-agent/test/status-line-context-cache.test.ts index a9dc05aa7..7abacdfdd 100644 --- a/packages/coding-agent/test/status-line-context-cache.test.ts +++ b/packages/coding-agent/test/status-line-context-cache.test.ts @@ -122,23 +122,6 @@ describe("StatusLineComponent incremental context breakdown cache", () => { expect(v3.usedTokens).toBeGreaterThan(v2.usedTokens); }); - it("warm-cache refresh on 200-message session is fast (<100ms for 20 refreshes)", () => { - const session = makeSession({ - messages: Array.from({ length: 200 }, (_, i) => userMessage(`msg ${i}`.repeat(20))), - }); - const comp = new StatusLineComponent(session); - - // Warm-up call (acceptable cost; not measured). - comp.getCachedContextBreakdown(); - - // 20 warm refreshes; each should only recompute the last message - // (~0.5 ms native) since no other messages changed. - const start = performance.now(); - for (let i = 0; i < 20; i++) comp.getCachedContextBreakdown(); - const elapsedMs = performance.now() - start; - expect(elapsedMs).toBeLessThan(100); - }); - it("zero messages: produces only non-message tokens, no crash", () => { const session = makeSession({ messages: [] }); const comp = new StatusLineComponent(session);