This commit is contained in:
ZacharyZhang-NY committed 2026-04-06 00:35:27 -04:00
1 parent 13166fd860
commit f5d4f8b705
5 files changed
+20 -17

No files matched your search

@@ -209,6 +209,11 @@ export function executeAutomationAction(
} catch {
// Keep the fallback title when the task no longer exists.
}
// Heartbeat tasks are internal system tasks — skip escalation messages to avoid flooding channels.
if (taskTitle.startsWith("[Heartbeat]")) {
logger.info(`[automation] Skipping escalation for heartbeat task "${taskTitle}"`);
break;
}
const manager = db.getManagerForAgent(targetAgentId);
const escalationBody = (config.body as string) ?? `Task "${taskTitle}" needs your attention. ${agentName} has flagged this as requiring manager intervention.`;
// Pick the most descriptive wake trigger based on the originating event