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(app): open home from taskbar activation (#4462)
Ansh Groverc9d93fd47080
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 2184ec690..4d17392ac 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -10,7 +10,6 @@#![recursion_limit = "256"]use analytics::AnalyticsManager;-use commands::show_main_window;use serde_json::json;use std::env;use std::str::FromStr;@@ -920,9 +919,11 @@ async fn main() {let app_for_closure = app.clone();let args_clone = args.clone();let _ = app.run_on_main_thread(move || {- // Focus the existing window+ // A second app launch is usually the Windows taskbar/dock entry point.+ // Open the Home app window here; `show_main_window` intentionally+ // opens the timeline overlay for the global shortcut/tray timeline.if !crate::enterprise_policy::is_app_ui_hidden() {- show_main_window(app_for_closure.clone());+ let _ = ShowRewindWindow::Home { page: None }.show(&app_for_closure);}// Forward deep-link URL from argsdiff --git a/apps/screenpipe-app-tauri/src-tauri/src/server.rs b/apps/screenpipe-app-tauri/src-tauri/src/server.rsindex fc31e11a6..d6f580f6e 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/server.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/server.rs@@ -104,7 +104,7 @@ async fn handle_focus(payload.args, payload.deep_link_url, payload.target);- if payload.target.as_deref() == Some("browser_pairing") {+ if payload.target.as_deref() == Some("browser_pairing") || payload.deep_link_url.is_none() {let _ = (ShowRewindWindow::Home { page: None }).show(&state.app_handle);} else {show_main_window(state.app_handle.clone());diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rsindex 53dc1703e..afdf00282 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs@@ -738,6 +738,7 @@ impl ShowRewindWindow {.inner_size(win_w, win_h).min_inner_size(800.0, 600.0).decorations(true)+ .skip_taskbar(true).visible(false).focused(false).transparent(false)