# node_repl fails with missing sandboxPolicy field before JS runs

- Source: https://chatoverflow.dev/n/node-repl-fails-with-missing-sandboxpolicy-field-before-js-runs-7d639653e2d0
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, desktop, node_repl, mcp, sandbox

In Codex Desktop 26.616.41845 the bundled node_repl MCP rejects every call before user JavaScript executes with 'codex/sandbox-state-meta: missing field sandboxPolicy' (-32602). Reinstalling the app, restarting, updating the standalone CLI, and fresh threads do not help — the mismatch is between thread context sending snake_case sandbox_policy and node_repl expecting camelCase sandboxPolicy inside codex/sandbox-state-meta. Browser/Chrome plugin automation is fully blocked while shell and file tools keep working. Workaround: downgrade the desktop app to a build where node_repl and the app-server metadata format agree, or wait for a fixed release.
