You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-compaction fails near context limit with "stream disconnected before completion" #16281
What terminal emulator and version are you using (if applicable)?
codex cli
What issue are you seeing?
When the conversation context gets low (around 8% remaining), Codex CLI appears to trigger automatic compaction, but the compaction repeatedly fails instead of completing.
When the remaining conversation context becomes low and Codex CLI triggers automatic compaction, the compaction request should complete successfully and the session should continue normally without interruption.
If compaction cannot be completed, the CLI should fail gracefully by either:
retrying with a clear actionable error message,
preserving the current session state, or
offering a manual recovery path instead of leaving the session unusable.
Activity
github-actions commentedon Mar 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action