Skip to content

v1.2.3 — multi-session fix + attachOrcaTab()

Choose a tag to compare

@sagarpalsapure sagarpalsapure released this 03 Jul 10:58

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 created browserPageId rather than a racy port-set diff.

Added

  • attachOrcaTab(pageId) — re-attach Playwright to a tab you already own by its browserPageId, 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).