fix(compression): prevent unnecessary summarization when history is too short (#11082)

This commit is contained in:
Abhi
2025-10-14 00:02:03 -04:00
committed by GitHub
parent 3f24fab7e5
commit ac1ddf344f
3 changed files with 49 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ export function CompressionMessage({
case CompressionStatus.COMPRESSION_FAILED_TOKEN_COUNT_ERROR:
return 'Could not compress chat history due to a token counting error.';
case CompressionStatus.NOOP:
return 'Chat history is already compressed.';
return 'Nothing to compress.';
default:
return '';
}