Skip to content

[macOS] In-app browser CUA entry points repeatedly time out and reset kernel, including after successful manual login #59647

Open

Description

@MrZhouWen

Environment

  • macOS 14.5 (sw_vers -productVersion)
  • ChatGPT desktop app 26.1029.61003 (installed app CFBundleShortVersionString)
  • Observed 2026-11-05 in a desktop Codex conversation
  • Browser control through the provided mcp__cua_repl / unified-computer-use APIs

Problem

The user can open an authenticated document in the in-app browser and reports completing login, but the agent cannot attach to/read that tab. All attempted CUA entry-point calls in this conversation timed out after approximately 30 seconds and reset the kernel. Even cua.getState() failed. This prevents reading a long article with images.

Observed sequence

Each entry-point invocation below was a separate tool call, with a single API call, following the tool's initialization instructions:

  1. cua.getBrowser({url: TARGET_URL}) -> timeout after 30.059 s.
  2. cua.getState() -> timeout after 30.041 s.
  3. cua.createBrowserTab("chrome", TARGET_URL, {sessionName: "Reading"}) -> timeout after 30.037 s (session name simplified here).
  4. cua.createBrowserTab("iab", TARGET_URL, {visible: true}) -> timeout after 30.082 s.
  5. open_in_codex with browser target returned status: queued. Subsequent ambient UI context showed one in-app browser tab at the target URL. The user reported successfully logging in.
  6. cua.getTab({url: TARGET_URL}, {browser: "iab"}) -> timeout after 30.033 s, despite the visible tab and reported successful login.

Every CUA failure returned:

js execution timed out; kernel reset, rerun your request

Expected

Supported CUA entry points should return browser/tab state after the user opens and logs into a page, or provide an actionable connection error and a supported recovery procedure.

Evidence limits

  • This is an observed failure sequence, not a clean-machine deterministic reproduction.
  • The target is a private SSO-protected Confluence article; its URL and contents are omitted. A public control page was not tested.
  • The same article opened in Chrome through the OS and its title could be read via AppleScript. JavaScript via Apple Events was disabled; this separate limitation is not evidence for the CUA timeout cause.
  • No root cause is established. In particular, no routing-ID mismatch has been verified here.
  • No cookies, credentials, private URLs, account/conversation identifiers, full transcripts, or raw logs are included.

Related

#58173 and #59412 describe similar Windows browser attachment/time-out symptoms. This report adds a macOS observation; a shared root cause is not established.

Activity

  1. added
    bug
    app
    tool-calls
    on Nov 5, 2026
  2. znzryb commented on Nov 8, 2026

    @znzryb

    We ran into a similar timeout on macOS and wanted to share what helped.

    If you already use a proxy, a quick check is to temporarily enable its TUN / virtual network adapter mode, then try the same CUA operation again. If it starts working, some of the tool’s traffic may have been missing the intended proxy route. If enabling TUN makes no difference, this particular proxy-routing issue is less likely to be the cause, so I would look at other possibilities next.

    In our case, the page loaded normally, but CUA operations waited around 30–35 seconds. We eventually found that our per-app proxy rule covered com.openai.codex but missed the separate node_repl process. Updating that process’s route restored normal operation, without needing TUN in our final setup.

    Afterward, a page read took 21 ms and a screenshot took 153 ms. Checks also passed after restarting the proxy app and resetting the CUA JS kernel.

    We documented the investigation, unsuccessful attempts, test limits and a small read-only probe here:
    https://github.com/znzryb/codex-cua-timeout-diagnostics

    Hope this helps narrow things down!

    Written with Codex assistance; the measurements come from actual local tool runs.

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-usetool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions