Skip to content

Windows Work local execution blocked by helper_sandbox_lock_failed on 26.1016.6573.0; persists after reboot and Repair #56605

Open

Description

@mws262

Summary

ChatGPT Work local execution fails before PowerShell starts. This appears closely related to #50520. Reporting reproduction on installed Windows package OpenAI.Codex 26.1016.6573.0; the app reports it is up to date.

Reproduction

Request a trivial local command in Work:

Write-Output 'Local execution works'

The executor fails to create a process:

Failed to create unified exec process: exec-server rejected request (-32603): sandbox provisioning failed: helper_sandbox_lock_failed: lock sandbox bin dir \\?\C:\Users\<user>\.codex\.sandbox-bin failed: open directory \\?\C:\Users\<user>\.codex\.sandbox-bin: NtCreateFile: Access is denied. (os error 5)

Confirmed diagnostics

Collected October 23, 2026 in the user's normal PowerShell:

  • Package: OpenAI.Codex 26.1016.6573.0.
  • Service: CodexSandboxService.OpenAI.Codex, Running, StartName LocalSystem.
  • .sandbox-bin is a normal directory, with no link target.
  • Owner is the ordinary signed-in user.
  • Directory ACL (user/machine identifiers redacted):
CodexSandboxUsers:(OI)(CI)(RX)
NT AUTHORITY\SYSTEM:(OI)(CI)(M)
BUILTIN\Administrators:(OI)(CI)(M)
<current user>:(OI)(CI)(M,WDAC)
  • Parent .codex grants inherited Full Control to SYSTEM, Administrators and the current user, and Read/Execute to CodexSandboxUsers.
  • Sandbox setup logs at 23:26:49 UTC and 23:28:06 UTC show WFP setup succeeded for CodexSandboxOffline with 12 installed filters, immediately followed by the directory-open error above from codex-windows-sandbox-setup.exe.
  • The session reports workspace-write. The user selected On request in the Work UI, but the execution context still reports sandbox approval requests disabled; relationship to this setup failure is unknown.

Troubleshooting and outcome

  • Checked for updates: app reports up to date.
  • Restarted the computer: the same minimal command still fails before PowerShell starts.
  • Ran Windows app Repair: the same failure persists on retry.
  • No manual sandbox ACL or ownership workaround was applied during this diagnostic sequence.
  • Normal user PowerShell works. KiCad CLI independently prints version 10.0.6 in normal PowerShell; the failing Work execution never reaches KiCad.

Expected behavior

Sandbox provisioning succeeds and a basic local shell command runs with the configured restrictions.

Suspected cause, not directly traced on this machine

Ownership, ACL, service identity, and error sequence match the SYSTEM WRITE_DAC mismatch discussed in #50520. No Process Monitor trace was collected, so the service's precise requested access is inferred from that report rather than measured here.

Windows OS build and bundled runner version have not been collected. Private paths, machine name, account SIDs, project contents, and credentials are omitted.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 23, 2026
  2. ChampCar-Bill commented on Oct 25, 2026

    @ChampCar-Bill

    helper_sandbox_lock_failed
    Cannot open C:\Users\wdstr.codex.sandbox-bin
    NtCreateFile: Access is denied. (os error 5)
    Commands fail before PowerShell starts.

  3. marcogatti1978-ctrl commented on Oct 28, 2026

    @marcogatti1978-ctrl

    Additional reproduction: local execution blocked before Get-Location (28 October 2026)

    I encountered the same failure in ChatGPT Work on Windows, on two separate attempts. The first attempt failed before it could read the local test directory. On the second attempt, a single minimal read-only command, Get-Location, could not even start:

    sandbox provisioning failed: helper_sandbox_lock_failed
    Path: C:\Users\<redacted>\.codex\.sandbox-bin
    NtCreateFile: Access is denied. (os error 5)
    
    • The tool reported Script failed. No PowerShell process was created, so no process exit code is available.
    • In both attempts, execution stopped immediately upon the access-denied error. No additional diagnostic/retry loops were performed in that attempt.
    • No project files were read or changed; no models or other files were downloaded, extracted, or tested.
    • No permissions, ACLs, ownership, sandbox configuration, or other settings were changed.
    • Codex/Work application version and Windows build were not collected in these attempts.

    Expected: Sandbox provisioning succeeds and an ordinary read-only PowerShell command such as Get-Location executes.

    Observed: Sandbox setup fails before any user command starts. This appears to match the problem reported in this issue.

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