Repository navigation
Description
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
ChampCar-Bill commentedon Oct 25, 2026
helper_sandbox_lock_failed
Cannot open C:\Users\wdstr.codex.sandbox-bin
NtCreateFile: Access is denied. (os error 5)
Commands fail before PowerShell starts.
marcogatti1978-ctrl commentedon Oct 28, 2026
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:Script failed. No PowerShell process was created, so no process exit code is available.Expected: Sandbox provisioning succeeds and an ordinary read-only PowerShell command such as
Get-Locationexecutes.Observed: Sandbox setup fails before any user command starts. This appears to match the problem reported in this issue.