mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-07-10 01:29:41 +00:00
The dashboard Cache read/write cards and the `codeburn devices` summarizer summed the full 365-day history.daily backfill instead of the selected period, so shorter windows over-counted (today ~197x on real data). Every other metric already reads the period-scoped `current` block. buildMenubarPayload now emits period-scoped cacheReadTokens/cacheWriteTokens on `current` (from PeriodData, alongside inputTokens/outputTokens); the web cards (single + combined views) and summarizeOneDevice read those instead of reducing history.daily. The trend chart still uses history.daily. Older peers that omit the fields fall back to 0 (web) or the windowed daily sum (CLI). Adds regression tests for both surfaces. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||