Skip to content

fix(dashboard): reconcile cache token usage - #1853

Merged
dcramer merged 4 commits into
mainfrom
fix/cache-hit-rate-display
Sep 11, 2026
Merged

fix(dashboard): reconcile cache token usage#1853
dcramer merged 4 commits into
mainfrom
fix/cache-hit-rate-display

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Fix token usage reporting in the dashboard.

The cached input share now treats cache writes as misses. It uses cache read / (uncached input + cache read + cache write). The card also shows all three input classes.

The conversation header now derives its total from the same per-model assistant usage shown in its tooltip when that detail is available. For the reported 18 input + 592 output + 179k cache read + 36k cache write example, both now report 215,610 tokens.

Production spans over the prior seven days showed 2.90b cache-read, 457m cache-write, and about 117m plain uncached input tokens. That is an 83.5% cached input share when writes are counted as misses, not 100%.

via David Cramer.

--

View Junior Session [Sentry]

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Sep 11, 2026 10:38pm UTC

Request Review

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown

4 screenshot changes — 4 changed · 0 added · 0 removed

Review screenshots in Frameshift

Gallery Charts · Desktop
Gallery Charts · Desktop
Changed
Person Profile · Desktop
Person Profile · Desktop
Changed
Person Profile · Mobile
Person Profile · Mobile
Changed
System · Desktop
System · Desktop
Changed

Co-Authored-By: David Cramer <david@sentry.io>
@sentry-junior sentry-junior Bot changed the title fix(dashboard): clarify cached input share fix(dashboard): reconcile cache token usage Sep 11, 2026
@dcramer
dcramer marked this pull request as ready for review September 11, 2026 22:14
@github-actions github-actions Bot added the risk: high PR risk score: high label Sep 11, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 45e9919. Configure here.

Comment thread packages/junior-dashboard/src/client/components/charts/SystemMetricCharts.tsx Outdated
@dcramer
dcramer merged commit 602cc60 into main Sep 11, 2026
40 checks passed
@dcramer
dcramer deleted the fix/cache-hit-rate-display branch September 11, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant