codex - 💡(How to fix) Fix Browser Use IAB backend cannot attach: Node REPL runtime missing __codexNativePipe [1 comments, 2 participants]

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…
GitHub stats
openai/codex#20248Fetched 2026-04-30 06:31:09
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Code Example

Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered.

---

console.log(JSON.stringify({
  hasImportMetaBridge: !!import.meta.__codexNativePipe,
  bridgeType: typeof import.meta.__codexNativePipe?.createConnection
}));

---

{"hasImportMetaBridge":false,"bridgeType":"undefined"}

---

{"hasMeta":true,"hasSessionId":true,"hasTurnId":true}
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using?

Codex App 26.422.71525

What platform is your computer?

macOS 26.4.1, Apple Silicon / M4 Pro

What issue are you seeing?

The bundled browser-use:browser skill cannot attach to the Codex in-app browser using the iab backend.

The in-app browser is open and can load pages such as:

  • https://www.bybit.com/en/
  • http://127.0.0.1:8765/

But Browser Use fails before it can inspect or control the tab:

Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered.

Evidence

The app-side IAB browser session appears active. Logs show Browser Use native pipe and browser sidebar lifecycle events, and the page reaches dom-ready.

However, the Node REPL runtime does not expose the native bridge:

console.log(JSON.stringify({
  hasImportMetaBridge: !!import.meta.__codexNativePipe,
  bridgeType: typeof import.meta.__codexNativePipe?.createConnection
}));

Observed output:

{"hasImportMetaBridge":false,"bridgeType":"undefined"}

Turn metadata is present:

{"hasMeta":true,"hasSessionId":true,"hasTurnId":true}

Expected behavior

When the in-app browser is open in the current Codex thread, browser-use:browser should attach to the current tab and allow inspection/control.

Actual behavior

The app-side browser session exists, but the tool runtime appears to be launched without import.meta.__codexNativePipe, so Browser Use cannot connect to the IAB backend.

Feedback ID

019dda9e-b1f6-70d0-b2c4-22e4e8241874

extent analysis

TL;DR

The issue is likely due to the Node REPL runtime not exposing the native bridge, preventing Browser Use from connecting to the IAB backend, and a potential fix involves ensuring the import.meta.__codexNativePipe is properly set up.

Guidance

  • Verify that the import.meta.__codexNativePipe is correctly configured and exposed in the Node REPL runtime.
  • Check the Codex App version and platform for any known issues or compatibility problems with the iab backend.
  • Investigate the logs for any errors or warnings related to the native bridge or Browser Use connection.
  • Confirm that the in-app browser session is properly established and the page has reached dom-ready before attempting to connect with Browser Use.

Example

No code snippet is provided as the issue seems to be related to the configuration or exposure of the native bridge rather than a specific code error.

Notes

The issue might be specific to the Codex App version 26.422.71525 or the macOS platform 26.4.1, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Investigate and ensure the import.meta.__codexNativePipe is properly set up and exposed in the Node REPL runtime, as this seems to be the primary issue preventing Browser Use from connecting to the IAB backend.

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…

FAQ

Expected behavior

When the in-app browser is open in the current Codex thread, browser-use:browser should attach to the current tab and allow inspection/control.

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 Browser Use IAB backend cannot attach: Node REPL runtime missing __codexNativePipe [1 comments, 2 participants]