From e423d20a8d57d422eef1e9364cee26478f3e4a7d Mon Sep 17 00:00:00 2001
From: Bryan Morgan <bryanmorgan@google.com>
Date: Mon, 23 Jun 2025 17:55:24 -0400
Subject: Updated docs and /stats command to support lack of token caching
 support for OAuth users (b/426943001) (#1307)

---
 packages/cli/src/ui/components/Stats.tsx | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

(limited to 'packages/cli/src/ui/components/Stats.tsx')

diff --git a/packages/cli/src/ui/components/Stats.tsx b/packages/cli/src/ui/components/Stats.tsx
index 64e55d8b..d620416e 100644
--- a/packages/cli/src/ui/components/Stats.tsx
+++ b/packages/cli/src/ui/components/Stats.tsx
@@ -76,11 +76,13 @@ export const StatsColumn: React.FC<{
           label="Thoughts Tokens"
           value={stats.thoughtsTokens.toLocaleString()}
         />
-        <StatRow
-          label="Cached Tokens"
-          value={cachedDisplay}
-          valueColor={cachedColor}
-        />
+        {stats.cachedTokens > 0 && (
+          <StatRow
+            label="Cached Tokens"
+            value={cachedDisplay}
+            valueColor={cachedColor}
+          />
+        )}
         {/* Divider Line */}
         <Box
           borderTop={true}
-- 
cgit v1.2.3

