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): shortcut reminder not showing on macOS
Louis Beaumonta9536bcad9a7
diff --git a/screenpipe-app-tauri/src-tauri/src/commands.rs b/screenpipe-app-tauri/src-tauri/src/commands.rsindex e793e8ef2..db7248ffa 100644--- a/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -423,16 +423,18 @@ pub async fn show_shortcut_reminder(#[cfg(target_os = "macos")]{use tauri_nspanel::WebviewWindowExt;- use tauri_nspanel::ManagerExt;if let Ok(_panel) = window.to_panel() {info!("Successfully converted shortcut-reminder to panel");- let app_clone = app_handle.clone();+ // Clone window to pass into main thread closure+ let window_clone = window.clone();let _ = app_handle.run_on_main_thread(move || {use tauri_nspanel::cocoa::appkit::NSWindowCollectionBehavior;- if let Ok(panel) = app_clone.get_webview_panel(label) {+ // Use to_panel() on window_clone directly instead of get_webview_panel+ // This avoids race conditions with panel registration+ if let Ok(panel) = window_clone.to_panel() {// Level 1001 = above CGShieldingWindowLevel, shows over fullscreenpanel.set_level(1001);panel.set_style_mask(0);@@ -445,6 +447,8 @@ pub async fn show_shortcut_reminder(// Order front regardless to show above fullscreenpanel.order_front_regardless();info!("Panel configured for fullscreen support");+ } else {+ error!("Failed to get panel in main thread");}});} else {