Browser Use on MacOS failing with sandboxPolicy missing field

Open 💬 2 comments Opened Jun 20, 2026 by wattsset98
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.616.41845

What subscription do you have?

Business

What platform is your computer?

MacOS Tahoe 26.5.1

What issue are you seeing?

When calling the in-app Codex browser I get the following error. I have restrated the app and re-installed the in-app browser.

tool call error: tool call failed for node_repl/js

Caused by:
Mcp error: -32602: js: codex/sandbox-state-meta: missing field sandboxPolicy

What steps can reproduce the bug?

Using the @browser command and asking the software to visit a website. The system fails and uses the on-computer browser.

What is the expected behavior?

Opens a browser in the codex app.

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #29240
  • #29219
  • #29213
  • #29205
  • #29189

Powered by Codex Action

Andre-4711 · 2 months ago

I can reproduce this on macOS as well, after a clean Codex restart and reinstalling the bundled browser plugins.

Environment:

  • Codex Doctor: v0.142.0-alpha.6 · macos-x86_64
  • macOS: 26.5.0
  • Bundled browser plugin versions: browser@openai-bundled 26.616.41845, chrome@openai-bundled 26.616.41845
  • Chrome extension: installed and enabled in Chrome Default profile
  • Chrome Native Messaging Host: present and valid for com.openai.codexextension
  • macOS permissions: Automation and Accessibility enabled for Codex / Brave / System Events where applicable

Observed behavior:

  • mcp__node_repl.js_reset succeeds with js kernel reset
  • Any mcp__node_repl.js call fails before browser setup, even a minimal call:
nodeRepl.write('ok');

Error:

tool call error: tool call failed for `node_repl/js`

Caused by:
    Mcp error: -32602: js: codex/sandbox-state-meta: missing field `sandboxPolicy`

Steps already tried:

  • Restarted Codex Desktop
  • Removed and reinstalled chrome@openai-bundled
  • Removed and reinstalled browser@openai-bundled
  • Restarted Codex Desktop again after reinstall
  • Verified full codex doctor with escalated/network access: network, WebSocket, auth, config, state DBs, and install are OK; only TERM=dumb is reported as a terminal-display issue

Impact:

  • Browser/Chrome extension tooling cannot initialize because node_repl/js fails before it can contact Chrome, Brave, or the in-app browser.
  • This does not appear to be caused by Chrome/Brave extension setup or macOS privacy permissions.