codex - 💡(How to fix) Fix Windows Computer Use / node_repl fails: spawn setup refresh uses AppData codex-windows-sandbox-setup.exe and returns os error 740

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Windows Computer Use / node_repl fails: spawn setup refresh uses AppData codex-windows-sandbox-setup.exe and returns os error 740 setup refresh: failed to spawn ... os error 740 Windows os error 740 means the requested operation requires elevation.

Root Cause

Windows Computer Use is unusable because node_repl fails during startup.

Code Example

nodeRepl.write("node_repl_ok")

---

node_repl kernel exited unexpectedly
windows sandbox failed: spawn setup refresh

---

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

---

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

---

$pkg = Get-AppxPackage OpenAI.Codex
Add-AppxPackage -DisableDevelopmentMode -Register (Join-Path $pkg.InstallLocation 'AppxManifest.xml')
RAW_BUFFERClick to expand / collapse

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.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

node_repl should start successfully, allowing Computer Use to list apps/windows and interact with Windows apps.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Windows Computer Use / node_repl fails: spawn setup refresh uses AppData codex-windows-sandbox-setup.exe and returns os error 740