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
Bump app to v2.0.571
Louis Beaumontd6d88330ad6d
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex d48fbf928..4a55200f7 100644--- 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.570"+version = "2.0.571"dependencies = ["anyhow","arboard",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 7072fd1cd..1dc3fdb85 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.570"+version = "2.0.571"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.rsindex 3a8055fc0..7a7593b85 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs@@ -70,18 +70,18 @@ pub fn init_magnify_handler(app: tauri::AppHandle) {#[cfg(not(target_os = "macos"))]pub fn init_magnify_handler(_app: tauri::AppHandle) {}-/// Attach an NSMagnificationGestureRecognizer to a panel's content view.+/// Attach an NSMagnificationGestureRecognizer to the given view./// Safe to call multiple times — skips if already attached.#[cfg(target_os = "macos")]-pub unsafe fn attach_magnify_gesture(panel: &tauri_nspanel::raw_nspanel::RawNSPanel) {+unsafe fn attach_magnify_gesture_to_view(view: tauri_nspanel::cocoa::base::id) {use objc::{class, msg_send, sel, sel_impl};use tauri_nspanel::cocoa::base::{id, nil};use tauri_nspanel::cocoa::foundation::NSArray;- let content_view: id = panel.content_view();+ if view == nil { return; }// Check if we already added our recognizer (look for ScreenpipeMagnifyHandler target)- let recognizers: id = msg_send![content_view, gestureRecognizers];+ let recognizers: id = msg_send![view, gestureRecognizers];if recognizers != nil {let count: u64 = NSArray::count(recognizers);let handler_class = class!(ScreenpipeMagnifyHandler);@@ -112,8 +112,8 @@ pub unsafe fn attach_magnify_gesture(panel: &tauri_nspanel::raw_nspanel::RawNSPaaction: sel!(handleMagnify:)];- // Add to content view- let _: () = msg_send![content_view, addGestureRecognizer: recognizer];+ // Add to view+ let _: () = msg_send![view, addGestureRecognizer: recognizer];}/// Run a closure on the main thread, catching any panics so they don't abort@@ -215,9 +215,6 @@ pub unsafe fn make_webview_first_responder(panel: &tauri_nspanel::raw_nspanel::Ruse tauri_nspanel::cocoa::base::{id, nil};use tauri_nspanel::cocoa::foundation::NSArray;- // Ensure pinch-to-zoom gesture recognizer is attached- attach_magnify_gesture(panel);-let content_view: id = panel.content_view();let wk_class: *const objc::runtime::Class = class!(WKWebView);@@ -245,6 +242,11 @@ pub unsafe fn make_webview_first_responder(panel: &tauri_nspanel::raw_nspanel::Rwk_view = content_view;}+ // Attach pinch-to-zoom gesture recognizer directly to the WKWebView.+ // Must be on the WKWebView (not content_view) so it intercepts gestures+ // before WebKit's internal multi-process routing claims them.+ attach_magnify_gesture_to_view(wk_view);+// Set first responder immediately (handles the common case)panel.make_first_responder(Some(wk_view));