Skip to content

Windows Desktop: unelevated sandbox still repeatedly launches elevated setup helper #23712

Open

Description

@mpetr

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

26.513.40821

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex Desktop on Windows keeps attempting sandbox setup even with:

sandbox_mode = "workspace-write"

[windows]
sandbox = "unelevated"

Each sandboxed shell command opens a Windows credential prompt for Codex helper elevated access. I cancel it every time.

sandbox.log shows:

[2026-05-20 17:50:35.639 codex.exe] sandbox setup required: sandbox setup marker missing or incompatible
[2026-05-20 17:50:56.218 codex.exe] START: C:\Program Files\PowerShell\7\pwsh.exe -NoProfile -Command [Console]::OutputEncoding=[System.Text.Encoding]::UTF8;
Get-ChildItem -Force
[2026-05-20 17:50:56.229 codex.exe] sandbox setup required: sandbox setup marker missing or incompatible

What steps can reproduce the bug?

  1. Install and launch Codex Desktop on Windows.

  2. Open or create C:\Users\<user>\.codex\config.toml.

  3. Configure Codex with:

    sandbox_mode = "workspace-write"

    [windows]
    sandbox = "unelevated"

  4. Fully restart Codex Desktop.

  5. Open any local workspace.

  6. Ask Codex to run a simple sandboxed shell command, for example Get-ChildItem -Force or Get-Location.

  7. Observe that a Windows credential/UAC prompt appears for the Codex sandbox/helper elevated setup.

  8. Cancel the credential prompt.

  9. Repeat another simple shell command.

  10. Observe that the same helper prompt appears again.

What is the expected behavior?

With windows.sandbox = "unelevated", Codex should not repeatedly prompt for elevated helper setup, or should provide a documented config option to disable that setup attempt while keeping sandbox_mode = "workspace-write".

Additional information

No response

Activity

  1. added
    appIssues related to the Codex desktop app
    on May 20, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    sandboxIssues related to permissions or sandboxing
    configIssues involving config.toml, config keys, config merging, or config updates
    on May 20, 2026
  3. github-actions commented on May 20, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. mpetr commented on May 20, 2026

    @mpetr
    Author

    the potential duplicates are in fact installing sandbox app (succesfully, it "just" repeats). It is problem of sandbox installation/verification.
    Here is custom config, unelevated, no sandbox installed or willing to install. I see it as problem of configuration evaluation. So not a duplicate.

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

    appIssues related to the Codex desktop appbugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatessandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions