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: fallback to /pipes without executions on timeout instead of empty state
Louis Beaumontcb826f55450d
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsxindex 9defc64ed..9870e880b 100644--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx@@ -817,10 +817,17 @@ export function PipesSection() {const fetchPipes = useCallback(async () => {try {- const controller = new AbortController();- const timeout = setTimeout(() => controller.abort(), 10000);- const res = await fetch(`${apiBase}/pipes?include_executions=true`, { signal: controller.signal });- clearTimeout(timeout);+ // Try with executions first (10s timeout), fall back to without+ let res: Response;+ try {+ const controller = new AbortController();+ const timeout = setTimeout(() => controller.abort(), 10000);+ res = await fetch(`${apiBase}/pipes?include_executions=true`, { signal: controller.signal });+ clearTimeout(timeout);+ } catch {+ // If timed out, retry without executions (much faster)+ res = await fetch(`${apiBase}/pipes`);+ }const data = await res.json();const rawItems: Array<PipeStatus & { recent_executions?: PipeExecution[] }> = data.data || [];const fetched: PipeStatus[] = [];@@ -987,10 +994,15 @@ export function PipesSection() {const fetchAllExecutions = useCallback(async () => {try {- const controller = new AbortController();- const timeout = setTimeout(() => controller.abort(), 10000);- const res = await fetch(`${apiBase}/pipes?include_executions=true`, { signal: controller.signal });- clearTimeout(timeout);+ let res: Response;+ try {+ const controller = new AbortController();+ const timeout = setTimeout(() => controller.abort(), 10000);+ res = await fetch(`${apiBase}/pipes?include_executions=true`, { signal: controller.signal });+ clearTimeout(timeout);+ } catch {+ return; // non-fatal background refresh — skip if slow+ }const data = await res.json();const rawItems: Array<PipeStatus & { recent_executions?: PipeExecution[] }> = data.data || [];const fetched: PipeStatus[] = [];