Codex Desktop Windows: node_repl/js fails before execution with missing sandboxPolicy metadata
What version of the Codex App are you using (From “About Codex” dialog)?
26.616.5445.0
What subscription do you have?
Plus
What platform is your computer?
Windows_NT, Windows PowerShell 5.1, x64
What issue are you seeing?
Codex Desktop Computer Use / browser tools fail on Windows before execution.
Error:
Mcp error: -32602:
js: codex/sandbox-state-meta: missing field `sandboxPolicy`
I also tested node_repl/js directly. The tool is exposed in the session, but execution fails before JavaScript runs because the required sandboxPolicy metadata is missing.
Environment:
Codex Desktop: 26.616.5445.0
Codex CLI: 0.141.0
OS: Windows_NT
Shell: Windows PowerShell 5.1
Mode: Windows native / PowerShell
WSL: disabled
runCodexInWindowsSubsystemForLinux = false
Windows sandbox = unelevated
What I verified:
[desktop]
runCodexInWindowsSubsystemForLinux = false
[windows]
sandbox = "unelevated"
[plugins."browser@openai-bundled"]
enabled = true
[plugins."chrome@openai-bundled"]
enabled = true
[plugins."computer-use@openai-bundled"]
enabled = true
I already tried:
- Updated Codex CLI to 0.141.0
- Ran Windows sandbox setup successfully
- Confirmed native Windows / PowerShell mode
- Confirmed WSL environment variables were empty
- Confirmed Codex sandbox files and logs exist under %USERPROFILE%\.codex
- Confirmed browser@openai-bundled, chrome@openai-bundled, and computer-use@openai-bundled are installed and enabled
- Confirmed openai-bundled plugin version is 26.616.41845
- Confirmed current Desktop package is OpenAI.Codex 26.616.5445.0
Diagnosis:
This does not appear to be a Chrome extension issue, LinkedIn issue, local config issue, plugin cache issue, or failed Windows sandbox installation.
The failure happens before Computer Use, Chrome, browser tools, or JavaScript execution begins. It appears that Codex Desktop exposes the node_repl/js tool, but the Desktop MCP/tool bridge does not pass the required sandboxPolicy metadata into the tool request.
Impact:
Computer Use, browser tools, and Chrome integration cannot start. sky.list_apps() cannot list visible apps. Chrome, LinkedIn, and websites were not opened.
What steps can reproduce the bug?
Feedback ID: 019ee5d8-d07b-7ba0-9ef9-abbfa7d3dc8d
What is the expected behavior?
Expected behavior:
Codex Desktop should pass the required sandboxPolicy metadata from the active Windows native sandbox session into the MCP / JavaScript / tool bridge request.
node_repl/js should execute normally when exposed in the session. Computer Use and browser tools should then be able to initialize normally, and a safe test such as listing available apps should work without failing at sandbox metadata validation.
The expected result is that JavaScript execution starts successfully, or Computer Use returns a normal available/unavailable result. It should not fail before execution with:
js: codex/sandbox-state-meta: missing field `sandboxPolicy`
Additional information
Additional information:
This appears to be a Codex Desktop app / MCP tool-bridge metadata issue, not a local setup issue.
Verified environment:
Codex Desktop: 26.616.5445.0
Codex CLI: 0.141.0
OS: Windows_NT
Shell: Windows PowerShell 5.1
Mode: Windows native / PowerShell
WSL: disabled
runCodexInWindowsSubsystemForLinux = false
Windows sandbox = unelevated
Verified checks:
- Native Windows / PowerShell mode works
- WSL environment variables are empty
- Windows sandbox config is present and valid
- Codex sandbox setup completed successfully
- Sandbox files/logs exist under %USERPROFILE%\.codex
- browser@openai-bundled is installed and enabled
- chrome@openai-bundled is installed and enabled
- computer-use@openai-bundled is installed and enabled
- openai-bundled plugin version is 26.616.41845
- Current Desktop package is OpenAI.Codex 26.616.5445.0
- Packaged marketplace and local plugin cache were checked
Diagnosis:
The tool is exposed, but the request fails before JavaScript execution because sandboxPolicy is missing from the metadata passed to the tool bridge. This suggests Codex Desktop is not forwarding required sandbox metadata into the JS / MCP tool request.
Impact:
Computer Use, browser tools, and Chrome integration cannot start. Chrome, LinkedIn, and websites were not opened.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
这个问题是新版本更新后导致的希望尽快修复
Adding my Windows repro here too. Feedback/session ID:
019ee5d3-7653-7870-95c3-5841e75db374.Sanitized environment:
26.616.5445.0, Windows x64 Store package.26.616.41845.node_replruntime observed undercua_node/a89897d3d9baa117/bin/node_repl.exe.149.0.7827.116.1.1.5_0.browser@openai-bundled,chrome@openai-bundled, andcomputer-use@openai-bundledare enabled.unelevated.What I am seeing:
@Chrome, Browser, and Computer Use are all blocked because they depend on the samenode_repl/jsroute.Troubleshooting I tried:
mcp__node_replroute after rediscovery:js_reset->Transport closedjssmoke testnodeRepl.write('official-node-repl-ok')->Transport closedjs_add_node_module_dir->Transport closedextension-host.exe, the target exists, and the allowed origin matches the Codex Chrome extension ID.1.1.5_0.chrome.nativeMessaging,codex-browser-use, andcodex-computer-useare present.latestpoints to26.616.41845.26.616.41845cached locally, so I do not have an obvious local rollback target.winget list --name Codexreports Store package26.616.5445.0.winget upgrade --id 9PLM9XGG6VKS --source msstore --exactreports no available upgrade.Additional diagnostic result:
A disposable standalone MCP probe against the bundled
node_repl.execan execute minimal JS when launched with the metadata shape it expects:sandboxPolicy.type = "workspace-write"plussandboxCwd. That returnedmanual-node-repl-ok. Omitting required metadata fields fails validation before JS runs, and usingworkspaceWriteas the type value is rejected because the runtime expects kebab-case values such asworkspace-write.However, using that standalone working
node_replto bootstrap the bundled Chromebrowser-client.mjsfails with:My current read is that the bundled
node_repl.exebinary itself can run JavaScript with valid metadata, but the Desktop-managed MCP route is stuck/broken, and a standalone process cannot replace it because it lacks the trusted privileged bridge required by Browser/Chrome/Computer Use. This does not look like a normal Chrome install, extension, native-host, or local website issue.I am intentionally not attaching screenshots, raw logs, account/profile data, repo names, local username, browser history, cookies, or full local paths here for privacy.
Follow-up to my earlier Windows repro with a newer, separate diagnostic trace.
Feedback ID:
019ee64c-3000-7332-8030-a22cfd39505e. I also submitted a Codex Desktop performance/reliability trace from the same session logs, so OpenAI should be able to correlate the private telemetry from that ID.What this later trace adds beyond my earlier
Transport closed/ standalone-probe notes:node_repl/jswas visible andjs_resetsucceeded, but minimal JS execution failed before user code ran with:node_repl/js, MCP/tool inventory, skills,@Chrome, in-app browser comparison, Computer Use, network/proxy, AV/security signals, and config/dependency state.@Chromeand Computer Use failed before initialization becausenode_repl/jsrejected the call first.Most actionable new observation: local user-level config/environment visible to the trace included
NODE_REPL_REQUEST_METAwithcodex/sandbox-state-meta.sandboxPolicy, but the livenode_repl/jsMCP call still failed as ifsandboxPolicywas absent. That points at the Desktop app-server / live MCP request marshalling path, not just static config, Chrome setup, plugin install, network, AV, or active desktop visibility.Privacy note: I am intentionally not posting local usernames, full paths, repo/project names, raw logs, thread IDs, tokens, cookies, screenshots, account identifiers, or subscription details. Please use the feedback ID plus same-session performance trace to inspect the raw data privately.