From 9f4ed85677473e1404cd14d15e0b84218c65a4b8 Mon Sep 17 00:00:00 2001 From: jh-block Date: Fri, 20 Feb 2026 15:29:52 +0100 Subject: [PATCH] feat(ui): show token counts directly for "free" providers (#7383) --- .../src/components/bottom_menu/CostTracker.tsx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/ui/desktop/src/components/bottom_menu/CostTracker.tsx b/ui/desktop/src/components/bottom_menu/CostTracker.tsx index 5ebf8957..f8f17047 100644 --- a/ui/desktop/src/components/bottom_menu/CostTracker.tsx +++ b/ui/desktop/src/components/bottom_menu/CostTracker.tsx @@ -134,22 +134,15 @@ export function CostTracker({ inputTokens = 0, outputTokens = 0, sessionCosts }: !costInfo || (costInfo.input_token_cost === undefined && costInfo.output_token_cost === undefined) ) { - // If it's a known free/local provider, show $0.000000 without "not available" message const freeProviders = ['ollama', 'local', 'localhost']; if (freeProviders.includes(currentProvider.toLowerCase())) { return ( <> - - -
- - 0.0000 -
-
- - {`Local model (${inputTokens.toLocaleString()} input, ${outputTokens.toLocaleString()} output tokens)`} - -
+
+ + {inputTokens.toLocaleString()}↑ {outputTokens.toLocaleString()}↓ + +
);