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(onboarding): open home window instead of timeline overlay after completion (#2889)
Divanshu6ddc33a94df0
diff --git a/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsx b/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsxindex 2001aaf12..0ba7ca06a 100644--- a/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsx+++ b/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsx@@ -9,7 +9,6 @@ import { motion, AnimatePresence } from "framer-motion";import { Loader, Brain, Clock, Users } from "lucide-react";import { useOnboarding } from "@/lib/hooks/use-onboarding";import { scheduleFirstRunNotification } from "@/lib/notifications";-import { commands } from "@/lib/utils/tauri";import posthog from "posthog-js";const PATHS = [@@ -143,11 +142,6 @@ export default function PickPipe() {body: JSON.stringify(path.notification),});} catch {}-- await commands.showWindow({ Home: { page: null } });- try {- window.close();- } catch {}} catch (err) {console.error("failed to enable pipes:", err);setError("Couldn't enable — try again or skip");@@ -178,10 +172,6 @@ export default function PickPipe() {try {scheduleFirstRunNotification();} catch {}- try {- await commands.showWindow({ Home: { page: null } });- window.close();- } catch {}isCompletingRef.current = false;}, [completeOnboarding]);diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rsindex 0503198b8..dda2dac5b 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -940,7 +940,7 @@ pub async fn complete_onboarding(app_handle: tauri::AppHandle) -> Result<(), Strtokio::time::sleep(tokio::time::Duration::from_millis(100)).await;close_window(app_handle.clone(), ShowRewindWindow::Onboarding).await?;- show_window(app_handle.clone(), ShowRewindWindow::Main).await?;+ show_window(app_handle.clone(), ShowRewindWindow::Home { page: None }).await?;Ok(())}diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rsindex 138267abb..e4acc28a9 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/window/show.rs@@ -436,7 +436,7 @@ impl ShowRewindWindow {if id.label() == RewindWindowId::Onboarding.label() {if onboarding_store.is_completed {- return ShowRewindWindow::Main.show(app);+ return ShowRewindWindow::Home { page: None }.show(app);}}@@ -1388,7 +1388,7 @@ impl ShowRewindWindow {}ShowRewindWindow::Onboarding => {if onboarding_store.is_completed {- return ShowRewindWindow::Main.show(app);+ return ShowRewindWindow::Home { page: None }.show(app);}// Clamp onboarding window size to primary monitor to prevent min > max panic