OpenAI Breaking change major inferred

codex exec keeps project config and MCP servers off in untrusted directories unless --trust is passed

From Codex CLI 0.169.0, codex exec no longer loads project configuration or MCP servers in an untrusted directory, even with --sandbox workspace-write. Pass --trust to codex exec or codex review to save project trust.

What does this mean for me?

Action needed
  • Engineering leadership

    Cost, risk, timeline, team impact Plan for it

    Automated Codex jobs in CI may quietly run without the repository's settings and tools after upgrading to 0.169.0. Ask teams using Codex in pipelines to check them before upgrading.

  • Engineer

    What to change, what breaks, what to test Action needed

    If a CI job runs `codex exec` or `codex review` in a fresh checkout and needs the repo's Codex config or MCP servers, add `--trust` before upgrading to 0.169.0. Without it, those settings are now ignored even with `--sandbox workspace-write`.

  • General consumer

    Using ChatGPT, not the API No impact

    Nothing to do. This only affects automated Codex command-line runs and does not change ChatGPT.

Codex CLI 0.169.0 requires explicit project trust in non-interactive runs. codex exec now keeps a project’s configuration and MCP servers disabled in an untrusted directory, even when run with --sandbox workspace-write.

CI jobs and scripts that run codex exec in a fresh checkout and rely on the repository’s Codex configuration or its MCP servers will run without them after upgrading. To keep them, pass --trust to codex exec or codex review, which saves trust for the project.

The changelog lists this under bug fixes. Confidence is medium because it does not say how earlier versions behaved with --sandbox workspace-write; the pull request title, “Require explicit project trust in non-interactive runs”, suggests that runs which previously loaded project settings no longer do.

Topics: Agents and tool use, Coding tools

Sources

Confidence
medium
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person