fix(ai): preserve chat and side panel across workspace merge

Inherit the focused terminal's AI session when tabs merge, hand it back on dissolve, and remap side-panel open/layout/SFTP state so the panel does not look cleared.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
bincxz
2026-08-10 14:21:07 +08:00
parent d03f8873c5
commit fee778a775
13 changed files with 853 additions and 21 deletions
@@ -123,6 +123,7 @@ export function useTerminalSidePanelLayoutState() {
setSidePanelOpenTabs,
sidePanelOpenTabsRef,
sidePanelLayouts,
setSidePanelLayouts,
sidePanelLayoutsRef,
focusPane,
splitPane,