Skip to content

Windows 10 sandbox initialization fails with helper_sandbox_lock_failed and NtCreateFile error 5 #60262

Open

Description

@SushiBear21

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.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Nov 8, 2026
  2. taesan1212-web commented on Nov 27, 2026

    @taesan1212-web

    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?

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