Bug: In-app browser fails with missing sandboxPolicy runtime field

Open 💬 0 comments Opened Jul 15, 2026 by lauramiro

Summary

The Codex in-app browser is failing because the runtime reports a missing sandboxPolicy field. This appears to be a Codex host/runtime issue rather than an issue with my local app.

What I tried

  1. Restarted the Codex app.
  2. Opened the repository in a fresh Codex session.
  3. Started the app normally with npm run dev.
  4. Opened http://localhost:3000 in a regular browser, where the app works.
  5. Retried the in-app browser after the restart/new session.

Expected behavior

The in-app browser should open and interact with http://localhost:3000 without requiring any undocumented runtime field.

Actual behavior

The in-app browser fails with this error:

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

View original on GitHub ↗