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: chat blank after meeting-notes Summarize

Louis Beaumontee5f906beef0
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index bcc2861d4..aa297c736 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -3345,7 +3345,13 @@ export function StandaloneChat({
return () => {
unlisten.then((fn) => fn());
};
- }, [piInfo]);
+ // Register once. The handler only touches refs and stable setters, so it
+ // doesn't need to re-subscribe on piInfo changes — and re-subscribing
+ // creates a teardown/attach gap where an in-flight chat-prefill event can
+ // be lost (e.g. meeting-notes Summarize → page reload → 120ms emit), which
+ // leaves isPreparingPrefill stuck true and the chat blank.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
// Listen for chat-load-conversation events. Sources:
// - timeline (clicking a previous chat in the timeline view)