Skip to content

fix: make context compaction recoverable under pressure - #475

Merged
Kaguya-19 merged 5 commits into
mainfrom
codex/context-compaction-emergency
Aug 3, 2026
Merged

fix: make context compaction recoverable under pressure#475
Kaguya-19 merged 5 commits into
mainfrom
codex/context-compaction-emergency

Conversation

@Kaguya-19

Copy link
Copy Markdown
Collaborator

Implement staged pre-prune, rolling summary, post-summary snip, and emergency compaction. Preserve tool pairs and protected-tool semantics while bounding oversized payloads in emergency mode. Avoid false context overflow when the prompt remains under the hard effective input budget. Add regression coverage for protected early turns, emergency projection, and context-specific error guidance. Verification: npm run build with Node 22.13.1, targeted compaction/model guidance tests, git diff --check.

@Kaguya-19
Kaguya-19 requested a review from mssssss123 August 3, 2026 14:25
@Kaguya-19
Kaguya-19 merged commit 488dd72 into main Aug 3, 2026
4 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