OpenAI Codex · tool · fg-0506

Settings in a repo's .codex/config.toml are ignored by Codex

If you see sandbox_mode or model set in the project .codex/config.toml has no effect, the cause and the fix for OpenAI Codex are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
sandbox_mode or model set in the project .codex/config.toml has no effectProject hooks and rules under .codex do not run
Cause
Codex loads project .codex/ layers, including config, hooks, and rules, only for trusted projects. A project marked untrusted, or never trusted, gets user and system config only.
Fix
Trust the project when Codex asks, or mark it trusted in user config.
Apply
# ~/.codex/config.toml [projects."/Users/alice/code/app"] trust_level = "trusted"
Affected
Codex CLI, IDE extension, and ChatGPT desktop app, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun