You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows 10 sandbox initialization fails with helper_sandbox_lock_failed and NtCreateFile error 5 #60262
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
On Windows 10, sandbox initialization fails before a local file can be read. helper_sandbox_lock_failed reports NtCreateFile: Access is denied (OS error 5) opening %USERPROFILE%\.codex\.sandbox-bin. setup_error.json shows the same failure. Restarting the app and trying a new local chat did not resolve it. SYSTEM’s ‘Change permissions’ was unchecked; a manual permissions change did not resolve it. No matching Windows Security event 4656 was found, which does not establish the cause. The signature resembles issue 59038, but the underlying cause has not been confirmed. App version and exact Windows build are unverified.
Additional Windows 10 reproduction from a connected ChatGPT Dot:
OS: Windows 10 Pro 22H2 x64, build 19045.3803. Desktop package: OpenAI.Codex 26.1016.8622.0.
The Dot connects to the PC successfully. Even a no-op PowerShell command (Write-Output 'Ready') fails before it runs, during elevated sandbox setup, with helper_sandbox_lock_failed and NtCreateFile: Access is denied (os error 5) while opening %USERPROFILE%\.codex\.sandbox-bin. This is not a denial on the project folder.
The log shows MXC availability: false, Windows sandbox selection: elevated, and sandbox setup marker missing or incompatible. “Retry setup” in the desktop app repeatedly returns to “Setup stopped.”
A read-only icacls "%USERPROFILE%\.codex\.sandbox-bin" lookup from Command Prompt can help distinguish this signature. On the affected machine the NT AUTHORITY\SYSTEM entry was (OI)(CI)(M), with no explicit WDAC on that entry. No ACL changes were made. This matches the legacy permissions state described in Repair legacy Windows sandbox bin permissions for SYSTEM #59745 and the connected-desktop symptoms in Windows desktop connection fails to initialise sandbox #60851. The failure began after local access had previously worked, but we have not established whether an app update triggered it.
I checked the official x64 desktop MSIX 26.1120.6357.0: its manifest specifies minimum Windows build 19041, and the bundled sandbox service contains diagnostic strings from the #59745 repair path. That is static evidence only; the package has not yet been tested on this affected PC. Could a maintainer confirm the supported desktop update/recovery path for Windows 10 users who are already in this state, and consider documenting this error signature and the read-only diagnostic in the Windows sandbox troubleshooting guide?
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Nov 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
taesan1212-web commentedon Nov 27, 2026
Additional Windows 10 reproduction from a connected ChatGPT Dot:
OpenAI.Codex 26.1016.8622.0.Write-Output 'Ready') fails before it runs, during elevated sandbox setup, withhelper_sandbox_lock_failedandNtCreateFile: Access is denied (os error 5)while opening%USERPROFILE%\.codex\.sandbox-bin. This is not a denial on the project folder.MXC availability: false,Windows sandbox selection: elevated, andsandbox setup marker missing or incompatible. “Retry setup” in the desktop app repeatedly returns to “Setup stopped.”icacls "%USERPROFILE%\.codex\.sandbox-bin"lookup from Command Prompt can help distinguish this signature. On the affected machine theNT AUTHORITY\SYSTEMentry was(OI)(CI)(M), with no explicitWDACon that entry. No ACL changes were made. This matches the legacy permissions state described in Repair legacy Windows sandbox bin permissions for SYSTEM #59745 and the connected-desktop symptoms in Windows desktop connection fails to initialise sandbox #60851. The failure began after local access had previously worked, but we have not established whether an app update triggered it.I checked the official x64 desktop MSIX
26.1120.6357.0: its manifest specifies minimum Windows build19041, and the bundled sandbox service contains diagnostic strings from the #59745 repair path. That is static evidence only; the package has not yet been tested on this affected PC. Could a maintainer confirm the supported desktop update/recovery path for Windows 10 users who are already in this state, and consider documenting this error signature and the read-only diagnostic in the Windows sandbox troubleshooting guide?