Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: cap memory content length in event payloads and notifications

Adam Eivyd7fba4faa0e0
diff --git a/server/services/memoryExtractor.js b/server/services/memoryExtractor.js
index 4d551c873b..07b3ecc259 100644
--- a/server/services/memoryExtractor.js
+++ b/server/services/memoryExtractor.js
@@ -265,7 +265,7 @@ export async function extractAndStoreMemories(agentId, taskId, output, task = nu
memories: pendingMemories.map(m => ({
id: m.id,
type: m.type,
- content: m.content,
+ content: (m.content || '').slice(0, 500),
confidence: m.confidence
}))
});
@@ -281,7 +281,7 @@ export async function extractAndStoreMemories(agentId, taskId, output, task = nu
await notifications.addNotification({
type: notifications.NOTIFICATION_TYPES.MEMORY_APPROVAL,
title: `Memory needs approval`,
- description: mem.summary || mem.content,
+ description: (mem.summary || mem.content || '').slice(0, 300),
priority: notifications.PRIORITY_LEVELS.MEDIUM,
link: '/cos/memory',
metadata: {