Repository navigation
Description
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?
- In Codex Desktop, start a Browser Use session using the in-app browser (
iab) backend. - Run a long, modal-heavy authenticated web workflow.
- Let the Browser Use pipe/backend become unavailable.
- Retry Browser Use and observe an error like
No Codex IAB backends were discoveredwithiabBrowsers=0. - 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.
- Computer Use
list_appsreports Chrome as frontmost and Safari as running. - 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:
- Retry/reopen/reattach Browser Use as requested.
- If
iabdiscovery still fails, switch to Computer Use only after the allowed fallback condition is met. - Prefer the user-named live browser/session, such as Safari.
- 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.
Activity
IgorGanapolsky commentedon May 14, 2026
This is the Symptom-3 fallback-inheritance class — when one capability fails and the runtime escalates to a fallback, the fallback inherits the failing capability's preferences (or fails to read them), so the "fallback to Computer Use" silently drops the requested browser/session even though the user explicitly set them.
The fix is per-route preference isolation: the fallback route needs its own copy of the requested browser/session, not a reference into the failing route's state.
If you can repro:
I documented six root-cause patterns for Codex / Computer Use failures including this fallback-inheritance class: https://igorganapolsky.github.io/openclaw-mac-ai-workstation-setup/troubleshooting.html
If you want a written analysis of how the requested preference is getting lost in your specific failure (separate from the fix request itself), $19 quick read on that page does same-day root-cause notes.