mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-21 12:55:09 +00:00
When the agent opens multiple tabs during a task, all tabs now show the same streaming conversation in their side panels instead of independent empty conversations. Server: framework.ts resolves tabId from structuredContent.pageId in addition to args.page, so new_page and new_hidden_page tools now get tabId in their output metadata. Client: leader panel extracts followerTabIds from tool output metadata and writes them to shared session storage (keyed by conversationId for parallel execution support). Background script watches for new followerTabIds and auto-opens side panels on those tabs. Follower panels detect their tab in the list and sync messages in real-time. Handles edge cases: follower opt-out on reset, stale leader detection (10s timeout), cleanup after completion, and stop signal forwarding.