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(settings): add memory sources registry and brain redirect components
Steven Enamakelbc41b085c778
diff --git a/app/src/AppRoutes.tsx b/app/src/AppRoutes.tsxindex f95daf7958..e8ef6cb2e4 100644--- a/app/src/AppRoutes.tsx+++ b/app/src/AppRoutes.tsx@@ -4,12 +4,12 @@ import AppRoutesIOS from './AppRoutesIOS';import DefaultRedirect from './components/DefaultRedirect';import ProtectedRoute from './components/ProtectedRoute';import PublicRoute from './components/PublicRoute';+import BrainRedirect from './components/routing/BrainRedirect';import ForwardSearch from './components/routing/ForwardSearch';import HumanPage from './features/human/HumanPage';import { getIsMobile } from './lib/platform';import Accounts from './pages/Accounts';import Activity from './pages/Activity';-import Brain from './pages/Brain';import AgentInsightsPreview from './pages/dev/AgentInsightsPreview';import AssistantUiDemoPage from './pages/dev/assistant-ui-demo';import ToolCallGallery from './pages/dev/ToolCallGallery';@@ -88,16 +88,9 @@ const AppRoutes = ({ location }: AppRoutesProps = {}) => {}/>- {/* Brain — the centerpiece memory knowledge-graph surface, reached from- the raised center button in the bottom bar. Full-page, graph-only. */}- <Route- path="/brain"- element={- <ProtectedRoute requireAuth={true}>- <Brain />- </ProtectedRoute>- }- />+ {/* Back-compat: Brain moved under Connections → Integrations → Brain.+ BrainRedirect remaps its old `?tab=` sub-tab to `?brain=`. */}+ <Route path="/brain" element={<BrainRedirect />} />{/* Workflows — the `flows::` domain's discoverable list hub (issueB5a) plus the read-only Workflow Canvas (issue B5b.1) atdiff --git a/app/src/components/intelligence/MemorySourcesRegistry.tsx b/app/src/components/intelligence/MemorySourcesRegistry.tsxindex 343f4709da..f4cb010f04 100644--- a/app/src/components/intelligence/MemorySourcesRegistry.tsx+++ b/app/src/components/intelligence/MemorySourcesRegistry.tsx@@ -575,7 +575,7 @@ export function MemorySourcesRegistry({onToast={onToast}onViewHealth={() => {console.debug('[ui-flow][memory-sources] view memory health from source row');- navigate('/brain?tab=sync');+ navigate('/connections?tab=brain&brain=sync');}}onSignIn={() => {console.debug(diff --git a/app/src/components/notices/useAppNotices.ts b/app/src/components/notices/useAppNotices.tsindex c2056275d6..ac08afb221 100644--- a/app/src/components/notices/useAppNotices.ts+++ b/app/src/components/notices/useAppNotices.ts@@ -75,7 +75,7 @@ const ACTION_ROUTE: Record<Exclude<UserErrorAction, 'dismiss'>, string> = {// openhuman#5820: after a corrupt-store quarantine the rebuilt tree is// empty; the per-source Sync and All In controls that repopulate it live on// Brain's Sources tab (the Sync tab only shows status and history).- open_memory_sync: '/brain?tab=sources',+ open_memory_sync: '/connections?tab=brain&brain=sources',};const ACTION_LABEL_KEY: Record<Exclude<UserErrorAction, 'dismiss'>, string> = {diff --git a/app/src/components/routing/BrainRedirect.tsx b/app/src/components/routing/BrainRedirect.tsxnew file mode 100644index 0000000000..23a2832c8e--- /dev/null+++ b/app/src/components/routing/BrainRedirect.tsx@@ -0,0 +1,18 @@+import { Navigate, useLocation } from 'react-router-dom';++/**+ * Back-compat redirect for the retired top-level `/brain` page, which now lives+ * at Connections → Integrations → Brain (`/connections?tab=brain`).+ *+ * Brain used to own `?tab=` (graph|goals|sources|sync|welcome) and `?view=`.+ * Connections owns `?tab=` now, so the old sub-tab moves to `?brain=`; every+ * other param (e.g. `view=history`) and the hash are carried over unchanged.+ */+export default function BrainRedirect() {+ const { search, hash } = useLocation();+ const params = new URLSearchParams(search);+ const legacyTab = params.get('tab');+ params.set('tab', 'brain');+ if (legacyTab) params.set('brain', legacyTab);+ return <Navigate to={`/connections?${params.toString()}${hash}`} replace />;+}diff --git a/app/src/components/settings/settingsRouteElements.tsx b/app/src/components/settings/settingsRouteElements.tsxindex 7762e9787a..2fb500d845 100644--- a/app/src/components/settings/settingsRouteElements.tsx+++ b/app/src/components/settings/settingsRouteElements.tsx@@ -128,7 +128,7 @@ export function settingsRouteElements(): ReactNode {{/* ── Data ────────────────────────────────────────────────── */}{/* Data Sync is a first-class surface on the Brain page now. */}- <Route path="memory-sync" element={<Navigate to="/brain?tab=sync" replace />} />+ <Route path="memory-sync" element={<Navigate to="/connections?tab=brain&brain=sync" replace />} />{/* Wallet balances moved to the Connections page (Integrations group). */}<Route path="wallet-balances" element={<Navigate to="/connections?tab=wallet" replace />} /><Route path="recovery-phrase" element={wrapSettingsPage(<RecoveryPhrasePanel />)} />@@ -169,7 +169,7 @@ export function settingsRouteElements(): ReactNode {{/* Schedules live on the Workflows page now (`/flows?view=schedules`). */}<Route path="cron-jobs" element={<Navigate to="/flows?view=schedules" replace />} />{/* Tasks are represented by goals on the Brain page. */}- <Route path="tasks" element={<Navigate to="/brain?tab=goals" replace />} />+ <Route path="tasks" element={<Navigate to="/connections?tab=brain&brain=goals" replace />} />{/* Workflows is a first-level module now — /settings/automations bouncesto /flows (the Workflows page). */}<Route path="automations" element={<Navigate to="/flows" replace />} />@@ -192,8 +192,8 @@ export function settingsRouteElements(): ReactNode {<Route path="memory-data" element={wrapSettingsPage(<MemoryDataPanel />)} /><Route path="memory-debug" element={wrapSettingsPage(<MemoryDebugPanel />)} /><Route path="memory-engine" element={wrapSettingsPage(<MemoryEnginePanel />)} />- <Route path="analysis-views" element={<Navigate to="/brain" replace />} />- <Route path="intelligence" element={<Navigate to="/brain" replace />} />+ <Route path="analysis-views" element={<Navigate to="/connections?tab=brain" replace />} />+ <Route path="intelligence" element={<Navigate to="/connections?tab=brain" replace />} />{/* Composio trigger-triage config merged into the Connections Composio page. */}<Routepath="composio-triggers"diff --git a/app/src/config/navConfig.ts b/app/src/config/navConfig.tsindex fce0d8308a..1636b12f79 100644--- a/app/src/config/navConfig.ts+++ b/app/src/config/navConfig.ts@@ -26,7 +26,7 @@ export interface NavTab {/*** Ordered list of sidebar nav entries:- * chat → brain → flows → connections+ * chat → flows → connections** Human has no primary tab: `/human` is reached from the chat composer, whose* primary button becomes the mascot when there is nothing to send (see@@ -47,7 +47,6 @@ export interface NavTab {*/export const NAV_TABS: NavTab[] = [{ id: 'chat', labelKey: 'nav.chat', path: '/chat', walkthroughAttr: 'tab-chat' },- { id: 'brain', labelKey: 'nav.brain', path: '/brain', walkthroughAttr: 'tab-brain' },{ id: 'flows', labelKey: 'nav.flows', path: '/flows', walkthroughAttr: 'tab-flows' },{id: 'connections',diff --git a/app/src/pages/Skills.tsx b/app/src/pages/Skills.tsxindex a14c24a663..e6b21755a9 100644--- a/app/src/pages/Skills.tsx+++ b/app/src/pages/Skills.tsx@@ -64,6 +64,7 @@ import type { ToastNotification } from '../types/intelligence';import { IS_DEV } from '../utils/config';import { isLocalSessionToken } from '../utils/localSession';import { openhumanComposioGetMode } from '../utils/tauriCommands';+import Brain from './Brain';/** Small inline icon helper for the Connections sidebar nav. */const navIcon = (d: string) => (