Skip to content

Commit 2ce443d

Browse files
authored
fix(compaction): preserve generated summaries when suffix context overflows (#123827)
* fix(compaction): preserve generated summaries under suffix pressure * fix(compaction): keep suffix context message-aligned * fix(compaction): report preserved context loss * fix(compaction): cap tool interactions atomically
1 parent 1cf9322 commit 2ce443d

4 files changed

Lines changed: 840 additions & 79 deletions

File tree

‎src/agents/agent-hooks/compaction-safeguard.test-support.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ type CompactionSafeguardTestApi = {
3131
MAX_FILE_OPS_SECTION_CHARS: number;
3232
MAX_FILE_OPS_LIST_CHARS: number;
3333
SUMMARY_TRUNCATED_MARKER: string;
34+
CONTEXT_TRUNCATED_MARKER: string;
35+
MAX_SPLIT_TURN_CONTEXT_CHARS: number;
36+
SPLIT_TURN_TRUNCATED_MARKER: string;
3437
};
3538

3639
function getTestApi(): CompactionSafeguardTestApi {

0 commit comments

Comments
 (0)