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(memory): add memory engine tab with off state
Steven Enamakelad92d388558c
diff --git a/app/src/components/memory/MemoryEngineTab.tsx b/app/src/components/memory/MemoryEngineTab.tsxindex 46facaaf95..f72d4eab9e 100644--- a/app/src/components/memory/MemoryEngineTab.tsx+++ b/app/src/components/memory/MemoryEngineTab.tsx@@ -291,7 +291,7 @@ export default function MemoryEngineTab({ state, onStateChange, embedded }: Memoactive={option === active}signedIn={signedIn}plan={plan}- saving={saving}+ saving={saving === 'disabled' ? null : saving}error={errors[option]}cloudKey={cloudKey}onCloudKey={setCloudKey}diff --git a/app/src/components/memory/MemoryOffState.tsx b/app/src/components/memory/MemoryOffState.tsxindex a6f4392d78..ba9e6f1c76 100644--- a/app/src/components/memory/MemoryOffState.tsx+++ b/app/src/components/memory/MemoryOffState.tsx@@ -1,6 +1,6 @@/**- * What every non-engine tab shows while memory is off (no usable engine):- * why, and a way to the Engine chip to fix it.+ * What every non-engine tab shows while memory is off (no usable engine, or+ * disabled on purpose): why, and a way to the Engine chip to change it.*/import { LuBrain } from 'react-icons/lu';@@ -10,17 +10,21 @@ import EmptyStateCard from '../EmptyStateCard';interface MemoryOffStateProps {/** Engine-reported reason, when it gave one. */reason?: string | null;+ /** Memory was turned off on purpose (the Disabled option). */+ disabled?: boolean;onOpenEngine: () => void;}-export default function MemoryOffState({ reason, onOpenEngine }: MemoryOffStateProps) {+export default function MemoryOffState({ reason, disabled, onOpenEngine }: MemoryOffStateProps) {const { t } = useT();return (<div data-testid="memory-off-state"><EmptyStateCardicon={<LuBrain className="h-6 w-6 text-primary-500" aria-hidden />}- title={t('memoryPage.off.title')}- description={reason || t('memoryPage.off.description')}+ title={disabled ? t('memoryPage.disabled.title') : t('memoryPage.off.title')}+ description={+ disabled ? t('memoryPage.disabled.description') : reason || t('memoryPage.off.description')+ }actionLabel={t('memoryPage.off.action')}onAction={onOpenEngine}actionTestId="memory-off-open-engine"diff --git a/app/src/pages/Memory.tsx b/app/src/pages/Memory.tsxindex a96bcb1b80..84559ae392 100644--- a/app/src/pages/Memory.tsx+++ b/app/src/pages/Memory.tsx@@ -152,7 +152,11 @@ export default function Memory() {return <MemoryEngineTab state={engine} onStateChange={setEngine} />;}const offState = on ? undefined : (- <MemoryOffState reason={engine.reason} onOpenEngine={() => setChip('engine')} />+ <MemoryOffState+ reason={engine.reason}+ disabled={isMemoryDisabled(engine)}+ onOpenEngine={() => setChip('engine')}+ />);if (chip === 'migration') {return (