mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
Phase 2 of #4098: the workspace becomes a first-class object that survives membership changes. - Close/detach no longer dissolves a workspace at <=1 member. The workspace entity (and its id) survives with its remaining members, even at zero, where it keeps an empty split root placeholder that renders as an empty workspace tab. - Focus handoff after member loss resolves to the most-recently-active surviving member (AI chat updatedAt via the AI session store), never positionally to remainingSessionIds[0]; with no recency signal focus is cleared and the pane renderer uses its display default. - session restore: drop the empty-workspace skip. Workspaces closed to zero members persist an empty root and come back after restart with the same id, so their AI chats re-link. Roots that prune to null because their member sessions cannot be restored are still dropped. - applyCloseSessionToSessions no longer orphans the survivor; the dissolved-workspace tab-order replacement machinery is removed.