From e59c872b3dea9dee8206f990a761e3bfee3a1194 Mon Sep 17 00:00:00 2001
From: Jacob MacDonald <jakemac@google.com>
Date: Tue, 17 Jun 2025 08:44:54 -0700
Subject: code review followup for compress command (#1097)

Followup to https://github.com/google-gemini/gemini-cli/pull/986
---
 packages/cli/src/ui/components/messages/CompressionMessage.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/packages/cli/src/ui/components/messages/CompressionMessage.tsx b/packages/cli/src/ui/components/messages/CompressionMessage.tsx
index aaa56149..d1080668 100644
--- a/packages/cli/src/ui/components/messages/CompressionMessage.tsx
+++ b/packages/cli/src/ui/components/messages/CompressionMessage.tsx
@@ -23,7 +23,8 @@ export const CompressionMessage: React.FC<CompressionDisplayProps> = ({
 }) => {
   const text = compression.isPending
     ? 'Compressing chat history'
-    : `Chat history compressed from ${compression.originalTokenCount} to ${compression.newTokenCount} tokens.`;
+    : `Chat history compressed from ${compression.originalTokenCount ?? 'unknown'}` +
+      ` to ${compression.newTokenCount ?? 'unknown'} tokens.`;
 
   return (
     <Box flexDirection="row">
-- 
cgit v1.2.3

