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: only show Pi stderr errors when user is waiting for a response

Louis Beaumont23bccf45d3ac
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 1966009a8..0c1b8ab38 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -1453,9 +1453,11 @@ export function StandaloneChat() {
}
}, delay);
});
- // Listen for Pi stderr — surface critical errors to user
+ // Listen for Pi stderr — only surface errors when user is actively waiting for a response
unlistenLog = await listen<string>("pi_log", (event) => {
if (!mounted) return;
+ // Only show errors if user sent a message and is waiting — not during background startup/restart
+ if (!piMessageIdRef.current) return;
const line = event.payload;
if (line.includes("not found") || line.includes("ECONNREFUSED") || line.includes("connection refused")) {
let hint = line;