Skip to content

[macOS][26.930.31730] CUA getTab/getAXState times out while direct IAB DOM and screenshots remain usable #51019

Open

Description

@Cooberped

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

26.930.31730 (build 12947), verified from the installed application's Info.plist, not independently checked in the About dialog. The user reports that the client is up to date.

What subscription do you have?

Not independently verified; omitted rather than inferred.

What platform is your computer?

macOS 27.0.1, Apple Silicon arm64. uname -mprs: Darwin 27.0.0 arm64 arm. Observed on October 5, 2026.

What issue are you seeing?

In the Codex desktop in-app browser (IAB), attaching to an already-open page through cua.getTab() repeatedly times out and resets the JavaScript kernel. A separately tested page.getAXState() also times out, while direct tab discovery, binding, screenshots, and Playwright DOM snapshots work for the same tab.

The repeated attachment call was:

let currentTab = await cua.getTab({url: targetUrl}, {browser: "iab"});

The error was:

js execution timed out; kernel reset, rerun your request

Read-only, layered observations:

Operation Tool wall time Outcome
cua.getBrowser({id: "iab"}) 0.47–0.83 s (two observations) Success
browser.tabs.list() 0.02 s Success
tabs.list() + tabs.get() 12.02 s Success
page.screenshot({fullPage: false}) 8.94 s Success
page.playwright.domSnapshot() 30.18 s Success
page.getAXState() alone 45.03 s Tool timeout; kernel reset
Fresh REPL in a later turn: tabs.list/get + domSnapshot 42.28 s Success

These are a few tool-level wall-time samples, not internal operation timings or averages. This was observed on an authorized business page; its private URL and contents are omitted. Reproduction across unrelated websites has not been established.

What steps can reproduce the bug?

The sequence observed on this machine was:

  1. Have an authorized page already open in the IAB.
  2. In cua_repl, initialize with exactly one documented entry-point call and read the returned documentation:
let browser = await cua.getBrowser({id: "iab"});
  1. In subsequent calls, discover the tab and bind it using the ID from that fresh list:
let tabs = await browser.tabs.list();
nodeRepl.write(tabs);
let page = await browser.tabs.get(targetTabId);
  1. Run the following observations separately on the same tab:
await nodeRepl.emitImage(await page.screenshot({fullPage: false}));
nodeRepl.write(await page.playwright.domSnapshot());
await page.getAXState();
  1. The screenshot and DOM snapshot succeed, but the AX call reaches the 45-second tool timeout and resets the kernel. Subsequent work requires reinitializing the REPL following the documented first-call rules.

The standalone AX failure was tested once after repeated cua.getTab() timeouts. The later successful workflow check did not retest AX.

What is the expected behavior?

AX observation should complete or return a specific, bounded failure. When DOM and screenshots remain usable for the same tab, an implicit AX failure should not appear only as a generic attachment timeout and kernel reset. Diagnostics should distinguish backend session-route failures from AX initialization, navigation-wait, or capture failures and offer a supported recovery path.

Additional information

Read-only inspection of the installed bundled create_browser_api.js shows that cua.getTab() waits for tab.getAXState({disableDiffing: true, emit: false}) after obtaining the tab and before returning it. In bind_tab.js, getAXState() uses ax.get("state") when the AX API exists; otherwise it falls back to a Playwright DOM snapshot.

Some IAB getInfo requests in local desktop logs failed with:

[browser-use-iab-api] iab backend info request failed
No ChatGPT browser route is available for browser session <redacted>

Other getInfo requests succeeded. The failing stack points to ensureBrowserUseSessionRoute() and getInfo(). The code supports distinct browser conversation IDs and session IDs, so their difference alone is not evidence of a defect.

The observations isolate a persistent failure in the AX observation path. They do not establish which AX substep is blocked, or whether the partial session-route failures cause the AX timeout.

A temporary workflow recovery is to use the documented getBrowser → tabs.list/get → playwright.domSnapshot() / screenshot() APIs in the same IAB. This restored read-only observation; it did not fix the internal AX or routing defect. No application binaries, profiles, proxy settings, or security controls were modified.

Possibly related reports:

This report adds the same-tab distinction between failing AX observation and working DOM/screenshot observation. A shared root cause with those reports is not established.

Privacy: private domains, page content, personnel data, screenshots, local usernames and paths, conversation IDs, raw logs, credentials, and cookies are intentionally excluded.

Activity

  1. added
    bug
    app
    on Oct 5, 2026
  2. theChildinus commented on Oct 29, 2026

    @theChildinus

    Reproduced on 2026-10-29 with ChatGPT desktop 26.1023.51421 (build 22530, from Info.plist) on macOS 27.0.

    Before restart, cua.createBrowserTab() timed out after 20 seconds on https://example.com, although the tab title had loaded. cua.getTab() on that tab also timed out. A private business page showed the same symptom. Direct IAB tab access with playwright.domSnapshot() successfully read both pages.

    After restarting the desktop app, createBrowserTab() still timed out on example.com. Direct DOM reading timed out once, then succeeded in 2.5 seconds. The new app log continued to report No ChatGPT browser route is available for browser session <redacted>; some route requests succeeded, so the warning’s causal role is unconfirmed.

    This adds reproduction on an unrelated public page and a newer app build. Please investigate the automatic page-state/AX read and session routing, and return a specific bounded error instead of resetting the JS kernel.

    No internal URLs, page contents, screenshots, raw logs, credentials, or session IDs are included.

  3. tianjingyu123 commented on Nov 11, 2026

    @tianjingyu123

    补充一组 Windows 上的复现和两个本机对话的对照结果,观测日期为 2026-11-10(America/Los_Angeles)。这组数据与本 issue 的“自动读取/AX 超时,而同一 IAB 的专用 DOM 接口可用”症状一致,请维护者核查。

    环境

    • Windows,OS version 10.0.26200.0。
    • 已安装桌面包 OpenAI.Codex 26.1103.7773.0,由 Windows Get-AppxPackage 查询得到,未在 About 对话框独立核对。
    • 两个对话均由官方对话列表确认为 hostId=local,目标都是当前对话右侧的 ChatGPT in-app browser(iab)。
    • 窗口 A 经 Dot 创建,窗口 B 由用户自行创建。B 的本次对照指令通过官方跨对话发送工具启动。创建来源是对照信息,根因尚未确定。
    • 测试页面为公开的 https://example.com/,标题为 Example Domain。每项对照均在确认页面已经加载后开始计时。

    实测结果

    操作 窗口 A 的内部 Date.now() 计时 窗口 A 的工具墙钟时间 窗口 B 的内部 Date.now() 计时 窗口 B 的工具墙钟时间
    cua.getTab(tabId, {browser: browserId}),工具上限 55 秒 42,484 ms,成功 52,501.3 ms 超时后无内部返回值 55,032.4 ms,超时并重置内核
    已绑定句柄 getAXState({disableDiffing:true,emit:false}),独立调用,上限 55 秒 42,119 ms,成功 42,136.8 ms 未执行,上一步没有返回句柄 未执行
    同一 IAB 的 browser.tabs.get(tabId) 3 ms 与下一行合并的工具调用为 21,084.3 ms 6 ms 10,015.8 ms
    专用句柄 playwright.domSnapshot() 21,082 ms,成功 见上一行,两个操作在同一工具调用内 5,909 ms,成功 5,919.5 ms

    成功的读取均确认了页面正文和 Learn more 链接。窗口 A 在之前的独立验证中还成功点击 Learn more,并核实 URL 为 https://www.iana.org/help/example-domains、标题为 Example Domains。

    在窗口 A,更早使用约 30 秒的工具上限时,自动读取多次超时。提高到 55 秒后,原标签页的自动读取才成功。窗口 B 的首次 createBrowserTab 调用在 55,041.0 ms 时超时,随后标签列表确认页面实际已经打开,因此没有重复打开页面。

    原始错误

    js execution timed out; kernel reset, rerun your request
    

    复现步骤

    1. 在 Windows 桌面端准备一个本机 Codex 对话,打开右侧内置浏览器。按工具文档初始化,第一项调用单独执行 await cua.getState(),读返回说明并确认当前对话的 iab、实际 browser ID 和 tab ID。
    2. 在该 iab 中仅打开一次 https://example.com/。如果打开调用超时,先检查标签列表,确认标题和 URL,避免重复打开。保持页面已加载后开始以下各项测试。
    3. 以 55000 ms 的 cua_repl 执行上限,独立运行下面的自动绑定/读取调用。这里的 ID 来自前面的实际清单,不能作为通用固定 ID。
    let t = Date.now();
    let page = await cua.getTab(tabId, { browser: browserId });
    nodeRepl.write({ operation: 'getTab', elapsedMs: Date.now() - t });
    1. 如果第 3 步成功,在同一句柄上以同样上限独立测量 AX 读取。
    let tAx = Date.now();
    let ax = await page.getAXState({ disableDiffing: true, emit: false });
    nodeRepl.write({ operation: 'getAXState', elapsedMs: Date.now() - tAx });
    1. 如果发生内核重置,遵照文档重新初始化。选择同一个 iab,读取其专用 API 文档,通过 browser.tabs.get(tabId) 取得同一已加载标签,分别测量绑定和 DOM 快照。此次实测选中的 iab ID 为 2,测试标签 ID 为 1。
    let browser = await cua.getBrowser({ id: browserId });
    // 在下一次调用中执行并分别计时
    let tBind = Date.now();
    let directPage = await browser.tabs.get(tabId);
    nodeRepl.write({ operation: 'tabs.get', elapsedMs: Date.now() - tBind });
    let tDom = Date.now();
    let dom = await directPage.playwright.domSnapshot();
    nodeRepl.write({ operation: 'domSnapshot', elapsedMs: Date.now() - tDom, dom });
    1. 在另一个本机对话重复同样过程,区分内部计时、整个工具调用的墙钟时间和外部执行上限。

    期望行为

    已加载页面的自动绑定和 AX 读取应在合理时间内返回,或返回具体且有界的错误。页面已经打开时,应明确报告操作是否已执行。希望维护者定位自动页面读取的延迟来源,提供稳定修复或受支持的恢复方法。

    可比性和结论范围

    每个精确计时点只测了一次,两个窗口未同时测试。超时会重置执行环境,窗口前台状态、模型和其他运行条件也未严格对齐。当前观测不能量化稳定速度差,也不能把 Dot 创建方式认定为原因。专用 DOM 接口是本次实测可用的临时恢复路径,完整根因仍待维护者调查。

    此补充报告包含经用户授权的公开测试结果和复现代码。

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

    appbrowserbugcomputer-use

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions