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(macos): restore space monitor + fix keyboard focus in panel
Louis Beaumont5a50aaad9bc5
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 19ec3a6c8..97aa50239 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1224,10 +1224,10 @@ async fn main() {}});- // Space monitor disabled — panel uses nonactivating mask so it- // no longer triggers Space switches. The monitor was fighting with- // the panel's own show/hide and causing feedback loops.- // space_monitor::setup_space_listener(app.handle().clone());+ // Hide overlay when user switches Spaces (e.g. three-finger swipe).+ // This no longer causes feedback loops because we removed+ // activateIgnoringOtherApps + activation policy toggling.+ space_monitor::setup_space_listener(app.handle().clone());}// Logging setupdiff --git a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rsindex fd61e2caa..1e4090035 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs@@ -364,6 +364,7 @@ impl ShowRewindWindow {// Update screen capture sharing typelet sharing: u64 = if capturable { 1 } else { 0 };let _: () = unsafe { msg_send![&*panel, setSharingType: sharing] };+ panel.make_first_responder(Some(panel.content_view()));panel.order_front_regardless();panel.make_key_window();let _ = app_clone.emit("window-focused", true);@@ -424,6 +425,9 @@ impl ShowRewindWindow {NSWindowCollectionBehavior::NSWindowCollectionBehaviorIgnoresCycle |NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary);+ // Set content view as first responder so the WKWebView+ // receives keyboard input (matches RawNSPanel::show() behavior).+ panel.make_first_responder(Some(panel.content_view()));panel.order_front_regardless();// Panel has NSNonactivatingPanelMask + canBecomeKeyWindow=YES,// so makeKeyWindow works without activating the app.