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: rustfmt formatting in pipes_api.rs
Louis Beaumont413df0b0e48a
diff --git a/crates/screenpipe-engine/src/pipes_api.rs b/crates/screenpipe-engine/src/pipes_api.rsindex 5773cd5ef..3f366baa9 100644--- a/crates/screenpipe-engine/src/pipes_api.rs+++ b/crates/screenpipe-engine/src/pipes_api.rs@@ -209,19 +209,37 @@ pub async fn get_pipe_session(let mgr = pm.lock().await;let execs = match mgr.get_executions(&id, 100).await {Ok(e) => e,- Err(e) => return (StatusCode::INTERNAL_SERVER_ERROR, Json(json!({ "error": e.to_string() }))),+ Err(e) => {+ return (+ StatusCode::INTERNAL_SERVER_ERROR,+ Json(json!({ "error": e.to_string() })),+ )+ }};let exec = match execs.iter().find(|e| e.id == exec_id) {Some(e) => e,- None => return (StatusCode::NOT_FOUND, Json(json!({ "error": "execution not found" }))),+ None => {+ return (+ StatusCode::NOT_FOUND,+ Json(json!({ "error": "execution not found" })),+ )+ }};let session_path = match &exec.session_path {Some(p) => p.clone(),- None => return (StatusCode::NOT_FOUND, Json(json!({ "error": "no session file for this execution" }))),+ None => {+ return (+ StatusCode::NOT_FOUND,+ Json(json!({ "error": "no session file for this execution" })),+ )+ }};match tokio::fs::read_to_string(&session_path).await {Ok(content) => (StatusCode::OK, Json(json!({ "data": content }))),- Err(e) => (StatusCode::NOT_FOUND, Json(json!({ "error": format!("failed to read session file: {}", e) }))),+ Err(e) => (+ StatusCode::NOT_FOUND,+ Json(json!({ "error": format!("failed to read session file: {}", e) })),+ ),}}