Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: editing search query exits speaker drill-down in Cmd+K modal

Louis Beaumont30d552b3a0e4
diff --git a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
index 7a305e5cb..1956afc40 100644
--- a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
@@ -636,7 +636,17 @@ export function SearchModal({ isOpen, onClose, onNavigateToTimestamp }: SearchMo
ref={inputRef}
type="text"
value={query}
- onChange={(e) => setQuery(e.target.value)}
+ onChange={(e) => {
+ setQuery(e.target.value);
+ // Exit speaker drill-down when user edits search query
+ if (selectedSpeaker) {
+ setSelectedSpeaker(null);
+ setSpeakerTranscriptions([]);
+ setSelectedTranscriptionIndex(0);
+ setTranscriptionOffset(0);
+ setHasMoreTranscriptions(true);
+ }
+ }}
placeholder="Search your memory..."
className="flex-1 bg-transparent text-foreground placeholder:text-muted-foreground text-sm outline-none"
autoComplete="off"