feat: make sure graph view opens in maximised pane

This commit is contained in:
tusharmagar 2026-02-19 15:36:26 +05:30
parent f61404cbcd
commit fe689c705f

View file

@ -2357,6 +2357,11 @@ function App() {
} }
}, },
openGraph: () => { openGraph: () => {
// From chat-only landing state, open graph directly in full knowledge view.
if (!selectedPath && !isGraphOpen && !selectedBackgroundTask) {
setIsChatSidebarOpen(false)
setIsRightPaneMaximized(false)
}
void navigateToView({ type: 'graph' }) void navigateToView({ type: 'graph' })
}, },
expandAll: () => setExpandedPaths(new Set(collectDirPaths(tree))), expandAll: () => setExpandedPaths(new Set(collectDirPaths(tree))),
@ -2422,7 +2427,7 @@ function App() {
onOpenInNewTab: (path: string) => { onOpenInNewTab: (path: string) => {
openFileInNewTab(path) openFileInNewTab(path)
}, },
}), [tree, selectedPath, workspaceRoot, navigateToFile, navigateToView, openFileInNewTab, fileTabs, closeFileTab, removeEditorCacheForPath]) }), [tree, selectedPath, isGraphOpen, selectedBackgroundTask, workspaceRoot, navigateToFile, navigateToView, openFileInNewTab, fileTabs, closeFileTab, removeEditorCacheForPath])
// Handler for when a voice note is created/updated // Handler for when a voice note is created/updated
const handleVoiceNoteCreated = useCallback(async (notePath: string) => { const handleVoiceNoteCreated = useCallback(async (notePath: string) => {