fix(panel): add semantic speed/cache color tiers and clean up overview metric subtexts

This commit is contained in:
fish
2026-11-15 18:53:43 +09:00
parent 2db06050be
commit 6517ee434e
14 changed files with 531 additions and 149 deletions
@@ -2784,8 +2784,9 @@ export function mountWindowOverlay() {
null;
const cacheHitPct =
Number(capActive.stepCount || 0) > 0
? capActive.sessionCacheHitPct ?? capActive.latestCacheHitPct ?? null
: capActive.latestCacheHitPct ?? null;
? capActive.latestCacheHitPct ?? capActive.sessionCacheHitPct ?? null
: null;
const latestPromptTokens = capActive.latestPromptTokens ?? null;
const capInTok = Math.max(0, Number(capActive.inputTokens || 0));
const capCacheTok = Math.max(0, Number(capActive.cacheReadTokens || 0));
const capOutTok = Math.max(0, Number(capActive.outputTokens || 0));
@@ -2808,6 +2809,7 @@ export function mountWindowOverlay() {
stepCost: capsuleStepCost,
sessionCost,
cacheHitPct,
latestPromptTokens,
sessionTokens,
quotas: telemetry.quotas,
});