Skip to content

feat: make pageId routing default to prevent multi-agent race conditions#2105

Closed
yahyasaqban-lab wants to merge 1 commit into
ChromeDevTools:mainfrom
yahyasaqban-lab:fix/make-pageid-routing-default
Closed

feat: make pageId routing default to prevent multi-agent race conditions#2105
yahyasaqban-lab wants to merge 1 commit into
ChromeDevTools:mainfrom
yahyasaqban-lab:fix/make-pageid-routing-default

Conversation

@yahyasaqban-lab
Copy link
Copy Markdown

Description

In multi-agent workflows (e.g., Claude Code with parallel agents), concurrent select_page calls create race conditions. Chrome DevTools MCP already had --experimental-page-id-routing that solved this by allowing tools to accept pageId directly. This change makes it the default.

Changes

  • Always expose pageId on page-scoped tools
  • Always route by pageId when provided
  • Experimental flag is deprecated (kept for backward compat)

Related Issue

Fixes #1245

Type of Change

  • New feature (non-breaking)

Concurrent  calls from multi-agent workflows create race
conditions because select_page + action is not atomic. Chrome DevTools MCP
already had  that allows tools to accept
 directly - this change makes it the default behavior.

Changes:
- Always expose pageId on page-scoped tools
- Always route by pageId when provided
- Deprecate the experimental flag (kept for backward compat)
- All existing code paths remain, just enabled unconditionally

Fixes ChromeDevTools#1245
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 22, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@OrKoN
Copy link
Copy Markdown
Collaborator

OrKoN commented May 23, 2026

Duplicate of #1777

@OrKoN OrKoN marked this as a duplicate of #1777 May 23, 2026
@OrKoN OrKoN closed this May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make pageId routing default to prevent multi-agent race conditions

2 participants