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(windows): taskbar icon and shortcut open settings/home page instead of overlay
louis03019592295e030064
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rsindex ee30efb70..156e1f9d6 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -79,12 +79,9 @@ pub fn set_tray_health_icon(app_handle: tauri::AppHandle) {#[tauri::command]#[specta::specta]pub fn show_main_window(app_handle: &tauri::AppHandle, _overlay: bool) {- info!("show_main_window called, attempting to show Main window");+ info!("show_main_window called, attempting to show Settings window");- // Don't close Settings — it's a separate window the user explicitly opened.- // It will sit behind the overlay which is fine; the user can switch back to it.-- match ShowRewindWindow::Main.show(app_handle) {+ match ShowRewindWindow::Settings { page: None }.show(app_handle) {Ok(window) => {info!("ShowRewindWindow::Main.show succeeded, window label: {}",@@ -121,8 +118,8 @@ pub fn hide_main_window(app_handle: &tauri::AppHandle) {// handler in window_api.rs. Do NOT also unregister them here — doing// so races with the focus handler and causes duplicate unregister calls.- if let Err(e) = ShowRewindWindow::Main.close(app_handle) {- error!("failed to close main window: {}", e);+ if let Err(e) = ShowRewindWindow::Settings { page: None }.close(app_handle) {+ error!("failed to close settings window: {}", e);}}@@ -239,14 +236,7 @@ pub fn update_show_screenpipe_shortcut(}#[cfg(not(target_os = "macos"))]{- use crate::store::SettingsStore;- use crate::window_api::main_label_for_mode;- let mode = SettingsStore::get(app_handle)- .unwrap_or_default()- .unwrap_or_default()- .overlay_mode;- let label = main_label_for_mode(&mode);- if let Some(window) = app_handle.get_webview_window(label) {+ if let Some(window) = app_handle.get_webview_window("settings") {match window.is_visible() {Ok(true) => hide_main_window(app_handle),_ => show_main_window(app_handle, true),diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 15c2646e0..6b1a09589 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1365,11 +1365,14 @@ async fn main() {let _ = window.set_visible_on_all_workspaces(false);#[cfg(target_os = "macos")]crate::window_api::reset_to_regular_and_refresh_tray(window.app_handle());- // On Windows, minimize the main windowed window so it stays- // visible in the taskbar instead of vanishing to the tray.+ // On Windows, let the settings window close normally when user+ // clicks X. For other windows, minimize or hide.#[cfg(target_os = "windows")]{- if window.label() == "main-window" {+ if window.label() == "settings" {+ // Let the close proceed (don't prevent it)+ return;+ } else if window.label() == "main-window" {let _ = window.minimize();} else {let _ = window.hide();@@ -1880,7 +1883,7 @@ async fn main() {if !onboarding_store.is_completed {let _ = ShowRewindWindow::Onboarding.show(&app.handle());} else {- let _ = ShowRewindWindow::Main.show(&app.handle());+ let _ = ShowRewindWindow::Settings { page: None }.show(&app.handle());}// Pre-create chat panel (hidden) so the shortcut can show an