Skip to content

[Windows] In-app browser tab attaches to temporary chat and IAB discovery fails #59660

Open

Description

@ywy-ok

Summary

On Windows, the Codex in-app browser displays a public test page, but Browser Use cannot discover the IAB backend for the active chat. After closing the sidebar and tab, restarting the app, and opening a new test tab, the sidebar was again registered and its WebView attached using a temporary client-new-thread identifier while the visible owner route pointed to the existing chat.

Environment

  • Codex desktop: 26.1029.61003, build 24614, production channel
  • Windows package: OpenAI.Codex 26.1029.7803.0
  • Configured browser component: 26.1029.61003
  • Windows desktop, local Codex chat

Reproduction

  1. Open an existing local chat in Codex Desktop.
  2. Open the in-app browser and navigate to https://example.com/; confirm the page is visible.
  3. Ask @Browser to read the current tab's title and URL.

Actual result

  • Browser discovery lists only Codex MCP Apps (mcpapps), with no iab backend.
  • Selecting iab returns Browser is not available: iab.
  • The test page remains visible in the sidebar, but the agent cannot read it through the IAB tool.
  • Closing the sidebar and tab, restarting Codex, and opening the test page again did not restore access.

Sanitized diagnostic observations

After the restart and fresh test tab, on 2026-11-05 at approximately 21:32–21:34 Asia/Shanghai:

  • The sidebar thread was registered with a client-new-thread identifier while ownerRoutePath referred to the existing chat.
  • The test page's sidebar WebView was attached under that temporary identifier.
  • Browser backend getInfo requests for the current chat included failures reporting No ChatGPT browser route is available for browser session ….
  • A neighboring getInfo response reported a session ID matching the current chat, but the tool still did not list iab. The logs do not establish whether adjacent responses came from the same backend instance.

The sidebar ownership mismatch is an observed correlation, not a proven root cause. No route reassignment was established from the inspected logs. Raw logs, session IDs, user paths, account information, and private URLs are omitted.

Expected result

The visible test tab should be discoverable and readable through @Browser, or the app should provide a clear diagnostic and a supported recovery procedure.

Could maintainers identify the relevant discovery or session-ownership failure, and whether a supported fix or recovery is available that preserves chats and browser data?

Activity

  1. added
    bug
    app
    windows-os
    on Nov 5, 2026
  2. mushi827 commented on Nov 9, 2026

    @mushi827

    Title: [Windows 26.1103.4239.0] IAB control times out despite successful page loading; browser route maps to ⟦CURRENT_CHAT⟧

    Time reference: All log timestamps below are preserved exactly as recorded in UTC, the original time reference. Pacific Time (PT) is provided only as a secondary reference for the maintenance team's convenience. These events occurred on November 9, 2026, when Pacific Time was PST (UTC−8), rather than PDT.

    Summary

    The built-in ChatGPT Browser (IAB) can load webpages, but the agent cannot reliably discover, bind to, or read its tabs. Browser-control calls time out while desktop logs repeatedly report:

    No ChatGPT browser route is available for browser session <CURRENT_CHAT>
    

    The affected requests identify the current chat through conversationId, while the resulting pageKey and routeKey reference a temporary client-new-thread:<TEMP_ID> route.

    The problem reproduces in both existing and newly created chats, according to local testing. The detailed timestamped trace below is from an existing chat.

    Environment

    • OS: Windows desktop
    • Desktop package version: 26.1103.4239.0
    • Browser runtime: 26.1103.32239
    • Execution environment: local Codex chat
    • Configuration: [features] respect_system_proxy = true
    • Codex was restarted after enabling system-proxy support.
    • Native network diagnostic version: 0.167.0-alpha.3.2

    Network baseline

    Following the proxy configuration correction and application restart:

    • The local system proxy listener was reachable.
    • HTTPS requests through the proxy to public test endpoints succeeded with HTTP 200 and successful TLS verification.
    • Host-side codex doctor --network-only checks passed:
      • Provider HTTP endpoints were reachable.
      • Responses WebSocket connected with HTTP 101 Switching Protocols.
    • No corresponding ERR_* network errors were found in the inspected desktop log excerpts for the affected browser-control attempts.

    Earlier network failures observed inside the restricted execution sandbox are not treated as evidence of host-side connectivity failure.

    These checks establish that native networking works. They do not establish which proxy path Electron's IAB uses.

    Steps to reproduce

    These steps describe tests already performed; no additional testing was performed while preparing this report.

    1. Start the Windows desktop app and open a local Codex chat.
    2. Use the built-in browser to open https://example.com/.
    3. Attempt to discover the available browsers and tabs.
    4. Attempt to bind to the existing tab:
      await cua.getTab(
        { url: "https://example.com/" },
        { browser: "iab" }
      );
    5. Alternatively, attempt to create an IAB tab:
      await cua.createBrowserTab(
        "iab",
        "https://example.com/",
        { visible: true }
      );
    6. Observe the tool result and corresponding desktop logs.

    The same inability to control IAB was also reported in a newly created chat.

    Expected behavior

    The browser tab should bind to the requesting chat, and the browser-control tool should return the page state or a specific actionable error.

    For https://example.com/, the agent should be able to read the page title and “Example Domain” content.

    Actual behavior

    • Browser/tab discovery takes approximately 22 seconds.
    • Discovery can list the IAB backend, but subsequent operations still fail.
    • Binding to or reading an existing tab times out after approximately 30 seconds.
    • A tab-creation call reached the caller's 60-second execution timeout.
    • Desktop logs subsequently recorded tab creation and dom-ready for https://example.com/, but no usable page content was returned to the agent.
    • The browser itself can load pages, including Bing and Wikipedia.
    • Restarting Codex did not resolve the browser-control failure.

    The 30- and 60-second values are observed caller execution limits, not confirmed internal browser timeout settings.

    Sanitized timeline and route-mapping evidence

    All timestamps in the log excerpts are UTC and remain unchanged. The sequence shown spans November 9, 2026, 20:07:25.297–20:15:21.140 UTC, corresponding to November 9, 2026, 12:07:25.297–12:15:21.140 PT (PST, UTC−8).

    Placeholder meanings:

    • <CURRENT_CHAT>: the requesting chat/session identifier
    • <TEMP_ID>: the distinct temporary sidebar-chat identifier
    • <TAB_ID>: the browser tab identifier
    2026-11-09T20:07:25.297Z
    [browser-session-registry]
    browser_use_iab_backend_startup_ready
    backend=iab
    platform=win32
    release=26.1103.32239
    sessionId=<CURRENT_CHAT>
    

    The browser backend reported startup readiness for the requesting chat.

    2026-11-09T20:08:20.861Z
    [browser-use-iab-api]
    IAB_LIFECYCLE iab backend info request failed
    conversationId=<CURRENT_CHAT>
    request=getInfo
    errorMessage="No ChatGPT browser route is available for browser session <CURRENT_CHAT>"
    

    The same error recurred during the attempt, including at:

    2026-11-09T20:08:42.884Z
    

    A later tab-creation mapping associated the requesting chat with a temporary route:

    2026-11-09T20:09:00.884Z
    [browser-session-registry]
    IAB_LIFECYCLE created browser sidebar page state
    browserTabId=browser-use:<TAB_ID>
    conversationId=client-new-thread:<TEMP_ID>
    windowId=2
    
    2026-11-09T20:09:01.478Z
    [browser-use-iab-api]
    IAB_LIFECYCLE iab createTab mapped page to tab
    conversationId=<CURRENT_CHAT>
    browserTabId=browser-use:<TAB_ID>
    pageKey=2:client-new-thread:<TEMP_ID>:browser-use:<TAB_ID>
    routeKey=2:client-new-thread:<TEMP_ID>
    tabId=1
    webContentsId=7
    

    The page then reached DOM readiness:

    2026-11-09T20:09:01.499Z
    [browser-sidebar-manager]
    browser sidebar dom-ready
    conversationId=client-new-thread:<TEMP_ID>
    url=about:blank
    
    2026-11-09T20:09:03.011Z
    [browser-sidebar-manager]
    browser sidebar dom-ready
    conversationId=client-new-thread:<TEMP_ID>
    url=https://example.com/
    

    Further attempts to access the tab continued to produce the route error:

    2026-11-09T20:10:06.267Z
    [browser-use-iab-api]
    iab backend info request failed
    conversationId=<CURRENT_CHAT>
    errorMessage="No ChatGPT browser route is available for browser session <CURRENT_CHAT>"
    
    2026-11-09T20:15:21.140Z
    [browser-use-iab-api]
    iab backend info request failed
    conversationId=<CURRENT_CHAT>
    errorMessage="No ChatGPT browser route is available for browser session <CURRENT_CHAT>"
    

    Between these failures, desktop logs recorded DOM readiness for Bing and Wikipedia pages under the temporary sidebar route.

    Distinguishing the failure stages

    Stage Evidence Interpretation
    Webpage loading IAB records dom-ready for public webpages. Navigation can reach DOM readiness. This does not prove that every resource finished loading.
    Browser-control route binding getInfo reports no route for the requesting chat; tab mapping references client-new-thread:<TEMP_ID>. Route registration, lookup, or ownership association appears inconsistent.
    Content reading and result delivery Binding/reading calls time out without returning usable page content. The control operation does not complete. Logs do not establish whether content extraction is reached or whether a later response-delivery stage fails.

    The route mismatch is an observed correlation and a strong investigation lead, not a proven root cause.

    Related Issues

    One difference is that this reproduction can list the IAB backend before later calls time out, whereas the related reports describe IAB being absent from discovery.

    Scope and impact

    The issue blocks agent-driven use of the built-in browser even when the webpage itself loads successfully and native HTTP/WebSocket checks pass.

    A separate Chrome DevTools profile-occupancy error was observed through another integration. It is not used as evidence for this IAB failure.

    Investigation request

    Please investigate:

    1. How the current chat is resolved to an IAB sidebar route.
    2. Whether a temporary client-new-thread route is correctly reconciled with the persisted chat identifier.
    3. Why getInfo fails for the current chat after the backend reports startup readiness.
    4. Why tab creation/navigation can proceed while the caller receives no usable result.
    5. Whether there is a supported recovery procedure or a desktop release containing a fix.

    Please provide a recovery path that preserves chats, browser data, and existing proxy configuration.

    Privacy

    All personal paths, account details, credentials, private URLs, and original session/tab identifiers have been omitted. Placeholder consistency preserves the relevant mapping relationships.

    No raw logs are attached.

  3. MotiHessu commented on Nov 9, 2026

    @MotiHessu

    Additional Windows reproduction after an app restart on 2026-11-09, with the existing chat confirmed active in the desktop app.

    Environment:

    • Desktop version reported by update check: 26.1103.32239, build 25471, prod; status: up_to_date.
    • Windows package: 26.1103.4239.0, x64.
    • ChatGPT Chrome extension: 1.26.1102.11740. Its NativeMessagingHosts entry, manifest and host executable were present.

    After restarting the app at 2026-11-09T22:22:05Z:

    1. cua.getState() listed only Codex MCP Apps (mcpapps) in browser inventory. Native app inventory was available and showed Chrome running.
    2. cua.createBrowserTab("iab", "https://learn.chatgpt.com/docs/browser", {visible:false}) returned Browser is not available: iab.
    3. Creating a Chrome tab through the same browser-control API returned Browser is not available: chrome.

    Fresh desktop log excerpts (UTC; session identifiers omitted):

    2026-11-09T22:24:07.307Z
    [browser-use-iab-api] IAB_LIFECYCLE iab backend info request failed
    No ChatGPT browser route is available for browser session <redacted>
    
    2026-11-09T22:24:07.868Z
    No ChatGPT browser route is available for browser session <redacted>
    

    The restart did not restore browser control. The active-chat confirmation helps rule out merely having another chat selected. No temporary-route ownership mismatch was established in this reproduction, and the Chrome failure is not assumed to share the IAB root cause.

    Please include this version in the investigation and advise on a supported recovery that preserves chats and browser data. No raw logs, private URLs, chat contents or personal paths are included.

  4. sergeyf commented on Nov 11, 2026

    @sergeyf

    Adding a Windows heartbeat failure/recovery trace from November 11, 2026. Consolidating my report #60838 here.

    Environment: Windows 11 Pro x64, build 26300; running MSIX package OpenAI.Codex 26.1106.6628.0 (package metadata, not About-dialog readback); app-server/CLI 0.167.0-alpha.4.1; Computer Use skill package 26.1106.51428.

    All times are UTC. A and B below replace distinct original identifiers.

    Time Observed result
    18:44:26.308 Thread resumed with documentVisibilityState=hidden.
    18:44:28.550 cua_repl MCP server reported ready, error=null, for chat A.
    18:45:35.039 Scheduled read-only monitoring heartbeat dispatched.
    18:45:52.477 await cua.listBrowsers() returned [].
    18:46:09.518 cua.createBrowserTab("iab", publicUrl, {visible:false}) returned Browser is not available: iab.
    18:48:25.198 Registry logged captured session route for A, ownerWebContentsId=2, windowId=2.
    18:49:20.353 Interactive follow-up in the same chat: discovery returned IAB and MCP Apps.
    18:49:32.501 Tab creation mapped chat A to routeKey=2:client-new-thread:<B>, tabId=1, webContentsId=8.
    18:49:35.057 Hidden-tab creation returned the expected title and rendered content from the same public HTTPS page.

    The app repeatedly logged:

    2026-11-11T18:45:52.397Z warning [browser-use-iab-api]
    IAB_LIFECYCLE iab backend info request failed
    conversationId=<A>
    errorMessage="No ChatGPT browser route is available for browser session <A>"
    errorName=Error
    

    This error also appeared at 18:46:09, 18:49:20 and 18:49:30. Route capture and nonempty discovery therefore did not by themselves establish recovery. Recovery was verified by the returned page content. The successful operation still mapped to a temporary client-new-thread route, so the presence of that identifier alone is insufficient to establish the failure's cause.

    No assistant-initiated restart, reconnect, sign-in, settings change or extension installation occurred between failure and recovery. The inspected 18:45–18:49 desktop-log interval contains no app-launch, app-server connection-state-change or transport-start markers.

    This blocked complete live checks across nine browser-based sources. It was a recorded intermittent incident, not a deterministic standalone reproducer. A controlled hide/show comparison and subsequent-heartbeat regression test remain unperformed; hidden-chat lifecycle and route ownership/aliasing remain investigation leads. Related heartbeat/visibility report: #59469.

    The full sanitized report remains in #60838, which I am closing as a duplicate to keep discussion here. No private URLs, raw transcripts, credentials, original session identifiers or personal paths are included.

  5. MotiHessu commented on Nov 26, 2026

    @MotiHessu

    Following up on my earlier Windows report. On November 26, I verified that browser control was working again in the same Codex chat with both the built-in browser and Chrome. I tested on Codex Desktop 26.1120.50957 (build 30866).

    My Codex data was already at G:\Codex\home, with %USERPROFILE%\.codex pointing there through a Windows directory junction. Editing config.toml alone lasted only until the next desktop restart. The app regenerated the browser settings using the junction path. At the time, both browsers returned Browser is not available, and the desktop log for this chat also recorded IAB browser belongs to another task.

    What worked on this installation, following the related workaround.

    1. I set the persistent Windows user environment variable CODEX_HOME to the existing physical directory, G:\Codex\home.
    2. Under [mcp_servers.node_repl.env], I pointed CODEX_HOME, the Codex home entry in NODE_REPL_TRUSTED_CODE_PATHS, and the browser service path in NODE_REPL_TRUSTED_SERVICES at that same physical directory or the corresponding file beneath it.
    3. I fully quit and relaunched the desktop app. All three paths still pointed to the physical directory after startup.

    In the built-in browser, Codex could read the example.com tab that was already open. In both the built-in browser and Chrome, it opened a fresh tab, clicked Learn more, and read the Example Domains heading on the resulting IANA page. This confirms recovery on this machine across that restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions