From b6839a12669f5262ee7133db814e3eb8440b460b Mon Sep 17 00:00:00 2001 From: Nik Shevchenko Date: Mon, 23 Mar 2026 22:46:59 -0400 Subject: [PATCH] fix(desktop): start screen capture after chat onboarding step Screen capture was only starting after the full onboarding (step 3 Tasks), but permissions are granted during the chat step (step 0). This meant the Rewind tab was empty when users first opened it after onboarding. Now startMonitoring() fires right after the chat step completes, so screenshots accumulate while the user goes through floating bar demo, voice shortcut, and tasks steps. Co-Authored-By: Claude Opus 4.6 (1M context) --- desktop/Desktop/Sources/OnboardingView.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop/Desktop/Sources/OnboardingView.swift b/desktop/Desktop/Sources/OnboardingView.swift index 4446955aeaa..3b41f834556 100644 --- a/desktop/Desktop/Sources/OnboardingView.swift +++ b/desktop/Desktop/Sources/OnboardingView.swift @@ -81,9 +81,17 @@ struct OnboardingView: View { graphViewModel: graphViewModel, onComplete: { AnalyticsManager.shared.onboardingStepCompleted(step: 0, stepName: "Chat") + // Start screen capture early so Rewind tab has screenshots by the time + // the user finishes onboarding (permissions are granted during chat step) + if !ProactiveAssistantsPlugin.shared.isMonitoring { + ProactiveAssistantsPlugin.shared.startMonitoring { _, _ in } + } currentStep = 1 }, onSkip: { + if !ProactiveAssistantsPlugin.shared.isMonitoring { + ProactiveAssistantsPlugin.shared.startMonitoring { _, _ in } + } currentStep = 1 } )