Skip to content

Commit 83c2aed

Browse files
test(compaction): force a fold so path-offset resume cases compact (#1189)
1 parent c7caf22 commit 83c2aed

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/session/compaction-verify.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,9 @@ describe("CL-8980 compaction preserves the path+offset resume recipe", () => {
11311131
const compactor = createPruningCompactor({
11321132
keepRecentTurns: 8,
11331133
summaryMaxChars: 4000,
1134+
// CL-9007: pin a tiny tail budget so the fold covers the same older
1135+
// region the old keepRecentTurns cut folded.
1136+
compactionShape: { tailBudgetTokens: 10 },
11341137
summarize,
11351138
});
11361139
const turns: ConversationTurn[] = [
@@ -1161,6 +1164,9 @@ describe("CL-8980 compaction preserves the path+offset resume recipe", () => {
11611164
const compactor = createPruningCompactor({
11621165
keepRecentTurns: 6,
11631166
summaryMaxChars: 4000,
1167+
// CL-9007: pin a tiny tail budget so the fold covers the same older
1168+
// region the old keepRecentTurns cut folded.
1169+
compactionShape: { tailBudgetTokens: 10 },
11641170
summarize,
11651171
});
11661172
const turns: ConversationTurn[] = [

0 commit comments

Comments
 (0)