The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(app): add dev-only skip-onboarding flag
Steven Enamakel2103edac9667
diff --git a/app/src/App.tsx b/app/src/App.tsxindex fa3f3c4102..138317345c 100644--- a/app/src/App.tsx+++ b/app/src/App.tsx@@ -48,7 +48,7 @@ import {stopInternetStatusListener,} from './services/internetStatusListener';import { persistor, store } from './store';-import { DEV_FORCE_ONBOARDING } from './utils/config';+import { DEV_FORCE_ONBOARDING, DEV_SKIP_ONBOARDING } from './utils/config';import { installExternalLinkGuard } from './utils/externalLinkGuard';startNativeNotificationsService();@@ -180,10 +180,30 @@ function AppShell() {export function AppShellDesktop() {const location = useLocation();const navigate = useNavigate();- const { snapshot, isBootstrapping } = useCoreState();+ const { snapshot, isBootstrapping, setOnboardingCompletedFlag } = useCoreState();const onOnboardingRoute = location.pathname.startsWith('/onboarding');const onboardingPending =- !!snapshot.sessionToken && (DEV_FORCE_ONBOARDING || !snapshot.onboardingCompleted);+ !!snapshot.sessionToken &&+ (DEV_FORCE_ONBOARDING || (!snapshot.onboardingCompleted && !DEV_SKIP_ONBOARDING));++ // Dev-only auto-skip (`VITE_DEV_SKIP_ONBOARDING`): record completion in the+ // core once per shell mount rather than just hiding the stepper, so state+ // that keys off the core flag agrees with what the UI shows.+ const devSkipRequestedRef = useRef(false);+ useEffect(() => {+ if (!DEV_SKIP_ONBOARDING || devSkipRequestedRef.current) return;+ if (isBootstrapping || !snapshot.sessionToken || snapshot.onboardingCompleted) return;+ devSkipRequestedRef.current = true;+ console.debug('[onboarding-gate] dev skip: marking onboarding complete');+ void setOnboardingCompletedFlag(true).catch(err =>+ console.warn('[onboarding-gate] dev skip: could not mark onboarding complete', err)+ );+ }, [+ isBootstrapping,+ snapshot.sessionToken,+ snapshot.onboardingCompleted,+ setOnboardingCompletedFlag,+ ]);// Onboarding gate: while `onboarding_completed=false`, force any non-// onboarding route back to `/onboarding`. Once completed, bounce thediff --git a/app/src/utils/config.ts b/app/src/utils/config.tsindex 51f6de4b29..300f411e30 100644--- a/app/src/utils/config.ts+++ b/app/src/utils/config.ts@@ -89,6 +89,19 @@ export const IS_TEST = import.meta.env.MODE === 'test';export const DEV_FORCE_ONBOARDING =import.meta.env.DEV && import.meta.env.VITE_DEV_FORCE_ONBOARDING === 'true';+/**+ * Dev only: treat onboarding and the walkthrough tour as done, so a debugging+ * session lands straight in the app. A signed-in user whose core still has+ * `onboarding_completed=false` gets it set to `true` through the core (so the+ * flag really persists). `scripts/run-dev-web.sh` sets+ * `VITE_DEV_SKIP_ONBOARDING=true` unless run with `--onboarding`.+ * `VITE_DEV_FORCE_ONBOARDING` wins when both are set.+ */+export const DEV_SKIP_ONBOARDING =+ import.meta.env.DEV &&+ import.meta.env.VITE_DEV_SKIP_ONBOARDING === 'true' &&+ !DEV_FORCE_ONBOARDING;+/*** Consumer-first-session UX (intent picker, home IA, trust affordances).* **Default off** so `main` stays unchanged until slices ship behind this flag.