Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(walkthrough): skip onboarding tour in dev by default

Steven Enamakel72c1c1154a31
diff --git a/app/src/components/walkthrough/AppWalkthrough.tsx b/app/src/components/walkthrough/AppWalkthrough.tsx
index 148c9a1958..5a59f5b06e 100644
--- a/app/src/components/walkthrough/AppWalkthrough.tsx
+++ b/app/src/components/walkthrough/AppWalkthrough.tsx
@@ -3,6 +3,7 @@ import { type EventData, EVENTS, Joyride, STATUS } from 'react-joyride';
import { useNavigate } from 'react-router-dom';
import { useT } from '../../lib/i18n/I18nContext';
+import { DEV_SKIP_ONBOARDING } from '../../utils/config';
import { createWalkthroughSteps } from './walkthroughSteps';
import WalkthroughTooltip from './WalkthroughTooltip';
@@ -22,6 +23,10 @@ const WALKTHROUGH_PENDING_KEY = 'openhuman:walkthrough_pending';
* (e.g., in private-browsing mode or when storage is full/blocked).
*/
export function isWalkthroughPending(userIsOnboarded = false): boolean {
+ // Dev browser sessions (`VITE_DEV_SKIP_ONBOARDING`) skip the tour too; its
+ // completion lives in this origin's localStorage, so a fresh DevTools
+ // profile would otherwise replay it on every run.
+ if (DEV_SKIP_ONBOARDING) return false;
try {
if (localStorage.getItem(WALKTHROUGH_KEY) === 'true') return false;
return localStorage.getItem(WALKTHROUGH_PENDING_KEY) === 'true' || userIsOnboarded;
diff --git a/scripts/run-dev-web.sh b/scripts/run-dev-web.sh
index f622420bd5..e06eff067a 100755
--- a/scripts/run-dev-web.sh
+++ b/scripts/run-dev-web.sh
@@ -36,6 +36,7 @@
# pnpm dev:app:web --no-browser # same, just print the URL (for agents)
# pnpm dev:app:web:attach # vite on the running desktop core
# pnpm dev:app:web --attach --no-browser
+# pnpm dev:app:web --onboarding # keep onboarding + tour (skipped by default)
#
# Env:
# OPENHUMAN_DEV_PORT preferred Vite port (default 1420)
@@ -50,10 +51,12 @@ REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
open_browser=1
attach=0
+skip_onboarding=1
for arg in "$@"; do
case "$arg" in
--no-browser) open_browser=0 ;;
--attach) attach=1 ;;
+ --onboarding) skip_onboarding=0 ;;
*) echo "[dev:web] unknown argument: $arg" >&2; exit 2 ;;
esac
done
@@ -213,6 +216,14 @@ fi
# In attach mode the page takes the URL + bearer from the core's redirect.
export VITE_OPENHUMAN_CORE_RPC_URL="http://127.0.0.1:$core_port/rpc"
export OPENHUMAN_DEV_PORT="$dev_port"
+# Land straight in the app: onboarding is marked complete in the core for a
+# signed-in user, and the walkthrough tour is suppressed (DEV_SKIP_ONBOARDING in
+# app/src/utils/config.ts). `--onboarding` keeps both, to debug them.
+if (( skip_onboarding )); then
+ export VITE_DEV_SKIP_ONBOARDING=true
+else
+ export VITE_DEV_SKIP_ONBOARDING=false
+fi
echo "[dev:web] starting vite on :$dev_port"
# Job control gives the background job its own process group (pgid == pid),