Skip to content

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

fix(settings): correct memory engine row import path

Steven Enamakel6cd619163930
diff --git a/app/src/components/intelligence/MemoryEngineRow.tsx b/app/src/components/intelligence/MemoryEngineRow.tsx
new file mode 100644
index 0000000000..36882b76c5
--- /dev/null
+++ b/app/src/components/intelligence/MemoryEngineRow.tsx
@@ -0,0 +1,59 @@
+import debug from 'debug';
+import { useEffect, useState } from 'react';
+import { useNavigate } from 'react-router-dom';
+
+import { useT } from '../../lib/i18n/I18nContext';
+import { memoryEngineGet, memoryEnginesList } from '../../utils/tauriCommands/memoryEngine';
+import { Button } from '../ui';
+
+const log = debug('brain:memory-engine-row');
+
+/**
+ * "Memory engine: <label> · Change" — a one-line summary on the Brain page that
+ * links to Settings → memory engine. Renders nothing until the core answers (or
+ * if it does not support memory engines), so it never blocks the page.
+ */
+export default function MemoryEngineRow() {
+ const { t } = useT();
+ const navigate = useNavigate();
+ const [engine, setEngine] = useState<{ id: string; label: string } | null>(null);
+
+ useEffect(() => {
+ let cancelled = false;
+ void (async () => {
+ try {
+ const [list, state] = await Promise.all([memoryEnginesList(), memoryEngineGet()]);
+ if (cancelled) return;
+ const label = list.engines.find(e => e.id === state.driver)?.label ?? state.driver;
+ setEngine({ id: state.driver, label });
+ } catch (err) {
+ log('unavailable: %o', err);
+ }
+ })();
+ return () => {
+ cancelled = true;
+ };
+ }, []);
+
+ if (!engine) return null;
+ return (
+ <div
+ data-testid="brain-memory-engine-row"
+ className="flex items-center justify-between gap-3 rounded-lg border border-line px-4 py-2.5 text-sm">
+ <span className="text-content-secondary">
+ {t('memoryEngine.row.label')}{' '}
+ <span className="font-medium text-content">
+ {t(`memoryEngine.engine.${engine.id}.label`, engine.label)}
+ </span>
+ </span>
+ <Button
+ variant="tertiary"
+ size="xs"
+ analyticsId="brain-memory-engine-change"
+ data-testid="brain-memory-engine-change"
+ onClick={() => navigate('/settings/memory-engine')}>
+ {t('memoryEngine.row.change')}
+ </Button>
+ </div>
+ );
+}
diff --git a/app/src/components/settings/settingsRouteElements.tsx b/app/src/components/settings/settingsRouteElements.tsx
index 331d9cc7a0..535406aa9a 100644
--- a/app/src/components/settings/settingsRouteElements.tsx
+++ b/app/src/components/settings/settingsRouteElements.tsx
@@ -15,6 +15,7 @@ import FeedbackPanel from './panels/FeedbackPanel';
import MascotPanel from './panels/MascotPanel';
import MemoryDataPanel from './panels/MemoryDataPanel';
import MemoryDebugPanel from './panels/MemoryDebugPanel';
+import MemoryEnginePanel from './panels/MemoryEnginePanel';
import MigrationPanel from './panels/MigrationPanel';
import PermissionsPanel from './panels/PermissionsPanel';
import PersonaPanel from './panels/PersonaPanel';
@@ -191,6 +192,7 @@ export function settingsRouteElements(): ReactNode {
window, vault health, and connected-source controls. */}
<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 />} />
{/* Composio trigger-triage config merged into the Connections Composio page. */}
diff --git a/app/src/components/settings/settingsRouteRegistry.ts b/app/src/components/settings/settingsRouteRegistry.ts
index 615c025c62..1ba8eddfd1 100644
--- a/app/src/components/settings/settingsRouteRegistry.ts
+++ b/app/src/components/settings/settingsRouteRegistry.ts
@@ -495,6 +495,16 @@ export const SETTINGS_ROUTE_REGISTRY: SettingsRegistryEntry[] = [
devOnly: true,
searchKeywords: ['developer', 'diagnostics', 'debug'],
},
+ {
+ // memory-engine: choose the one active memory engine. Reached from the
+ // Brain page ("Memory engine · Change"); not a sidebar entry.
+ id: 'memory-engine',
+ titleKey: 'memoryEngine.title',
+ descriptionKey: 'memoryEngine.description',
+ section: 'features',
+ hiddenDeepLink: true,
+ searchKeywords: ['memory', 'engine', 'cortexdb', 'supermemory', 'mem0', 'cognee'],
+ },
// Knowledge & Memory group retired entirely — memory surfaces live on the
// Brain page (graph / goals / sources / sync / subconscious).
// voice-debug retired from the settings UI.
diff --git a/app/src/pages/Brain.tsx b/app/src/pages/Brain.tsx
index da9e4894bf..cb970b26e2 100644
--- a/app/src/pages/Brain.tsx
+++ b/app/src/pages/Brain.tsx
@@ -8,6 +8,7 @@ import { useLocation, useNavigate } from 'react-router-dom';
import { CodingSessionsCard } from '../components/intelligence/CodingSessionsCard';
import GoalsPanel from '../components/intelligence/GoalsPanel';
+import MemoryEngineRow from '../components/intelligence/MemoryEngineRow';
import { MemoryControls } from '../components/intelligence/MemoryControls';
import { MemoryGraph } from '../components/intelligence/MemoryGraph';
import { MemorySourcesRegistry } from '../components/intelligence/MemorySourcesRegistry';
@@ -422,6 +423,7 @@ export default function Brain() {
{activeTab === 'sources' && (
<div className="space-y-5 animate-fade-up">
+ <MemoryEngineRow />
<CodingSessionsCard onToast={addToast} />
<MemorySourcesRegistry onToast={addToast} />
</div>