Repository navigation
Description
Problem
All sandboxed local commands fail before execution in Codex desktop on Windows. Browser/Node REPL tooling also fails to initialize. Even Get-Location fails in a fresh projectless chat.
Environment
- Codex desktop version reported by the app updater before reinstall: 26.1002.52244, build 13536, prod channel. Exact post-reinstall version has not been verified.
- Windows (exact OS version not yet collected)
- Occurred October 8, 2026, Asia/Taipei (UTC+8)
- Sandbox helper directory:
%LOCALAPPDATA%\OpenAI\Codex\bin\9691020b546a15b2 - CUA runtime directory:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin
Steps / troubleshooting performed
- Execute
Get-Locationin a local project chat. - Restart Windows and retry: still fails.
- Create another chat in the same project: still fails.
- Create a fresh projectless chat: still fails.
- Uninstall and reinstall Codex, then retry Windows setup: UI shows Windows setup incomplete and setup fails again.
- After closing Codex, the user's process query filtering executable paths under
*\OpenAI\Codex\*returned no matching processes. This does not establish which process holds the conflicting handle.
Actual result
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
%USERPROFILE%\.codex\.sandbox\setup_error.json:
{"code":"helper_unknown_error","message":"setup refresh had errors"}Latest diagnostic evidence
Read directly from %USERPROFILE%\.codex\.sandbox\sandbox.2026-10-08.log. User profile and unrelated workspace paths are redacted. At 23:52:11 local time (15:52:11 UTC), after reinstall and in a projectless test:
[2026-10-08 23:52:11.195 codex.exe] START: <USERPROFILE>\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe -NoProfile -Command ... Get-Locat
[2026-10-08 23:52:11.387 codex.exe] setup refresh: spawning <LOCALAPPDATA>\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe
[2026-10-08T15:52:11.444681900+00:00] failed to grant non-inheriting read-attributes ACE on user profile <USERPROFILE>: open ACL target for root-only update: 程序無法存取檔案,因為檔案正由另一個程序使用。 (os error 32); continuing setup
[2026-10-08T15:52:11.456331800+00:00] runtime read/execute validation failed: validate runtime read/execute access on <LOCALAPPDATA>\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe: open ACL target for root-only update: 程序無法存取檔案,因為檔案正由另一個程序使用。 (os error 32)
[2026-10-08T15:52:11.506326800+00:00] read ACL run completed
[2026-10-08T15:52:11.557273500+00:00] setup refresh completed with errors: [runtime read/execute validation failed ... node_repl.exe ... (os error 32)]
[2026-10-08T15:52:11.557312100+00:00] setup error: setup refresh had errors
[2026-10-08 23:52:11.564 codex.exe] setup refresh: exited with status ExitStatus(ExitStatus(1))
Chinese error means the process cannot access the file because it is being used by another process. The same runtime validation error appears repeatedly before and after reboot/reinstall.
Possibly related fix
#51822 describes sharing violations when opening active EXE/DLL files during runtime ACL repair. This looks related, but the relationship and whether the installed desktop release contains that fix are unconfirmed. Please advise on a supported recovery procedure or fixed desktop release.
Expected behavior
Sandbox setup completes and a simple local command can execute without requiring an unsandboxed workaround.
Activity
github-actions commentedon Oct 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
thisisanand-tm commentedon Oct 9, 2026
Additional reproduction on Codex Desktop for Windows 26.1002.52244 (October 9, 2026):
Write-Output "SANDBOX_TEST_OK", withhelper_unknown_error: setup refresh had errors.runtime read/execute validation failedwhile trying to open the ACL target for%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe, returningThe process cannot access the file because it is being used by another process. (os error 32).node_repl.exe, showed no results at the time of inspection.Write-Output "CODEX_TEST_OK"returnedCODEX_TEST_OK.The log shows read-ACL setup finishing, while the runtime read/execute ACL validation on
node_repl.execauses setup refresh to exit unsuccessfully. I have not found a reliable local fix. Is there an ETA for a Windows desktop build that fixes this file-sharing/ACL initialization failure, or a supported way to restore sandboxed execution?(Windows username and project names intentionally omitted.)
People-Xie commentedon Oct 9, 2026
Codex Desktop for Windows: sandbox setup fails with
node_repl.exesharing violation after reinstallIntended destination: #52155
Status: Prepared for submission; not yet posted.
Observed: 2026-10-08 through 2026-10-09 (UTC+08:00).
Summary
Codex/ChatGPT Desktop for Windows fails to initialize its sandbox for even simple local commands such as
Get-Location. The Windows application itself is installed correctly, but the integrated command runner fails before launching the requested command. The issue persists after closing/restarting the desktop application and uninstalling/reinstalling it.The sandbox helper reports a Windows
os error 32(sharing violation) while attempting to open the versionedcua_noderuntime'snode_repl.exeto validate/update ACLs.Environment
OpenAI.Codex26.1002.7124.0Ok(fromGet-AppxPackage OpenAI.Codex).Reproduction
Get-LocationorGet-FileHashon a local test file.Expected result
The Windows sandbox initializes successfully, and normal read-only commands execute with sandbox protections enabled.
Actual result
The first-run desktop UI also reports that Windows setup is incomplete while preparing the sandbox.
Verified diagnostics — 2026-10-09
PowerShell package inspection:
Latest observed log:
%USERPROFILE%\.codex\.sandbox\sandbox.2026-10-09.log(all personal paths anonymized):%USERPROFILE%\.codex\.sandbox\setup_error.json:{ "code": "helper_unknown_error", "message": "setup refresh had errors" }Equivalent
node_repl.exesharing-violation errors appeared in the prior day's sandbox log. No particular handle owner has been conclusively identified.Troubleshooting already attempted
node_repl.exeprocesses; at one point, none remained after exit, but the failure later recurred.Potential upstream relationship
This appears consistent with a sharing violation during runtime ACL validation. We cannot confirm that the cited change fixes this particular machine or that it has reached the installed Windows desktop release.
Requested maintainer guidance
node_repl.exeruntime ACLos error 32issue known in Windows desktop version26.1002.7124.0?Privacy: No device/user identifiers, login names, secret values, certificates, or private project paths are included. No claim is made that the GitHub submission has already succeeded.
suisshost-com commentedon Oct 9, 2026
Additional independent reproduction on Windows 10. The symptoms, package version, and runtime directories closely match this issue. I have additional before/after timeline evidence, although a common root cause has not been independently proven.
Impact
Ordinary sandboxed local commands fail before executing, and the desktop browser automation tool cannot initialize. The desktop app can still display this conversation; that does not establish that its local execution or browser automation works.
Environment
Minimal reproduction on this installation
This report does not claim that a new Windows user, clean installation, or fresh projectless chat was tested on this machine.
Errors
Ordinary local execution:
Browser initialization has reported:
Some subsequent attempts report "Transport closed". That transport error also occurred after stopping a Node helper during troubleshooting; it is not being presented as the original root cause.
Sanitized sandbox-log error, with line wrapping adjusted:
The failing runtime validation is followed by setup refresh completing with errors. The precise process/file handle responsible for the sharing conflict has not been identified.
Before/after timeline
All times below are local UTC+02:00 on 9 October 2026. File creation times and log events are distinguished deliberately.
The timing suggests a regression or interaction involving the refreshed components. It does NOT establish causation, the exact faulty function, or that reverting just one executable would be safe or effective.
Troubleshooting and integrity checks
759831F8FE8B0CC69C567CE3BCDF5C0577071B445DEFB02B05D312A3BF11DC45
Possible related fix and request
PR #51822 appears relevant to runtime ACL sharing violations. I have not confirmed whether this desktop build includes that fix or whether it addresses this particular reproduction.
Could a maintainer please:
Expected result: the elevated Windows sandbox starts successfully, a harmless local command executes, and browser automation initializes while normal application helper processes are running.
Personal paths and unrelated project details have been removed. Full configuration, authentication files, browser data, .sandbox-secrets, and private recovery backups are not included. A separate OpenAI Support conversation has already been escalated to a specialist.
pingvi90 commentedon Oct 9, 2026
I can reproduce the same issue on Windows.
Every local command fails before execution with:
The sandbox log shows:
I confirmed this is not caused by Windows Firewall:
LocalPolicyModifyStatereturns0.BFEandMpsSvcservices are running.cua_noderuntime folder caused Codex to recreate it, but the same error returned immediately.This blocks all local file and shell operations in Codex Desktop. Please advise on a supported workaround or a fixed desktop release.
martellaalcantara commentedon Oct 10, 2026
I'm experiencing the same issue with the Codex VS Code extension on Windows.
Environment:
26.1007.214340.162.1Error:
The sandbox log shows:
The error persists after restarting Windows and VS Code.
Even basic read-only commands fail before execution. Resource Monitor did not identify an open handle when I searched for
node_repl.exe.Latest failures occurred on October 10, 2026, at approximately 13:06 and 13:10 WIB.
I have not modified ACLs, disabled the sandbox, deleted runtime files, or requested privilege elevation.
Is there a supported fix available for this issue in the stable release?