codex - 💡(How to fix) Fix Computer Use fallback after Browser Use failure should preserve requested browser/session preference [1 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#21068Fetched 2026-05-05 05:53:56
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×4cross-referenced ×1

Error Message

  1. Retry Browser Use and observe an error like No Codex IAB backends were discovered with iabBrowsers=0.

Root Cause

The user then explicitly authorized fallback to Computer Use and named Safari as the preferred live browser because the relevant LinkedIn authentication was already available there. Computer Use discovery returned Chrome as the frontmost app and Safari as also running. The workflow then appeared to pivot to Chrome without a clear rationale, rather than preserving the user-named Safari fallback or explaining why Chrome was safer/better.

Code Example

Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered. Discovery diagnostics: listedPipes=12, candidates=14, browsers=0, iabBrowsers=0, ... pipeListingError=none.
RAW_BUFFERClick to expand / collapse

What issue are you seeing?

In Codex Desktop on macOS, a long Browser Use session against the in-app browser lost its Browser Use pipe. Retrying Browser Use failed with:

Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered. Discovery diagnostics: listedPipes=12, candidates=14, browsers=0, iabBrowsers=0, ... pipeListingError=none.

The user then explicitly authorized fallback to Computer Use and named Safari as the preferred live browser because the relevant LinkedIn authentication was already available there. Computer Use discovery returned Chrome as the frontmost app and Safari as also running. The workflow then appeared to pivot to Chrome without a clear rationale, rather than preserving the user-named Safari fallback or explaining why Chrome was safer/better.

There are already open issues that seem related to the underlying Browser Use IAB discovery failure, such as #19463 and #20678. This report is specifically about fallback behavior after Browser Use becomes unavailable: the selected live GUI/browser session should respect the user's explicit browser/session preference when one is provided.

What steps can reproduce the bug?

  1. In Codex Desktop, start a Browser Use session using the in-app browser (iab) backend.
  2. Run a long, modal-heavy authenticated web workflow.
  3. Let the Browser Use pipe/backend become unavailable.
  4. Retry Browser Use and observe an error like No Codex IAB backends were discovered with iabBrowsers=0.
  5. Tell Codex to fall back to Computer Use if Browser Use still fails, explicitly naming Safari as the preferred browser/session because it has the required authentication.
  6. Computer Use list_apps reports Chrome as frontmost and Safari as running.
  7. The agent proceeds toward the frontmost Chrome session without documenting why it ignored the Safari preference.

What is the expected behavior?

When Browser Use cannot reattach and the user provides an explicit live-browser fallback preference, Codex should prefer that named browser/session for Computer Use. If it cannot use that browser, or if it chooses the frontmost browser instead, it should state the reason before proceeding, especially for authenticated or sensitive workflows.

A good fallback sequence would be:

  1. Retry/reopen/reattach Browser Use as requested.
  2. If iab discovery still fails, switch to Computer Use only after the allowed fallback condition is met.
  3. Prefer the user-named live browser/session, such as Safari.
  4. If another app is selected because it is frontmost or already has the right state, explicitly say so.

Additional information

This happened during a real authenticated job-application workflow. The underlying Browser Use failure was already clear and logged, but the UX issue was the unexplained surface drift from the requested Browser Use path to Computer Use/Chrome when the user had named Safari as the authenticated fallback surface.

extent analysis

TL;DR

The issue can be addressed by modifying the Computer Use fallback logic to prioritize the user-named preferred browser when Browser Use becomes unavailable.

Guidance

  • Review the current implementation of the Computer Use fallback logic to understand why it prefers the frontmost browser over the user-named preferred browser.
  • Modify the logic to check for an explicit user preference and prioritize it when selecting a browser for Computer Use.
  • Add logging or notification to explain why a different browser is chosen if the preferred browser cannot be used.
  • Consider adding a check to ensure the preferred browser has the required authentication before proceeding with the workflow.

Example

No code snippet is provided as the issue does not include specific code references.

Notes

The issue is specific to the fallback behavior when Browser Use becomes unavailable, and the solution should focus on modifying the Computer Use logic to respect user preferences.

Recommendation

Apply a workaround by modifying the Computer Use fallback logic to prioritize user-named preferred browsers, as this addresses the specific UX issue reported without relying on resolving the underlying Browser Use IAB discovery failure.

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 Computer Use fallback after Browser Use failure should preserve requested browser/session preference [1 participants]