mirror of
https://github.com/remorses/playwriter.git
synced 2026-09-14 16:37:40 +08:00
bd6c7eb363
Route extension relay connections by their per-profile install id before falling back to Google account identity. This keeps two Chrome profiles signed into the same account from replacing each other in the relay. Keep Playwright-created tabs in the intended Chrome window by remembering the window where the extension was activated and using that window for Target.createTarget and initial tabs. Handle Chrome debugger cancellation as a global detach event. When Chrome reports canceled_by_user, clear all tracked debugger tabs and emit detach events so Playwright stops sending commands to tabs Chrome already detached from. Also avoid resurrecting stale error tab state if the detach happens while attachTab is still unwinding. Validation: - pnpm test --run src/relay-state.test.ts - pnpm typecheck - pnpm build in extension/ - Manual two-profile Hacker News navigation and comment extraction - Mythos review found no blocking issues Session: ses_120923e0fffe5l4GT77WwyXEGP