Skip to content

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

fix(onboarding): skip onboarding lands on Home, not the timeline

Louis Beaumontf01ccad4d462
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
index 9796ab34e..e2a1385e2 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
@@ -1718,8 +1718,7 @@ fn handle_menu_event(app_handle: &AppHandle, event: tauri::menu::MenuEvent) {
if let Some(win) = app.get_webview_window("onboarding") {
let _ = win.close();
}
- // Show the main window
- show_main_window(app.clone());
+ let _ = post_skip_onboarding_window().show(&app);
});
}
"onboarding" => {
@@ -1939,10 +1938,28 @@ fn to_accelerator(shortcut: &str) -> String {
.replace("CommandOrControl", "CmdOrCtrl")
}
+/// Where "Skip onboarding" lands. Setup ends at Home, exactly like finishing
+/// onboarding normally (`commands::complete_onboarding`). `ShowRewindWindow::Main`
+/// renders `/overlay`, the timeline, which is the wrong destination for a fresh
+/// install because nothing has been captured yet.
+fn post_skip_onboarding_window() -> ShowRewindWindow {
+ ShowRewindWindow::Home {
+ page: Some("home".to_string()),
+ }
+}
+
#[cfg(test)]
mod tests {
use super::*;
+ #[test]
+ fn skip_onboarding_lands_on_home_not_the_timeline() {
+ match post_skip_onboarding_window() {
+ ShowRewindWindow::Home { page } => assert_eq!(page.as_deref(), Some("home")),
+ other => panic!("skip onboarding must land on Home, got {other:?}"),
+ }
+ }
+
#[test]
fn recording_status_text_distinguishes_meetings_only_audio_states() {
assert_eq!(