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(updater): allow manual update restarts during meetings (#7024)
Ezra Ellette0cd61c044f64
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs b/apps/screenpipe-app-tauri/src-tauri/src/updates.rsindex 30c79fc3d..e577ee9f5 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/updates.rs@@ -1626,7 +1626,18 @@ impl UpdatesManager {return Result::Ok(true);};- // Only the first trigger applies; defer to an in-flight restart.+ let _ = self.app.emit(+ "update-restarting",+ serde_json::json!({+ "version": update.version,+ "delay_secs": 30,+ }),+ );+ wait_for_meeting_restart_window(&self.app).await;++ // Claim the restart only after the meeting wait so a manual+ // banner/tray click can proceed while auto-update is deferred.+ // If it already did, avoid a second teardown and relaunch.if UPDATE_RESTART_STARTED.swap(true, Ordering::SeqCst) {info!("auto-update: update-restart already in progress, deferring");return Result::Ok(true);