Skip to content

[macOS desktop 26.1027.30824] IAB owner not registered for background chats or re-established for resumed subagents #58535

Open

Description

@constantijnvdb

Environment

  • macOS, arm64; desktop app 26.1027.30824, build 22943, production channel.
  • Configured app updater reports up_to_date on 31 October 2026.
  • Bundled in-app browser and supported CUA/browser APIs. No Chrome fallback.

Problem A: a newly created background chat lacks its browser owner

  1. Create a normal local chat through the supported create_thread tool and let it run without selecting it.
  2. Ask it to open a neutral HTTPS page in its own hidden in-app browser.
  3. It fails with "Browser is not available: iab" and inventory lacks an IAB endpoint for that chat.
  4. Select that chat once. Desktop logs show browser owner-sync capturing its route before a page webview exists.
  5. The unchanged tool runtime then discovers IAB and opens/reads the neutral page successfully.

Observed twice in existing normal chats. In the independent diagnostic chat, conversation-stream ownership preceded browser-route ownership by several minutes. No restart, runtime reset, or permission change was used for recovery.

Problem B: completing a subagent removes the browser connection, and followup_task does not recreate it

Three separate diagnostic subagents each opened and read a neutral HTTPS page successfully, then ended a turn with one of these states:

  • Only tab explicitly closed; empty tab inventory verified before completion.
  • Temporary tab left open without a retention mark.
  • Tab marked with markHandoff; presence verified after marking and before completion.

All three lost IAB on followup_task. The preserved browser binding failed, and inventory lacked IAB. In the first two cases, one fresh IAB tab-creation attempt also failed. The marked-tab case did not attempt fresh creation; logs establish that its whole route was disposed and its marked tab closed.

An additional completed file-only turn did not repair the first agent: another resumed turn failed both the preserved binding and one fresh IAB creation attempt.

Controls

  • The ordinary parent survived its own completed turn with zero tabs and the same browser binding, then created and read a fresh page.
  • That parent remained usable while the resumed child tests failed.
  • Closing the final tab during an active turn returns a valid empty list; a replacement can be created through the existing binding.
  • A stale closed-tab handle produces a tab-specific error while another tab remains usable.
  • Reading a page with panel visibility false succeeds.

Read-only packaged-code trace

  • The active host browser hook captures child routes on initial subAgentActivity kind="started". Saved followup_task activities are kind="interacted", which this hook ignores.
  • Child routes use disposeAfterSessionActivity=true. endSessionActivity disposes the route/backend independently of tab handoff marks. Logs show no route recapture before failed resumes.
  • A broader renderer registration hook exists, but its manager initializer has an unconditional false gate in this build.
  • The active host thread/started registration path requires a child source with a parent. The ordinary chats' source is "vscode", so that branch performs no registration.
  • Selecting a chat invokes browser-sidebar-owner-sync -> syncOwner -> bindSessionRouteOwner, supplying the missing ordinary-chat route.
  • Eighteen isolated tests of extracted installed functions support these findings. Those tests use mocked dependencies; the live reproductions above are separate evidence.

Requested correction and verification

  1. Register and await an exact, trusted window/owner association before the first browser-capable turn of an ordinary background chat.
  2. Ensure a resumed child's browser route exists at actual turn admission/start using its verified parent association. Preserve handoff-marked tabs when ending a child turn. Recreating an empty route alone cannot restore an already destroyed tab.
  3. Preserve per-chat isolation. A generic "interacted" event can also be messaging, so it is not by itself a reliable new-turn boundary.
  4. Verify never-selected background creation, all three child cases, an intervening file-only turn, retained original-tab survival, and unaffected parent/unrelated-chat tabs.

Discovery warning counts are not failure counts: probing wrong-session endpoints can produce "No ChatGPT browser route is available" alongside a successful matching endpoint in the same pass.

Related: #58419 reports IAB discovery failure on the same macOS app version, but its cause and equivalence to these two reproductions are not established.

Scope and privacy

No installed application files, permissions, security checks, profiles, or unrelated chats were changed. No app restart was performed. Test tabs were cleaned up. This report omits usernames, local paths, chat/session/tab identifiers, private websites, account details, raw logs, screenshots, transcripts, credentials, and proprietary source excerpts. No permanent repair has been applied or verified.

Activity

  1. added
    bug
    app
    subagent
    on Oct 31, 2026
  2. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. stran12 commented on Nov 5, 2026

    @stran12

    Reproduced on Codex desktop 26.1029.61003, build 24614, production channel, on macOS 27.0.1 (26A434). The app updater reports up_to_date. Locked Use is enabled. Observed November 5, 2026.

    This blocks unattended browser verification in hourly scheduled jobs and in newly spawned workers. A controlled test also reproduces with the Mac unlocked, so the failure is not limited to automatic unlock.

    Controlled reproduction

    1. From a parent chat, start two read-only workers and ask each to open its own hidden built-in Browser tab for https://example.com.
    2. Each worker starts with await cua.getState(). Both see native apps, no inventory errors, and browsers: [].
    3. Each calls:
      await cua.createBrowserTab("iab", "https://example.com", { visible: false });
      Both fail with Browser is not available: iab before creating a tab.
    4. The parent performs the same operation successfully and reads the title Example Domain.
    5. Retry both workers once after initializing the parent browser. Both still fail.

    A contemporaneous system check reports IOConsoleLocked = No. This differs from a resume-only failure: both newly spawned workers failed on their initial browser attempt as well as their follow-up. Concurrent page interaction could not be tested because worker session creation failed.

    Scheduled-run evidence

    Several hourly scheduled chats also lack IAB. Selected diagnostic messages, with identifiers removed:

    Browser is not available: iab
    No ChatGPT browser route is available for browser session <redacted>
    IAB_LIFECYCLE missing exact session route owner
    

    Some individual scheduled runs recover after opening a Browser panel in their own chat with open_in_codex, showing that chat through navigate_to_codex_page, and binding the resulting tab by ID. In one recovered run, native computer-use inventory still reported that automatic unlock had failed, while actual IAB interaction succeeded.

    This supports investigating per-conversation browser registration/lifecycle separately from native Mac unlocking. The exact root cause is not established.

    Please support reliable browser initialization for never-selected scheduled chats and new/resumed workers, with each worker retaining its own browser association. The panel-opening workaround has not been validated for concurrent unattended workers.

    No email addresses, private URLs, chat/session identifiers, local paths, raw logs, or credentials are included.

  4. yuya2017 commented on Nov 16, 2026

    @yuya2017

    Reproduced on Codex desktop 26.1111.21308 (build 27194), macOS 27.2.1 (arm64).

    A standalone local scheduled run started a new chat while the Mac was unlocked. Opening about:blank in a hidden in-app browser tab failed with Browser is not available: iab. The desktop log showed IAB browser belongs to another task.

    After I opened that chat once in the app, the desktop log showed that its browser route was registered. A scheduled run targeting the same chat then opened and closed the hidden tab successfully while the Mac was locked.

    Expected behavior is for a standalone scheduled chat to initialize its own browser connection before its first browser request, without requiring someone to open the chat. I haven’t tested whether the same-chat workaround survives an app restart.

  5. SisyphusSQ commented on Nov 18, 2026

    @SisyphusSQ

    I observed the same failure after a desktop app restart in an existing local chat with an hourly heartbeat. This adds the restart-and-resume case to the reproduction above. Environment: ChatGPT desktop / Codex 26.1111.21308 (build 27194), macOS 27.0 (26A428), arm64.

    November 18, 2026, UTC

    Time Observation
    02:19:25–02:19:46 macOS delivered a Quit AppleEvent, the old process removed its browser session window, and the active turn was marked interrupted. A new desktop process launched. The app then resumed the same chat and started a background turn.
    02:27:41–02:29:38 The desktop backend logged 18 ownership rejections for that chat. cua.listBrowsers() listed only the extension, with no iab. A hidden-tab creation attempt returned Browser is not available: iab. js_reset succeeded, but the same creation attempt still failed afterward.
    02:45:55 The original Codex chat was brought into view. The desktop registry captured its browser session route.
    03:03:21–03:19:44 On the next scheduled heartbeat, the same chat completed IAB getInfo and created a hidden tab at 03:03:23. It then read the target page and submitted its monitoring result at 03:19:44.

    Selected desktop log fields (<chat> identifies the same original chat throughout):

    02:19:25.878 [browser-session-registry] IAB_LIFECYCLE removed browser session window
    02:19:37.293 Launching app
    02:19:45.763 [AppServerConnection] response_routed conversationId=<chat> method=thread/resume errorCode=null
    02:19:46.085 [AppServerConnection] response_routed conversationId=<chat> method=turn/start errorCode=null
    02:27:41.561 [browser-use-iab-api] IAB_LIFECYCLE iab backend info request failed conversationId=<chat> errorMessage="IAB browser belongs to another task."
    02:29:37.680 [browser-use-iab-api] IAB_LIFECYCLE iab backend info request failed conversationId=<chat> errorMessage="IAB browser belongs to another task."
    02:45:55.075 [browser-session-registry] IAB_LIFECYCLE captured session route conversationId=<chat>
    03:03:21.332 [browser-use-iab-api] IAB_LIFECYCLE iab backend info request completed conversationId=<chat> metadataCodexSessionId=<chat>
    03:03:23.883 [browser-use-iab-api] IAB_LIFECYCLE iab createTab mapped page to tab conversationId=<chat>
    

    The observed sequence suggests that background resume after a desktop restart can begin before the original chat has a usable IAB route. A regression test would restart the desktop app while a browser heartbeat is running, leave the original chat out of view, and verify that the resumed turn can create and read a hidden tab in its own chat. This was one observed incident. The source of the quit event and reproducibility across restarts are unverified.

  6. kryptoraquantum commented on Nov 21, 2026

    @kryptoraquantum

    Additional reproduction on desktop release 26.1117.31558, macOS 27.0.1 (arm64), November 21, 2026, around 18:20 CET.

    1. Open a local web preview in the in-app browser in a Codex voice chat. The tab is visible and focused.
    2. Ask the chat to delegate scrolling in that exact tab to a browser-capable subagent. The subagent receives Browser is not available: iab. Desktop diagnostics recorded two browser discovery failures with IAB browser belongs to another task. during the attempt.
    3. Resume the same subagent and try selecting the existing tab or opening a new visible in-app browser tab. Both operations return Browser is not available: iab.

    The original preview stayed visible and no live scroll occurred. The app log confirms an ownership rejection for the first delegated attempt. The reason the resumed subagent could not open its own tab was not independently established. This looks relevant to the resumed-subagent behavior described here.

  7. yifei-ambr commented on Nov 24, 2026

    @yifei-ambr

    Related macOS evidence for Problem B. On 26.1117.41037 (build 29803), a fresh local child had an IAB route, then lost it 7 ms after capture, before its first browser request. The same child failed again on continuation; the parent opened the target successfully.

    The three-step reproduction, trace, and regression fixture are together in #59350. A candidate build can be checked against both first use and continuation with the same child.

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

    appbrowserbugsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions