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): show continue anyway button after 5 seconds

Louis Beaumonta520ce3b74dd
diff --git a/screenpipe-app-tauri/components/onboarding/status.tsx b/screenpipe-app-tauri/components/onboarding/status.tsx
index 9830fe475..37cc055c7 100644
--- a/screenpipe-app-tauri/components/onboarding/status.tsx
+++ b/screenpipe-app-tauri/components/onboarding/status.tsx
@@ -51,6 +51,7 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
const [isStuck, setIsStuck] = useState(false);
const [isSendingLogs, setIsSendingLogs] = useState(false);
const [logsSent, setLogsSent] = useState(false);
+ const [showContinueAnyway, setShowContinueAnyway] = useState(false);
const { isMac: isMacOS } = usePlatform();
const { settings, updateSettings } = useSettings();
const hasStartedRef = useRef(false);
@@ -207,6 +208,17 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
}
}, [setupState]);
+ // Show "continue anyway" button after 5 seconds on permission screen
+ useEffect(() => {
+ if (setupState === "needs-permissions") {
+ setShowContinueAnyway(false);
+ const timer = setTimeout(() => {
+ setShowContinueAnyway(true);
+ }, 5000);
+ return () => clearTimeout(timer);
+ }
+ }, [setupState]);
+
// Track stuck state with timeout
useEffect(() => {
// Clear any existing timeout
@@ -364,16 +376,18 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
try removing screenpipe from the permission list (click −) and adding it again (click +)
</p>
- <button
- onClick={() => {
- posthog.capture("onboarding_permission_skipped");
- hasStartedRef.current = true;
- setSetupState("ready");
- }}
- className="font-mono text-xs text-muted-foreground hover:text-foreground"
- >
- continue anyway →
- </button>
+ {showContinueAnyway && (
+ <button
+ onClick={() => {
+ posthog.capture("onboarding_permission_skipped");
+ hasStartedRef.current = true;
+ setSetupState("ready");
+ }}
+ className="font-mono text-xs text-muted-foreground hover:text-foreground"
+ >
+ continue anyway →
+ </button>
+ )}
</div>
</motion.div>
)}