Skip to content

approval_policy = "untrusted" is not respected by vscode extension #5443

Closed

Description

@wiegell

What version of Codex is running?

Extension - Version 0.4.21

What subscription do you have?

Business

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

If i put approval_policy = "untrusted" in ~/.codex/config.toml it is not respected by the agent. It can still run e.g. mkdir whatever. When you ask the agent what policy it has currently, it says on-request.
The policy is respected when running codex directly as a cli though, but not via the extension

What steps can reproduce the bug?

See above

What is the expected behavior?

Should ask for any shell command

Additional information

No response

Activity

  1. added
    bug
    on Oct 21, 2025
  2. added
    extension
    on Oct 21, 2025
  3. github-actions commented on Oct 21, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. lichenometry commented on Oct 23, 2025

    @lichenometry

    I'm seeing the same issue with approval_policy = "never"

  5. linear commented on Oct 24, 2025

    @linear

    from shijie.rao:

    We are currently working on custom mode which will allow the extension to use approval and sandbox polices from config.toml.

  6. linear commented on Nov 4, 2025

    @linear

    from shijie.rao:

    Hi! Just a quick update that we have added custom mode to our latest VSC extension which will let you use polices defined in your config.toml if you wish to. Please let us know if there is any questions. Thanks!

  7. wiegell commented on Nov 6, 2025

    @wiegell
    Author

    @linear i don't see any new modes in the extension? is this released?

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

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions