🐞 Bug: Codex fails to start when approval_policy = "auto" is set in config.toml

Resolved 💬 1 comment Opened Oct 7, 2025 by Euphemystic-AI Closed Oct 7, 2025

What version of Codex is running?

0.4.19 But others also show it now

Which model were you using?

gpt-5-codex high

What platform is your computer?

Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.26100.0 Microsoft Windows NT 10.0.26100.0

What steps can reproduce the bug?

Create or edit
C:\Users\<username>\.codex\config.toml
so it contains:

approval_policy = "auto"

Launch VS Code (Stable 1.94 or later).

Install/enable the Codex extension.

Open the Codex side-panel.

What is the expected behavior?

Codex should start regardless of the approval_policy setting, or gracefully ignore unrecognized values.

What do you see instead?

Codex webview fails to load.

Logs show extension-host errors such as:

Blocked vscode-webview request ...
Can not find provider for codex

Removing the approval_policy line immediately restores normal startup.

Additional information

Reproduced even with a clean --user-data-dir and empty workspace.

Deleting only that line from config.toml resolves the problem without touching any other settings.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗