Skip to content

Browser: openBrowserPage fails with 'Page not found' after choosing "Yes, share" on an existing tab; agent only sees 'Unknown error' #341248

Closed

Description

Summary

In a Claude agent session, openBrowserPage called without forceNew while an unshared tab on the same URL is open asks "Share an existing browser tab?". Choosing Yes, share makes the tool fail with Page "<id>" not found. The agent receives only Unknown error.

Reproduced 2/2.

Steps

  1. Open http://localhost:3005/ in the integrated browser, share it with the agent, then click Stop Sharing with Agent. The tab stays open.
  2. In a Claude agent session, have the agent call openBrowserPage({ "url": "http://localhost:3005/" }) with no forceNew.
  3. The "Share an existing browser tab?" question appears inline. Choose Yes, share "VdoCard — …" and submit.

Expected

The tool returns the shared page's snapshot, as it does when called with forceNew: true.

Actual

The tab shows "Sharing with Agent", but the tool call fails:

11:41:01.132 [info] [AgentHost] Running client tool: openBrowserPage (callId=toolu_01T4brAHwyoiRx36oJdudutZ, withContext=true)
11:41:43.894 [error] [LanguageModelToolsService#invokeTool] Error from tool open_browser_page with parameters {"url":"http://localhost:3005/"}:
Page "d9bce5c8-7e9b-42fc-ba69-08858685a0df" not found: Error: Page "d9bce5c8-7e9b-42fc-ba69-08858685a0df" not found
    at RC._getPage (.../sharedProcess/sharedProcessMain.js:373:3059)
    at async RC._getSummary (.../sharedProcess/sharedProcessMain.js:373:1289)
11:41:43.901 [warning] [AgentHost] Client tool failed: openBrowserPage Page "d9bce5c8-7e9b-42fc-ba69-08858685a0df" not found

(window1/renderer.log. The 42 s gap is the user waiting before answering. In the first run the call failed 11 s after it started, with the same error.)

Right after the failure, readPage({ pageId: "d9bce5c8-…" }) succeeds and returns the full snapshot. The page exists, so _getSummary appears to run before the re-shared page is registered on the Playwright side.

Second problem: the error never reaches the agent

The agent's tool result is the string Unknown error, and the Page … not found message is lost. The agent cannot tell a failed share from a closed tab, and it guesses wrong. PR #330709 ("Surface a client tool's error when it returns no content") targeted this and was closed without merging. It still reproduces on 1.141.0.

Environment

Related

Activity

  1. added
    bug
    browser-integration
    on Nov 6, 2026
  2. added
    unreleased
    on Nov 6, 2026
  3. added this to the 1.146.0 milestone on Nov 6, 2026
  4. added
    insiders-released
    and removed
    unreleased
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

browser-integrationbuginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions