v1.2.3 — multi-session fix + attachOrcaTab()
Fixed
- Multi-session cross-driving — two independent drivers could end up driving each other's tab, because default discovery fell back to "the first/active endpoint" (which flips whenever any session opens or focuses a tab).
discoverCdpUrl()now throws with the full tab list when >1 tab is open and no tab was specified, instead of silently picking the active one.openOrcaTab()resolves its port by the createdbrowserPageIdrather than a racy port-set diff.
Added
attachOrcaTab(pageId)— re-attach Playwright to a tab you already own by itsbrowserPageId, regardless of which tab is focused. The multi-session-safe reconnect;close()leaves the tab open.findEndpointForPageId(pageId)— exported helper.
Tested against Orca 1.4.120 (regression test: attach lands on tab A even when tab B is active).