Codex 0.169 stops trusting folders for you: add --trust or your exec loses its config
Codex CLI 0.169.0, released 13 November, changes how codex exec decides what to trust: in a directory you have not trusted, exec keeps project configuration and MCP servers disabled, even if you pass --sandbox workspace-write. Add --trust to save the trust explicitly. Source: https://github.com/openai/codex/releases/tag/rust-v0.169.0
Why it matters
This is a security fix disguised as a behavior change. Before 0.169, --sandbox workspace-write was enough for exec to load your project config and MCP servers, which meant a cloned repo could bring its own tools and settings into your run. Now untrusted directories stay untrusted until you say so, which is the right default for anyone who runs exec on code they did not write. See [Codex](https://agentstacklist.com/agents/codex/) for the reference for the tool. The [safe permission rules guide](https://agentstacklist.com/guides/safe-permission-rules-claude-code-codex/) covers safe permission rules for Codex.
Who it's for
Anyone who runs codex exec in CI, on cloned repos, or on code from other people.
How to try it
- Update Codex CLI to 0.169.0 or later, for example with npm install -g @openai/codex@0.169.0.
- Run codex exec in a directory you have not trusted and confirm it keeps the project config and MCP servers disabled, even with --sandbox workspace-write.
- Add --trust to codex exec or codex review to save the project trust explicitly, once you have checked the directory.
- In your own projects, trust the directory once with --trust and stop passing the flag every time.
- Plan and availability: Codex CLI 0.169.0, released 13 November 2026. The same release adds multiple side-chat tabs, search in the agent command center, and a Collapse turn details toggle.
Source: https://github.com/openai/codex/releases/tag/rust-v0.169.0
Written by James Whitfield from the original post. Checked Checked 16 Nov 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
codexexectrustsecurity
More ChatGPT tricks
- Codex Cloud can now drive a browser and desktop, so it tests the app it builds · Dec 1
- Copilot team customizations are GA, so stop setting up the same plugins one by one · Nov 23
- VS Code 1.146 deprecates the Local harness, so migrate your Copilot sessions before February · Nov 23
- GPT-Live-1.1 is in the API, and idle voice sessions now cost $0.02 a minute · Nov 21