Skip to content

Windows app 26.1023.6621.0: sandbox setup fails with helper_sandbox_lock_failed on protected .sandbox-bin ACL #57617

Open

Description

@Water-Run

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?

  1. 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.
  2. Observe repeated setup failures and the error in .codex\.sandbox\setup_error.json.
  3. 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

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

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. sdiouci11 commented on Oct 29, 2026

    @sdiouci11

    Related but a different failure point: #58107. There, provisioning fails with SetNamedSecurityInfoW sandbox dir failed: 5 (not NtCreateFile), 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 every py -3 process (py.exe under AppData\Local inherits Low).

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