Windows Computer Use / node_repl fails: spawn setup refresh uses AppData codex-windows-sandbox-setup.exe and returns os error 740
Resolved 💬 7 comments Opened May 31, 2026 by amir-hasan666 Closed Jun 12, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Title:
Windows Computer Use / node_repl fails: spawn setup refresh uses AppData codex-windows-sandbox-setup.exe and returns os error 740
Body:
Environment
- OS: Windows 11 Professional, Windows 10.0.26200, zh-CN
- Codex Desktop package: OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0
- Codex CLI: 0.135.0-alpha.1
- Workspace: D:\Codex\project
- Config includes:
- [windows] sandbox = "elevated"
- node_repl configured under mcp_servers.node_repl
- Computer Use plugin enabled: computer-use@openai-bundled
Problem
Windows Computer Use is unusable because node_repl fails during startup.
Minimal Node REPL test:
nodeRepl.write("node_repl_ok")
fails with:
node_repl kernel exited unexpectedly
windows sandbox failed: spawn setup refresh
Key log evidence
Normal shell sandbox setup succeeds using the WindowsApps resources path:
setup refresh: spawning C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe
setup refresh: processed 2 write roots (read roots delegated); errors=[]
setup binary completed
But node_repl startup uses the AppData local bin path and fails:
START: C:\Users\22241\AppData\Local\OpenAI\Codex\bin\5b9024f90663758b\node.exe --experimental-vm-modules ...
setup refresh: spawning C:\Users\22241\AppData\Local\OpenAI\Codex\bin\7dea4a003bc76627\codex-windows-sandbox-setup.exe
setup refresh: failed to spawn ... os error 740
Windows os error 740 means the requested operation requires elevation.
What I tried
- Restarted Codex.
- Ran Codex as administrator.
- Rebooted Windows.
- Reinstalled Codex Desktop.
- Ran AppX re-register:
$pkg = Get-AppxPackage OpenAI.Codex
Add-AppxPackage -DisableDevelopmentMode -Register (Join-Path $pkg.InstallLocation 'AppxManifest.xml')
- Tested with a fresh/renamed .codex directory.
- codex doctor outside the sandbox reports no failures for install/auth/network/state.
- Computer Use still fails because node_repl cannot start.
Expected behavior
node_repl should start successfully, allowing Computer Use to list apps/windows and interact with Windows apps.
Actual behavior
node_repl exits during sandbox setup refresh, so Computer Use cannot initialize.
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I reproduced a related Windows Computer Use /
node_replfailure in Codex Desktop 26.527.7698.0 and found a workaround that may be worth documenting.Observed behavior:
Docs gap:
The Computer Use docs mention Windows active desktop behavior and that file/shell actions still follow sandbox settings. The Windows docs mention elevated/unelevated sandbox modes. I did not find a troubleshooting note that Windows Computer Use /
node_replmay fail withspawn setup refresh/os error 740unless the user runs Codex elevated and/or switches to Full access.Suggested docs addition:
Add a Windows troubleshooting note to Computer Use docs for:
windows sandbox failed: spawn setup refreshcodex-windows-sandbox-setup.exe ... requires elevation. (os error 740)Thanks, this was very helpful.
I tested it on my side and can confirm that switching the thread to Full access allowed Computer Use to start successfully. Before that, running Codex as Administrator alone was not enough in the default/workspace sandbox mode.
This confirms the issue is closely related to the Windows sandbox / node_repl startup path rather than Computer Use itself. Your explanation helped me unblock the feature, and I agree this would be useful to document as a Windows troubleshooting note.
Still reproduces on Codex Desktop Store package
26.601.2237.0after updating from26.527.3686.0.Environment:
en-US[windows] sandbox = "elevated"list_apps, Chrome automation, and minimalnode_replstartup fail before executionAfter the update, the failing helper path changed from:
to:
The new build still returns:
The packaged helper under the WindowsApps
resourcespath completes successfully, while the copied helper under the AppDatabinpath fails. Restarting Codex and invoking Computer Use directly with@Computerdid not change the result.What are any significant downsides to using unelevated vs elevated setting value? Obviously the Ai doenst know how to fix this inconcistency right? because the default seems to be elevated, but why does unelevated fix this? Should i be worried about security?
+1, same on 26.601.2237.0; unelevated workaround unblocks me
this is now fixed