Fix message too large issue. (#19499)

This commit is contained in:
Christian Gunderman
2026-02-19 19:06:36 +00:00
committed by GitHub
parent a00eb3b8e6
commit c276d0c7b6
5 changed files with 52 additions and 5 deletions

View File

@@ -226,8 +226,10 @@ describe('ChatCompressionService', () => {
false,
mockModel,
mockConfig,
true,
false,
);
// It should now attempt compression even if previously failed (logic removed)
// But since history is small, it will be NOOP due to threshold
expect(result.info.compressionStatus).toBe(CompressionStatus.NOOP);
expect(result.newHistory).toBeNull();
});