Repository navigation
Description
What version of the Codex App are you using?
Windows package OpenAI.Codex_26.1023.6621.0_x64; bundled CLI 0.165.0-alpha.1.2.
What subscription do you have?
Unknown.
What platform is your computer?
Windows 11 x64, version 10.0.22631.6199.
What issue are you seeing?
The desktop app displays “Windows setup incomplete / setup stopped”. Repeated setup attempts fail with helper_sandbox_lock_failed and Windows error 5 while opening %USERPROFILE%\.codex\.sandbox-bin. The sandbox service runs as LocalSystem. The directory had a protected ACL granting SYSTEM and Administrators Modify, the user Modify plus WRITE_DAC, and CodexSandboxUsers read/execute; its owner was the user.
setup error: helper_sandbox_lock_failed: lock sandbox bin dir \\?\C:\Users\<user>\.codex\.sandbox-bin failed: open directory ... NtCreateFile: Access is denied. (os error 5)
What steps can reproduce the bug?
- On an existing Windows installation with the ACL and ownership described above, start or retry Windows sandbox setup. The conditions that originally created the ACL are unknown.
- Observe repeated setup failures and the error in
.codex\.sandbox\setup_error.json. - Grant SYSTEM Full Control on the directory, then trigger sandbox setup: provisioning completes and a setup marker is created. A subsequent setup refresh rewrites the directory ACL and returns SYSTEM to Modify, so the grant does not persist.
What is the expected behavior?
Sandbox provisioning and later re-provisioning should work without requiring manual filesystem permission or ownership changes. Setup failure should report enough information to diagnose the access denial.
Additional information
After the temporary SYSTEM permission grant, provisioning succeeded. A read-only sandbox command run in the interactive Windows user session returned SANDBOX_OK with exit code 0. The directory owner was then changed to BUILTIN\Administrators, following the workaround discussed in #51468, and the same interactive test again succeeded. The ACL remained restricted to the existing principals. Full re-provisioning after the ownership change and the desktop UI were not independently verified, so long-term success is not yet established.
A test started through SSH timed out connecting to the runner pipe; the equivalent interactive-session test succeeded. This may be specific to the SSH logon context and is not established as the same defect. Related reports: #51468, #50520, #46380. Please consider this a report of the same symptom on the version above.
Activity
github-actions commentedon Oct 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
sdiouci11 commentedon Oct 29, 2026
Related but a different failure point: #58107. There, provisioning fails with
SetNamedSecurityInfoW sandbox dir failed: 5(notNtCreateFile), and the failed run leaves the entire user profile at Low integrity without rolling it back — which silently breaks Desktop icons, Edge saved credentials, and everypy -3process (py.exe under AppData\Local inherits Low).