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
Bump app to v2.0.98
Louis Beaumont9bb78249460c
diff --git a/screenpipe-app-tauri/app/onboarding/page.tsx b/screenpipe-app-tauri/app/onboarding/page.tsxindex d36cc3831..87d8b8c62 100644--- a/screenpipe-app-tauri/app/onboarding/page.tsx+++ b/screenpipe-app-tauri/app/onboarding/page.tsx@@ -53,22 +53,29 @@ const getPrevSlide = (currentSlide: SlideKey): SlideKey | null => {}};-// Track each step as a distinct event for clean funnel analysis-const trackOnboardingStep = (- step: SlideKey | "completed",+// Track step completion (when user clicks next/back)+const trackOnboardingStepCompleted = (+ step: SlideKey,properties?: Record<string, any>) => {- // Fire specific event for funnel tracking- const eventName = step === "completed"- ? "onboarding_completed"- : `onboarding_${step}_viewed`;-- posthog.capture(eventName, {- step, // Keep for backwards compatibility+ posthog.capture(`onboarding_${step}_completed`, {+ step,...properties,});};+// Track step viewed (when user enters a step)+const trackOnboardingStepViewed = (step: SlideKey) => {+ posthog.capture(`onboarding_${step}_viewed`, {+ step,+ });+};++// Track final completion+const trackOnboardingCompleted = () => {+ posthog.capture("onboarding_completed");+};+// Function to set window size for current slideconst setWindowSizeForSlide = async (slide: SlideKey) => {try {@@ -120,10 +127,12 @@ export default function OnboardingPage() {init();}, []);- // Set window size when slide changes+ // Set window size and track view when slide changesuseEffect(() => {setWindowSizeForSlide(currentSlide);setIsVisible(true);+ // Track that user viewed this step (fires on ENTER, not exit)+ trackOnboardingStepViewed(currentSlide);}, [currentSlide]);useEffect(() => {@@ -176,7 +185,8 @@ export default function OnboardingPage() {const nextSlide = getNextSlide(currentSlide);try {- trackOnboardingStep(currentSlide, {+ // Track that user completed this step (clicked next)+ trackOnboardingStepCompleted(currentSlide, {direction: "next",});@@ -210,7 +220,8 @@ export default function OnboardingPage() {setIsTransitioning(true);try {- trackOnboardingStep(currentSlide, {+ // Track that user went back from this step+ trackOnboardingStepCompleted(currentSlide, {direction: "back",});@@ -237,9 +248,9 @@ export default function OnboardingPage() {// Track completion (don't block on failure)try {- trackOnboardingStep("completed");+ trackOnboardingCompleted();} catch (error) {- console.error("Error tracking onboarding step:", error);+ console.error("Error tracking onboarding completion:", error);}// Complete onboarding in backend (don't block on failure)diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex 6881e0878..569a765a2 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -5629,7 +5629,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "screenpipe-app"-version = "2.0.93"+version = "2.0.96"dependencies = ["anyhow","async-stream",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex fecb6e5e1..3d2df5723 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.0.97"+version = "2.0.98"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/screenpipe-app-tauri/src-tauri/src/tray.rs b/screenpipe-app-tauri/src-tauri/src/tray.rsindex e05704193..db411664e 100644--- a/screenpipe-app-tauri/src-tauri/src/tray.rs+++ b/screenpipe-app-tauri/src-tauri/src/tray.rs@@ -1,5 +1,6 @@use crate::commands::show_main_window;use crate::health::{get_recording_status, RecordingStatus};+use crate::sidecar::SidecarState;use crate::store::{get_store, OnboardingStore};use crate::window_api::ShowRewindWindow;use anyhow::Result;@@ -10,10 +11,10 @@ use tauri::tray::TrayIcon;use tauri::Emitter;use tauri::{menu::{MenuBuilder, MenuItemBuilder, PredefinedMenuItem},- AppHandle, Wry,+ AppHandle, Manager, Wry,};-use tracing::{debug, error};+use tracing::{debug, error, info};// Track last known state to avoid unnecessary updatesstatic LAST_MENU_STATE: Lazy<Mutex<MenuState>> = Lazy::new(|| Mutex::new(MenuState::default()));@@ -171,7 +172,23 @@ fn handle_menu_event(app_handle: &AppHandle, event: tauri::menu::MenuEvent) {"quit" => {debug!("Quit requested");- app_handle.exit(0);+ // Stop the sidecar before exiting+ let app_handle_clone = app_handle.clone();+ tauri::async_runtime::spawn(async move {+ info!("Stopping screenpipe sidecar before quit...");+ if let Some(sidecar_state) = app_handle_clone.try_state::<SidecarState>() {+ match crate::sidecar::stop_screenpipe(+ sidecar_state,+ app_handle_clone.clone(),+ )+ .await+ {+ Ok(_) => info!("Screenpipe sidecar stopped successfully"),+ Err(e) => error!("Failed to stop screenpipe sidecar: {}", e),+ }+ }+ app_handle_clone.exit(0);+ });}_ => debug!("Unhandled menu event: {:?}", event.id()),}