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(macos): chat Escape uses order_out instead of close, bump app to v2.2.136

Louis Beaumont5b7b0dd44b8c
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index e37a52641..8447a27dc 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.135"
+version = "2.2.136"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index e7ab95fbb..bc767f89d 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.135"
+version = "2.2.136"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
index 0c6b3f78b..2fa71cd51 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -2071,6 +2071,21 @@ impl ShowRewindWindow {
return Ok(());
}
+ // Chat panel: order_out instead of close to preserve the pre-created
+ // panel. close() destroys the window, then the shortcut handler tries
+ // to re-create it in a broken state. order_out just hides it.
+ #[cfg(target_os = "macos")]
+ if id.label() == RewindWindowId::Chat.label() {
+ let app_clone = app.clone();
+ run_on_main_thread_safe(app, move || {
+ use tauri_nspanel::ManagerExt;
+ if let Ok(panel) = app_clone.get_webview_panel(RewindWindowId::Chat.label()) {
+ panel.order_out(None);
+ }
+ });
+ return Ok(());
+ }
+
window.close().ok();
}
Ok(())