summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useGeminiStream.ts
diff options
context:
space:
mode:
authorJacob MacDonald <[email protected]>2025-06-17 08:44:54 -0700
committerGitHub <[email protected]>2025-06-17 15:44:54 +0000
commite59c872b3dea9dee8206f990a761e3bfee3a1194 (patch)
tree88ee78b1ba1957dd5c504f577bee0db00078cb43 /packages/cli/src/ui/hooks/useGeminiStream.ts
parentc3971754bf4bd5877d7a57c523b981c09d4fa35d (diff)
code review followup for compress command (#1097)
Followup to https://github.com/google-gemini/gemini-cli/pull/986
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts')
-rw-r--r--packages/cli/src/ui/hooks/useGeminiStream.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts
index d2153edf..6d92af0d 100644
--- a/packages/cli/src/ui/hooks/useGeminiStream.ts
+++ b/packages/cli/src/ui/hooks/useGeminiStream.ts
@@ -379,7 +379,8 @@ export const useGeminiStream = (
text:
`IMPORTANT: This conversation approached the input token limit for ${config.getModel()}. ` +
`A compressed context will be sent for future messages (compressed from: ` +
- `${eventValue.originalTokenCount} to ${eventValue.newTokenCount} tokens).`,
+ `${eventValue?.originalTokenCount ?? 'unknown'} to ` +
+ `${eventValue?.newTokenCount ?? 'unknown'} tokens).`,
},
Date.now(),
),