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 stderr logging, increase Pi startup delay to 1.5s
Louis Beaumontc6260ab1560f
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 6f583af69..8ef766243 100755--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -8097,7 +8097,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.461"+version = "2.0.463"dependencies = ["anyhow","arboard",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 2ae6fe3eb..7f3e06889 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.0.462"+version = "2.0.463"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs b/apps/screenpipe-app-tauri/src-tauri/src/pi.rsindex 7471fc3c6..7749062ef 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs@@ -729,6 +729,8 @@ pub async fn pi_start_inner(Ok(line) => {// Try to parse as JSON RPC event and forward like stdoutif let Ok(event) = serde_json::from_str::<Value>(&line) {+ let event_type = event.get("type").and_then(|t| t.as_str()).unwrap_or("?");+ info!("Pi stderr JSON: type={}", event_type);if let Err(e) = app_handle.emit("pi_event", &event) {error!("Failed to emit pi_event from stderr: {}", e);}@@ -737,7 +739,7 @@ pub async fn pi_start_inner(}} else {// Not JSON — log as plain stderr- debug!("Pi stderr: {}", line);+ info!("Pi stderr (non-JSON): {}", &line[..line.len().min(200)]);}let _ = app_handle.emit("pi_log", &line);}@@ -748,8 +750,9 @@ pub async fn pi_start_inner(});}- // Brief wait then check if process died immediately (e.g. bad config, missing deps)- tokio::time::sleep(tokio::time::Duration::from_millis(200)).await;+ // Wait for Pi to initialize before allowing prompts. Pi v0.51+ needs time+ // to set up its RPC listener — sending prompts too early causes them to be lost.+ tokio::time::sleep(tokio::time::Duration::from_millis(1500)).await;{let mut manager_guard = state.0.lock().await;if let Some(m) = manager_guard.as_mut() {