diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts index fce4112735..2230efc612 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.ts +++ b/packages/cli/src/ui/hooks/useGeminiStream.ts @@ -662,7 +662,7 @@ export const useGeminiStream = ( { type: 'info', text: - `IMPORTANT: This conversation approached the input token limit for ${config.getModel()}. ` + + `IMPORTANT: This conversation exceeded the compress threshold. ` + `A compressed context will be sent for future messages (compressed from: ` + `${eventValue?.originalTokenCount ?? 'unknown'} to ` + `${eventValue?.newTokenCount ?? 'unknown'} tokens).`, @@ -670,7 +670,7 @@ export const useGeminiStream = ( Date.now(), ); }, - [addItem, config, pendingHistoryItemRef, setPendingHistoryItem], + [addItem, pendingHistoryItemRef, setPendingHistoryItem], ); const handleMaxSessionTurnsEvent = useCallback(