You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node_repl sandbox initialization crashes after updating to the Codex Windows Store version (os error 740) #26134
appIssues related to the Codex desktop appbugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serverssandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
changed the title [-]Codex Windows Store 版更新后 node_repl sandbox 初始化崩溃(os error 740)[/-][+]node_repl sandbox initialization crashes after updating to the Codex Windows Store version (os error 740)[/+]on Jun 12, 2026
Environment:
Codex version: OpenAI.Codex_26.601.2237.0 installed through the Microsoft Store
Windows version: Windows 11
Installation method: upgraded from an older CLI installation to the Microsoft Store version
Issue:
After updating to the Store version, node_repl MCP sandbox initialization crashes every time the kernel starts: windows sandbox failed: spawn setup refresh
Root cause (investigated):
node_repl.exe is located in %LOCALAPPDATA%\OpenAI\Codex\bin\34ab3e1324cc55b5\ (left over from the old CLI installation)
Sandbox initialization attempts to spawn %LOCALAPPDATA%\OpenAI\Codex\bin\716dda49c14d31a0\codex-windows-sandbox-setup.exe
The Store container does not have elevation permission for the binary at that path: os error 740 (the requested operation requires elevation)
The main Codex process's setup_refresh uses the WindowsApp built-in version (C:\Program Files\WindowsApps...\app\resources\codex-windows-sandbox-setup.exe) and can successfully elevate through the payload mechanism
But the node_repl kernel does not have this fallback and has only a direct spawn path, causing the crash
Impact:
The Computer Use plugin is unavailable (depends on nodeRepl.nativePipe.createConnection)
Some node_repl backend functionality of the Chrome plugin is limited
The built-in browser may also be affected
Changed CODEX_CLI_PATH to point to the WindowsApp version of codex.exe — the main process works normally, but node_repl still crashes
Added codex-windows-sandbox-setup.exe to the node_repl directory and bin directory — ineffective (spawn behavior differs for the same binary at different paths)
Changed the sandbox from elevated to none as a workaround (not implemented due to security policy)
Cleaned old-version files from the bin directory — ineffective; the kernel uses a hard-coded path
Suggested fix
Make node_repl kernel sandbox initialization use the same setup_refresh payload mechanism as the main Codex process
Or use the WindowsApp built-in codex-windows-sandbox-setup.exe path as the default fallback
appIssues related to the Codex desktop appbugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serverssandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Jun 3, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[-]Codex Windows Store 版更新后 node_repl sandbox 初始化崩溃(os error 740)[/-][+]node_repl sandbox initialization crashes after updating to the Codex Windows Store version (os error 740)[/+]etraut-openai commentedon Jun 12, 2026
English translation:
Environment:
Codex version: OpenAI.Codex_26.601.2237.0 installed through the Microsoft Store
Windows version: Windows 11
Installation method: upgraded from an older CLI installation to the Microsoft Store version
Issue:
After updating to the Store version, node_repl MCP sandbox initialization crashes every time the kernel starts: windows sandbox failed: spawn setup refresh
Root cause (investigated):
node_repl.exe is located in %LOCALAPPDATA%\OpenAI\Codex\bin\34ab3e1324cc55b5\ (left over from the old CLI installation)
Sandbox initialization attempts to spawn %LOCALAPPDATA%\OpenAI\Codex\bin\716dda49c14d31a0\codex-windows-sandbox-setup.exe
The Store container does not have elevation permission for the binary at that path: os error 740 (the requested operation requires elevation)
The main Codex process's setup_refresh uses the WindowsApp built-in version (C:\Program Files\WindowsApps...\app\resources\codex-windows-sandbox-setup.exe) and can successfully elevate through the payload mechanism
But the node_repl kernel does not have this fallback and has only a direct spawn path, causing the crash
Impact:
The Computer Use plugin is unavailable (depends on nodeRepl.nativePipe.createConnection)
Some node_repl backend functionality of the Chrome plugin is limited
The built-in browser may also be affected
Key sandbox log excerpt
codex.exe setup refresh: spawning ...\bin\...\codex-windows-sandbox-setup.exe codex.exe setup refresh: failed to spawn ... (os error 740)Attempted fixes
Changed CODEX_CLI_PATH to point to the WindowsApp version of codex.exe — the main process works normally, but node_repl still crashes
Added codex-windows-sandbox-setup.exe to the node_repl directory and bin directory — ineffective (spawn behavior differs for the same binary at different paths)
Changed the sandbox from elevated to none as a workaround (not implemented due to security policy)
Cleaned old-version files from the bin directory — ineffective; the kernel uses a hard-coded path
Suggested fix
Make node_repl kernel sandbox initialization use the same setup_refresh payload mechanism as the main Codex process
Or use the WindowsApp built-in codex-windows-sandbox-setup.exe path as the default fallback
iceweasel-oai commentedon Jun 12, 2026
this is now fixed