Skip to content

Commit 5858065

Browse files
NickCirvclaude
andcommitted
fix(dashboard): honest framing for the cost card (no unqualified $ saving)
The /ui overview card rendered 'Cost Saved — $X at $3/M tokens' and an 'Estimated Cost Saved' row — an unqualified dollar saving, the same W1.9-class framing scrubbed from the README, bench, and cost digest but missed on the dashboard (caught by the IDE/dashboard execution-audit agent). Relabelled to 'List-price value' with 'illustrative @ $3/M — not a bill saving (net over caching ~ 0)'. The number (tokens x list price) is unchanged; only the claim is now honest. No behaviour change. tsc clean; build ok; full suite green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 01c0b88 commit 5858065

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/ui.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ const HTML_BODY = `
253253
<section class="tab active" id="tab-overview">
254254
<div class="grid grid-4">
255255
<div class="card"><h3>Tokens Saved</h3><div class="big-number accent" id="ov-tokens">&mdash;</div><div class="subtext" id="ov-tokens-sub">cumulative</div></div>
256-
<div class="card"><h3>Cost Saved</h3><div class="big-number" id="ov-cost">&mdash;</div><div class="subtext">at $3/M tokens</div></div>
256+
<div class="card"><h3>List-price value</h3><div class="big-number" id="ov-cost">&mdash;</div><div class="subtext">illustrative @ $3/M &middot; not a bill saving (net over caching &asymp; 0)</div></div>
257257
<div class="card"><h3>Hit Rate</h3><div class="big-number" id="ov-hitrate">&mdash;</div><div class="subtext" id="ov-hitrate-sub">hook interceptions</div></div>
258258
<div class="card"><h3>Sessions</h3><div class="big-number" id="ov-sessions">&mdash;</div><div class="subtext">tracked</div></div>
259259
</div>
@@ -444,7 +444,7 @@ async function loadSessions() {
444444
["Total Graph Tokens", formatNumber(tokens.totalGraphTokens)],
445445
["Total Saved", formatNumber(tokens.totalSaved)],
446446
["Avg Reduction", (Number(tokens.avgReduction ?? 0).toFixed(1) + "%")],
447-
["Estimated Cost Saved", formatCost(tokens.totalSaved ?? 0)],
447+
["List-price value (illustrative, not a bill saving)", formatCost(tokens.totalSaved ?? 0)],
448448
];
449449
450450
const html = '<table><thead><tr><th>Metric</th><th style="text-align:right">Value</th></tr></thead><tbody>' +

0 commit comments

Comments
 (0)