MCPcopy Create free account
hub / github.com/Roy3838/Observer / handleMemoryUpdate

Function handleMemoryUpdate

app/src/components/MemoryManager.tsx:51–56  ·  view source on GitHub ↗
(event: CustomEvent)

Source from the content-addressed store, hash-verified

49 // Listen for memory update events
50 useEffect(() => {
51 const handleMemoryUpdate = (event: CustomEvent) => {
52 if (event.detail.agentId === agentId && isOpen) {
53 loadMemory(false); // Silent update
54 loadImageMemory(false); // Also reload image memory
55 }
56 };
57
58 // Add event listener
59 window.addEventListener(MEMORY_UPDATE_EVENT, handleMemoryUpdate as EventListener);

Callers

nothing calls this directly

Calls 2

loadImageMemoryFunction · 0.85
loadMemoryFunction · 0.70

Tested by

no test coverage detected