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?
ChatGPT Plus
What platform is your computer?
No response
What issue are you seeing?
I'm experiencing a similar Codex Desktop sandbox initialization failure on Windows 10 22H2.
Codex version: 26.1002.7124.0
Error:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
Even cmd.exe /d /c ver fails before process creation.
Diagnostic evidence:
- Sandbox logs identify
node_repl.exeruntime read/execute validation failure with Windowsos error 32. - ProcMon confirms
CreateFile → SHARING VIOLATIONoncua_node\...\bin\node_repl.exe. - A
CreateFile → SUCCESSevent requestsRead Attributes, Synchronize, while the failing operation additionally requestsMaximum Allowed. - Rebooting, Windows app Repair, and isolating the versioned
cua_noderuntime did not resolve the issue.
The process responsible for the conflicting file handle has not been identified.
Is this a known Windows sandbox issue, and is there a supported workaround or fixed build?
What steps can reproduce the bug?
Steps to Reproduce
-
Launch Codex Desktop App on Windows 10 Pro 22H2.
-
Create a new Codex task.
-
Ask Codex to execute only the following command:
cmd.exe /d /c ver -
Wait for the command execution attempt (approximately 25–33 seconds).
-
Observe that execution fails before the command starts.
Actual Result
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
No Windows version output is produced.
Diagnostic Evidence
- The sandbox log reports
runtime read/execute validation failedforcua_node\...\bin\node_repl.exe. - Windows error:
os error 32. - ProcMon confirms
CreateFile → SHARING VIOLATIONonnode_repl.exe. - The failing operation requests
Read Attributes, Synchronize, Maximum Allowed.
Troubleshooting Already Attempted
- Restarted Codex Desktop App.
- Rebooted Windows.
- Ran Windows App Repair.
- Renamed the versioned
cua_noderuntime directory to preserve a backup.
The issue persists after all attempts.
Expected Result
Codex should execute cmd.exe /d /c ver and display the Windows version.
Additional Information
- Codex App version:
26.1002.7124.0 - Related issue: Windows Codex Desktop: node_repl / Computer Use fails with "windows sandbox failed: spawn setup refresh" #25488
- The failure occurs before command execution and is not related to token limits or context window usage.
What is the expected behavior?
No response
Additional information
No response
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
rhove-zz commentedon Oct 8, 2026
Potentially related: #51885 reports the same pre-execution setup failure and Windows error 32 on node_repl.exe in Codex Desktop. That reporter also provides ProcMon evidence of CreateFile returning SHARING VIOLATION.
Our case occurs in the VS Code extension. The symptoms appear closely related, but a shared root cause and the process holding the conflicting handle remain unconfirmed.
autisticeman commentedon Oct 8, 2026
Root cause: the conflicting handle belongs to Codex's own
node_replMCP helper (not an unrelated tool)We reproduced this on Windows 11 (10.0.26200) with the desktop app
26.1002.7124.0and identified the process behind the sharing violation, which is the part left open in the report above:codex.exespawns%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<hash>\bin\node_repl.exe(parent process = the app itself) when a session initializes.setup refreshspawnscodex-windows-sandbox-setup.exe; itsruntime read/execute validationstep opens each runtime binary for a "root-only" ACL update (WRITE_DAC). That cannot succeed on a running image, because Windows keeps the image open withFILE_SHARE_READ | FILE_SHARE_DELETE, so the write-open is rejected withos error 32(ERROR_SHARING_VIOLATION).node_repl.exe, the identical error moved tonode.exein the samebindirectory (same MCP server tree), i.e. the conflict is with the app's own helpers:Deterministic mechanism (reproducible without any third-party software):
Read,Delete(exactly how a running image is shared).os error 32.setup refresh: processed 5 write roots ... errors=[].So the conflict is self-inflicted: for as long as the app's own MCP helpers are alive, the refresh cannot succeed. Terminating them only helps until the next session init, after which the app re-spawns them - consistent with the "repeatedly stopping the helper is not a durable recovery method" observation in #51932.
Regression window: the
runtime read/execute validationstep does not appear anywhere in the sandbox logs of this machine before 2026-10-08; the app was updated that day (previous runtime hash71e3f41...->3dd31cf..., previous app version26.930.61225). Related: #51822 (merged Oct 7), #51932, #51925.Workaround that keeps both the sandbox and the helpers (verified on this machine)
In
%USERPROFILE%\.codex\config.toml:unelevatedthe provisioning step is not invoked at all: nosetup refreshspawn, noread-aclhandling, noruntime read/execute validationin the log, and the previously failing command runs normally.Access is denied.), so this is not equivalent to disabling the sandbox.unelevatedskips provisioning, write ACEs are never (re)granted. Existing trusted workspaces keep working here because they already carryCat\CodexSandboxUsers:(OI)(CI)(M), granted by earlier elevated runs; a newly added workspace folder may be added without write access (see Windows Codex regression: elevated sandbox fails setup refresh; unelevated denies trusted workspace writes #50772). Keepingelevatedand instead disabling thenode_replMCP server entry is the alternative if the newer isolation behaviour is required.globalalex82-lab commentedon Oct 8, 2026
I can confirm the same issue on my Windows 10 system.
Codex Desktop version: 26.1002.7124.0
Error:
helper_unknown_error: setup refresh had errorsMy sandbox log repeatedly reports:
Additional diagnostic findings:
node_repl.exeprocesses were running simultaneously from the same Codex runtime directory.This suggests a possible conflict between active Codex runtime processes and the sandbox setup process attempting to modify file ACLs.
Could the Codex team confirm whether this is a known regression in version 26.1002.7124.0 and whether a fix or official workaround is being prepared?
I would prefer to avoid downgrading or disabling sandbox protections.
Thank you.
alertgre2-szef commentedon Oct 8, 2026
Title: [Windows] Codex sandbox setup fails with SHARING VIOLATION on node_repl.exe — browser tools unusable
Description
The Codex functionality in the Windows ChatGPT desktop application is failing across all my projects.
The main error is:
windows sandbox failed: helper_unknown_error: setup refresh had errorsThe integrated browser opens websites normally, but Codex cannot read or interact with the opened pages. The browser tool has also reported:
trusted Node process exited unexpectedlyEnvironment
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node3dd31cfff853001cCodexSandboxService.OpenAI.Codexsandbox_mode = "workspace-write"Diagnostics
The sandbox log repeatedly reports:
runtime read/execute validation failedThe underlying Windows error is:
The process cannot access the file because it is being used by another process. (os error 32)The affected files include:
node_repl.exeVCRUNTIME140_1.dllProcess Monitor confirmed two
SHARING VIOLATIONevents involvingcodex-windows-sandbox-setup.exeaccessingnode_repl.exe.Microsoft Sysinternals Handle did not detect persistent open handles to
node_repl.exe. The lock may be transient or related to concurrent sandbox initialization.Troubleshooting already performed
CodexSandboxService.OpenAI.Codex.cua_noderuntime directory to force a fresh initialization attempt.None of these steps resolved the issue.
Basic terminal commands such as
git --versionwork, but the browser tools remain unusable.Expected behavior
Codex should initialize its Windows sandbox successfully and be able to inspect and interact with the integrated browser.
Actual behavior
Browser tooling fails during sandbox setup because runtime read/execute access validation encounters a Windows file-sharing violation.
Request
Please investigate whether this is a regression in the Windows sandbox initialization or the runtime permission-refresh mechanism.
It would also be helpful if the desktop application clearly displayed version updates and release information, especially when updates affect sandbox functionality.
I can provide the sandbox log and Process Monitor captures if needed.
alertgre2-szef commentedon Oct 8, 2026
I can confirm the same issue on Windows 10 Pro 22H2 (build 19045.6466), using the ChatGPT desktop application with Codex.
The integrated browser opens web pages, but Codex cannot inspect them and reports
windows sandbox failed: helper_unknown_error: setup refresh had errors. At other times it reportstrusted Node process exited unexpectedly. This affects multiple projects.The sandbox logs repeatedly show runtime read/execute validation failures on
cua_node\...\bin\node_repl.exe, with Windowsos error 32(file in use). ProcMon captured twoSHARING VIOLATIONevents whencodex-windows-sandbox-setup.exeaccessed this file. Sysinternals Handle did not find a persistent open handle.Windows reboot, running as administrator, restarting
CodexSandboxService.OpenAI.Codex, and renaming the versionedcua_noderuntime directory for regeneration did not resolve the issue. Basic commands such asgit --versionsucceed, while browser automation still fails.The config uses
sandbox_mode = "workspace-write"; Windows-specific elevated/unelevated mode has not been confirmed. I submitted diagnostics via in-app feedback (Feedback ID available privately). I can provide sanitized logs if requested.Is there a supported fix or workaround for this Windows sandbox setup / file-sharing conflict?
LimeError32 commentedon Oct 8, 2026
I can reproduce this issue on Windows 10 with Codex Desktop 26.1002.7124.0 (Microsoft Store version).
I performed the following checks:
node_repl.exeprocesses remained.node_repl.exewas not running.echo CODEX_EXEC_TEST. Execution failed withhelper_unknown_error: setup refresh had errors.node_repl.exe, which remained running after the failure.runtime read/execute validation failedonnode_repl.exe, withopen ACL target for root-only updatereturning OS error 32 (sharing violation).The issue persists after fully restarting Codex. Both PowerShell execution and Node REPL are affected.
This suggests a possible conflict between runtime process startup and sandbox ACL initialization, although I haven't confirmed the exact locking mechanism.
globalalex82-lab commentedon Oct 8, 2026
Update: Rolling back Codex Desktop restored Windows sandbox execution
I can confirm that rolling back Codex Desktop from 26.1002.7124.0 to 26.930.7945.0 resolved the sandbox execution failure in my initial tests.
Environment:
OS: Windows 10
Affected version: 26.1002.7124.0
Working version: 26.930.7945.0
Windows sandbox mode: elevated
Before rollback:
Repeated helper_unknown_error: setup refresh had errors.
Sandbox logs reported os error 32 while attempting to update ACLs on node_repl.exe.
Terminating Codex and Node REPL processes did not permanently resolve the issue.
The problem returned after restarting the application.
Switching to unelevated allowed execution, but I experienced unexpected behavior and did not consider it a suitable permanent workaround.
After rollback:
Installed the older, signed MSIX package using Add-AppxPackage -ForceUpdateFromAnyVersion.
Verified that the installed version is 26.930.7945.0.
Tested command execution with the Windows sandbox enabled.
The command returned sandbox-ok and completed successfully.
The setup refresh had errors message did not occur during this test.
Result: Rolling back restored basic sandbox command execution while retaining elevated mode.
This is an initial successful test, not yet confirmation that every Computer Use and browser feature works.
These results suggest a regression introduced after version 26.930.7945.0.
Could the OpenAI team investigate the changes to Windows sandbox runtime initialization and ACL refresh between these releases, and confirm when a fix will be available?
Mike440-bit commentedon Oct 9, 2026
Additional controlled reproduction on Windows 11 (Codex Desktop 26.1002.7124.0)
Adding independent, sanitized observations to this existing report rather than opening a duplicate. All diagnostic inspection was read-only; I did not change ACLs, security software, proxy settings, or sandbox mode.
Environment / impact
26.1002.7124.0;[windows] sandbox = "elevated".Get-Date,Get-Location) fail before PowerShell starts withFailed to create unified exec process: helper_unknown_error: setup refresh had errors.runtime read/execute validation failed ... cua_node\\<runtime-hash>\\bin\\node_repl.exe: open ACL target for root-only update ... (os error 32).CreateFile → SHARING VIOLATIONfornode_repl.exe, with desired accessRead Attributes, Synchronize, Maximum Allowedand share modeRead, Write, Delete. The event's initiating process was not directly confirmed from a saved PML; the sandbox setup helper is inferred from matching timestamps.CodexSandboxUsers: ReadAndExecute.Controlled clean-exit test (Oct 9, China local time, UTC+8)
codex.exe,ChatGPT.exe,node_repl.exe, andcua_node\\node.exeprocesses from that app; only the separately runningcodex-windows-sandbox-service.exeremained.node_repl/cua_replaround 09:29:35, and several runtime processes started 09:29:42–09:29:47, before any user command.Get-Daterequest spawnedcodex-windows-sandbox-setup.exe. The sandbox log recordedos error 32around 09:29:58.949, followed bysetup refresh had errors. No further command was attempted.This shows that old/orphaned helper processes are not required for reproduction: the new app session launches runtime processes before the first setup refresh. It supports a runtime-startup vs. ACL-validation ordering/shared-file-access conflict; the precise Windows handle owner and source-code defect have not been proven by this test.
MCP disable-state persistence issue (possible related contributor)
node_replemittedconfig/value/writeandmcp_server_enabled_state_updated enabled=falseat 09:59:05 and again at 10:12:18. On the latter attempt,config.tomlexplicitly contained[mcp_servers.node_repl] enabled = false.node_repland MCP catalog grew from 4 to 5 servers. After the second toggle, it returned to 4.config/batchWritepath usingmergeStrategy: "replace"for themcp_servers.node_replsection. There was also aconfig/batchWriteevent at 09:59:37, followed by a newly written config without anenabledkey in a snapshot at 09:59:42. Hypothesis, not yet proven by logged write parameters: application-managed config refresh may overwrite the user'senabled=falsechoice. Thus disabling this built-in MCP server has not been a reliable workaround here.Request to maintainers
node_repl.exe/node.exeare already running (without reducing sandbox isolation).config/batchWritepath unintentionally drops the UI-setenabled=falsestate.Sanitized excerpts/timeline can be provided on request. I am deliberately not posting full process command lines, raw SQLite databases, user paths, private sessions, or credentials.