chatgpt.config is not respected in VS CODE
Resolved 💬 7 comments Opened Aug 28, 2025 by Mateusz404 Closed Sep 18, 2025
💡 Likely answer: A maintainer (gpeal, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.3.3
Which model were you using?
gpt-5
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
- Download and install Codex - OpenAI's coding agent in VS Code
- Add this to settings.json: ` "chatgpt.config": {
"approval_policy": "never",
"sandbox_mode": "workspace-write"
},`
- Run any prompt
- It will ask for approval for everything
What is the expected behavior?
It shouldn't ask for approval
What do you see instead?
"Waiting to approve" or something like that
Additional information
_No response_
7 Comments
Add this to ~/.codex/config.toml. In the next couple of days, we'll have this surfaced within the extension.
Any updates on this?
@MaccariTA out of curiosity, which part of your config.toml are you most interested in? A lot of it will carry over already.
@gpeal
It works with
config.toml. I simply want the configuration to be per project, hence I want this implemented.Noted on per-project configuration. Which fields, in particular, do you want to be per-project?
@gpeal approval_policy for trusted projects.
Noted, we don't currently support having any part of config.toml be scoped to a project so the chatgpt.config approach would never have worked. We'll be improving config clarity and support over time though.