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(pipes): prevent duplicate output in runs tab (#4250)
Harsh Kumar0577edbd05ed
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsxindex 588b50772..81b5dfd5f 100644--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx@@ -683,6 +683,7 @@ export function cleanPipeStdout(raw: string): string {let textBuf = ""; // accumulates text_delta fragmentslet errorMessage: string | null = null;let hasTextDelta = false;+ let hasExtractedContent = false;function flushText() {if (textBuf) {@@ -740,6 +741,7 @@ export function cleanPipeStdout(raw: string): string {for (const block of msg.content) {if (block.type === "text" && block.text) {parts.push(block.text);+ hasExtractedContent = true;}}}@@ -754,7 +756,7 @@ export function cleanPipeStdout(raw: string): string {if (msg.stopReason === "error" && msg.errorMessage) {errorMessage = msg.errorMessage;}- if (!hasTextDelta && msg.content) {+ if (!hasTextDelta && !hasExtractedContent && msg.content) {for (const block of msg.content) {if (block.type === "text" && block.text) {parts.push(block.text);