From 7dbf3105b47cd74ef34c65aeba2cd2476eaa9151 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 18 May 2026 16:13:16 +0000 Subject: [PATCH] Open command palette from sidebar store Co-authored-by: Julius Marminge --- apps/web/src/components/Sidebar.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index e8c5bbe0b1..2d3407f0c9 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -175,7 +175,6 @@ import { import { sortThreads } from "../lib/threadSort"; import { SidebarUpdatePill } from "./sidebar/SidebarUpdatePill"; import { useCopyToClipboard } from "~/hooks/useCopyToClipboard"; -import { CommandDialogTrigger } from "./ui/command"; import { readEnvironmentApi } from "../environmentApi"; import { useSettings, useUpdateSettings } from "~/hooks/useSettings"; import { useServerKeybindings } from "../rpc/serverState"; @@ -2619,20 +2618,22 @@ const SidebarProjectsContent = memo(function SidebarProjectsContent( }, [updateSettings], ); + const setCommandPaletteOpen = useCommandPaletteStore((store) => store.setOpen); + const handleCommandPaletteClick = useCallback(() => { + setCommandPaletteOpen(true); + }, [setCommandPaletteOpen]); return ( - - } + Search @@ -2641,7 +2642,7 @@ const SidebarProjectsContent = memo(function SidebarProjectsContent( {commandPaletteShortcutLabel} ) : null} - +