codex - 💡(How to fix) Fix Codex Desktop in-app browser connector fails to attach on Windows sandbox startup

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

In Codex Desktop on Windows, the in-app browser connector failed to attach to an already-open Codex browser session. After the connector failed, browser automation fell back to a separate browser context instead of controlling the in-app browser.

Error Message

Codex should attach to the existing in-app browser session. If startup fails, it should surface a clear error and avoid silently opening or controlling a different browser context.

Root Cause

In Codex Desktop on Windows, the in-app browser connector failed to attach to an already-open Codex browser session. After the connector failed, browser automation fell back to a separate browser context instead of controlling the in-app browser.

Code Example

node_repl kernel exited unexpectedly
node_repl diagnostics: {"kernel_status":"running","kernel_stderr_tail":"windows sandbox failed: spawn setup refresh","reason":"stdout_eof","stream_error":null}

---

node_repl kernel exited unexpectedly
Assertion failed: ncrypto::CSPRNG(nullptr, 0)
RAW_BUFFERClick to expand / collapse

Summary

In Codex Desktop on Windows, the in-app browser connector failed to attach to an already-open Codex browser session. After the connector failed, browser automation fell back to a separate browser context instead of controlling the in-app browser.

Impact

This makes collaborative browser tasks unreliable when the user is already signed in inside the Codex in-app browser. It can also confuse the workflow by opening or controlling a different browser context than the one the user is viewing.

Environment

  • Product: Codex Desktop
  • Platform: Windows
  • Browser target: Codex in-app browser
  • Runtime path pattern: bundled browser plugin using browser-client.mjs
  • Automation bootstrap attempted through the Node REPL MCP runtime

Steps to Reproduce

  1. Open a website in the Codex in-app browser.
  2. Ask Codex to continue a task using that in-app browser session.
  3. Codex attempts to initialize the bundled browser runtime and select the in-app browser.

Actual Behavior

The Node REPL kernel exits unexpectedly during browser runtime startup. One observed diagnostic was:

node_repl kernel exited unexpectedly
node_repl diagnostics: {"kernel_status":"running","kernel_stderr_tail":"windows sandbox failed: spawn setup refresh","reason":"stdout_eof","stream_error":null}

An earlier attempt in the same workflow also failed with a native startup assertion:

node_repl kernel exited unexpectedly
Assertion failed: ncrypto::CSPRNG(nullptr, 0)

After this, automation used a separate browser context rather than attaching to the visible in-app browser session.

Expected Behavior

Codex should attach to the existing in-app browser session. If startup fails, it should surface a clear error and avoid silently opening or controlling a different browser context.

Privacy Note

This report intentionally excludes account names, URLs, project names, secrets, and other personal or project-specific details.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Desktop in-app browser connector fails to attach on Windows sandbox startup