Codex desktop browser/annotation tools fail: missing field sandboxPolicy
Resolved 💬 15 comments Opened Jun 20, 2026 by JeanPosthumus Closed Jun 21, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Hi Codex team,
I am seeing a persistent issue with the Codex desktop app in-app browser, annotation tool, and browser automation bridge.
Error shown to the agent/tooling:
codex/sandbox-state-meta: missing field sandboxPolicy
Environment:
- Codex desktop app version: 26.616.41845
- Platform: macOS
- Workspace: local trusted project
- Permissions UI shows Full access enabled
- Browser plugin and in-app browser are enabled
What happens:
- The in-app browser can open localhost pages, but the agent cannot control or inspect it.
- Any attempt to use the in-app browser / JS browser bridge fails immediately with:
Mcp error: -32602: js: codex/sandbox-state-meta: missing field `sandboxPolicy`
- The annotation tool is also unreliable/broken, likely because it depends on the same browser bridge.
- Restarting Codex multiple times did not fix it.
- Toggling permissions between Ask for approval and Full access did not fix it.
- Local state inspection showed the current thread keeps being stored/recreated with:
sandbox_policy = {"type":"disabled"}
- The app also rewrites config.toml back to:
js_repl = false
- Manually repairing local state while Codex was closed did not persist; Codex rewrote the broken values after startup.
Expected behavior:
The in-app browser and annotation tool should work when the workspace has Full access.
Actual behavior:
Browser/annotation automation fails before the agent can access the page, even though permissions are enabled.
Could you help me fix or safely reset the Codex desktop app state without losing important workspace/thread history?
15 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
same problem for me
<img width="577" height="170" alt="Image" src="https://github.com/user-attachments/assets/2c7d5f0f-0e46-4464-960d-8afe65fcecd2" />
I can reproduce this after a Codex Desktop update on Windows. Adding a redacted timeline and checks in case it helps narrow the regression.
Environment
OpenAI.Codex_26.616.5445.0_x64__2p2nqsd0c76g0codex-cli 0.142.0-alpha.6CODEX_CLI_PATHpoints to a hash directory under%LOCALAPPDATA%\OpenAI\Codex\bin\...node_repl.exeis launched from%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_repl.exenode_repl.exeSHA256 matched the copy bundled in the installed app package, so local runtime file corruption seems unlikely.Timeline
node_repl/jsworked in Codex Desktop threads. Successful Computer Use calls included bootstrap,sky.list_apps(),get_window_state, and Windows app inspection.cli_versionvalues of0.142.0-alpha.1or empty.cli_version = 0.142.0-alpha.6consistently fail everynode_repl/jscall with the missingsandboxPolicyerror.Minimal repro
js_resetsucceeds:But any
jsexecution fails before user JS runs, including:Observed:
Computer Use bootstrap fails at the same MCP boundary before reaching
sky.list_apps().Relevant checks
%USERPROFILE%\.codex\state_5.sqlitehas a non-empty savedsandbox_policyJSON withtype: managed, restricted filesystem entries, and restricted network.sandboxPolicyfor the affected thread._meta["codex/sandbox-state-meta"].sandboxPolicyshape expected bynode_repl/js.node_replconfig block did not fix it.Current assessment
This looks like a regression or migration issue in the Codex Desktop app-server / CLI
0.142.0-alpha.6metadata bridge for MCP tool calls. The storedsandbox_policyexists, butnode_repl/jsreceivescodex/sandbox-state-metawithout requiredsandboxPolicy.I’m seeing the same failure on macOS.
Environment:
Chrome-side checks passed:
Node REPL behavior:
So this looks like the same Desktop/app-server/MCP metadata issue rather than a Chrome extension/profile/native-host problem.
I can reproduce this on macOS as well.
Environment:
26.616.41845, build419826.5.1(25F80), arm64chrome@openai-bundledenabledObserved behavior:
node_repl/jsrejects the tool call before any JS runs.Additional symptom (Chrome profile):
Impact:
sandboxPolicyerror)Same regression as #29189 / #29193 from my side — Desktop
26.616.41845is not passing thesandboxPolicyfield that bundlednode_replnow requires.I can reproduce this on Windows Codex Desktop 26.616.5445.0.
node_repl/js fails with:
codex/sandbox-state-meta: missing field
sandboxPolicyAfter deleting bundled plugin caches and restarting, Codex regenerates config.toml with:
js_repl = false
[mcp_servers.node_repl]
[mcp_servers.node_repl.env]
I submitted in-app feedback with ID:
019ee5ad-e439-75c0-ae27-3fc8e965559c
Same issue here
They broke it with this update.
Luckily, Browser Chrome CDP Skill working as a backup with cloned chrome profile.
Environment:
26.616.41845codex-cli 0.142.0-alpha.626.5.1workspace-writeneverbrowser@openai-bundledchrome@openai-bundlednode_replMCP is enabled and configured.I tried:
~/.codex/config.tomland~/.codex/.codex-global-state.json.[features] js_repl = false.~/.codex/node_repl/active_execs/*.@chrome.The error still happens before the Chrome/browser bridge can initialize. Also, Codex appears to rewrite
js_repl = falseback into~/.codex/config.tomlon startup.This happens before browser-client code can run, so it does not look like a Chrome extension/native-host issue. It looks like the MCP/tool-call metadata sent to
node_repl/jsis missing the internal camelCasesandboxPolicyfield.Adding one more macOS reproduction data point.
Basic machine details:
Observed behavior matches this issue: Chrome/browser automation fails before reaching the browser because
node_repl/jsfails immediately. A minimal call also fails:Result:
This looks like the same node_repl/js metadata issue, not a Chrome extension or webpage-specific failure.
Same problem here after the latest update: 26.616.41845 . The screenshot is from a brand new session after a restart.
How can we download the previously working version?
<img width="1600" height="1220" alt="Image" src="https://github.com/user-attachments/assets/f2915805-0964-4355-9ac7-03a27dec5322" />
Thanks for the bug report. We've issued a hotfix for this problem. Please update your app and confirm that it fixes the issue you were seeing.
@etraut-openai i can confirm it works now, thanks a lot!
It works! Thank you!
This is still now working when using desktop app on windows.
019eede0-c321-7481-97ae-af327f81fec1