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: add 10s timeout to pipes list fetch to prevent UI hanging
Louis Beaumont8a825d40aa05
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsxindex c80331f76..9defc64ed 100644--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx@@ -817,7 +817,10 @@ export function PipesSection() {const fetchPipes = useCallback(async () => {try {- const res = await fetch(`${apiBase}/pipes?include_executions=true`);+ const controller = new AbortController();+ const timeout = setTimeout(() => controller.abort(), 10000);+ const res = await fetch(`${apiBase}/pipes?include_executions=true`, { signal: controller.signal });+ clearTimeout(timeout);const data = await res.json();const rawItems: Array<PipeStatus & { recent_executions?: PipeExecution[] }> = data.data || [];const fetched: PipeStatus[] = [];@@ -984,7 +987,10 @@ export function PipesSection() {const fetchAllExecutions = useCallback(async () => {try {- const res = await fetch(`${apiBase}/pipes?include_executions=true`);+ const controller = new AbortController();+ const timeout = setTimeout(() => controller.abort(), 10000);+ const res = await fetch(`${apiBase}/pipes?include_executions=true`, { signal: controller.signal });+ clearTimeout(timeout);const data = await res.json();const rawItems: Array<PipeStatus & { recent_executions?: PipeExecution[] }> = data.data || [];const fetched: PipeStatus[] = [];