Skip to content

[macOS Desktop] Reused subagent loses IAB access after normal completion; fresh subagent succeeds #59050

Closed as duplicate

Description

@Metrolive

What version of the Codex App are you using (From “About Codex” dialog)?

Reproduced before and after updating/restarting the desktop app:

  • Current: 26.1027.61615, build 24141.
  • Previous: 26.1027.51404, build 23880.
  • Bundled CLI: codex-cli 0.166.0-alpha.5.1.

App versions were read from the installed application metadata; the running IAB backend log confirms release=26.1027.61615.

What subscription do you have?

Not included in this public report.

What platform is your computer?

macOS 27.2, arm64; local Codex execution in the desktop app.

What issue are you seeing?

A newly spawned subagent can use the built-in browser. After that subagent finishes normally, sending another task to the same subagent makes IAB unavailable. A fresh replacement subagent succeeds.

The reused subagent returns:

Browser is not available: iab

Its browser inventory can also return browsers: []. The failing calls return in under one second, so this minimal reproduction is not simply a slow model response or a long page-load timeout.

This reproduces using only about:blank, with no external website, login, project, or business data involved.

What steps can reproduce the bug?

  1. In a local desktop Codex chat, spawn one Computer Use subagent with:
    • model="gpt-6.1-terra"
    • reasoning_effort="xhigh"
    • fork_turns="none"
  2. In that fresh subagent, use mcp__cua_repl.js to run:
    let firstProbe = await cua.createBrowserTab(
      "iab", "about:blank", { visible: false }
    );
  3. In a subsequent tool call, read the page and close only that test tab:
    await firstProbe.getAXState();
    await firstProbe.close();
  4. Let the subagent finish and return its final answer normally. Do not interrupt it.
  5. Send a new task to the same subagent using collaboration.followup_task.
  6. Have it create another blank tab, using a different variable name:
    let secondProbe = await cua.createBrowserTab(
      "iab", "about:blank", { visible: false }
    );
  7. The second task fails with Browser is not available: iab.
  8. As a control, spawn a new subagent with the same model/settings: the blank-tab creation/read/close sequence succeeds.

Observed on 2026-11-03, Asia/Shanghai (UTC+8).

What is the expected behavior?

When an existing subagent is activated for another task, its authorized IAB connection should be re-established. Normal completion of its previous task should not permanently prevent browser access in later tasks.

Additional information

Controlled results

App version Test Result
26.1027.51404 Fresh Terra subagent Blank-tab creation/read/close succeeded
26.1027.51404 Same completed subagent reactivated Failed in approximately 0.28 s
26.1027.51404 Reused subagent after resetting its own CUA REPL Still failed, approximately 0.48 s
26.1027.51404 Main agent control in the same chat Blank-tab creation/read/close succeeded
26.1027.61615 Fresh Terra subagent after app update/restart Blank-tab creation succeeded in approximately 0.96 s; read/close succeeded
26.1027.61615 Same completed subagent reactivated Failed in approximately 0.08 s

Lifecycle evidence and suspected cause

The parent chat records this event sequence for the same child:

subAgentActivity: started
subAgentActivity: completed
subAgentActivity: interacted   // followup_task activates the existing child
subAgentActivity: completed

Selected desktop log fragments, with the child identifier replaced consistently:

2026-11-03T03:01:24.613Z [browser-session-registry]
IAB_LIFECYCLE captured session route
conversationId=<CHILD> disposeAfterSessionActivity=true

2026-11-03T03:01:36.641Z [browser-session-registry]
IAB_LIFECYCLE disposed browser use route conversationId=<CHILD>

2026-11-03T03:01:36.641Z [browser-session-registry]
IAB_LIFECYCLE ended browser use session activity
conversationId=<CHILD> disposeAfterSessionActivity=true

There was no route-capture entry for that child when it was subsequently activated via followup_task.

Read-only inspection of the installed desktop bundle found the following relevant logic in app.asar/.vite/build/early-bootstrap-439-a0f25ba32c465de1.js:

  • The subagent lifecycle notification handler (generated line 756) calls captureChildSessionRoute() for subAgentActivity.kind === "started".
  • It calls endSessionActivity() for "completed" or "interrupted".
  • That branch has no route-capture handling for "interacted".
  • captureChildSessionRoute() marks child routes with disposeAfterSessionActivity: true.
  • endSessionActivity() disposes those routes.

The relevant handler is identical in both tested app versions. These observations point to a missing browser-route reactivation path for a completed child receiving a follow-up. This is a local diagnosis for maintainer confirmation; no client patch was applied to validate a fix.

Related:

Only redacted technical excerpts are included. No raw logs, full transcripts, local user paths, actual conversation/session IDs, account details, credentials, or private website content are attached.

Activity

  1. added
    bug
    app
    subagent
    on Nov 3, 2026
  2. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

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