Skip to content

1.7.0 regression: list_pages fails permanently after selected page is closed #2898

Closed

Description

@markkennethbadilla

Description of the bug

Regression in 1.7.0 (noted in #2033, where a new issue was requested). After the selected page is closed by something other than this server's own call, every tool call, including list_pages and select_page, fails with The selected page has been closed. Call list_pages to see open pages. The server never recovers until it is restarted.

Reproduction

  1. Start with --autoConnect and select a page.
  2. Close that tab from the Chrome UI (or via close_page from another client sharing the instance).
  3. Call list_pages. It fails with the error above, and so does every later call.

Expectation

list_pages always works, and the selection resets or moves after the selected page closes.

MCP configuration

chrome-devtools-mcp@1.7.0 --autoConnect

Chrome DevTools MCP version

1.7.0

Chrome version

Stable channel

Coding agent version

Claude Code (subagents sharing one MCP instance)

Model version

Claude

Chat log

No response

Node version

v24.19.0

Operating system

Windows 11

Activity

  1. yulunz commented on Oct 5, 2026

    @yulunz
    Collaborator

    Thanks for the report! This was a regression in 1.7.0 introduced by #2455 (the localhost telemetry change looked up the selected page before the response was built, and threw if it had been closed). It was fixed in #2588, which shipped in v1.8.0.

    I verified with a scripted A/B test (open a page with new_page, close it externally via /json/close/<id>, then call list_pages): 1.7.0 fails with The selected page has been closed…, while 1.8.0, 1.10.1 and current main return Note: the previously selected page was closed. Page 1 is now selected. and continue to work.

    Could you please upgrade to the latest version (chrome-devtools-mcp@latest, currently 1.10.1) and let us know if you still see the issue with --autoConnect? Closing as fixed for now; feel free to reopen if it still reproduces on the latest version.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions