Skip to content

Windows app 26.1103.3517.0: sandbox setup still fails after granting SYSTEM WRITE_DAC to .sandbox-bin #60057

Open

Description

@Serenaishere

Summary

Codex Windows sandbox setup repeatedly fails with helper_sandbox_lock_failed / Win32 error 5 on %USERPROFILE%\.codex\.sandbox-bin in app version 26.1103.3517.0. The directory initially granted SYSTEM (M) but not WRITE_DAC, matching #59038 and the legacy ACL repair in #59745. Manually adding SYSTEM (M,WDAC) succeeds, but restarting the application still does not complete setup. The exact error after restart has not yet been re-collected.

Environment

  • Windows 11, build 22631 (reported previously by user; not re-verified for this run)
  • Codex Windows app MSIX package: OpenAI.Codex 26.1103.3517.0 (package status: Ok)
  • ~/.codex/config.toml: [windows] sandbox = "elevated"
  • App shows "Windows setup didn't finish" / "Setup stopped", retry unsuccessful.
  • User also reports approval modes cannot be changed in desktop app; causal connection unconfirmed.

Observed errors before manual ACL repair

setup_error.json:
{
  "code": "helper_sandbox_lock_failed",
  "message": "lock sandbox bin dir \\?\C:\Users\<redacted>\.codex\.sandbox-bin failed: open directory ... NtCreateFile: Access is denied. (os error 5)"
}

[2026-11-07T04:09:35Z] WFP setup failed for CodexSandboxOffline: BuildSecurityDescriptorW failed: 0x00000534
[2026-11-07T04:09:35Z] setup error: helper_sandbox_lock_failed: lock sandbox bin dir ... NtCreateFile: Access is denied. (os error 5)

0x534 is ERROR_NONE_MAPPED, potentially a separate Windows Filtering Platform security-descriptor/SID resolution issue; whether it contributes to failed setup is unknown.

ACL inspection and attempted workaround

Before:

CodexSandboxUsers:(OI)(CI)(RX)
NT AUTHORITY\SYSTEM:(OI)(CI)(M)
BUILTIN\Administrators:(OI)(CI)(M)
<current user>:(OI)(CI)(M,WDAC)
Owner: <current user>
AreAccessRulesProtected: True

The user backed up the existing directory ACL, then ran:

icacls "$env:USERPROFILE\.codex\.sandbox-bin" /grant 'SYSTEM:(OI)(CI)(WDAC)'

Result: command completed successfully. A subsequent icacls verified:

NT AUTHORITY\SYSTEM:(OI)(CI)(M,WDAC)

After app restart, Windows setup still fails. We do not yet know whether the app rewrote the ACL again during retry or whether setup advanced to another error.

Reproduction

  1. On Windows app version 26.1103.3517.0, configure elevated Windows sandbox.
  2. Retry Windows setup from desktop app.
  3. Inspect %USERPROFILE%\.codex\.sandbox\setup_error.json and sandbox logs.
  4. Observe helper_sandbox_lock_failed, error 5, opening .sandbox-bin, along with WFP security descriptor failure.
  5. Grant SYSTEM WRITE_DAC on the sandbox bin directory and verify it is present.
  6. Restart Codex: setup still not successful.

Expected behavior

Setup/re-provisioning should repair legacy ACLs safely and persistently, or report the actual new blocker after ACL correction. Please verify whether #59745 fully addresses installed Windows desktop builds, including any ACL reapplication and WFP setup errors.

Related

This report intentionally omits the local Windows username and host name.

Activity

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

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. katiecharm commented on Nov 10, 2026

    @katiecharm

    I experienced this same error on November 10, 2026:

    helper_sandbox_lock_failed — NtCreateFile: Access is denied (os error 5), opening %USERPROFILE%.codex.sandbox-bin.

    ChatGPT desktop repeatedly showed “Windows setup didn’t finish / Setup stopped,” and the approval selector was stuck. Restarting the app, restarting Windows, and running as administrator did not help.

    What finally worked: I installed Visual Studio Code, which I didn’t previously have, installed the official OpenAI Codex extension, and completed Windows setup from its sidebar. Setup succeeded there, and normal local commands worked afterward.

    Desktop package version: 26.1103.7773.0
    VS Code extension version: 26.1021.22027

    I also submitted in-app feedback. Please investigate why the extension’s setup succeeded while the desktop app’s Retry setup repeatedly failed. Users shouldn’t have to install a code editor to repair ChatGPT.

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