mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-12 18:16:09 +00:00
Lightpanda requires one CDP connection per tab (vs Chrome's shared-WS model). Add a Backend selector in pkg/browser/, branched lifecycle, and per-tab connection tracking via pageConns. - Backend type (chrome | lightpanda), WithBackend option, Backend() accessor. Auto-detected from /json/version when unset. - Lightpanda OpenTab mints a fresh conn, calls Target.createBrowserContext (required per-conn) + createTarget. - ListTabs / getPage are local-map only on Lightpanda (no /json/list, no auto-reconnect). - Shared closeManagedPageLocked helper used by CloseTab, evict, and the idle-page reaper. - Screenshot tool action errors out on Lightpanda (returns a placeholder image upstream; route the agent to snapshot instead).