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
fix: restore missing brain page navigation in e2e tests
Steven Enamakel6020df5f2c20
diff --git a/app/src/pages/Brain.tsx b/app/src/pages/Brain.tsxindex fbd852afe4..2da9c5f4b1 100644--- a/app/src/pages/Brain.tsx+++ b/app/src/pages/Brain.tsx@@ -76,15 +76,6 @@ export default function Brain() {const raw = new URLSearchParams(location.search).get('brain');return (BRAIN_TABS as readonly string[]).includes(raw ?? '') ? (raw as BrainTab) : 'graph';}, [location.search]);- const setActiveTab = useCallback(- (tab: BrainTab) => {- const params = new URLSearchParams(location.search);- params.set('brain', tab);- params.delete('view');- navigate({ pathname: location.pathname, search: `?${params.toString()}` });- },- [location.pathname, location.search, navigate]- );const syncView: SyncView =new URLSearchParams(location.search).get('view') === 'history' ? 'history' : 'status';const setChip = useCallback(diff --git a/app/test/e2e/helpers/shared-flows.ts b/app/test/e2e/helpers/shared-flows.tsindex f16953dfeb..b2a7ec72f7 100644--- a/app/test/e2e/helpers/shared-flows.ts+++ b/app/test/e2e/helpers/shared-flows.ts@@ -146,7 +146,7 @@ async function clickFirstMatch(candidates, timeout = 5_000) {const HASH_TO_SIDEBAR_LABEL = {'/chat': 'Chat','/human': 'Human',- '/brain': 'Brain',+ '/brain': 'Connections','/connections': 'Connections','/settings': 'Settings',};diff --git a/app/test/e2e/specs/navigation-smoothness.spec.ts b/app/test/e2e/specs/navigation-smoothness.spec.tsindex 8f865c73bf..4b24657d8d 100644--- a/app/test/e2e/specs/navigation-smoothness.spec.ts+++ b/app/test/e2e/specs/navigation-smoothness.spec.ts@@ -56,7 +56,7 @@ const ROUTES: RouteCheck[] = [{ hash: '/settings', markers: ['Settings', 'Account', 'Billing', 'Advanced'] },// Brain page (the old /activity & /intelligence pages were retired; memory// lives here now). Tabs: Graph, Memory, Sources, Sync.- { hash: '/brain', markers: ['Graph', 'Memory', 'Sources'] },+ { hash: '/connections?tab=brain', markers: ['Graph', 'Memory', 'Sources'] },{hash: '/home',markers: [diff --git a/app/test/e2e/specs/navigation.spec.ts b/app/test/e2e/specs/navigation.spec.tsindex 09ea3e4250..c11b4279a0 100644--- a/app/test/e2e/specs/navigation.spec.ts+++ b/app/test/e2e/specs/navigation.spec.ts@@ -47,7 +47,7 @@ const ROUTES: Route[] = [// `/brain?tab=orchestration`, so we assert the Brain destination instead// (the bare `/orchestration` hash would settle on the redirect target and// fail the `^#/orchestration` match, same reasoning as /home above).- { hash: '/brain' },+ { hash: '/connections?tab=brain' },];async function rootTextLength(): Promise<number> {