diff --git a/src/components/command/CommandFooter.tsx b/src/components/command/CommandFooter.tsx
index b6b4cea..b0fc14d 100644
--- a/src/components/command/CommandFooter.tsx
+++ b/src/components/command/CommandFooter.tsx
@@ -47,9 +47,17 @@ export function CommandFooter({
const [copied, setCopied] = useState(false);
const [drawerOpen, setDrawerOpen] = useState(false);
const [drawerClosing, setDrawerClosing] = useState(false);
+ const [hasEverHadSelection, setHasEverHadSelection] = useState(false);
const { toggle: toggleTheme } = useTheme();
+ // Track if we've ever had a selection - once true, stays true forever
+ useEffect(() => {
+ if (selectedCount > 0 && !hasEverHadSelection) {
+ setHasEverHadSelection(true);
+ }
+ }, [selectedCount, hasEverHadSelection]);
+
const closeDrawer = useCallback(() => {
setDrawerClosing(true);
setTimeout(() => {
@@ -167,114 +175,116 @@ export function CommandFooter({
setSelectedHelper={setSelectedHelper}
/>
- {/* Animated footer container */}
-
-
- {/* Soft glow behind bars */}
-
-
-
- {/* Shortcuts Bar */}
-
+
+ {/* Soft glow behind bars */}
+
- {/* Command Bar */}
-
-
- {/* Preview button (hidden on mobile) */}
-
+
+ {/* Shortcuts Bar */}
+
- {/* Command text */}
-
selectedCount > 0 && setDrawerOpen(true)}
- >
-
0 ? 'text-[var(--text-primary)]' : 'text-[var(--text-muted)]'}`}>
- {command}
-
+ {/* Command Bar */}
+
+
+ {/* Preview button (hidden on mobile) */}
+
+
+ {/* Command text */}
+
selectedCount > 0 && setDrawerOpen(true)}
+ >
+ 0 ? 'text-[var(--text-primary)]' : 'text-[var(--text-muted)]'}`}>
+ {command}
+
+
+
+ {/* Clear button (hidden on mobile) */}
+
+
+ {/* Download button (hidden on mobile) */}
+
+
+ {/* Copy button (hidden on mobile) */}
+
-
- {/* Clear button (hidden on mobile) */}
-
-
- {/* Download button (hidden on mobile) */}
-
-
- {/* Copy button (hidden on mobile) */}
-
-
+ )}
>
);
}