Skip to content

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

Closed

Description

@Euphemystic-AI

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.

Activity

  1. added
    bug
    on Oct 7, 2025
  2. added
    extension
    windows-os
    on Oct 7, 2025
  3. Euphemystic-AI commented on Oct 7, 2025

    @Euphemystic-AI
    Author

    Update:
    The problem wasn’t Codex itself but a typo in my config.
    approval_policy = "auto" is invalid and prevents Codex from starting.
    The correct key is:

    approval_mode = "auto"

    Once corrected, Codex launches normally.
    Please consider documenting this in docs/config.md or adding a fallback warning for approval_policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions