You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(browser): Browser Use cannot connect to IAB from Node REPL on macOS #20678
appIssues related to the Codex desktop appbrowserbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)skillsIssues related to skillstool-callsIssues related to tool calling
From mcp__node_repl__js, the same socket connects and writes, but no response is received before timeout. Browser bootstrap then fails with:
Failed to connect to browser-use backend "iab"
Expected behavior
When Browser Use is enabled and the in-app browser is open, the discovered Node REPL tool should be able to initialize Browser Use against the IAB backend.
Notes
This looks different from the Windows helper-binary/path issues. The IAB backend exists and responds from normal Node, but not from the Node REPL tool used by the Browser skill.
Target was a local HTTP page, e.g. http://127.0.0.1:51234/README.md.
Expected:
The subagent should be able to attach to the Codex in-app browser backend and inspect/navigate the tab.
Actual:
Bootstrap fails before tab creation:
Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered.
Discovery diagnostics: listedPipes=7, candidates=9, browsers=0, iabBrowsers=0, failures=["discovered/get-info/string", ...], pipeListingError=none.
Additional diagnostics:
The parent thread initially could use Browser Use against the same local HTTP target.
qa_reviewer, default subagent, and forked-context subagent all failed with the same IAB discovery error.
Parent and subagent Node REPL metadata had different x-codex-turn-metadata session/turn IDs.
Attempting to bridge the parent metadata into the subagent is not possible from user code: nodeRepl.requestMeta is getter-only / frozen, and assignment fails with:
Cannot assign to read only property 'session_id' of object '[object Object]'
After a later turn/reset, fresh parent Browser Use bootstrap also failed with the same IAB discovery error; a stale parent Browser Use object produced:
Browser turn does not belong to this IAB pipe
This looks like the IAB bridge/session ownership is not available consistently to the Node REPL runtime, and subagent sessions appear especially unable to inherit or attach to the parent thread's in-app browser backend.
Adding a more specific repro/signature from another macOS Desktop session. This looks like an IAB route/turn ownership mismatch rather than a missing socket or localhost permission issue.
Environment:
macOS
Codex Desktop: 26.429.30905, build 2345
app-bundled CLI: codex-cli 0.128.0-alpha.1
Browser Use plugin: openai-bundled/browser-use/0.1.0-alpha1
In-app browser open
/tmp/codex-browser-use/*.sock sockets exist and are owned by the live Codex app process
Observed behavior:
One Desktop thread initially had working Browser Use, then later Browser Use stopped working in the same thread.
Another Desktop thread never got a usable Browser Use backend.
A third Desktop thread in the same app process works against the same in-app browser page, so the plugin/socket is not globally broken.
Failure from Browser Use bootstrap in broken threads:
Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered.
Discovery diagnostics: listedPipes=6, candidates=8, browsers=0, iabBrowsers=0,
failures=["discovered/get-info/string", ...]
One retry also surfaced the raw ownership error:
Browser turn does not belong to this IAB pipe
Key Desktop app log signature from the thread that worked first and then broke:
Later in the same app process a fresh turn in another thread succeeds because the captured Browser Use route and the Node REPL turn metadata agree:
2026-05-04T07:16:10.629Z info [browser-session-registry] IAB_LIFECYCLE captured turn route conversationId=019df1ce-ffac-78a3-88f3-dcffdd196c4f ownerWebContentsId=1 turnId=019df1d8-30db-7910-aed7-eb1eef9c31bf windowId=1
2026-05-04T07:17:18.946Z info [browser-sidebar-manager] IAB_LIFECYCLE syncing browser use active state conversationId=019df1ce-ffac-78a3-88f3-dcffdd196c4f isActive=true ownerWebContentsId=1 turnId=019df1d8-30db-7910-aed7-eb1eef9c31bf windowId=1
There is also a second failure mode after the browser pane/guest is torn down:
2026-05-04T06:48:26.642Z warning [browser-sidebar-manager] IAB_LIFECYCLE browser use open wait timed out conversationId=019df185-2079-7370-9386-6aaf75c2b739 ownerWebContentsId=1
2026-05-04T06:48:26.642Z warning [browser-sidebar-manager] IAB_LIFECYCLE browser use open wait rejected conversationId=019df185-2079-7370-9386-6aaf75c2b739 errorMessage="No active Codex browser pane available" ownerWebContentsId=1
What I think is happening:
The packaged Desktop app has a strict per-turn IAB ownership check. In the installed app.asar, requireBrowserUseSession rejects if canServeRoute returns false:
if(!this.canServeRoute(r))throwError(`Browser turn does not belong to this IAB pipe`);
And the route lookup is keyed by conversationId + turnId:
letn=this.turnRoutes.get(XC(e));
So if Desktop captures an IAB route for turn 019df1a1-... but the incoming/synthesized turn or Node REPL Browser Use metadata uses ee9efbe9-..., getInfo throws before returning IAB metadata. The Browser Use client then reports browserCount=0 / iabBrowsers=0 with discovered/get-info/string, even though the socket exists.
Adding a follow-up to my earlier comment: I locally hotpatched the installed Codex Desktop app to test the suspected Browser Use / in-app-browser route mismatch.
What was patched
The patch was applied to the installed Electron bundle:
The failing sessions looked like a turn-id mismatch rather than global Browser Use corruption:
Browser Use worked in one Desktop thread.
Browser Use failed in two other Desktop threads.
One of the broken threads worked initially, then later stopped.
Logs showed Desktop captured a Browser Use route for one turnId, but later incoming/synthesized Browser Use metadata used another turnId.
The existing guard rejected that even though the active browser route still belonged to the same conversation and window.
Other IAB routing logs show the backend host keyed by:
routeKey=windowId:conversationId
So the strict exact-turn check seems narrower than the rest of the Browser Use host routing model.
Safety of the tested change
The hotfix does not remove the conversation/window ownership boundary:
It still rejects cross-conversation Browser Use access.
If an exact turn route exists, it still requires the same window.
Only when the exact turn route is missing does it fall back to hasActiveTurnRouteForBrowserRoute(t).
That fallback still checks for an active route for the same {conversationId, windowId}.
Result after patching
After the hotpatch, both formerly broken conversations started resolving Browser Use routes instead of failing discovery.
For conversation 019df185-2079-7370-9386-6aaf75c2b739:
IAB_LIFECYCLE captured turn route conversationId=019df185-2079-7370-9386-6aaf75c2b739 turnId=019df251-bbaf-7b52-9dd6-624ba1d50798 windowId=1
IAB_LIFECYCLE created browser use host conversationId=019df185-2079-7370-9386-6aaf75c2b739 routeKey=1:019df185-2079-7370-9386-6aaf75c2b739 windowId=1
IAB_LIFECYCLE resolved browser use route conversationId=019df185-2079-7370-9386-6aaf75c2b739 turnId=019df251-bbaf-7b52-9dd6-624ba1d50798 windowId=1
For conversation 019df185-d1d3-7b32-8035-369a6b37fb5f:
IAB_LIFECYCLE captured turn route conversationId=019df185-d1d3-7b32-8035-369a6b37fb5f turnId=019df253-e19a-72d2-bb7e-cba73c00492b windowId=1
IAB_LIFECYCLE created browser use host conversationId=019df185-d1d3-7b32-8035-369a6b37fb5f routeKey=1:019df185-d1d3-7b32-8035-369a6b37fb5f windowId=1
IAB_LIFECYCLE iab createTab mapped page to tab conversationId=019df185-d1d3-7b32-8035-369a6b37fb5f tabId=1 turnId=019df253-e19a-72d2-bb7e-cba73c00492b
Post-hotpatch checks in the fresh Desktop logs:
no Browser turn does not belong to this IAB pipe
no discovered/get-info/string
no browserCount=0 / iabBrowsers=0
no No active Codex browser pane available
no Electron ASAR integrity failures after the bundle integrity metadata was updated
Local Electron packaging note
Because this was a direct local patch to app.asar, launching the modified app required updating Electron/macOS integrity metadata as well. I'll leave those details out of here.
One of these should fix the underlying issue cleanly:
Make canServeTurnForBrowserRoute tolerate a missing exact {conversationId, turnId} route if there is an active Browser Use route for the same {conversationId, windowId}.
Or, when Desktop synthesizes a missing turn, alias/update turnRoutes so the Browser Use request metadata and route registry use the same turnId.
Also surface the raw ownership error in Browser Use discovery instead of collapsing it into discovered/get-info/string.
And that wasn't enough, the moment more than 1 session uses browser use or makes a turn it errors.
What i did so far - it seems to work for now. running browser_use in 2 sessions in parallel.
Follow-up: local IAB hotfix code changes
I narrowed this down to two related Browser Use / IAB route problems:
The renderer could start or steer a turn without re-capturing the Browser Use route for the returned turn id.
The main process required an exact (conversationId, turnId) route lookup, but some failing turns captured the route under one turn id and then Browser Use requested the same IAB session under another turn id in the same conversation.
Adding controlled evidence from another macOS Codex Desktop session. This looks like the same IAB route/turn ownership class of failure, with an additional lifecycle symptom: after the IAB route is lost, the in-app browser can remain visually open while Browser Use reports no usable IAB backend or hangs on tab commands.
Environment:
Codex Desktop 26.429.30905, build 2345
macOS 26.3 build 25D125
Browser Use plugin openai-bundled/browser-use/0.1.0-alpha1
Backend requested: iab
Original failure signature from a private session log, sanitized to avoid workflow/account details:
2026-05-04T19:00:22.972Z Browser turn does not belong to this IAB pipe
2026-05-04T19:00:29.630Z Browser turn does not belong to this IAB pipe
2026-05-04T19:00:39.211Z Failed to connect to browser-use backend "iab".
No Codex IAB backends were discovered.
listedPipes=11, candidates=13, browsers=0, iabBrowsers=0,
pipeListingError=none
Later retries in the same broad app state repeated browsers=0, iabBrowsers=0.
attach_initial_iab: passed. Browser Use attached to a localhost page and could inspect/interact.
reattach_after_js_reset: passed. Same IAB tab stayed commandable.
modal/file-input/popup/DOM-churn/navigation stress page: passed. Page complexity alone did not reproduce the loss.
reattach after stress + js_reset: passed.
closing the only Browser Use tab via API: failed. tabs.new() returned No active Codex browser pane available.
after that broken state, a fresh setup/nameSession could return, but tabs.list() and tabs.selected() hung until locally bounded by timeouts, and tabs.new() still returned No active Codex browser pane available.
a side-agent/session during the broken state saw No Codex IAB backends were discovered, with listedPipes=18, candidates=20, browsers=0, iabBrowsers=0.
Local code observations from the installed app/client:
Browser Use discovery accepts IAB candidates only when info.type === "iab" and metadata.codexSessionId matches the current session_id.
Every command is stamped with session_id and turn_id.
The installed app bundle contains requireBrowserUseSession(), which throws Browser turn does not belong to this IAB pipe when the current turn is rejected by the app-side route check.
The Browser Use client nulls its socket on native pipe close, but does not clearly notify close listeners or reject pending JSON-RPC requests, so tabs.list() / tabs.selected() can hang after the backend disappears.
Setup cache hits do not appear to ping/liveness-check the cached context before reuse.
Discovery diagnostics collapse candidate failures to strings like discovered/get-info/string, which hides whether each candidate was stale, the wrong session, the wrong type, missing metadata, or rejecting the current turn.
Current root-cause hypothesis:
The app-side IAB route/turn ownership can be invalidated after a long session or pane/tab lifecycle transition.
The visible in-app browser pane and the commandable native pipe/backend registration can diverge.
The client does not have a strong rebind/reopen path after transport loss or route mismatch, and its diagnostics make stale/rejected candidates look like there are simply zero IAB browsers.
Recommended fixes/regression tests:
On unexpected native pipe close, reject pending RPCs and notify listeners.
Ping cached IAB context before reuse; dispose and rediscover on failure.
Add bounded timeouts around discovery and tab commands.
Add a fresh discovery/rebind loop after Browser turn does not belong to this IAB pipe and after No Codex IAB backends were discovered.
Return precise pane lifecycle errors instead of hanging when the final IAB tab/pane is closed.
Improve diagnostics so each candidate includes path label, getInfo result/error, returned type, session match/mismatch, and rejection reason.
Regression cases: attach_initial_iab, reattach_after_js_reset, reattach_after_transport_loss, close_last_tab_recovery, turn_mismatch_rebind, and discovery_diagnostics.
Related fallback issue after this failure class: #21068
Adding another macOS Desktop reproduction with a slightly different lifecycle signature: a full local cleanup/restart temporarily restores Browser Use, but the IAB route registry breaks again within a few minutes.
After the restart, the first Browser Use attempt could work briefly. A later attempt against the same local URL failed before navigation with:
Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered.
Discovery diagnostics: listedPipes=3, candidates=5, browsers=0, iabBrowsers=0, failures=["discovered/timeout", ...]
The local target was not the problem:
http://127.0.0.1:1420/home -> 200 OK
The IAB sockets also existed and were owned by the live Codex process:
/tmp/codex-browser-use/1289cba4-8ad7-416a-b89f-06eb31f0d727.sock
/tmp/codex-browser-use/a3f5b71d-8cf1-450e-aa76-b28768ab01ca.sock
/tmp/codex-browser-use/2a397e04-681f-4147-898d-d19b6fbc71f7.sock
Codex PID 75029 held all three sockets via lsof.
Interpretation: this does not look like missing socket files, a localhost permission issue, or proxy interference. The sockets are created and held by Codex, but after route/webview lifecycle churn the Browser Use runtime can no longer get a usable IAB backend and all discovered pipe probes time out. The repeated Received turn/started for unknown conversation entries seem related to the route ownership mismatch described in #21167.
Adding another macOS Desktop reproduction after a full Codex App restart. This still fails after restarting the app and retrying the official Browser Use bootstrap.
Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered. Discovery diagnostics: listedPipes=2, candidates=4, browsers=0, iabBrowsers=0, failures=["discovered/timeout","discovered/timeout","legacy-iab/timeout","legacy-chrome/timeout"], pipeListingError=none.
The sockets exist and are owned by the live Codex process:
/tmp/codex-browser-use/0963b858-8fe8-4a91-9e4f-583a8c3af41c.sock
/tmp/codex-browser-use/cbc7f30e-f255-41ba-b1a0-ab520207483b.sock
Codex PID 35680 holds both sockets via lsof.
Fresh Desktop log signature from the same post-restart run:
2026-05-06T04:20:15.307Z info [electron-message-handler] Features enabled enabledFeatures="enable_request_compression, collaboration_modes, personality, request_rule, image_generation, image_detail_original, workspace_dependencies, guardian_approval, workspace_owner_usage_nudge, apps, plugins, tool_search, tool_call_mcp_elicitation"
2026-05-06T04:20:15.844Z error [electron-message-handler] Request failed conversationId=none durationMs=513 error={"code":-32600,"message":"unsupported feature enablement `workspace_dependencies`: currently supported features are apps, memories, plugins, remote_control, tool_search, tool_suggest, tool_call_mcp_elicitation"} method=experimentalFeature/enablement/set
2026-05-06T04:20:15.845Z error [electron-message-handler] Failed to sync experimental feature enablement error={"code":-32600,"message":"unsupported feature enablement `workspace_dependencies`: currently supported features are apps, memories, plugins, remote_control, tool_search, tool_suggest, tool_call_mcp_elicitation"} hostId=local
2026-05-06T04:20:15.845Z info [browser-use-native-pipe-server] browser-use native pipe listening pipePath=/tmp/codex-browser-use/cbc7f30e-f255-41ba-b1a0-ab520207483b.sock
2026-05-06T04:20:21.596Z info [browser-use-native-pipe-server] browser-use native pipe listening pipePath=/tmp/codex-browser-use/0963b858-8fe8-4a91-9e4f-583a8c3af41c.sock
2026-05-06T04:20:21.815Z info [BrowserUseThreadConfig] browser_use_runtime_paths_selected codexCliPath=/Applications/Codex.app/Contents/Resources/codex nodePath=/Applications/Codex.app/Contents/Resources/node nodeReplPath=/Applications/Codex.app/Contents/Resources/node_repl nodeVersionValue=v24.14.0 platform=darwin
This looks like the IAB/native pipe is present, but the handshake/getInfo path times out. The workspace_dependencies feature sync failure is reproducible immediately after app startup and may be related or at least a useful correlated signature.
Adding a related Chrome backend reproduction from macOS Desktop. This is not the IAB backend, but it appears to hit the same Browser Use native-pipe/bootstrap class of failure: setupAtlasRuntime() can hang before any browser command is issued.
A full cleanup was performed: terminated Google Chrome, ChatGPT Atlas, and stale extension-host processes; removed every file under /tmp/codex-browser-use; then started only Google Chrome via the plugin helper.
After clean Chrome startup, /tmp/codex-browser-use contained exactly one fresh Chrome extension-host socket:
/tmp/codex-browser-use/91ba3440-a5fc-4b78-a87b-d90d589345a1.sock
extension-host PID 21221 held that socket
Even in that clean state, setupAtlasRuntime({ globals }) still timed out after 45s.
As a control, removing the only visible socket so that /tmp/codex-browser-use was empty still caused setupAtlasRuntime() to hang for 15s instead of quickly returning a “no backend discovered” diagnostic. That suggests at least one pre-discovery initialization path can hang independently of the socket scan.
Relevant Desktop log signatures from the same session:
setupAtlasRuntime() should not be able to hang indefinitely during ambient telemetry/account/feature initialization or native-pipe discovery.
Discovery should use bounded per-candidate timeouts and return structured diagnostics for each backend candidate.
The Chrome extension backend path should surface whether it is stuck before pipe discovery, during native-pipe connect, or during getInfo.
Ambient network failures / Cloudflare challenges against OpenAI endpoints should not block local Chrome backend discovery or opening a normal page.
Suggested fixes/regression coverage:
Add a bounded timeout around the pre-discovery initialization path inside setupAtlasRuntime().
Avoid awaiting nonessential telemetry/account/Statsig calls before local backend discovery, or make them fire-and-forget with failure isolation.
Add per-socket connect and getInfo timeouts for both IAB and extension backends.
Include candidate path, backend type if known, phase (pre-discovery, pipe-list, pipe-connect, getInfo), and raw error/timeout in diagnostics.
Regression: fresh Chrome extension backend with a single native-host socket must either connect or fail with a bounded diagnostic, never hang the Node REPL call.
Adding a fresh macOS Desktop reproduction from a newer build. This looks related to the Browser Use reliability class here, but the failure is now one layer earlier than IAB route discovery: the sandboxed node_repl kernel cannot start at all.
Browser/Node bridge processes were being reused across chats.
Current workspace was: <redacted-user-home>/Documents/Codex/2026-05-16/debug-and-resolve-why-browser-use
Active stale bridge/kernel processes were running with: <redacted-user-home>/Documents/Codex/2026-05-15/investigate-cloudflare-preview-boot-failure-for
Killing those stale processes was not durable before app restart: rediscovery could respawn against the old workspace.
After fully quitting and reopening Codex:
Browser Use Healthcheck
Expected workspace: <redacted-user-home>/Documents/Codex/2026-05-16/debug-and-resolve-why-browser-use
node_repl server processes: 2
No active Node REPL bridge/kernel processes found.
So the cross-chat stale bridge was cleared.
However, a clean node_repl probe in the reopened app still fails before any Browser-specific bootstrap:
WARNING: proceeding, even though we could not update PATH: Operation not permitted (os error 1)
Error: default_permissions requires a `[permissions]` table
The installed user config uses legacy sandbox settings, not the new permissions table:
There appear to be two distinct Browser Use failure modes:
Earlier: cross-chat/stale bridge workspace reuse.
Current after restart: fresh node_repl kernel cannot start under the default sandboxed path.
The fresh failure is below Browser client setup. Browser plugin code never gets a chance to run.
node_repl --disable-sandbox works, so the issue is specifically sandboxed kernel startup, not the bundled Node binary or JS runtime itself.
The codex sandbox macos --permissions-profile node_repl repro suggests the runtime may be asking for a node_repl permissions profile that is not defined in legacy sandbox_mode configs, instead of resolving to a built-in or derived workspace profile.
Expected:
Browser's node_repl dependency should start under the normal sandbox on macOS when the app uses a valid legacy config (sandbox_mode = "workspace-write"), or it should internally map the node_repl runtime to a built-in permissions profile.
The runtime should not require users to globally weaken sandboxing with node_repl --disable-sandbox.
If a custom node_repl profile is required, the app should generate it, document it, or report a clear actionable error instead of surfacing only Operation not permitted.
Recommended fix direction:
In the node_repl launcher/runtime manager, avoid passing --permissions-profile node_repl unless that profile exists.
Prefer a built-in profile such as :workspace for the kernel, or derive the profile from the active thread permissions.
Add a regression test for a macOS/Desktop-style config that has sandbox_mode = "workspace-write" and no [permissions] table, asserting that node_repl can launch a kernel without --disable-sandbox.
Keep the prior IAB route/session ownership fixes as a separate layer; this report is specifically about failing before IAB discovery.
Adding a regression signature from the current macOS x64 build. The newer Desktop code now uses session routes rather than the older exact turn-route model, but the draft-to-persisted conversation transition still appears to break IAB ownership.
In-app browser remains visible and manually usable
Screen Recording and Accessibility are granted
Native accessibility-based Computer Use can inspect, click, and scroll the same visible IAB page successfully
This is therefore not a general Intel, TCC permission, page-rendering, or website failure.
Sanitized lifecycle signature
The persisted conversation route is initially created and captured:
Conversation created conversationId=<persisted-id>
IAB_LIFECYCLE captured session route conversationId=<persisted-id>
Immediately afterward, the sidebar owner sync still reports its draft id even though the owner route already points at the persisted thread:
IAB_LIFECYCLE received browser sidebar owner sync
conversationId=client-new-thread:<temporary-id>
ownerRoutePath=/local/<persisted-id>
Desktop then reassigns the route in the opposite direction:
IAB_LIFECYCLE reassigned browser use route
sourceConversationId=<persisted-id>
targetConversationId=client-new-thread:<temporary-id>
The first getInfo can complete and create a host keyed by the temporary id, but immediately repeated requests for the persisted session fail:
IAB_LIFECYCLE created browser use host
conversationId=client-new-thread:<temporary-id>
IAB_LIFECYCLE iab backend info request completed
conversationId=<persisted-id>
IAB_LIFECYCLE iab backend info request failed
conversationId=<persisted-id>
errorMessage="No ChatGPT browser route is available for browser session <persisted-id>"
DOM snapshots, Runtime evaluation, screenshots through the IAB backend, and cursor actions then hang or reset the Node runtime even though tab metadata can still be read. The stack points into the packaged Desktop main process:
I’m seeing what appears to be the same general IAB session-binding problem, but I found a deterministic reproduction involving Codex collaboration subagents that I haven’t seen documented here yet. I hope these details help.
Environment
Codex Desktop: 26.707.31428 (build 5059)
Browser bundled plugin: 26.707.31428
macOS 26.2 (25C56)
Apple Silicon / arm64
Built-in Browser enabled
Browser approval: Always allow
Full CDP access enabled
Reproduction
Start a normal root Codex thread.
Initialize the bundled browser client through mcp__node_repl__js:
This succeeds and returns the Codex In-app Browser (type: "iab").
Spawn any collaboration subagent and run the exact same browser bootstrap and discovery calls.
In the subagent:
awaitagent.browsers.list();
consistently returns:
[]
and:
awaitagent.browsers.get("iab");
fails with:
Browser is not available: iab
I reproduced this with multiple fresh child threads, including a child created from named .codex/agents profile and a separate unprofiled child. I also tested navigation to a public URL (https://www.google.com) to rule out localhost routing.
Fully restarting Codex Desktop does not change the result.
Additional diagnostic finding
Both the root thread and subagent receive valid x-codex-turn-metadata, including session_id, thread_id, turn_id, and thread_source.
However, the current bundled browser-client.mjs derives the browser session binding differently for subagents:
root thread -> use session_id
subagent thread -> use the child thread_id
IAB candidates are then filtered by comparing that derived value with the backend’s metadata.codexSessionId.
In my session:
IAB backend codexSessionId = root session_id
root lookup identifier = root session_id -> match
subagent lookup identifier = subagent thread_id -> no match
This appears to deterministically produce the equivalent of a no-session-match result for every collaboration subagent, even though the same IAB backend is healthy and immediately available to the parent thread.
Expected behavior
Either:
collaboration subagents should be allowed to attach to the parent thread’s IAB backend; or
Codex Desktop should register a dedicated IAB backend/session binding for each child thread.
At the moment, Browser Use works in the root thread but appears structurally unavailable to all collaboration subagents.
This looks related to the turn/session ownership problems already discussed in this issue, but the deterministic subagent thread_id versus IAB root session_id mismatch may be a useful additional regression case.
Bootstrap fails before the selected tab can be acquired. Repeating the attempt while the same in-app tab remains visibly open produces the same result.
Exact failure
Failed to connect to browser-use backend "iab". No Codex IAB backends were discovered.
Discovery diagnostics: listedPipes=15, candidates=17, browsers=0, iabBrowsers=0,
failures=["discovered/connect/Error","discovered/connect/Error","discovered/connect/Error",
"discovered/connect/Error","discovered/connect/Error","discovered/connect/Error",
"discovered/connect/Error","discovered/connect/Error"], pipeListingError=none.
Expected
Browser Use should bind to the visible in-app browser for the active root thread and expose agent.browser.tabs.selected().
Actual / impact
The NotebookLM page remains visible and manually usable, but Browser Use sees zero browser/IAB backends. This blocked an authorized workflow to add study material and generate a NotebookLM Audio Overview.
This does not appear website-specific because the failure occurs during IAB bootstrap, before any page interaction.
Correction: this Windows-specific reproduction was mistakenly posted under the macOS-focused tracker. The complete report has been moved to #33332: #33332
Keeping this short redirect so existing references remain valid. Sorry for the noise.
Additional current macOS evidence for the Browser/IAB route-binding and navigation-timeout class. This is separate from the launchd self-restart problem tracked in #32321.
Environment:
ChatGPT/Codex App 26.707.72221 build 5307
bundled codex-cli 0.144.2
bundled Browser plugin 26.707.72221
macOS 26.5.1 build 25F80, arm64
Observed split behavior:
Creating a blank tab, lightweight evaluation, and screenshot completed in roughly 44-73 ms after a clean restart.
goto() then hit the fixed outer timeout, including against a tiny test endpoint and a public control page.
Independent HTTP probes to the application endpoint averaged about 0.135 s, max 0.447 s, with no 5xx responses. This rules out the destination server as the source of the 30-60 second delay.
Desktop logs contained:
No ChatGPT browser route is available
Cannot find context with specified id
route window is not live
repeated unknown conversation events
During a multi-agent investigation, 682 unknown conversation events were observed in a ten-minute log window. Browser work issued from collaboration subagent conversations was markedly less reliable than root-thread-only browser work.
There was also stale ownership on the external Chrome backend: a kernel timeout could terminate the browser-client watcher before turnEnded/finalize released the tab lease. The extension persisted TAB_LEASES in session storage without an observed TTL/owner-liveness cleanup path. Restarting/reloading the Chrome extension cleared that lease, but it did not fix the IAB goto() timeout.
The practical mitigation was:
keep all navigation, claim, screenshot, and finalize operations in the root thread;
do not let collaboration subagents control Browser/IAB;
split navigation, lightweight state read, DOM read, and screenshot into separate calls;
stop after the first route-missing error instead of repeatedly retrying the same navigation.
Suggested areas to inspect:
Route ownership when a persisted root conversation and client-new-thread:*/subagent conversations share the same Browser pane.
Fail-fast behavior when no live route is available; a route error should not be allowed to consume the full navigation watchdog.
Cleanup of Browser/Chrome tab leases when a Node REPL kernel is reset or killed.
A supported rebind/recover operation that does not require restarting the entire desktop app.
Related active-pane/window binding report: #20743.
agent.browsers.list() => []
agent.browsers.get("iab") => Browser is not available: iab
The current ChatGPT process creates and actively holds a fresh Unix socket under /private/tmp/codex-browser-use/, but the browser runtime does not discover the backend. The Node runtime receives current session_id, thread_id, and turn_id metadata.
Verified:
browser_use, browser_use_external, and in_app_browser are enabled
Browser-client version matches the desktop app version
Browser-client SHA-256 matches the trusted hash in config.toml
codesign --verify --deep --strict succeeds
Gatekeeper reports accepted, source Notarized Developer ID
No stale openai-internal-testing or browser-use/0.1.0-alpha1 plugin exists
Recovery attempts:
Reinstalled the desktop app
Removed old ~/.codex/browser/sessions state
Removed stale /private/tmp/codex-browser-use sockets
Fully restarted the desktop app
Started a fresh thread and retried discovery
After restarting, the app created and held a fresh IAB socket, but no new browser session file was created and discovery still returned an empty list.
The recurring /private/var/db/DetachedSignatures system-log entry does not appear causal: signature, notarization, and Gatekeeper validation all succeed. No IAB crash, signature rejection, or sandbox denial is logged during the fresh startup.
This also resembles the empty-backend registration behavior reported in #26470.
Follow-up with a more specific macOS A/B result after updating to Desktop 26.715.21316:
The current IAB socket exists and is actively held by the ChatGPT process. A direct Unix-socket connection from the Node REPL kernel fails before any getInfo or session/turn ownership check is reached:
sandbox = seatbelt
thread_source = user
session_id == thread_id
This rules out the collaboration-subagent session_id versus child thread_id mismatch for this reproduction: it is a root/user thread and both identifiers are already identical. The connection is denied before the backend can return metadata.codexSessionId.
Additional observations:
agent.browsers.list() initially returned [].
Later, the Chrome extension backend registered and became visible while the runtime still reported sandbox: seatbelt.
The IAB backend remained unavailable.
This shows the general browser runtime and Chrome discovery can operate while the local IAB Unix-socket path remains inaccessible.
The bundled node_repl --help exposes --disable-sandbox, but Desktop rewrites [mcp_servers.node_repl].args to [] at startup, and the already managed Node REPL process continued to report sandbox: seatbelt. Therefore this was not usable as a controlled local workaround and was reverted.
Likely fix area: permit the managed Node REPL Seatbelt profile to connect to the app-owned /private/tmp/codex-browser-use/*.sock endpoints, or locate the IAB socket in an IPC path already granted to that profile.
A task starts with a temporary client-new-thread:* identifier.
The task is persisted and routed under formal thread ID 01a06205-93c5-7ba0-ac8c-6613f910ab90.
The in-app Browser sidebar remains owned by the temporary identifier.
A user tab mention carries the temporary browser owner ID, while Browser discovery exposes metadata.codexSessionId as the formal thread ID.
Because those IDs differ, strict tab-mention resolution must fail closed even though the tab itself exists and its provider tab ID, title, and URL all match.
Closing and reopening the Browser tab changes the provider tab ID but does not migrate the owner ID; the mismatch remains.
New provider tab ID: 79c51167-6bec-4ab3-9640-2101fe9ec8f5
Sanitized Desktop log excerpts (no chat content or page URL included):
2026-09-02T12:17:36.043Z info [electron-message-handler] IAB_LIFECYCLE received browser sidebar owner sync browserTabId=null conversationId=client-new-thread:7815ff85-3c9a-4397-ae01-9eb4438ac134 ... ownerRoutePath=/local/01a06205-93c5-7ba0-ac8c-6613f910ab90 ...
2026-09-02T12:17:36.043Z info [browser-session-registry] browser_use_iab_backend_startup_started ... release=26.831.20005 sessionId=01a06205-93c5-7ba0-ac8c-6613f910ab90
2026-09-02T12:17:36.043Z info [browser-session-registry] IAB_LIFECYCLE captured session route conversationId=01a06205-93c5-7ba0-ac8c-6613f910ab90 ...
2026-09-02T12:17:36.182Z info [electron-message-handler] IAB_LIFECYCLE received browser sidebar owner sync browserTabId=9861ae8d-a73c-428a-a1e4-eb6edd9fd384 conversationId=client-new-thread:7815ff85-3c9a-4397-ae01-9eb4438ac134 ... ownerRoutePath=/local/01a06205-93c5-7ba0-ac8c-6613f910ab90 ...
2026-09-02T12:21:23.483Z info [electron-message-handler] IAB_LIFECYCLE received browser sidebar owner sync browserTabId=79c51167-6bec-4ab3-9640-2101fe9ec8f5 conversationId=client-new-thread:7815ff85-3c9a-4397-ae01-9eb4438ac134 ... ownerRoutePath=/local/01a06205-93c5-7ba0-ac8c-6613f910ab90 ...
Expected behavior:
When a new task receives its formal thread ID, the Browser sidebar owner and any generated tab mention should migrate atomically to that formal ID (or the runtime should maintain an explicit alias). After migration, the mentioned tab should resolve to the current IAB backend without requiring the user to reopen the task or tab.
This persists after restarting/updating the app and reopening the tab. Full logs were not attached because they contain unrelated local/session metadata; additional sanitized excerpts can be provided if needed.
appIssues related to the Codex desktop appbrowserbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)skillsIssues related to skillstool-callsIssues related to tool calling
Activity
github-actions commentedon May 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
talhasarit commentedon May 2, 2026
I can reproduce a related macOS failure, with an extra subagent-specific angle.
Environment:
browser_use,in_app_browser,plugins,multi_agent, andtool_searchare enabledRepro:
qa_reviewersubagent.http://127.0.0.1:51234/README.md.Expected:
The subagent should be able to attach to the Codex in-app browser backend and inspect/navigate the tab.
Actual:
Bootstrap fails before tab creation:
Additional diagnostics:
qa_reviewer, default subagent, and forked-context subagent all failed with the same IAB discovery error.x-codex-turn-metadatasession/turn IDs.nodeRepl.requestMetais getter-only / frozen, and assignment fails with:This looks like the IAB bridge/session ownership is not available consistently to the Node REPL runtime, and subagent sessions appear especially unable to inherit or attach to the parent thread's in-app browser backend.
tho-stack commentedon May 4, 2026
Adding a more specific repro/signature from another macOS Desktop session. This looks like an IAB route/turn ownership mismatch rather than a missing socket or localhost permission issue.
Environment:
26.429.30905, build2345codex-cli 0.128.0-alpha.1openai-bundled/browser-use/0.1.0-alpha1/tmp/codex-browser-use/*.socksockets exist and are owned by the live Codex app processObserved behavior:
Failure from Browser Use bootstrap in broken threads:
One retry also surfaced the raw ownership error:
Key Desktop app log signature from the thread that worked first and then broke:
Later in the same app process a fresh turn in another thread succeeds because the captured Browser Use route and the Node REPL turn metadata agree:
There is also a second failure mode after the browser pane/guest is torn down:
What I think is happening:
The packaged Desktop app has a strict per-turn IAB ownership check. In the installed app.asar, requireBrowserUseSession rejects if canServeRoute returns false:
And the route lookup is keyed by conversationId + turnId:
So if Desktop captures an IAB route for turn 019df1a1-... but the incoming/synthesized turn or Node REPL Browser Use metadata uses ee9efbe9-..., getInfo throws before returning IAB metadata. The Browser Use client then reports browserCount=0 / iabBrowsers=0 with discovered/get-info/string, even though the socket exists.
tho-stack commentedon May 4, 2026
Update: local Desktop hotfix tested
Adding a follow-up to my earlier comment: I locally hotpatched the installed Codex Desktop app to test the suspected Browser Use / in-app-browser route mismatch.
What was patched
The patch was applied to the installed Electron bundle:
Inside that ASAR, the changed code lives in the bundled main process JS entry:
The relevant guard is the Browser Use route ownership check,
canServeTurnForBrowserRoute.Before, the check required an exact
{conversationId, turnId}route entry:The local hotfix changed it to tolerate a missing exact per-turn route if there is still an active route for the same
{conversationId, windowId}:Why this matches the observed failure
The failing sessions looked like a turn-id mismatch rather than global Browser Use corruption:
turnId, but later incoming/synthesized Browser Use metadata used anotherturnId.Other IAB routing logs show the backend host keyed by:
So the strict exact-turn check seems narrower than the rest of the Browser Use host routing model.
Safety of the tested change
The hotfix does not remove the conversation/window ownership boundary:
hasActiveTurnRouteForBrowserRoute(t).{conversationId, windowId}.Result after patching
After the hotpatch, both formerly broken conversations started resolving Browser Use routes instead of failing discovery.
For conversation
019df185-2079-7370-9386-6aaf75c2b739:For conversation
019df185-d1d3-7b32-8035-369a6b37fb5f:Post-hotpatch checks in the fresh Desktop logs:
Browser turn does not belong to this IAB pipediscovered/get-info/stringbrowserCount=0/iabBrowsers=0No active Codex browser pane availableLocal Electron packaging note
Because this was a direct local patch to
app.asar, launching the modified app required updating Electron/macOS integrity metadata as well. I'll leave those details out of here.One of these should fix the underlying issue cleanly:
canServeTurnForBrowserRoutetolerate a missing exact{conversationId, turnId}route if there is an active Browser Use route for the same{conversationId, windowId}.turnRoutesso the Browser Use request metadata and route registry use the sameturnId.discovered/get-info/string.tho-stack commentedon May 4, 2026
And that wasn't enough, the moment more than 1 session uses browser use or makes a turn it errors.
What i did so far - it seems to work for now. running browser_use in 2 sessions in parallel.
Follow-up: local IAB hotfix code changes
I narrowed this down to two related Browser Use / IAB route problems:
(conversationId, turnId)route lookup, but some failing turns captured the route under one turn id and then Browser Use requested the same IAB session under another turn id in the same conversation.I applied a local hotfix to:
The modified bundled files inside the ASAR are:
1. Main process: resolve Browser Use route with same-conversation fallback
File:
Before,
resolveBrowserRoute(...)threw immediately when the exact turn route was missing:After, it first tries the exact route, then falls back to any live route for the same conversation:
2. Main process: allow same-conversation active route when exact turn route is missing
File:
Before:
After:
This keeps the fallback scoped to the same conversation instead of allowing cross-thread ownership.
3. Renderer: capture Browser Use route after
turn/steerFile:
Before:
After:
Verification after patch
Finally, after restarting the app, Browser Use attached successfully through the
iabbackend and basic browser API calls succeeded:setupAtlasRuntime({ backend: "iab" }): success tab.url(): success tab.title(): success tab.playwright.domSnapshot(): success tab.dev.logs(): successThere are also other unrelated issues with the IAB not starting up fast enough etc. - but once running this seems to work, so far.
johnsilvavlogs commentedon May 4, 2026
Adding controlled evidence from another macOS Codex Desktop session. This looks like the same IAB route/turn ownership class of failure, with an additional lifecycle symptom: after the IAB route is lost, the in-app browser can remain visually open while Browser Use reports no usable IAB backend or hangs on tab commands.
Environment:
26.429.30905, build234526.3build25D125openai-bundled/browser-use/0.1.0-alpha1iabOriginal failure signature from a private session log, sanitized to avoid workflow/account details:
Later retries in the same broad app state repeated
browsers=0,iabBrowsers=0.Controlled localhost reproduction matrix, avoiding external accounts:
attach_initial_iab: passed. Browser Use attached to a localhost page and could inspect/interact.reattach_after_js_reset: passed. Same IAB tab stayed commandable.js_reset: passed.tabs.new()returnedNo active Codex browser pane available.tabs.list()andtabs.selected()hung until locally bounded by timeouts, andtabs.new()still returnedNo active Codex browser pane available.No Codex IAB backends were discovered, withlistedPipes=18,candidates=20,browsers=0,iabBrowsers=0.Local code observations from the installed app/client:
info.type === "iab"andmetadata.codexSessionIdmatches the currentsession_id.session_idandturn_id.requireBrowserUseSession(), which throwsBrowser turn does not belong to this IAB pipewhen the current turn is rejected by the app-side route check.tabs.list()/tabs.selected()can hang after the backend disappears.discovered/get-info/string, which hides whether each candidate was stale, the wrong session, the wrong type, missing metadata, or rejecting the current turn.Current root-cause hypothesis:
Recommended fixes/regression tests:
Browser turn does not belong to this IAB pipeand afterNo Codex IAB backends were discovered.getInforesult/error, returned type, session match/mismatch, and rejection reason.attach_initial_iab,reattach_after_js_reset,reattach_after_transport_loss,close_last_tab_recovery,turn_mismatch_rebind, anddiscovery_diagnostics.Related fallback issue after this failure class: #21068
a252937166 commentedon May 5, 2026
Adding another macOS Desktop reproduction with a slightly different lifecycle signature: a full local cleanup/restart temporarily restores Browser Use, but the IAB route registry breaks again within a few minutes.
Environment:
Cleanup/restart performed before this repro:
After the restart, the first Browser Use attempt could work briefly. A later attempt against the same local URL failed before navigation with:
The local target was not the problem:
The IAB sockets also existed and were owned by the live Codex process:
Relevant desktop log sequence from the same run:
Interpretation: this does not look like missing socket files, a localhost permission issue, or proxy interference. The sockets are created and held by Codex, but after route/webview lifecycle churn the Browser Use runtime can no longer get a usable IAB backend and all discovered pipe probes time out. The repeated
Received turn/started for unknown conversationentries seem related to the route ownership mismatch described in #21167.alario-tang commentedon May 6, 2026
Adding another macOS Desktop reproduction after a full Codex App restart. This still fails after restarting the app and retrying the official Browser Use bootstrap.
Environment:
Repro in the Node REPL tool:
Actual result:
The sockets exist and are owned by the live Codex process:
Fresh Desktop log signature from the same post-restart run:
This looks like the IAB/native pipe is present, but the handshake/getInfo path times out. The
workspace_dependenciesfeature sync failure is reproducible immediately after app startup and may be related or at least a useful correlated signature.dingshanliang commentedon May 8, 2026
Adding a related Chrome backend reproduction from macOS Desktop. This is not the IAB backend, but it appears to hit the same Browser Use native-pipe/bootstrap class of failure:
setupAtlasRuntime()can hang before any browser command is issued.Environment:
Initial user request was simply to open GitHub through the Chrome plugin. GitHub itself was reachable from the machine:
Chrome/extension/native host checks all passed:
The normal Chrome plugin bootstrap repeatedly hung until the Node REPL tool call timeout:
Actual result:
Additional controlled checks:
nodeRepl.write('node_repl_ok')succeeds, so the Node REPL transport itself is alive.browser-client.mjsalone succeeds quickly.setupAtlasRuntime().extension-hostprocesses; removed every file under/tmp/codex-browser-use; then started only Google Chrome via the plugin helper./tmp/codex-browser-usecontained exactly one fresh Chrome extension-host socket:Even in that clean state,
setupAtlasRuntime({ globals })still timed out after 45s.As a control, removing the only visible socket so that
/tmp/codex-browser-usewas empty still causedsetupAtlasRuntime()to hang for 15s instead of quickly returning a “no backend discovered” diagnostic. That suggests at least one pre-discovery initialization path can hang independently of the socket scan.Relevant Desktop log signatures from the same session:
Network checks from shell showed:
Hypothesis:
setupAtlasRuntime()should not be able to hang indefinitely during ambient telemetry/account/feature initialization or native-pipe discovery.getInfo.Suggested fixes/regression coverage:
setupAtlasRuntime().connectandgetInfotimeouts for both IAB and extension backends.pre-discovery,pipe-list,pipe-connect,getInfo), and raw error/timeout in diagnostics.elitan commentedon May 8, 2026
this was fixed for me btw by updating codex
willgpate commentedon May 16, 2026
Adding a fresh macOS Desktop reproduction from a newer build. This looks related to the Browser Use reliability class here, but the failure is now one layer earlier than IAB route discovery: the sandboxed
node_replkernel cannot start at all.Environment:
Observed original failure:
<redacted-user-home>/Documents/Codex/2026-05-16/debug-and-resolve-why-browser-use<redacted-user-home>/Documents/Codex/2026-05-15/investigate-cloudflare-preview-boot-failure-forAfter fully quitting and reopening Codex:
So the cross-chat stale bridge was cleared.
However, a clean
node_replprobe in the reopened app still fails before any Browser-specific bootstrap:Actual:
Controls:
/Applications/Codex.app/Contents/Resources/node -e "console.log(process.version); console.log(process.cwd())"works:
The standalone
node_replserver also works if launched with the built-in recovery flag:Using a small JSON-RPC harness, that mode can initialize, list tools, and run the same JS successfully:
Additional local signal from the app-bundled sandbox command:
returns:
The installed user config uses legacy sandbox settings, not the new permissions table:
Interpretation:
node_replkernel cannot start under the default sandboxed path.node_repl --disable-sandboxworks, so the issue is specifically sandboxed kernel startup, not the bundled Node binary or JS runtime itself.codex sandbox macos --permissions-profile node_replrepro suggests the runtime may be asking for anode_replpermissions profile that is not defined in legacysandbox_modeconfigs, instead of resolving to a built-in or derived workspace profile.Expected:
node_repldependency should start under the normal sandbox on macOS when the app uses a valid legacy config (sandbox_mode = "workspace-write"), or it should internally map thenode_replruntime to a built-in permissions profile.node_repl --disable-sandbox.node_replprofile is required, the app should generate it, document it, or report a clear actionable error instead of surfacing onlyOperation not permitted.Recommended fix direction:
node_repllauncher/runtime manager, avoid passing--permissions-profile node_replunless that profile exists.:workspacefor the kernel, or derive the profile from the active thread permissions.sandbox_mode = "workspace-write"and no[permissions]table, asserting thatnode_replcan launch a kernel without--disable-sandbox.lgch3136 commentedon Jul 10, 2026
Adding a regression signature from the current macOS x64 build. The newer Desktop code now uses session routes rather than the older exact turn-route model, but the draft-to-persisted conversation transition still appears to break IAB ownership.
Environment
26.707.31428(build5059)openai-bundled/browser/26.707.31428x86_64This is therefore not a general Intel, TCC permission, page-rendering, or website failure.
Sanitized lifecycle signature
The persisted conversation route is initially created and captured:
Immediately afterward, the sidebar owner sync still reports its draft id even though the owner route already points at the persisted thread:
Desktop then reassigns the route in the opposite direction:
The first
getInfocan complete and create a host keyed by the temporary id, but immediately repeated requests for the persisted session fail:DOM snapshots, Runtime evaluation, screenshots through the IAB backend, and cursor actions then hang or reset the Node runtime even though tab metadata can still be read. The stack points into the packaged Desktop main process:
Suggested fix/regression coverage
client-new-thread:*butownerRoutePathresolves to a persisted/local/<id>, canonicalize ownership to the persisted id.getInfocalls → DOM snapshot → CDP evaluation → cursor/click.This looks like the same general ownership/lifecycle failure class reported earlier in this issue, now reproduced after the session-route refactor.
maltsev-gorskij commentedon Jul 10, 2026
I’m seeing what appears to be the same general IAB session-binding problem, but I found a deterministic reproduction involving Codex collaboration subagents that I haven’t seen documented here yet. I hope these details help.
Environment
26.707.31428(build5059)26.707.3142826.2(25C56)arm64Reproduction
Start a normal root Codex thread.
Initialize the bundled browser client through
mcp__node_repl__js:In the root thread:
This succeeds and returns the
Codex In-app Browser(type: "iab").Spawn any collaboration subagent and run the exact same browser bootstrap and discovery calls.
In the subagent:
consistently returns:
and:
fails with:
I reproduced this with multiple fresh child threads, including a child created from named .codex/agents profile and a separate unprofiled child. I also tested navigation to a public URL (
https://www.google.com) to rule out localhost routing.Fully restarting Codex Desktop does not change the result.
Additional diagnostic finding
Both the root thread and subagent receive valid
x-codex-turn-metadata, includingsession_id,thread_id,turn_id, andthread_source.However, the current bundled
browser-client.mjsderives the browser session binding differently for subagents:IAB candidates are then filtered by comparing that derived value with the backend’s
metadata.codexSessionId.In my session:
This appears to deterministically produce the equivalent of a
no-session-matchresult for every collaboration subagent, even though the same IAB backend is healthy and immediately available to the parent thread.Expected behavior
Either:
At the moment, Browser Use works in the root thread but appears structurally unavailable to all collaboration subagents.
This looks related to the turn/session ownership problems already discussed in this issue, but the deterministic
subagent thread_idversusIAB root session_idmismatch may be a useful additional regression case.Hamzablm commentedon Jul 12, 2026
I can reproduce this on a newer macOS Desktop build, even while the in-app browser is visibly open and manually usable.
Environment
26.707.51957(build5175)codex-cli 0.144.0-alpha.4openai-bundled/browser-use/0.1.0-alpha126.5.2(build25F84)arm64Reproduction
@Browserto operate the existing tab.mcp__node_repl__jsis available.scripts/browser-client.mjsand run:Exact failure
Expected
Browser Use should bind to the visible in-app browser for the active root thread and expose
agent.browser.tabs.selected().Actual / impact
The NotebookLM page remains visible and manually usable, but Browser Use sees zero browser/IAB backends. This blocked an authorized workflow to add study material and generate a NotebookLM Audio Overview.
This does not appear website-specific because the failure occurs during IAB bootstrap, before any page interaction.
S0L0RIEN commentedon Jul 15, 2026
Correction: this Windows-specific reproduction was mistakenly posted under the macOS-focused tracker. The complete report has been moved to #33332: #33332
Keeping this short redirect so existing references remain valid. Sorry for the noise.
jeremy9682 commentedon Jul 15, 2026
Additional current macOS evidence for the Browser/IAB route-binding and navigation-timeout class. This is separate from the launchd self-restart problem tracked in #32321.
Environment:
26.707.72221build53070.144.226.707.7222126.5.1build25F80, arm64Observed split behavior:
goto()then hit the fixed outer timeout, including against a tiny test endpoint and a public control page.No ChatGPT browser route is availableCannot find context with specified idroute window is not liveunknown conversationeventsunknown conversationevents were observed in a ten-minute log window. Browser work issued from collaboration subagent conversations was markedly less reliable than root-thread-only browser work.There was also stale ownership on the external Chrome backend: a kernel timeout could terminate the browser-client watcher before
turnEnded/finalize released the tab lease. The extension persistedTAB_LEASESin session storage without an observed TTL/owner-liveness cleanup path. Restarting/reloading the Chrome extension cleared that lease, but it did not fix the IABgoto()timeout.The practical mitigation was:
Suggested areas to inspect:
client-new-thread:*/subagent conversations share the same Browser pane.Related active-pane/window binding report: #20743.
gallien commentedon Jul 17, 2026
Additional macOS reproduction with a currently active IAB socket but empty backend discovery.
Environment:
26.707.919485440com.openai.codex0.144.526.5.2 (25F84)arm64openai-bundled/browser/26.707.91948Observed result:
The current ChatGPT process creates and actively holds a fresh Unix socket under
/private/tmp/codex-browser-use/, but the browser runtime does not discover the backend. The Node runtime receives currentsession_id,thread_id, andturn_idmetadata.Verified:
browser_use,browser_use_external, andin_app_browserare enabledconfig.tomlcodesign --verify --deep --strictsucceedsaccepted, sourceNotarized Developer IDopenai-internal-testingorbrowser-use/0.1.0-alpha1plugin existsRecovery attempts:
~/.codex/browser/sessionsstate/private/tmp/codex-browser-usesocketsAfter restarting, the app created and held a fresh IAB socket, but no new browser session file was created and discovery still returned an empty list.
The recurring
/private/var/db/DetachedSignaturessystem-log entry does not appear causal: signature, notarization, and Gatekeeper validation all succeed. No IAB crash, signature rejection, or sandbox denial is logged during the fresh startup.This also resembles the empty-backend registration behavior reported in #26470.
gallien commentedon Jul 17, 2026
Follow-up with a more specific macOS A/B result after updating to Desktop
26.715.21316:The current IAB socket exists and is actively held by the ChatGPT process. A direct Unix-socket connection from the Node REPL kernel fails before any
getInfoor session/turn ownership check is reached:Using the exact same app-bundled Node binary outside the Node REPL Seatbelt context connects successfully to the same live socket:
Current Node REPL turn metadata reports:
This rules out the collaboration-subagent
session_idversus childthread_idmismatch for this reproduction: it is a root/user thread and both identifiers are already identical. The connection is denied before the backend can returnmetadata.codexSessionId.Additional observations:
agent.browsers.list()initially returned[].sandbox: seatbelt.The bundled
node_repl --helpexposes--disable-sandbox, but Desktop rewrites[mcp_servers.node_repl].argsto[]at startup, and the already managed Node REPL process continued to reportsandbox: seatbelt. Therefore this was not usable as a controlled local workaround and was reverted.Likely fix area: permit the managed Node REPL Seatbelt profile to connect to the app-owned
/private/tmp/codex-browser-use/*.sockendpoints, or locate the IAB socket in an IPC path already granted to that profile.GongWenAI commentedon Sep 2, 2026
Additional current macOS evidence for the IAB route-binding issue, with a persistent
client-new-thread:*→ formal thread ID mismatch.Environment:
26.831.20005752426.831.2000526.5 (25F71), arm6401a06205-93c5-7ba0-ac8c-6613f910ab90client-new-thread:7815ff85-3c9a-4397-ae01-9eb4438ac134Observed behavior:
client-new-thread:*identifier.01a06205-93c5-7ba0-ac8c-6613f910ab90.metadata.codexSessionIdas the formal thread ID.The tab was reopened during reproduction:
9861ae8d-a73c-428a-a1e4-eb6edd9fd38479c51167-6bec-4ab3-9640-2101fe9ec8f5Sanitized Desktop log excerpts (no chat content or page URL included):
Expected behavior:
When a new task receives its formal thread ID, the Browser sidebar owner and any generated tab mention should migrate atomically to that formal ID (or the runtime should maintain an explicit alias). After migration, the mentioned tab should resolve to the current IAB backend without requiring the user to reopen the task or tab.
This persists after restarting/updating the app and reopening the tab. Full logs were not attached because they contain unrelated local/session metadata; additional sanitized excerpts can be provided if needed.