← Back to wkappbot-webbot
wkappbot-webbot ★★★

CDP Port Isolation via Window Property per wkappbot Instance

Each wkappbot instance binds its launched CDP port to a Window Property keyed by ProjectRoot.Hash8 on the parent console (or desktop) HWND so sibling instances cannot steal each other's Chrome via host or port scans. Strict CWD-hash isolation: ProjectRoot honors AsyncLocal CallerCwdOverride from EyeCmdPipeServer (so Eye serving sibling repos uses the actual caller's hash, not the cached first-call hash), and FindRunningChromePort matches userDataDir by exact path equality on both the WMI cmdline parse and the /json/version udd field. No more substring-contains matches; no more 'trust derived port if udd absent' fallback.

user/developer
cdpisolationmulti-instancewindow-propertychrome

Steps

  1. On Chrome launch or detected reuse: ChromeLa...
  2. FindBestPortForHostAsync consults GetLaunche...
  3. FindFirstFreePortAsync returns the registere...
  4. EnsureCdpConnection (AskCommands.Entry.Cdp)...
  5. ConnectCdp (WebCommands) prefers GetLaunched...
  6. ProjectRoot.Find/Hash8 honor AsyncLocal Call...
  7. FindRunningChromePort and KillStaleChromesAs...
  8. FindRunningChromePortByCdpScan returns 0 whe...
  9. Last-resort recovery (2026-05-25): when all...
  10. BUG FIX (2026-05-26): FindRunningChromePortA...
  11. [AUDIT 2026-05-29] ChromeLauncher.cs split i...
  12. [AUDIT 2026-05-29] ChromeLauncher.cs split i...
  13. [AUDIT 2026-06-03] source_refs broken: multi...
  14. [AUDIT 2026-06-04] ChromeLauncher.cs split i...
🔒 Pro Skill
Get Pro Access →