Skip to content

feat(extension): add orange tab group and isolate controlled tab in new window#1422

Open
mrw wants to merge 2 commits intomicrosoft:mainfrom
mrw:feat/extension-orange-tab-group
Open

feat(extension): add orange tab group and isolate controlled tab in new window#1422
mrw wants to merge 2 commits intomicrosoft:mainfrom
mrw:feat/extension-orange-tab-group

Conversation

@mrw
Copy link

@mrw mrw commented Feb 25, 2026

Summary

I've been using Claude Cowork quite a bit, and when it takes over Chrome, it puts the tab it's controlling into a tab group with a color border. I've found that to be a really nice convenience feature because I can tell at quick glance which tabs are being automated.

This PR adds that same feature to the Playwright MCP Bridge Chrome extension. It also opens the controlled tab in a new window.

  • When the extension takes over a tab via the MCP bridge, it now moves the tab to a new browser window.
  • The controlled tab is placed in an orange tab group labeled "Playwright MCP" in the browser tab strip.
  • The tab group is automatically cleaned up when the MCP session disconnects or the tab is closed.

Changes

File Change
packages/extension/manifest.json Added tabGroups permission
packages/extension/src/background.ts New window, orange tab group on connect, cleanup on disconnect
packages/extension/tests/extension.spec.ts 3 tests: tab group creation, window isolation, cleanup on disconnect

I ran the full test suite locally and they all passed.

When the extension takes over a tab, it now:
- Moves the tab to its own dedicated window if it shares one with other tabs
- Places the tab in an orange tab group labeled 'Playwright MCP' for easy
  visual identification in the browser tab strip

The tab group is cleaned up when the MCP session disconnects or the tab is
closed.
@mrw
Copy link
Author

mrw commented Feb 25, 2026

@microsoft-github-policy-service agree company="Happy Cog"

@mrw mrw marked this pull request as ready for review February 25, 2026 16:45
@dgozman dgozman requested a review from yury-s March 6, 2026 16:45
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.

1 participant