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: remove warmup prompt — it burns rate limits on free models and crashes Pi
Louis Beaumont6ac467191b23
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs b/apps/screenpipe-app-tauri/src-tauri/src/pi.rsindex 1f49d8180..a828e7edb 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs@@ -1477,26 +1477,10 @@ pub async fn pi_start_inner(}}- // Workaround for Pi agent bug: first RPC prompt always fails with- // "Cannot read properties of undefined (reading 'startsWith')" (pi-mono#2461).- // Send a silent warmup prompt that absorbs the crash, so the user's first- // real message hits on the second (working) call.- {- let pool = state.0.lock().await;- if let Some(m) = pool.sessions.get(&sid) {- if let Some(ref qh) = m.queue_handle {- let warmup = serde_json::json!({"type": "prompt", "content": "."});- let qh = qh.clone();- tokio::spawn(async move {- match qh.send(warmup, crate::pi_command_queue::WaitMode::StreamThenWaitDone).await {- Ok(rx) => { let _ = rx.await; }- Err(e) => debug!("Pi warmup send failed (non-fatal): {}", e),- }- debug!("Pi warmup prompt completed (absorbed first-call bug)");- });- }- }- }+ // Pi agent bug (pi-mono#2461): first RPC prompt fails with "startsWith" error.+ // Handled in the frontend — standalone-chat.tsx suppresses startsWith errors.+ // Do NOT send a warmup prompt here — it burns rate limits on free models+ // and can crash Pi with 429 errors.Ok(snapshot)}