code review followup for compress command (#1097)

Followup to https://github.com/google-gemini/gemini-cli/pull/986
This commit is contained in:
Jacob MacDonald 2025-06-17 08:44:54 -07:00 committed by GitHub
parent c3971754bf
commit e59c872b3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 39 additions and 18 deletions

View file

@ -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">