Skip to content

Safe commands prompting for permission even in workspace and no way to set allowed commands to run in sandbox #26108

Open

Description

@primozcerar

What version of the Codex App are you using (From “About Codex” dialog)?

26.601.21317

What subscription do you have?

business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

In Windows Codex App, built-in safe commands such as rg and read-only git status require approval unless added to default.rules. Adding them to default.rules allows them outside the sandbox, which bypasses filesystem confinement. Likewise if I approve a tool like node it will run outside the sandbox bypassing filesystem restrictions set in the permission profile (global config.toml) and I see no way of marking a tool as safe so that it can run without prompting for approval while still running in the sandbox to restrict out of workspace writes for example.

What steps can reproduce the bug?

Tell codex to try running any tool that is supposed to be treated as safe and is not listed in .rules files, like rg, pwd, git status, ... It fails without escalation and requires user approval. If you add them or any other tool to .rules then they can run anywhere as they are launched outside the sandbox which apparently is by design how .rules files work.

What is the expected behavior?

Default safe commands should run inside workspace without prompting and without escalation and even outside the workspace if permissions profile specifies filesystem read permission elsewhere. There should also be a way to approve a tool to always run without prompting but still runs sandboxed so permission profile filesystem restrictions are respected.

Additional information

No response

Activity

  1. added
    app
    on Jun 3, 2026
  2. added
    bug
    windows-os
    sandbox
    on Jun 3, 2026
  3. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. changed the title [-]Safe commands prompting for permission even in workspace and not way to set allowed commands to run in sandbox[/-] [+]Safe commands prompting for permission even in workspace and no way to set allowed commands to run in sandbox[/+] on Jun 3, 2026
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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions