🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(desktop): remove web onboarding aliases (#15902)
Innei30a62ab47849
diff --git a/src/spa/router/desktopRouter.config.desktop.tsx b/src/spa/router/desktopRouter.config.desktop.tsxindex 394ec85fcfe..41049fcbee6 100644--- a/src/spa/router/desktopRouter.config.desktop.tsx+++ b/src/spa/router/desktopRouter.config.desktop.tsx@@ -747,28 +747,11 @@ export const desktopRoutes: RouteObject[] = [: []),];-// Desktop onboarding route (Electron only in .desktop.tsx)+// Desktop owns its onboarding flow. Web-only onboarding routes are intentionally+// absent from Electron so personal onboarding redirects fail visibly instead of+// looping back into desktop login.desktopRoutes.push({element: <DesktopOnboarding />,errorElement: <ErrorBoundary />,path: '/desktop-onboarding',});--// Web onboarding aliases redirect to the desktop-specific onboarding flow.-desktopRoutes.push({- element: redirectElement('/desktop-onboarding'),- errorElement: <ErrorBoundary />,- path: '/onboarding',-});--desktopRoutes.push({- element: redirectElement('/desktop-onboarding'),- errorElement: <ErrorBoundary />,- path: '/onboarding/agent',-});--desktopRoutes.push({- element: redirectElement('/desktop-onboarding'),- errorElement: <ErrorBoundary />,- path: '/onboarding/classic',-});diff --git a/src/spa/router/desktopRouter.sync.test.tsx b/src/spa/router/desktopRouter.sync.test.tsxindex c592244d117..3a891b417bd 100644--- a/src/spa/router/desktopRouter.sync.test.tsx+++ b/src/spa/router/desktopRouter.sync.test.tsx@@ -14,6 +14,8 @@ const KNOWN_DIVERGENCES: Record<string, string> = {'/desktop-onboarding': '/onboarding',};+const WEB_ONLY_PATHS = new Set(['/onboarding', '/onboarding/agent', '/onboarding/classic']);+function extractIndexCount(source: string) {return [...source.matchAll(/index:\s*true/g)].length;}@@ -48,7 +50,9 @@ function extractPaths(source: string) {}function normalizePaths(paths: string[]) {- return [...new Set(paths.map((path) => KNOWN_DIVERGENCES[path] ?? path))].sort();+ return [...new Set(paths.map((path) => KNOWN_DIVERGENCES[path] ?? path))]+ .filter((path) => !WEB_ONLY_PATHS.has(path))+ .sort();}async function readDesktopRouterSources() {