Skip to content

feat(extension): support multiple concurrent client connections - #41922

Closed
Matthew Goodwin (m4ttheweric) wants to merge 3 commits into
microsoft:mainfrom
m4ttheweric:extension-multi-connection
Closed

feat(extension): support multiple concurrent client connections#41922
Matthew Goodwin (m4ttheweric) wants to merge 3 commits into
microsoft:mainfrom
m4ttheweric:extension-multi-connection

Conversation

@m4ttheweric

Copy link
Copy Markdown
Contributor

Summary

  • The bridge extension previously allowed one active client; a new connection force-disconnected the previous one ("Another connection is requested"). It now keeps a connection map so multiple MCP clients (e.g. parallel agent sessions) can drive the browser concurrently.
  • Each connection gets its own labeled Chrome tab group (<client name> #<n>, rotating colors). Per-connection tab isolation follows from the existing per-connection _attachedTabs filtering.
  • The extension's own UI pages are excluded from popup forwarding and group auto-attach: Chrome records the previously active tab as a new connect page's opener, which would otherwise hand one client's connect page to another client.
  • Token-bypass connections no longer steal window focus; explicit "Allow & select" still focuses the picked tab. Status page lists all connected clients with per-client disconnect.

Each MCP client now gets its own ConnectedTabGroup with a distinct
labeled Chrome tab group. Connecting no longer disconnects the previous
client, and token-bypass connections no longer steal window focus.

The extension's own UI pages are excluded from popup forwarding and
group auto-attach: Chrome records the previously active tab as a new
connect page's opener and can place it in that tab's group, which would
otherwise hand one client's connect page to another client.
@m4ttheweric

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@dcrousso

Copy link
Copy Markdown
Contributor

please take a look at the contribution guide before creating a PR

To maintain project quality and focus, Playwright requires a corresponding issue for every contribution, with the exception of minor documentation fixes.

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.

2 participants