Skip to content

fix(compaction): retry summaries after context overflow - #197

Merged
ZouR-Ma merged 2 commits into
mainfrom
fix/compaction-overflow-recovery
Sep 28, 2026
Merged

ZouR-Ma merged 2 commits into
mainfrom
fix/compaction-overflow-recovery

Conversation

@MelodyVAR

Copy link
Copy Markdown
Collaborator

Summary requests previously stopped on context overflow even when older history could be removed safely. Retry classified overflow against bounded 70%/50%/35% targets while preserving the previous summary, instructions, latest user request (including image-only input), and complete recent tool groups. Transient retries keep one budget, and successful summaries include usage from recovery attempts.

The change is independent of #195's summary-integrity and completion-check work. Failed/aborted compaction accounting retains its existing contract, documented in the new guide.

Validation:

  • 65 overflow regressions passed, including image-only and split-turn cases.
  • npm run check
  • pnpm run build:offline
  • ./test.sh with isolated credentials

@ZouR-Ma
ZouR-Ma force-pushed the fix/compaction-overflow-recovery branch from 9715907 to c35c101 Compare September 28, 2026 11:19
@ZouR-Ma
ZouR-Ma force-pushed the fix/compaction-overflow-recovery branch from c35c101 to e94abb5 Compare September 28, 2026 11:27
@ZouR-Ma
ZouR-Ma merged commit 13a190a into main Sep 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants