Usage popover: 'Uncached input' when a cache split exists

Input rows then read as components: uncached + cache reads + cache
writes = Total input; plain 'Input' stays for cacheless backends.
This commit is contained in:
Rohit C Prasad
2026-07-28 11:48:21 -07:00
parent d1524b3376
commit 27311cd97f
2 changed files with 16 additions and 9 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ test("usage chip appears after a turn and opens the breakdown popover", async ({
await expect(pop).toContainText("9.8k of 200k · 5%");
await expect(pop).toContainText("Session totals");
await expect(pop).toContainText("Claude Opus 4.8 · Anthropic");
await expect(pop).toContainText("Input");
// Cache split present → the input rows read as components of Total input.
await expect(pop).toContainText("Uncached input");
await expect(pop).toContainText("Cache reads");
await expect(pop).toContainText("Cache writes");
// Total input = fresh 1k + cache_read 8k + cache_write 800 (cumulative billed input).