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(settings): correct memory data panel display in brain page
Steven Enamakela7265125c529
diff --git a/app/src/components/settings/panels/MemoryDataPanel.tsx b/app/src/components/settings/panels/MemoryDataPanel.tsxindex 51bec7378a..2a0b9ecba5 100644--- a/app/src/components/settings/panels/MemoryDataPanel.tsx+++ b/app/src/components/settings/panels/MemoryDataPanel.tsx@@ -30,11 +30,18 @@ const MemoryDataPanel = ({ embedded = false }: MemoryDataPanelProps = {}) => {setToasts(prev => prev.filter(t => t.id !== id));};+ const engineErrorText = useMemoryEngineErrorText();const handleWindowError = useCallback((message: string) => {- addToast({ type: 'error', title: t('memoryData.windowError'), message });+ // A hosted engine's 402 / expired session reads as a top-up / sign-in hint.+ const kind = classifyMemoryEngineError(message);+ addToast({+ type: 'error',+ title: t('memoryData.windowError'),+ message: kind === 'other' ? message : engineErrorText(kind),+ });},- [addToast, t]+ [addToast, t, engineErrorText]);const handleWindowSaved = useCallback(diff --git a/app/src/pages/Brain.tsx b/app/src/pages/Brain.tsxindex 92491c8b8e..9ed448ff19 100644--- a/app/src/pages/Brain.tsx+++ b/app/src/pages/Brain.tsx@@ -21,6 +21,8 @@ import PageWelcome from '../components/layout/PageWelcome';import { SidebarContent } from '../components/layout/shell/SidebarSlot';import TwoPaneNav from '../components/layout/TwoPaneNav';import SettingsTabbedPage from '../components/settings/layout/SettingsTabbedPage';+import MemoryEngineErrorAlert from '../components/settings/panels/MemoryEngineErrorAlert';+import { classifyMemoryEngineError } from '../components/settings/panels/memoryEngineUtils';import { Alert, AlertDescription, Card } from '../components/ui';import { useT } from '../lib/i18n/I18nContext';import { useCoreState } from '../providers/CoreStateProvider';@@ -401,9 +403,13 @@ export default function Brain() {again — the exact defect this PR exists to remove.*/}{error !== null && graph ? (- <Alert variant="warning">- <AlertDescription>{t('brain.refreshError')}</AlertDescription>- </Alert>+ classifyMemoryEngineError(error) !== 'other' ? (+ <MemoryEngineErrorAlert error={error} />+ ) : (+ <Alert variant="warning">+ <AlertDescription>{t('brain.refreshError')}</AlertDescription>+ </Alert>+ )) : null}{graph ? (@@ -414,9 +420,7 @@ export default function Brain() {emptyHint={t('brain.empty')}/>) : error !== null ? (- <Alert variant="destructive">- <AlertDescription>{t('brain.error')}</AlertDescription>- </Alert>+ <MemoryEngineErrorAlert error={error} fallbackText={t('brain.error')} />) : null}</div></MemoryFamilyGate>