Skip to content

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

fix(memory): handle missing document metadata gracefully

Steven Enamakelb1fe59074542
diff --git a/app/src/components/memory/MemoryDocumentsTab.tsx b/app/src/components/memory/MemoryDocumentsTab.tsx
index 3cb6e39b10..36f23fb131 100644
--- a/app/src/components/memory/MemoryDocumentsTab.tsx
+++ b/app/src/components/memory/MemoryDocumentsTab.tsx
@@ -56,6 +56,15 @@ export default function MemoryDocumentsTab() {
void reload();
}, [reload]);
+ // While anything is syncing, re-read the registry so status, item counts and
+ // errors move on their own; idle registries are not polled.
+ const anySyncing = (sources ?? []).some(s => s.status === 'syncing');
+ useEffect(() => {
+ if (!anySyncing) return;
+ const timer = setInterval(() => void reload(), SYNC_POLL_MS);
+ return () => clearInterval(timer);
+ }, [anySyncing, reload]);
+
const add = async (req: SourceAddRequest): Promise<boolean> => {
setSaving(true);
setAddError(null);