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: open pipe execution in chat button does nothing
Louis Beaumontfa575fb02167
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsxindex 0b28ef7b9..421a39f24 100644--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx@@ -1783,8 +1783,11 @@ export function PipesSection() {exec.started_at,);await saveConversationFile(conv);- await emit("chat-load-conversation", { conversationId: conv.id });- // Navigate to home/chat section+ // Store pending conversation ID so StandaloneChat+ // picks it up on mount (emit alone is lost during+ // page navigation because the listener isn't mounted yet)+ localStorage.setItem("pending-chat-conversation", conv.id);+ // Navigate to home/chat section via query paramconst url = new URL(window.location.href);url.searchParams.set("section", "home");window.location.href = url.toString();diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex bd408df6d..635496cbe 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -1257,6 +1257,23 @@ export function StandaloneChat({ className }: { className?: string } = {}) {// eslint-disable-next-line react-hooks/exhaustive-deps}, []);+ // Pick up pending conversation from pipe execution history (set via localStorage+ // because the emit event is lost during page navigation/remount)+ useEffect(() => {+ const pendingId = localStorage.getItem("pending-chat-conversation");+ if (pendingId) {+ localStorage.removeItem("pending-chat-conversation");+ (async () => {+ const { loadConversationFile } = await import("@/lib/chat-storage");+ const conv = await loadConversationFile(pendingId);+ if (conv) {+ loadConversation(conv);+ }+ })();+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);+const appMentionSuggestions = React.useMemo(() => buildAppMentionSuggestions(appItems, APP_SUGGESTION_LIMIT),[appItems]