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 0f8199dde3
commit a3fe9279d8
3 changed files with 49 additions and 6 deletions
@@ -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 '';
}