Skip to content

Add Config Option to Disable Automatic Context Compaction in Codex CLI #11716

Closed as duplicate

Description

@99213

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

Activity

  1. etraut-openai commented on Feb 13, 2026

    @etraut-openai
    Contributor

    We're already tracking this feature request in #4106. Please upvote that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions