fix: close search when starting new chats

maintainer edit: Close the session search dialog when the global new-chat shortcut navigates to the blank chat route, and expose the new shortcut through the sidebar button title so the shortcut is discoverable.
This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-06-04 14:01:21 +08:00
1 parent 4275678b43
commit 54d8d3010b
3 files changed
+50 -3

No files matched your search

+1
View File
@@ -813,6 +813,7 @@ function Shell({
navigate(defaultShellRoute());
setDraftWorkspaceScope(null);
setWorkspaceError(null);
setSessionSearchOpen(false);
setMobileSidebarOpen(false);
}, [navigate]);