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?

  1. Download and install Codex - OpenAI's coding agent in VS Code
  2. Add this to settings.json: ` "chatgpt.config": {

"approval_policy": "never",
"sandbox_mode": "workspace-write"
},`

  1. Run any prompt
  2. 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_

View original on GitHub ↗

7 Comments

gpeal contributor · 10 months ago

Add this to ~/.codex/config.toml. In the next couple of days, we'll have this surfaced within the extension.

MaccariTA · 10 months ago

Any updates on this?

gpeal contributor · 10 months ago

@MaccariTA out of curiosity, which part of your config.toml are you most interested in? A lot of it will carry over already.

MaccariTA · 10 months ago

@gpeal
It works with config.toml. I simply want the configuration to be per project, hence I want this implemented.

gpeal contributor · 10 months ago
@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?

MaccariTA · 10 months ago

@gpeal approval_policy for trusted projects.

gpeal contributor · 10 months ago

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.