Skip to content

Commit 7d7cc2e

Browse files
committed
Note compaction quality in Unreleased and retune the loop fixture
Main's repetition detector now needs sixteen consecutive repeats, so ten copies of the loop phrase no longer trip it. Twenty copies still flag, and the Unreleased changelog records the compaction-quality pass.
1 parent 142835f commit 7d7cc2e

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ parallel copies under `docs/` or `scripts/notes/`. At cut time: rename
1313

1414
## [Unreleased]
1515

16+
### Agent
17+
18+
- **Compaction keeps scored work, not retry loops.** Errored tool results are no
19+
longer auto-pinned; identical errors collapse to one representative. Anchors
20+
are scored (writes, successful task completions, plan updates) and pair
21+
closures count against `maxAnchorTurns`. The LLM summary is workflow-aware
22+
and skips degenerate assistant text.
23+
1624
### TUI
1725

1826
- **Taller live chain-of-thought preview.** Parent reasoning still paints

‎tests/unit/summarizer.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ test("condenseTurns extracts files, tools, and links", () => {
5151
});
5252

5353
test("condenseTurns drops a degenerate repeated assistant tail from the excerpt (CL-6906)", () => {
54+
// The live detector needs 16 consecutive repeats of an 8+ char window
55+
// (DEFAULT_REPETITION_CONFIG). Ten copies of this phrase was enough
56+
// before that raise; twenty still trips it after.
5457
const loopPhrase = "we need to check whether the cache key already accounts for locale. ";
55-
const loopText = loopPhrase.repeat(10);
58+
const loopText = loopPhrase.repeat(20);
5659
const healthyNote = "Looked at src/auth.ts and found the missing null check.";
5760
const degenerateTurns: ConversationTurn[] = [
5861
{ role: "user", content: [{ type: "text", text: "please continue" }], timestamp: 1 },

0 commit comments

Comments
 (0)