Windows Codex Desktop: node_repl fails with “windows sandbox failed: spawn setup refresh”, breaking Chrome plugin and in-app Browser
What version of the Codex App are you using (From “About Codex” dialog)?
26.521.10419
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows 11
What issue are you seeing?
Codex Desktop on Windows cannot start node_repl, which breaks both browser automation paths:
- The Google Chrome plugin cannot connect to Chrome.
- The Codex in-app Browser cannot start.
- Even a minimal node_repl call fails before executing any JavaScript.
Observed error:
node_repl kernel exited unexpectedly
node_repl diagnostics: {"kernel_status":"running","kernel_stderr_tail":"windows sandbox failed: spawn setup refresh","reason":"stdout_eof","stream_error":null}
I tested this after restarting Codex Desktop and after reinstalling/updating the Chrome plugin/extension.
Important: Chrome extension and native host appear healthy.
Local checks show:
- Chrome is installed and running.
- Codex Chrome Extension is installed and enabled.
- Extension ID: hehggadaopoacecdllhhajmbjkdcmajg
- Extension version detected: 1.1.5_0
- Selected Chrome profile: Profile 1
- Native messaging host registry key exists:
HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension
- Native host manifest path:
C:\Users\Usuario\AppData\Local\OpenAI\extension\com.openai.codexextension.json
- Native host check reports correct: true.
Because a minimal node_repl call also fails, this does not appear to be a Chrome extension problem, a website problem, or a native messaging host registration problem. It appears to be a Codex Desktop Windows sandbox / node_repl startup failure.
What steps can reproduce the bug?
- Open Codex Desktop on Windows.
- Ensure Chrome is running and the Codex Chrome Extension is installed/enabled.
- Try to use the Chrome plugin from Codex.
- The plugin fails before it can list or control Chrome tabs.
- Try to use the Codex in-app Browser.
- The in-app Browser also fails before it can open a page.
- Try a minimal node_repl call:
nodeRepl.write("ok")
- The node_repl kernel exits immediately with:
node_repl kernel exited unexpectedly
node_repl diagnostics: {"kernel_status":"running","kernel_stderr_tail":"windows sandbox failed: spawn setup refresh","reason":"stdout_eof","stream_error":null}
Troubleshooting already attempted:
- Restarted Codex Desktop.
- Reinstalled the Chrome plugin from Codex.
- Updated/reinstalled the Codex Chrome Extension.
- Confirmed Chrome is running.
- Opened Chrome with the selected profile.
- Retried both Chrome plugin and in-app Browser.
- Same error persists.
What is the expected behavior?
node_repl should start successfully.
The Codex Chrome plugin should be able to connect to the installed Codex Chrome Extension and list/control Chrome tabs.
The Codex in-app Browser should also start successfully and allow Codex to open and inspect pages.
If the Windows sandbox cannot start, Codex should show a clear actionable error or supported workaround instead of failing with “windows sandbox failed: spawn setup refresh”.
Additional information
This looks similar to several existing public reports:
- https://github.com/openai/codex/issues/24963
- https://github.com/openai/codex/issues/25012
- https://github.com/openai/codex/issues/24098
- https://github.com/openai/codex/issues/24926
Those reports also mention:
- node_repl failing before executing minimal JavaScript.
- Browser and Chrome plugin becoming unusable.
- “windows sandbox failed: spawn setup refresh”.
- Possible relationship to the Windows elevated sandbox path.
- Some users reporting that changing Windows sandbox mode from “elevated” to “unelevated” may work around the problem.
Could the Codex Desktop / Windows sandbox team please confirm:
- Whether this is a known Codex Desktop Windows regression.
- Whether changing [windows] sandbox = "unelevated" is currently a supported workaround.
- Whether there is a diagnostic bundle or log file I should attach.
- Whether a Codex Desktop update is expected to fix this.
11 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Had this exact issue. After hours of debugging, changing the sandbox from "elevated" to "unelevated" fixed it for me. But hopefully elevated sandbox will work again
Confirming that switching the Windows sandbox mode to unelevated fixed this for me.
I was hitting the exact same error on Codex Desktop for Windows — windows sandbox failed: spawn setup refresh — which broke node_repl and all in-app browser / Chrome plugin automation. Regular PowerShell commands worked fine; only the node_repl sandbox startup failed.
I confirmed my whole system was healthy first: virtualization enabled, Windows Sandbox feature enabled, AppXSvc/ClipSVC running, UAC on, Secondary Logon running, both CodexSandbox users present, Defender showing no blocks, and the Codex package status was OK. I also fully uninstalled/reinstalled (including the Beta build) and removed leftover app data — none of it helped, which pointed to the elevated sandbox spawn path itself (consistent with the os error 740 – requires elevation reported in #24926).
The fix that worked: adding this to ~/.codex/config.toml:
toml[windows]
sandbox = "unelevated"
After fully restarting Codex, node_repl starts correctly and the in-app browser works again.
One caveat worth flagging for the maintainers: there are reports that Codex regenerates config.toml on restart and can overwrite user settings, so it would be great to have official confirmation on whether unelevated is a supported workaround and whether it will persist. A fix for the default elevated path (or a clearer actionable error) would be ideal.
App version affected: 26.519.11010.0 (also reproduced on later builds per other reports).
I am seeing the same failure on Windows with Codex Desktop
26.527.3686.0.My issue was filed as #25439 and I am closing it as a duplicate of this one.
Additional confirmation from my machine:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0Default1.1.5_0C:\Users\jessy\AppData\Local\OpenAI\extension\com.openai.codexextension.jsonHKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextensioncorrect: true.The live
@chromebridge still fails before reaching Chrome with:I reproduced after:
@chrome test Chrome connection.This appears to be the same Windows sandbox /
node_replstartup failure described here, rather than a Chrome extension or native host registration issue.thanks!your solution worked
The pattern here makes me think the product needs a clearer failure boundary between:
Right now users have to reverse-engineer that from symptoms, which is why people keep chasing Chrome, extension, and native-host setup when the real break is earlier.
The minimum useful behavior would be:
That would save a lot of wasted debugging time. The expensive part of bugs like this is not just that something is broken. It is that the UI makes three different layers look equally suspicious.
It worked! thanks a lot!
I can confirm the same failure pattern on a current Windows Codex Desktop setup, with Chrome itself appearing healthy.
Sanitized environment:
OpenAI.Codex_26.602.4764.0_x64__2p2nqsd0c76g0node_replenv:26.602.40724chrome@openai-bundledandbrowser@openai-bundled[windows] sandbox = "elevated"node_replis generated withargs = []Impact:
node_repl.Chrome-specific checks:
hehggadaopoacecdllhhajmbjkdcmajg1.1.5_0HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextensionextension-host.exe.Minimal failing test:
Observed result:
Relevant sanitized sandbox-log pattern:
Important comparison from the same sandbox log: ordinary shell commands do successfully run setup refresh via the packaged WindowsApps resource path:
Troubleshooting already attempted multiple times by the user:
The only workaround not yet tested in this setup is temporarily changing the Windows sandbox mode, for example from
elevatedtounelevated, if that is considered safe/supported. Could the team confirm whethersandbox = "unelevated"is an intended temporary workaround for this specificnode_repl/Browser/Chrome failure path?I am seeing the same failure pattern on Windows Codex Desktop and filed a related report here: https://github.com/openai/codex/issues/27792
My case is specifically the Chrome plugin path:
correct: true)@chromefails before it can list or access current Chrome tabsObserved error:
Additional local signal: running
codex --versionfrom the Codex workspace PowerShell also failed with Access denied, so this looks like the same Windows sandbox / Node helper startup path rather than a Chrome extension installation problem.Closing as a duplicate of #24963.
I am seeing the same failure pattern on Windows Codex Desktop and filed a related report here: https://github.com/openai/codex/issues/27792
My case is specifically the Chrome plugin path:
correct: true)@chromefails before it can list or access current Chrome tabsObserved error:
Additional local signal: running
codex --versionfrom the Codex workspace PowerShell also failed with Access denied, so this looks like the same Windows sandbox / Node helper startup path rather than a Chrome extension installation problem.