Skip to content

[Feature]: Support multiple concurrent Extension clients with isolated tab groups #42015

Closed as duplicate

Description

@WitMiao

What's going on?

The Playwright Chrome Extension currently supports only one active client connection per browser profile.

Reproduction

  1. Start client A with the Playwright Extension enabled and connect it to a tab.
  2. While client A is still connected, start client B against the same Chrome profile and connect it to another tab.

Current behavior

  • Connecting client B disconnects client A.
  • Tabs controlled by client A are removed from their Playwright tab group.
  • On token-bypass connections, the newly selected tab/window is brought to the foreground.

This follows the current implementation in packages/extension/src/background.ts: the extension stores a single _activeGroup, and _connectTab() calls _disconnect('Another connection is requested') before installing the new group.

Expected behavior

Multiple clients should be able to use the same browser profile concurrently:

  • each connection owns an independent ConnectedTabGroup;
  • tabs and disconnect/cleanup operations are scoped to that connection;
  • groups have distinct labels so users can identify their owner;
  • an automatic/token-bypass connection does not focus the browser window;
  • the status page lists and disconnects clients independently.

This is useful for parallel browser automation that needs the authenticated state of the user's existing Chrome profile. Isolated browser contexts are not always an equivalent replacement because they do not share that profile's login state.

There is already a proposed implementation with tests in #41922, but that PR was closed because it did not have a corresponding issue. I am filing this issue to provide the requested discussion/triage entry. if maintainers approve the direction, the existing contributor may be able to reopen or supersede it.

Activity

  1. changed the title [-][MCP]: Support multiple concurrent Extension clients with isolated tab groups[/-] [+][FEATURE]: Support multiple concurrent Extension clients with isolated tab groups[/+] on Jul 29, 2026
  2. changed the title [-][FEATURE]: Support multiple concurrent Extension clients with isolated tab groups[/-] [+][Feature]: Support multiple concurrent Extension clients with isolated tab groups[/+] on Jul 29, 2026
  3. Ylandolsi commented on Jul 30, 2026

    @Ylandolsi

    +++1

  4. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

    Hi, I'm the Playwright bot and I took a first look.

    This is a valid feature request, and the current limitation is exactly as you describe. The bridge extension really does support only one active client per profile — I confirmed it in the source, not just the report. So there's nothing to "fix" here yet; the real question is whether we want to take the multi-connection direction.

    What the source shows

    In packages/extension/src/background.ts the extension keeps a single _activeGroup, and _connectTab() force-drops the previous one before installing the new group:

    // _connectTab()
    await this._cleanupPromise;
    this._disconnect('Another connection is requested'); // ← tears down client A
    ...
    this._activeGroup = group;                            // ← single active group

    _disconnect() closes that one group and clears _activeGroup, so connecting client B does disconnect client A and pulls A's tabs out of their group — matching your reproduction.

    Prior art

    There's a proposed implementation with tests in #41922 (a connection map instead of a single _activeGroup, per-connection labeled tab groups, no focus-steal on token-bypass, per-client disconnect on the status page). It was closed for not having a corresponding issue — this issue now fills that gap. I'm a first pass and don't own the roadmap call, so I'll leave the direction to a maintainer.

    Triaged by the Playwright bot - agent run

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