mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-23 05:02:21 +02:00
duplicate_dashboard cloned the layout but left every browser_card pointing at the source's browser_id and never copied the sessions, so the new dashboard showed the browser but no chat. Now we mint fresh browser_ids, duplicate every session attached to the source dashboard (in-memory + on-disk), remap browser_id / parent_session_id / spawned_by / cards / expanded_session_ids onto the new ids, and persist via _save_session. Also restores top-level agent cards (layout.cards), which were silently dropped on duplicate.