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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(chat): reset messages when dialog closes
Louis Beaumont002855a131a8
diff --git a/screenpipe-app-tauri/components/global-chat.tsx b/screenpipe-app-tauri/components/global-chat.tsxindex a8e2f54f4..7a7a631f4 100644--- a/screenpipe-app-tauri/components/global-chat.tsx+++ b/screenpipe-app-tauri/components/global-chat.tsx@@ -205,10 +205,14 @@ export function GlobalChat() {return () => window.removeEventListener("keydown", handleKeyDown);}, []);- // Focus input when opening+ // Focus input when opening, reset state when closinguseEffect(() => {if (open) {setTimeout(() => inputRef.current?.focus(), 100);+ } else {+ // Reset chat state when dialog closes+ setMessages([]);+ setInput("");}}, [open]);