From 844fdde4cd3cc45811ff577259b6e87a27e0b5ac Mon Sep 17 00:00:00 2001 From: Resham Joshi <65915470+iamtoruk@users.noreply.github.com> Date: Thu, 18 Jun 2026 17:59:03 +0200 Subject: [PATCH] fix(menubar): drop the ' tok' suffix from the Total Tokens metric (#511) Per #497 feedback: with Total Tokens selected the bar showed e.g. '0 tok'. The user picked the metric, so the unit is redundant; show just the number (the flame already disambiguates it from cost). Compact mode already had no suffix; this only changes the wide rendering. --- mac/Sources/CodeBurnMenubar/CodeBurnApp.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac/Sources/CodeBurnMenubar/CodeBurnApp.swift b/mac/Sources/CodeBurnMenubar/CodeBurnApp.swift index f357a8b7..dd31cb9d 100644 --- a/mac/Sources/CodeBurnMenubar/CodeBurnApp.swift +++ b/mac/Sources/CodeBurnMenubar/CodeBurnApp.swift @@ -734,7 +734,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSPopoverDelegate { valueText = compact ? "↑\(out)↓\(inp)\(suffix)" : " ↑\(out) ↓\(inp)\(suffix)" } else if store.displayMetric == .totalTokens, let p = menubarPayload?.current { let total = formatTokensMenubar(Double(p.inputTokens + p.outputTokens)) - valueText = compact ? "\(total)\(suffix)" : " \(total) tok\(suffix)" + valueText = compact ? "\(total)\(suffix)" : " \(total)\(suffix)" } else if store.displayMetric == .credits, let p = menubarPayload?.current { let credits = formatTokensMenubar((p.codexCredits ?? 0).rounded()) valueText = compact ? "\(credits)cr\(suffix)" : " \(credits) credits\(suffix)"