MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / handleAdd

Function handleAdd

SettingsModal.tsx:1364–1375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1362 const [showClearConfirm, setShowClearConfirm] = useState(false)
1363
1364 const handleAdd = () => {
1365 if (!newMemoryContent.trim()) return
1366 addMemory({
1367 type: newMemoryType,
1368 content: newMemoryContent.trim(),
1369 source: 'manual',
1370 active: true
1371 })
1372 setNewMemoryContent('')
1373 setNewMemoryType('fact')
1374 setShowAddForm(false)
1375 }
1376
1377 const handleEdit = (id: string) => {
1378 if (!editContent.trim()) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected