Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1002.7124.0
What subscription do you have?
Business
What platform is your computer?
Windows, x64
What issue are you seeing?
Local shell commands fail before execution, including simple read-only commands to list a folder. The returned error is:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
The sandbox logs show Windows sharing violations (os error 32) while validating read/execute access to files in Codex’s bundled cua_node runtime.
Two different files have blocked setup during troubleshooting:
node_repl.exe
runtime read/execute validation failed: validate runtime read/execute access on C:\Users\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32)
VCRUNTIME140_1.dll
runtime read/execute validation failed: validate runtime read/execute access on C:\Users\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_modules@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32)
Inspecting loaded modules identified codex-computer-use-swift as using the DLL. Its parent process was ChatGPT.exe from the OpenAI.Codex desktop package. After stopping the helper, it returned with a new process ID.
Browser automation also failed to initialize. External PowerShell remained usable.
What steps can reproduce the bug?
Feedback ID: 01a11aad-a0ce-7a43-98a0-9dbe147f44e9
In the affected desktop session:
Ask Codex to list a local directory using a read-only PowerShell command.
The command fails before starting with helper_unknown_error.
Inspect .codex.sandbox\sandbox.2026-10-08.log.
The log reports runtime read/execute validation failures with os error 32.
Troubleshooting performed:
Fully quit and reopened the desktop app.
Restarted Windows.
Stopped the running node_repl.exe helpers.
Stopped codex-computer-use-swift after identifying it as using the DLL.
Disabled Computer Use under Settings → Computer use, then restarted the app.
Stopped remaining node_repl.exe helpers while Computer Use was disabled.
Re-enabled Computer Use and retried.
None of these steps restored local shell access. The blocking file alternated between node_repl.exe and VCRUNTIME140_1.dll. It is not yet known whether this reproduces in a fresh chat or on another machine.
What is the expected behavior?
Read-only local shell commands should execute successfully. Sandbox setup should handle bundled runtime files that are already in use, or coordinate helper startup so permission validation can complete.
If setup cannot complete, the app should surface the specific underlying error and an actionable recovery step rather than only helper_unknown_error.
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
crimsonsunset17171 commentedon Oct 8, 2026
Adding evidence from an independent repro that I think narrows this down, and that answers
the two open questions in the report above ("whether this reproduces in a fresh chat" and
"the process responsible for the conflicting file access / startup-order race").
Environment: Windows 11
10.0.26200x64 (zh-CN), Codex desktop26.1002.7124.0,bundled CLI
0.162.0-alpha.2,[windows] sandbox = "elevated".1. Provisioning succeeds when Codex is not running — the setup logic itself is fine
With every Codex process stopped (
ChatGPT,codex,codex-computer-use-swift,node_repl), the runtime tree had 0 files held open, and the sandbox actually worked:The elevated setup command also completes, and I watched it rewrite the marker:
setup_marker.jsonbefore → after:But the fix does not survive a relaunch. Once Codex starts,
codex-computer-use-swiftand
node_replload their files again and the very next sandboxed command fails with theidentical
helper_unknown_error. This is consistent with the setup being designed to runbefore Codex starts, while the per-command refresh runs after.
2. The refresh writes unconditionally — it is not an "ACL is missing" problem
I pre-granted the ACEs the setup appears to want, to all 35 executables/DLLs under
runtimes\, verified as non-inherited:The next
codex sandboxstill failed, onnode_repl.exe. That rules out "the ACE isabsent or carries the wrong mask" and points at the ACL write itself being attempted on
every refresh.
One detail that may help:
icaclscan modify the ACL of a file that is currentlyloaded — it succeeded on all five locked files — while
codex-windows-sandbox-setup.execannot. That suggests the setup opens the target with a wider access mask than an ACL
update requires, which is what makes the sharing violation fatal for it but not for
icacls.3. The blocker set, and the fact that Codex restores it
Exactly five files are held, by two auto-respawned processes:
Two behaviours that make this unrecoverable from the user side:
(
node_repl.exe→VCRUNTIME140_1.dll), confirming the mechanism. Both processes arerespawned within a few seconds of being killed.
swiftdirectory out of the runtime tree does not help — Codexre-materializes it. Renaming it in place does not help either, since the refresh walks
the whole subtree recursively.
Disabling Computer Use plus the
node_replMCP server does clear the locks, but that isgiving up features to work around a bug.
4.
codex doctor"Repair or reinstall" does not help here: the failure is reproduced immediately after a
fresh elevated setup on a healthy install.
Suggested direction
on an already-correct file as non-fatal instead of aborting the whole refresh.
restricted-tokenandlegacyWindows sandboxvariants — if either avoids the per-command ACL pass, exposing one as an escape hatch
would unblock affected users immediately.
Happy to provide the full
sandbox.<date>.logexcerpts or re-test a build with a fix.ChrisAtOnRobot commentedon Oct 8, 2026
Confirmed workaround in my Windows desktop environment:
Change
%USERPROFILE%\.codex\config.tomlto:Then fully quit and reopen the Codex desktop app. Editing the configuration without restarting was insufficient.
My troubleshooting also matches the independent reproduction above: after terminating
node_repl.exe, the elevated sandbox failure moved toVCRUNTIME140_1.dll, which was loaded bycodex-computer-use-swift. The helper processes subsequently returned. App restarts and toggling Computer Use did not resolve the elevated setup failure.The additional evidence suggests the problem lies in the runtime ACL refresh interacting with running helpers. In particular, the successful
icaclsupdates suggest that the sharing violation depends on how the setup helper opens the files, rather than Windows universally preventing ACL changes on loaded executables. I have not independently tested the ACL pre-grant procedure.After switching to unelevated mode and restarting, I verified:
This confirms a working fallback in my environment, not a fix for the elevated backend. Unelevated mode has weaker isolation and lacks elevated-only features such as managed networking and deny-read overrides. Fresh attachment uploads have not been tested.
alanecz94 commentedon Oct 8, 2026
I can reproduce this on Windows 10 Home, build 19045.
Normal local commands fail before execution with
helper_unknown_error: setup refresh had errors. Sandbox logs showos error 32while validating ACL access tonode_repl.exe; during troubleshooting, the blocking file also changed to the computer-use runtime'sVCRUNTIME140_1.dll.Restarting Windows, repairing the app through Windows Settings, and stopping the identified runtime helpers did not restore normal execution. The computer-use helper restarted automatically. An external
codex sandbox --permission-profile :workspacetest with the app closed returnedSANDBOX_OK, but the next in-app command failed again. Approvedrequire_escalatedcommands work; browser automation still fails to initialize.The app updater reports version 26.1002.52244, build 13536, production channel, and
up_to_date. The running Windows package path contains 26.1002.7124.0.Could you confirm when the fix in PR #51822 will be available in the Windows desktop build? We have kept
workspace-writeandwindows.sandbox = "elevated"; no sandbox downgrade or Windows execution-policy changes were applied.bhazelwood1968 commentedon Oct 8, 2026
Additional evidence from #52257, which I am consolidating into this issue:
Distinct takeaway: Windows sandbox provisioning succeeds, but subsequent ACL refresh fails against a DLL already loaded by the desktop-launched CUA process. Please consider access-mask behavior and coordination of helper startup with ACL validation. Closing #52257 as a duplicate of #52036.