@@ -36,7 +36,7 @@ export function CommandPalette() {
3636 taxonomy : { label : "TAXONOMY" , hint : "Jump into category clusters" , shortcut : "Alt+3" } ,
3737 } as const ;
3838 const { agents, wikiPages, setSelectedAgent, setIntelTab } = useSimulationStore ( ) ;
39- const { searchResults, searching, globalSearch } = useMultiverseStore ( ) ;
39+ const { searchResults, searching, globalSearch, setGlobalSearchResults } = useMultiverseStore ( ) ;
4040 const { rootNodes, fetchTree } = useTaxonomyStore ( ) ;
4141 const shortcutLabel = useMemo ( ( ) => {
4242 if ( typeof navigator !== "undefined" && / m a c / i. test ( navigator . platform ) ) {
@@ -132,7 +132,11 @@ export function CommandPalette() {
132132 const timer = setTimeout ( ( ) => globalSearch ( query ) , 300 ) ;
133133 return ( ) => clearTimeout ( timer ) ;
134134 }
135- } , [ query , mode , globalSearch ] ) ;
135+
136+ if ( mode === "global" ) {
137+ setGlobalSearchResults ( [ ] ) ;
138+ }
139+ } , [ query , mode , globalSearch , setGlobalSearchResults ] ) ;
136140
137141 // Fetch taxonomy when mode changes
138142 useEffect ( ( ) => {
0 commit comments