Skip to content

v2.0.4 — Console MTD column on the Cost page

Choose a tag to compare

@whchoi98 whchoi98 released this 10 Aug 21:08
· 46 commits to main since this release

The Cost page's Top-10 estimated-cost table now shows the Anthropic Console's month-to-date number next to each user.

Why: "the dashboard's estimated cost differs from the Claude Code admin console ($972 MTD there)" — root-caused live against both upstream systems. The Console member list reads the Spend Limits system (period_to_date_spend — near-real-time, calendar month), while the dashboard's per-user cost reads the Analytics user_cost_report (range-windowed, ~4h watermark, 30-day correction). During the investigation the Console figure ticked $975.00 → $976.63 within minutes while user_cost_report still summed $546 — the entire gap was post-watermark usage by a currently-active user. Neither number is wrong; they answer different questions at different freshness.

Added

  • MTD column on "Top 10 by Estimated Cost", joined by lower-cased email from the already-fetched /api/cost/spend-limits — the same figure the Console shows, so freshness/window gaps are self-explanatory on one screen. Missing members render —; a failed spend-limits fetch just drops the column. Caveat line + en/ko i18n keys.

Fixed

  • Caveat pairing sentence gated on the live source — the pre-deploy adversarial review confirmed it would contradict the adjacent CSV-fallback caveats whenever the live per-user report flaps (spend-limits rides its own keep-warm cache and stays populated through exactly those flaps). The sentence now renders only when live user_cost_report rows are the actual source.

Full changelog: CHANGELOG.md