Skip to content

[Windows][Desktop][IAB] Attached tab loses browser-session binding before action #57107

Open

Description

Summary

Codex Desktop's built-in browser (IAB) successfully attached a tab and allowed page control, but later rejected an action because the same tab was no longer part of the browser session. The requested click was not sent. Root cause unknown.

Environment

  • Codex Desktop session version: 0.164.0-alpha.11.1
  • Windows 10 Pro 22H2 (x64)
  • Browser surface: ChatGPT in-app browser (iab)
  • Browser bundle: 26.1021.31345

Observed timeline (2026-10-26, UTC)

  1. 11:22:49 — Browser inventory returned tabs: [].
  2. 11:22:52 — createBrowserTab requested for an authenticated third-party web application.
  3. 11:23:06 — Tab 1 attached successfully; title and accessibility tree were available. Subsequent navigation and interaction succeeded.
  4. 11:24:19.758 — The pending UI action was rejected before the click was sent:
    Error: Tab 1 is not part of browser session [REDACTED]
    

An earlier attempt also displayed Timed out waiting for the Browser webview to attach, although this exact timeout was not recovered from the inspected local logs. Restarting the application temporarily restored attachment, but the tab binding later failed again.

Expected

An attached and accessible IAB tab should remain controllable within the active browser session, or the application should provide an actionable recovery path when the binding is invalidated.

Actual

The tab was controllable, then its binding became invalid before the user-authorized action. No export/action was submitted to the third-party application.

Diagnostics and limitations

  • Read-only review of existing Codex session and diagnostic records found the success and failure timestamps above.
  • No definitive low-level webview teardown reason was exposed; ROOT_CAUSE_UNKNOWN.
  • Model-refresh and unrelated MCP connectivity errors were observed elsewhere but are not established as causal.
  • An in-app Bug feedback report was initiated for the affected session. The UI displayed a feedback identifier while finalizing diagnostic upload; backend receipt is not confirmed.
  • Support indicated the affected session identifier is useful for internal investigation, but could not verify receipt or link an external case ID.
  • Built-in-browser cookies/history have not been cleared, to preserve the current state. No further reproduction or export was attempted.

Request

Please investigate IAB tab ownership/session binding across user turns, webview lifecycle/cleanup, and stale tab handles after successful attachment. Is this a known regression, and what supported recovery/diagnostic steps are recommended? The full session ID and original logs can be provided privately through an approved support channel after sensitive-data review.

Possibly related (not asserted to be the same root cause): #48360 and #56438.

Privacy

No full session identifiers, usernames, local paths, account details, screenshots of authenticated pages, or raw logs are attached.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 26, 2026
  2. github-actions commented on Oct 26, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. creativeessenceglobal-wq commented on Oct 27, 2026

    @creativeessenceglobal-wq
    Author

    Additional read-only triage (2026-10-27): a third-party VideoExpress workflow troubleshooting guide attributes process-launcher startup failures to a missing "Full access" permission, but this is not a confirmed explanation for this issue. Our affected IAB tab successfully attached at 11:23:06 UTC and exposed its accessibility tree, then a later action failed at 11:24:19.758 UTC with the tab/session ownership error. Thus the observed failure is after successful attachment, not simply a failure to launch the browser.

    Related #56438 reports the same tab/session error near webview teardown, but we have no teardown logs or crash evidence for this session. Please advise on a supported way to reacquire an invalidated IAB tab/session without clearing authenticated browser state, and on what minimal redacted diagnostics would distinguish a stale tab handle from an IAB route teardown. No further reproduction, cookie/history reset, or third-party export has been attempted.

  4. creativeessenceglobal-wq commented on Oct 27, 2026

    @creativeessenceglobal-wq
    Author

    Controlled follow-up on 2026-10-27 (user-authorized, read-only, public site only): In a NEW Codex Desktop diagnostic chat, the UI's Full access permission mode was selected. Test 1 created one IAB tab to https://example.com/, successfully read title "Example Domain" and content, and re-read tab 1 in browser session 2: PASS, no error. Effective permission mode was inferred from the session/UI rather than directly exposed by the browser-control API.

    Test 2 in the SAME diagnostic chat used only supported read-only browser inventory, with no new tab, navigation, refresh, or recovery. The original tab was absent; session 2 reported an empty tab list. Therefore cross-test persistence and tab/session binding are INCONCLUSIVE. No error was emitted. Reliable elapsed time and webview teardown diagnostics were unavailable.

    This supports successful initial IAB attachment under Full access, but does not establish Full access as a fix for the original post-attachment "Tab 1 is not part of browser session" failure. It also cannot establish why the tab disappeared between turns. Please advise whether IAB tab lifetime across chat turns is expected and whether a supported tab reacquisition/recovery API exists. No third-party website, export, files, cookies, or settings were modified during the tests.

  5. creativeessenceglobal-wq commented on Oct 27, 2026

    @creativeessenceglobal-wq
    Author

    Follow-up: read-only lifecycle-log diagnostic was inconclusive due to unavailable supported log access.

    In the affected Codex Desktop diagnostic chat, the agent reported that no supported read-only local diagnostic-log inspection interface was exposed. Consequently it could not establish timestamps or examine WebView disposal, guest teardown, tab-route mapping, tab cleanup, or application restart/crash records. The observed evidence remains: the public Example Domain tab attached and was re-read successfully under a newly selected Full access UI mode; in a later check in the same chat, browser session 2 still appeared but its tab inventory was empty. The original "Tab 1 is not part of browser session" error was not reproduced in these tests. Whether this is expected temporary-tab cleanup or an abnormal lifecycle failure is unknown; Full access is not a confirmed fix.

    Maintainer guidance requested:

    1. Are agent-created In-App Browser tabs expected to be removed between turns or tool invocations within the same Codex Desktop chat? What is their documented lifetime?
    2. What official, supported, read-only diagnostic collection/export mechanism can capture IAB tab creation/closure, WebView guest teardown/disposal, browser-session ownership and tab-route binding, with a minimal redacted output? Please specify any privacy precautions and whether diagnostics can be collected without altering cookies, authenticated sessions, or project files.
    3. Is there an officially supported way to reacquire a tab after the session inventory becomes empty, rather than retaining a stale tab handle?

    No log export, unsupported local inspection, new browser tab, VideoExpress access, or export was performed during this follow-up.

  6. lishuguang9188-collab commented on Oct 29, 2026

    @lishuguang9188-collab

    I am experiencing a similar issue on Windows 10 with Codex Desktop version 26.1023.51421.

    The built-in Browser returned this exact error:

    Tab 2 is not part of browser session 01a18758-702e-7232-98a6-9e5b0ae2b248

    Codex could not create or read a page within that browser session, so it did not retrieve the website title or page content.

    I have already submitted in-app feedback with ID 01a18758-702e-7232-98a6-9e5b0ae2b248. Browser navigation has also timed out in previous attempts.

    I have not changed configuration files, modified the website, or changed security permissions.

    Could this be related to browser session or tab routing on Windows?

  7. creativeessenceglobal-wq commented on Oct 29, 2026

    @creativeessenceglobal-wq
    Author

    Controlled post-update regression on Windows 10, Codex Desktop 26.1023.51421 (build 22530, production channel; CLI 0.165.0, distinct from Desktop). User-authorized, public https://example.com/ only, supported IAB browser controls; no permission/settings changes, authenticated navigation, VideoExpress access, or exports.

    Phase B — PASS (same turn): Initial inventory had no tabs. Created exactly one Example Domain tab (browser ID 2, tab ID 1). Title and accessibility tree were readable; re-reading the same tab succeeded.

    Phase C — FAIL (next turn in the same diagnostic chat): Inventory STILL listed browser ID 2 / tab ID 1, title Example Domain, URL https://example.com/. However, attempting to re-read that preserved tab failed with the exact error:

    browser.user is unavailable
    

    The agent stopped without creating a replacement tab or attempting further use of the handle. Phase D was not run.

    This differs from our earlier test where the session remained but its tab inventory was empty, and from the original Tab 1 is not part of browser session error. It demonstrates a cross-turn browser-control availability failure, but does not establish the same root cause or that the new error is a tab-ownership failure. Browser tab visibility in inventory alone did not establish successful access.

    A separate commenter also reports the original tab/session error on this same Desktop version; their report is independent and not a reproduction of our exact Phase C error.

    Maintainer request: Could you clarify whether browser.user is unavailable after a turn boundary is expected IAB tool lifecycle behavior, a known regression, or a distinct issue? Please advise on an officially supported recovery/reacquisition procedure that preserves browser authentication state and a safe, read-only diagnostic mechanism to distinguish tool unavailability from stale tab ownership. No further retries or local modifications were made.

  8. creativeessenceglobal-wq commented on Oct 29, 2026

    @creativeessenceglobal-wq
    Author

    Official support follow-up — in-app diagnostic feedback reference for this existing IAB issue.

    Following OpenAI Support's instructions, I submitted feedback from the affected Codex Desktop diagnostic conversation. The app issued this feedback ID while finalizing diagnostic submission:

    01a04d65-ab6c-7f00-bfaa-815c3e0c1a56

    Environment

    • Windows 10 Pro 22H2 (build 19045.7807, previously verified)
    • Codex Desktop 26.1023.51421, build 22530, production channel
    • Codex CLI 0.165.0 (separate from Desktop)

    Observed errors

    • Original incident: Tab 1 is not part of browser session
    • Latest controlled cross-turn regression: browser.user is unavailable

    Latest regression summary: One https://example.com/ IAB tab was created and read twice successfully in Phase B. In the next turn of the same diagnostic chat, browser ID 2 / tab ID 1 remained in the inventory but the read failed with browser.user is unavailable. No further interaction, replacement tab, permissions changes, browser-state clearing, VideoExpress access, or export occurred. See #57107 (comment) for full results.

    Support stated it cannot independently verify that the diagnostic upload completed merely from the issued feedback ID. Engineering request: Please correlate this feedback reference with any received session/diagnostic data, confirm whether the submission is retrievable if possible, and advise on the cause and supported recovery for cross-turn IAB tool unavailability versus stale tab/session ownership. Please do not assume the two errors share a proven root cause.

    This is a diagnostic feedback ID, not an authenticated browser session token. No raw logs or session credentials are being posted publicly.

  9. creativeessenceglobal-wq commented on Oct 29, 2026

    @creativeessenceglobal-wq
    Author

    Additional controlled reproduction — cross-turn In-App Browser tab disappearance (Windows 10, Codex Desktop)

    Follow-up to my earlier reports on this issue. Two consecutive, strictly read-only gates were run in the same Codex diagnostic conversation; no VideoExpress access was involved.

    Gate A0 — PASS (within one Codex turn)

    • Existing ChatGPT In-App Browser: browser ID 2, tab ID 1.
    • Page: https://example.com/, title Example Domain.
    • Two accessibility reads succeeded in the same turn; the second reported no tree change. The first output was truncated by the tool.
    • No tab creation, navigation, refresh, or settings changes.

    Gate A1 — BLOCKED (next Codex turn)

    • Browser ID 2 still existed (ChatGPT in-app browser).
    • Its tab inventory was now tabs: []; previously usable tab ID 1 was absent.
    • Exact error: Tab not found in browser 2.
    • Accessibility could not be read; no retry or recovery attempted.

    Interpretation: Same-turn accessibility reads can work, while the tab disappears across turns. This is a reproducible cross-turn tab persistence/control failure, not evidence of a VideoExpress-specific issue. Root cause remains unknown. Earlier observations also included browser.user is unavailable after a successful first turn.

    Environment previously reported: Codex Desktop 26.1023.51421 (build 22530, production), Windows 10 Pro 22H2 (build 19045.7807); CLI codex-cli 0.165.0 (separate from desktop app). In-app feedback ID: 01a04d65-ab6c-7f00-bfaa-815c3e0c1a56.

    Could maintainers advise whether tab lifetime across turns is expected and which supported diagnostic/recovery path should be used? No further recovery attempt has been made.

  10. creativeessenceglobal-wq commented on Nov 8, 2026

    @creativeessenceglobal-wq
    Author

    Request for maintainer triage and supported recovery — issue still blocking work

    This issue remains open, with no confirmed root cause, supported recovery procedure, or fix identified in this thread. It is materially blocking an ongoing browser-based workflow on Windows 10.

    The evidence already documented here includes:

    • Codex Desktop 26.1023.51421, build 22530, on Windows 10 Pro 22H2 (19045.7807).
    • An In-App Browser tab on the public https://example.com/ page can be attached and read successfully within one turn, yet browser/tab ownership or availability fails on a subsequent turn in the same diagnostic conversation.
    • Observed errors include Tab 1 is not part of browser session and browser.user is unavailable; a separate user has reported a similar Windows 10 failure.
    • In-app diagnostic feedback reference: 01a04d65-ab6c-7f00-bfaa-815c3e0c1a56.

    We have supplied multiple controlled, read-only reproductions and have avoided modifying application permissions, sandbox settings, or authenticated websites as part of this follow-up.

    Could a Codex maintainer please provide:

    1. Confirmation that this report has been triaged and whether it is linked to Windows desktop app: four browser-process crashes closely following IAB tab teardown #56438 or another tracked root cause.
    2. The next officially supported, minimally invasive diagnostic or recovery step, with its expected effects and risks.
    3. Whether the cross-turn browser-session lifecycle / tab ownership issue is being investigated and whether a fix or workaround is known.
    4. A realistic next-update milestone, even if no ETA for a fix is available.

    Please avoid closing this as resolved solely on the basis of a successful same-turn browser read; the documented regression is across turns. This is a request for concrete technical guidance and prioritization, not a claim that the root cause has been established.

    Thank you.

  11. Kristas21 commented on Nov 10, 2026

    @Kristas21

    New reproduction on 2026-11-10: inventoried IAB tab fails to attach, fresh tab retains website authentication

    At the user's explicit request, adding a new, read-only observation to this existing report.

    Environment: Windows desktop app; installed MSIX package OpenAI.Codex 26.1029.7803.0 (queried today); built-in ChatGPT in-app browser (iab). This is not the Chrome extension.

    Observed during the same diagnostic turn, around 16:07–16:10 UTC:

    1. Browser inventory successfully lists the IAB and an existing Instagram tab, including its expected URL/title.
    2. Binding that inventoried tab and calling getAXState() fails after approximately 15 seconds with:
      Timed out waiting for the Browser webview to attach for this browser-use page
      
    3. Creating a fresh tab in the same IAB browser at the same Instagram profile URL succeeds. Its accessibility tree exposes the account-owner controls (Edit profile, archive, professional dashboard), confirming the expected account is still authenticated.
    4. No login, password entry, browser restart, cookie clearing, permission change, or account switch was needed for step 3.

    Scope and limits: This reproduces an attachment/control failure for an existing inventoried tab while a fresh tab remains usable and authenticated. It does not establish website logout, a general browser outage, or a common root cause with every earlier error in this issue. A separate application's login screen was also observed, but its authentication state has not been conflated with this Instagram attachment error.

    Impact: recurring interruptions of a scheduled workflow and misleading requests to the remote user to reconnect an account that remains authenticated. The agent's earlier blanket "disconnected" conclusion was corrected.

    Please investigate stale/restored IAB tab attachment across turns, and provide a supported recovery path that preserves website authentication. This fresh-tab workaround worked in this observation; cross-turn persistence and a permanent fix are not established.

    No account handles, private URLs, full session IDs, credentials, cookies, private messages, screenshots of authenticated pages, or raw logs are included.

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