Skip to content

Windows sandbox provisioning fails with helper_unknown_error after setup refresh #41755

Closed

Description

@gfreestates-stack

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

ChatGPT 26.825.51511

What subscription do you have?

plus

What platform is your computer?

No response

What issue are you seeing?

Summary

Codex Desktop cannot start any normal sandboxed local command on Windows.
The command is rejected before PowerShell or the requested process starts.

Error:

helper_unknown_error: setup refresh had errors

Environment

  • Windows 10 Pro 22H2, build 19045, x64, zh-CN
  • Codex Desktop: 26.825.6671.0
  • codex-cli: 0.151.0-alpha.7.2
  • Workspace is a normal local Git repository on an NTFS drive
  • Codex reports no available update

Minimal reproduction

Run any harmless sandboxed command, for example:

Get-Location

Expected:
The command starts and prints the working directory.

Actual:
The unified exec process is rejected before command execution:

Failed to create unified exec process:
helper_unknown_error: setup refresh had errors

The same command succeeds when executed outside the sandbox with scoped elevation.

codex doctor result

codex doctor --json returns overallStatus=fail.

Relevant check:

  • check: sandbox.helpers
  • status: fail
  • summary: elevated Windows sandbox provisioning recorded a structured failure
  • error code: helper_unknown_error
  • sandbox provisioning: failed
  • sandbox backend: elevated

Other relevant checks pass:

  • installation: OK
  • desktop app-server handshake: OK
  • configuration load: OK
  • authentication: OK
  • provider HTTP reachability: OK
  • WebSocket reachability: OK
  • state/database integrity: OK
  • disk space: OK

The separate TERM=dumb diagnostic is caused by the non-interactive diagnostic shell and does not explain the provisioning failure.

Helper integrity

The following bundled executables exist and have valid Authenticode signatures from OpenAI OpCo, LLC:

  • codex.exe
  • codex-windows-sandbox-setup.exe
  • codex-command-runner.exe
  • codex-code-mode-host.exe

Troubleshooting already performed

  • Fully exited Codex and confirmed it was restarted
  • Confirmed Codex Desktop has no available update
  • Checked Windows Security protection history; no Codex block was shown
  • Confirmed sufficient disk space
  • Confirmed the same harmless command succeeds outside the sandbox
  • Browser automation also fails because its local kernel exits with the same sandbox helper error
  • Reinstallation has not been attempted

Request

Please advise how to repair or reprovision only the Windows sandbox helper without reinstalling Codex Desktop or deleting user projects, configuration, or thread history.

What steps can reproduce the bug?

1. Open Codex Desktop on Windows.
2. Open the local workspace.
3. Ask Codex to run any harmless sandboxed shell command, for example:

```powershell
Get-Location
  1. The command fails before PowerShell starts, with:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
  1. Run the same command with scoped execution outside the sandbox. It succeeds and prints the correct workspace path.

  2. Fully exit Codex Desktop, confirm the Codex process has stopped, reopen the app, and repeat the test. The same sandbox error still occurs.

  3. Run:

codex doctor --json

The relevant result is:

overallStatus: fail
check: sandbox.helpers
status: fail
summary: elevated Windows sandbox provisioning recorded a structured failure
error code: helper_unknown_error
sandbox provisioning: failed
sandbox backend: elevated

The installation, desktop app-server handshake, authentication, network reachability, configuration, state databases, and disk checks pass.

The bundled helper executables exist and have valid Authenticode signatures from OpenAI OpCo, LLC:

  • codex.exe
  • codex-windows-sandbox-setup.exe
  • codex-command-runner.exe
  • codex-code-mode-host.exe

The issue also prevents browser automation because its local execution kernel exits with the same sandbox helper error.

Codex thread ID:
01a042a6-5b70-7373-b3d8-98593554c952

Token limit usage:
Not applicable / unknown. The failure happens before the requested command starts.

Context window usage:
Not applicable. The issue reproduces with a trivial command after fully restarting Codex Desktop.


### What is the expected behavior?

_No response_

### Additional information

_No response_

Activity

  1. added
    app
    on Aug 31, 2026
  2. added
    bug
    windows-os
    sandbox
    on Aug 31, 2026
  3. MisterH7 commented on Aug 31, 2026

    @MisterH7

    Additional reproduction from Codex Desktop on Windows, observed 2026-08-31 (Europe/Madrid), on the 26.825.x app line.

    Impact: this is a complete blocker for a real local project workflow. The user can access/read a local workspace under C:\Users\<user>\Desktop\PORTFOLIO_ARCHIVOS, but Computer Use / Windows application control cannot initialize, so Codex cannot detect or operate Affinity even when Affinity is open.

    Observed error:

    windows sandbox failed: setup refresh had errors
    

    Earlier diagnostics also indicated Windows error 5: Access denied while the sandbox setup attempted to work with packaged resources / WindowsApps.

    Troubleshooting already performed:

    • Removed an old Google Drive workspace root (G:\...) and kept only the local C: workspace.
    • Verified the local workspace itself is readable and usable.
    • Fully exited and restarted Codex multiple times.
    • Reopened Affinity and retested application detection.
    • The failure persists before Codex can even enumerate/control Windows applications.
    • The issue is therefore not specific to the workspace name, underscore, Google Drive, Affinity account, or whether Affinity is open.

    The workflow worked previously and became blocked after recent Codex updates. This looks consistent with the elevated Windows sandbox provisioning / setup-refresh regression reported in this issue and related Windows 26.825 reports.

    Please prioritize a supported repair/reprovision path for the Windows sandbox (without deleting projects/thread history), and improve the user-facing diagnostic so the failing ACL/helper operation and Win32 error are exposed instead of only setup refresh had errors.

  4. wrawanderson-create commented on Sep 1, 2026

    @wrawanderson-create

    Update: The problem persists after restarting Codex and retrying after the weekend.

    The failure is no longer limited to the in-app browser. Codex is now also unable to start ordinary command execution or reliably edit workspace files.

    Browser/runtime test:

    • Attempted to initialize the browser runtime with a minimal command.
    • The runtime exited before opening a browser or accessing any website.

    Diagnostic:

    node_repl kernel exited unexpectedly
    kernel_status: exited(code=1)
    kernel_stderr_tail: windows sandbox failed: helper_unknown_error: apply deny-read ACLs
    reason: stdout_eof

    Command execution test:

    • A basic PowerShell Get-ChildItem command failed during process creation.

    Diagnostic:

    Failed to create unified exec process:
    helper_unknown_error: apply deny-read ACLs

    File-edit test:

    • A direct workspace file-edit attempt also failed.

    Diagnostic:

    fs sandbox helper failed with status exit code: 1
    windows sandbox failed: helper_unknown_error: apply deny-read ACLs

    This confirms the issue occurs before any website, browser, or vendor interaction. Changing the Windows default browser from Firefox to Chrome did not resolve it and should not be relevant because the sandbox fails before a browser is launched.

    Environment:

    • Windows
    • Codex desktop application
    • Workspace stored beneath a OneDrive Documents directory
    • Failure affects browser initialization, shell process creation, and workspace file access
    • Restarting Codex and the task did not resolve it

    Impact:
    This completely blocks the active project because Codex cannot:

    1. launch the browser required for market-rate research;
    2. execute local validation/export scripts;
    3. reliably create or update project files.

    Please investigate the Windows sandbox helper’s deny-read ACL operation, including whether OneDrive-backed workspace paths or inherited Windows ACLs are triggering the helper failure. The error appears to be in the Codex sandbox initialization layer, not in Chrome, Firefox, Cloudflare, or the target websites.

  5. wrawanderson-create commented on Sep 2, 2026

    @wrawanderson-create

    Update after installing the newly pushed Codex update:

    I fully restarted Codex and retried the affected task after installing the latest available update. The issue remains unchanged.

    A basic read-only search of the permitted workspace failed before PowerShell could start.

    Current diagnostic:

    exec_command failed
    Failed to create unified exec process:
    helper_unknown_error: apply deny-read ACLs

    The attempted command was a normal read-only rg search within the configured workspace directories. No browser interaction or external website access was involved.

    The same underlying ACL failure therefore continues to block:

    1. PowerShell and local command execution
    2. Reading/searching project files
    3. Browser-runtime initialization
    4. Automated evidence collection
    5. Application maintenance and export-script generation

    Environment:

    • Windows
    • Codex desktop application
    • Latest pushed update installed
    • Workspace located beneath a OneDrive Documents directory
    • Workspace directories are explicitly listed as permitted roots
    • Restarting Codex and retrying the task did not resolve the problem
    • Changing the Windows default browser did not affect the behavior

    This continues to appear to be a Windows sandbox-helper failure while applying deny-read ACLs, occurring before the requested process is created. It is not caused by the target websites, Chrome, Firefox, Cloudflare, PowerShell, or the command being executed.

    Please confirm whether the latest update was intended to address this specific apply deny-read ACLs failure and whether additional diagnostics or a test build are available.

  6. gfreestates-stack commented on Sep 3, 2026

    @gfreestates-stack
    Author
  7. wrawanderson-create commented on Sep 3, 2026

    @wrawanderson-create

    Resolution update

    I was able to identify and repair the underlying problem.

    The failure was not caused by PowerShell, Git, the repository, Windows account ownership, or the project workspace itself. The Codex Windows sandbox log contained the actual cause:

    setup error: apply deny-read ACLs
    
    Caused by:
        0: parse deny-read ACL state
           C:\Users\<username>\.codex\.sandbox\deny_read_acl_state.json
        1: expected value at line 1 column 1
    
    Move-Item `
      "$env:USERPROFILE\.codex\.sandbox\deny_read_acl_state.json" `
      "$env:USERPROFILE\.codex\.sandbox\deny_read_acl_state.json.bak"
    
    
    The diagnostic approach also matches the [official OpenAI Windows sandbox guidance](https://learn.chatgpt.com/zh-Hans/docs/windows/windows-sandbox), which recommends checking the sandbox log when setup fails.
    
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