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(memory): handle missing memory engine config gracefully
Steven Enamakel02baea1f2fd5
diff --git a/app/src/components/memory/MemoryEngineSetup.tsx b/app/src/components/memory/MemoryEngineSetup.tsxnew file mode 100644index 0000000000..03269d17dc--- /dev/null+++ b/app/src/components/memory/MemoryEngineSetup.tsx@@ -0,0 +1,36 @@+/**+ * The Engine picker on its own, loading its own engine state — for hosts that+ * are not the Memory page (the onboarding wizard's memory step).+ *+ * debug logging: DEBUG=openhuman:memory:engine-setup+ */+import debug from 'debug';+import { useEffect, useState } from 'react';++import { type EngineState, memoryEngineGet } from '../../services/api/memoryApi';+import MemoryEngineTab from './MemoryEngineTab';++const log = debug('openhuman:memory:engine-setup');++const OFF: EngineState = { engine: null, has_key: false, status: 'off', fetch_modes: [] };++export default function MemoryEngineSetup() {+ const [state, setState] = useState<EngineState | null>(null);++ useEffect(() => {+ let cancelled = false;+ memoryEngineGet()+ .then(next => {+ if (!cancelled) setState(next);+ })+ .catch(err => {+ log('engine_get failed: %o', err);+ if (!cancelled) setState(OFF);+ });+ return () => {+ cancelled = true;+ };+ }, []);++ return <MemoryEngineTab state={state} onStateChange={setState} embedded />;+}