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: skip notification panel when overlay is visible to prevent deadlock, bump app to v2.2.151

Louis Beaumonta8e665ab4b8b
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 28321cfdf..b74ea1774 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -9329,7 +9329,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.149"
+version = "2.2.150"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index f0eefa200..bec35767a 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.2.150"
+version = "2.2.151"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/health.rs b/apps/screenpipe-app-tauri/src-tauri/src/health.rs
index 98bb7a2cb..8db88a039 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/health.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/health.rs
@@ -537,7 +537,16 @@ pub async fn start_health_check(app: tauri::AppHandle) -> Result<()> {
}
/// Show a notification telling the user that capture has stalled, with a restart button.
+/// Skips showing if the main overlay panel is visible — the notification panel
+/// steals focus and causes a deadlock with the overlay's focus-loss handler.
async fn show_capture_stall_notification(app: &tauri::AppHandle, system: &str) -> Result<()> {
+ #[cfg(target_os = "macos")]
+ {
+ if crate::window::MAIN_PANEL_SHOWN.load(std::sync::atomic::Ordering::SeqCst) {
+ tracing::debug!("skipping capture stall notification — overlay is visible");
+ return Ok(());
+ }
+ }
let payload = serde_json::json!({
"id": format!("capture_stall_{}", system),
"type": "capture_stall",