feat(ui): session nav follows visible list

Cmd+Shift+[ and Cmd+Shift+] now cycle through visible sessions only (parents + expanded children) and no longer include Instance Info. Sidebar session list auto-scrolls to keep the active session row in view.
This commit is contained in:
Shantur Rathore
2026-01-09 16:34:44 +00:00
parent e50d9f461a
commit 1a7aefcbae
6 changed files with 217 additions and 134 deletions

View File

@@ -9,6 +9,7 @@ import {
clearActiveParentSession,
clearInstanceDraftPrompts,
clearSessionDraftPrompt,
ensureSessionParentExpanded,
getActiveParentSession,
getActiveSession,
getChildSessions,
@@ -18,17 +19,22 @@ import {
getSessionInfo,
getSessionThreads,
getSessions,
getVisibleSessionIds,
isSessionBusy,
isSessionMessagesLoading,
isSessionParentExpanded,
loading,
providers,
sessionInfoByInstance,
sessions,
setActiveParentSession,
setActiveSession,
setActiveSessionFromList,
setSessionDraftPrompt,
setSessionParentExpanded,
setSessionStatus,
} from "./session-state"
toggleSessionParentExpanded,
} from "./session-state"
import { getDefaultModel } from "./session-models"
import {
@@ -86,6 +92,7 @@ export {
clearSessionDraftPrompt,
createSession,
deleteSession,
ensureSessionParentExpanded,
executeCustomCommand,
renameSession,
runShellCommand,
@@ -103,8 +110,10 @@ export {
getSessionInfo,
getSessionThreads,
getSessions,
getVisibleSessionIds,
isSessionBusy,
isSessionMessagesLoading,
isSessionParentExpanded,
loadMessages,
loading,
providers,
@@ -113,8 +122,11 @@ export {
sessions,
setActiveParentSession,
setActiveSession,
setActiveSessionFromList,
setSessionDraftPrompt,
setSessionParentExpanded,
setSessionStatus,
toggleSessionParentExpanded,
updateSessionAgent,
updateSessionModel,
}