Repository navigation
Description
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
- On Windows app version 26.1103.3517.0, configure elevated Windows sandbox.
- Retry Windows setup from desktop app.
- Inspect
%USERPROFILE%\.codex\.sandbox\setup_error.jsonand sandbox logs. - Observe
helper_sandbox_lock_failed, error 5, opening.sandbox-bin, along with WFP security descriptor failure. - Grant SYSTEM
WRITE_DACon the sandbox bin directory and verify it is present. - 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
- Windows sandbox initialization fails: SYSTEM denied WRITE_DAC on .sandbox-bin #59038 — SYSTEM denied WRITE_DAC on
.sandbox-bin - Windows app 26.1023.6621.0: sandbox setup fails with helper_sandbox_lock_failed on protected .sandbox-bin ACL #57617 — protected ACL and recurring sandbox lock failures
- Windows sandbox: recurring helper_sandbox_lock_failed after .sandbox-bin permissions return to Modify #50520 — recurring ACL reversion
- Access being deined to Sandbox #59744 — same lock error in a newer desktop build
- PR Repair legacy Windows sandbox bin permissions for SYSTEM #59745 — Repair legacy Windows sandbox bin permissions for SYSTEM (merged 2026-11-05)
- PR Centralize Windows sandbox filesystem override resolution #60042 — Centralize Windows sandbox filesystem override resolution (merged 2026-11-07)
This report intentionally omits the local Windows username and host name.
Activity
github-actions commentedon Nov 7, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
katiecharm commentedon Nov 10, 2026
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.