Repository navigation
Description
Summary
Reporting at the affected user's explicit request. On Windows 10 Pro, Codex Desktop cannot run even Get-Location in the elevated Windows sandbox. Setup fails before the command starts with helper_unknown_error: setup refresh had errors.
The fatal log entry is runtime read/execute validation of an already-running node_repl.exe, with open ACL target for root-only update and Windows error 32 (sharing violation). Ending the identified tool processes only moved the blocker to a loaded VCRUNTIME140_1.dll; the desktop app automatically restarted the helper holding that DLL.
A real sandbox-state rebuild was completed, but the same error returned after reopening the desktop app. A per-invocation unelevated test executed Get-Location successfully.
This has consumed substantial troubleshooting time and blocks basic local development. Please prioritize a supported fix that preserves the elevated sandbox, local history, configuration, and projects.
Verified environment
- Windows 10 Pro, version/build
10.0.19045, 64-bit (queried with Win32_OperatingSystem). - Running desktop package:
OpenAI.Codex_26.1002.7124.0_x64(verified from the running main application's executable path; this is the package version, not a separately verified About-dialog display version). - Bundled CLI:
codex-cli 0.162.0-alpha.2(verified with--version). - Native sandbox configuration:
[windows] sandbox = "elevated". - Effective local-chat execution policy: workspace-write.
- Active runtime generation:
cua_node\3dd31cfff853001c. - Observed October 8, 2026, Asia/Shanghai (UTC+08).
- The user reports that this is the latest desktop version offered to them.
Reproduction
- Open Codex Desktop and a local chat.
- Ask it to run only
Get-Location. - The execution tool fails before PowerShell starts:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
- Read the newest local sandbox log. It identifies the already-running Codex runtime executable:
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:
The process cannot access the file because it is being used by another process. (os error 32)
setup refresh completed with errors
setup error: setup refresh had errors
setup refresh: exited with status ExitStatus(1)
The Windows message above is an English translation of the logged Chinese message; the error code and error-context strings are unchanged.
Troubleshooting and observed results
- Retried the minimal command and disabled shell profile loading: same setup failure.
- Restarted/reopened the desktop app: runtime processes reappeared and the failure recurred.
- Node REPL initialization independently failed with the same sandbox setup error.
- Read-only external/approved PowerShell commands succeeded, so PowerShell itself works.
- Checked the runtime executable's owner and security descriptor: the interactive user owns the file, and its ACL is readable. No ownership correction or recursive ACL reset was applied.
- Stopped only verified
node_repl.exeprocesses using the affected runtime. The next elevated refresh advanced past that executable but failed on:
...\node_modules\@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll. - Identified
codex-computer-use-swift.exeas the process loading that exact DLL. Stopping it did not sustain recovery: a new helper instance appeared, with Codex's main desktop application as its parent. - Completed a sandbox rebuild with the app closed: the old
.sandboxand.sandbox-bindirectories were renamed to backups, and new directories were created at 20:51:50 UTC+08. The new log explicitly recorded that the setup marker was missing and sandbox setup was performed. - After reopening the app, a normal chat
Get-Locationfailed again at 21:23:30 UTC+08 onnode_repl.exewith error 32. - With the desktop app running, an independent invocation of the same bundled CLI in elevated mode also failed on the same runtime file at 21:27:42 UTC+08.
- A per-invocation override using the same CLI and same workspace succeeded:
& $bundledCodex -c 'windows.sandbox="unelevated"' -c 'sandbox_mode="workspace-write"' sandbox -- powershell.exe -NoProfile -Command Get-LocationIt returned the expected workspace path and exit code 0. This was a one-command test; the global sandbox configuration was not changed. It demonstrates a working fallback for this command, not that every desktop feature or permission policy works in unelevated mode.
Expected behavior
The elevated sandbox should initialize while Codex's own runtime processes are running, without requiring users to terminate automatically restarted helpers, weaken isolation, rebuild sandbox state repeatedly, or downgrade the desktop app.
Please investigate the live-runtime ACL open/access requirements, provide a supported recovery or fixed build, and expose the exact failing path and native error in the UI rather than only the generic setup-refresh message.
Related reports
- Windows sandbox provisioning fails with os error 32 when any runtime file is in use (0.162.0-alpha.2 regression) #51634
- [Windows] Elevated sandbox refresh blocks command execution: MAXIMUM_ALLOWED causes error 32 on active runtime files #51613
- Codex for Windows: elevated sandbox setup fails on every launch after update (os error 32 on node_repl.exe) #51677
- [Windows] Elevated sandbox error 32 in 26.1002.51308; rollback to 26.930.7945.0 restores execution #51668
- Windows sandbox setup fails before PowerShell starts: node_repl.exe sharing violation (os error 32) #51875
This is an additional reproduction on Windows 10 build 19045 and package 26.1002.7124.0. It does not claim a newly proven source-level root cause. No code patch, ACL workaround, or desktop rollback was applied during this investigation.
Only a compact anonymized excerpt and diagnostic summary are included. Credentials, sandbox secrets, project contents, full logs, and full chat transcripts are omitted.
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
Hendra827 commentedon Oct 8, 2026
Please priority this issue in high priority this bug global issue or any solution for this issue
JoonSeongJeong commentedon Oct 8, 2026
Update: I found a temporary workaround.
After installing Codex version 0.162.0-alpha.20 using the standalone installer and installing the Desktop app and VS Code Codex with a temporary PATH, the issue no longer occurred on the system.
I am sharing this in case it might be helpful to other users experiencing the same node_repl.exe / Windows Error 32 problem.
While the above temporary method is not a fundamental solution, it seems it will be usable until an official patch is released.