Add Config Option to Disable Automatic Context Compaction in Codex CLI

Resolved 💬 1 comment Opened Feb 13, 2026 by 99213 Closed Feb 13, 2026

What variant of Codex are you using?

CLI

What feature would you like to see?

Please add a user-configurable way to fully disable automatic context compaction in Codex CLI (for example, model_auto_compact_enabled = false in config.toml). The current behavior appears to always auto-compact once usage crosses a threshold, which can interrupt workflows that depend on preserving full, verbatim conversation history for debugging, audits, or deterministic reproduction. I’m not asking to change the default behavior—keeping auto-compaction enabled by default is reasonable—but advanced users should have an explicit opt-out switch and clear documentation of the tradeoffs.

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗