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): pipe-watch "writing…" strands after pipe completes
Louis Beaumont8d438b44705b
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex 7e53834fb..2519bfa00 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -1969,6 +1969,32 @@ export function StandaloneChat({setMessages(pipeWatchMessages as any);}, [pipeWatchMessages, setMessages]);+ // Mirror isLoading / isStreaming from the store for pipe-watch+ // sessions. Without this the panel's "writing…" indicator strands+ // forever once the pipe finishes — the writer flips the flags in the+ // store on agent_end, but the panel's local React state was set to+ // true at initWatch and never gets cleared (no foreground bus+ // registration → no panel-side terminal handler runs).+ // Two scalar selectors instead of one returning {isLoading,isStreaming}+ // — Zustand's shallow-equal would re-render every store mutation if+ // the selector built a fresh object each call.+ const pipeWatchIsLoading = useChatStore((s) => {+ if (!conversationId) return undefined;+ const sess = s.sessions[conversationId];+ if (sess?.kind !== "pipe-watch") return undefined;+ return !!sess.isLoading;+ });+ const pipeWatchIsStreaming = useChatStore((s) => {+ if (!conversationId) return undefined;+ const sess = s.sessions[conversationId];+ if (sess?.kind !== "pipe-watch") return undefined;+ return !!sess.isStreaming;+ });+ useEffect(() => {+ if (pipeWatchIsLoading !== undefined) setIsLoading(pipeWatchIsLoading);+ if (pipeWatchIsStreaming !== undefined) setIsStreaming(pipeWatchIsStreaming);+ }, [pipeWatchIsLoading, pipeWatchIsStreaming]);+// Keep the pipe-context banner in sync with the current session.// When the panel switches AWAY from a pipe-watch session (user// clicks a chat), `activePipeExecution` would otherwise stay setdiff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 8812298fd..f0e20868c 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.4.90"+version = "2.4.91"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""