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(workflows): convert verification error at desktop boundary (#7237)

Louis Beaumont701bd0ef4252
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/workflows_runtime.rs b/apps/screenpipe-app-tauri/src-tauri/src/workflows_runtime.rs
index 3b0e52553..2a50cc0bb 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/workflows_runtime.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/workflows_runtime.rs
@@ -1091,7 +1091,8 @@ async fn request_workflow_analysis(
evidence::resolve_references(recorder, &value, catalog, activity),
)
.await
- .map_err(|_| "Source verification timed out; your previous map was kept".to_string())??;
+ .map_err(|_| "Source verification timed out; your previous map was kept".to_string())?
+ .map_err(|error| error.to_string())?;
let metrics =
json!({"agentRuns": 1, "sourceReads": reads, "elapsedMs": started.elapsed().as_millis()});
Ok((value, catalog, metrics))