Skip to content

Commit bb4b1a3

Browse files
feat: agent bar shows total tokens all-time, drop Cursor segment
Real-compute (cache-excluded) split fought intuition: Claude's usage is mostly cached context, so excluding cache shrank Claude vs Codex to ~1.9x (it's ~4x by total tokens) and made the numbers tiny vs the cache- inclusive telemetry. Switch the bar to total tokens (input+cache+output) all-time — Claude clearly dominant, magnitudes consistent with telemetry. Drop the Cursor segment: Cursor is shown accurately via its provider account/ledger, so the rough local estimate was redundant. Bumps desktop app to 1.1.64. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent f84bac4 commit bb4b1a3

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-reviewer/desktop",
3-
"version": "1.1.63",
3+
"version": "1.1.64",
44
"private": true,
55
"scripts": {
66
"dev": "lsof -ti:1420 | xargs kill -9 2>/dev/null; vite",

apps/desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-utils/schema.json",
33
"identifier": "com.codevetter.desktop",
44
"productName": "CodeVetter",
5-
"version": "1.1.63",
5+
"version": "1.1.64",
66
"build": {
77
"beforeDevCommand": "npm run dev",
88
"beforeBuildCommand": "npm run build",

apps/desktop/src/pages/Home.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -904,21 +904,19 @@ function WeeklyAgentSplit() {
904904

905905
if (!rows) return null;
906906

907-
// All-time real compute so every indexed agent shows — Grok/Cursor sessions
908-
// are often older than the current week and would vanish from a week-only view.
909-
// The bar splits by real compute (input − cache + output) for a fair
910-
// cross-agent comparison; the with-cache total is surfaced alongside so the
911-
// headline magnitude isn't lost (cache reads are ~98% of Claude's input).
907+
// Total tokens (cache-inclusive) all-time — the metric that matches how usage
908+
// reads everywhere else (Claude dominant, big numbers). Cursor is excluded
909+
// here: it's shown accurately via its own provider account/ledger, so the
910+
// rough local estimate was redundant clutter.
912911
const segments = rows
912+
.filter((r) => r.agent_type !== "cursor")
913913
.map((r) => ({
914914
agent: r.agent_type,
915-
tokens: r.real_input_tokens + r.output_tokens,
916-
withCache: r.real_input_tokens + r.cache_read_tokens + r.output_tokens,
915+
tokens: r.real_input_tokens + r.cache_read_tokens + r.output_tokens,
917916
}))
918917
.filter((s) => s.tokens > 0)
919918
.sort((a, b) => b.tokens - a.tokens);
920919
const grandTotal = segments.reduce((acc, s) => acc + s.tokens, 0);
921-
const grandWithCache = segments.reduce((acc, s) => acc + s.withCache, 0);
922920

923921
if (segments.length === 0 || grandTotal === 0) {
924922
return null;
@@ -932,9 +930,9 @@ function WeeklyAgentSplit() {
932930
<Card className="rounded-none border-0 bg-transparent p-4 shadow-none">
933931
<div className="mb-2.5 flex items-end justify-between gap-3">
934932
<div>
935-
<div className="text-[11px] text-slate-500">By agent · real compute (all time)</div>
933+
<div className="text-[11px] text-slate-500">By agent · all time</div>
936934
<div className="text-xs text-slate-400 tabular-nums">
937-
{formatTokens(grandTotal)} real · {formatTokens(grandWithCache)} with cache reads · {segments.length} agent{segments.length === 1 ? "" : "s"}
935+
{formatTokens(grandTotal)} tokens · {segments.length} agent{segments.length === 1 ? "" : "s"}
938936
</div>
939937
</div>
940938
</div>

0 commit comments

Comments
 (0)