From 6fa6966f36121a062c58e1abbeb0498424148de8 Mon Sep 17 00:00:00 2001 From: R-M-Naveen Date: Thu, 5 Mar 2026 22:59:58 -0600 Subject: [PATCH] fix: update heartbeat instruction to /hooks/wake payload format Send { text, mode } instead of { message, name } to match the /hooks/wake endpoint which injects into the main session. Co-Authored-By: Claude Opus 4.6 --- packages/atxp/src/commands/notifications.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/atxp/src/commands/notifications.ts b/packages/atxp/src/commands/notifications.ts index 7b2b580..cda92c4 100644 --- a/packages/atxp/src/commands/notifications.ts +++ b/packages/atxp/src/commands/notifications.ts @@ -63,8 +63,8 @@ async function sendHeartbeatInstruction(webhookUrl: string, hooksToken: string): 'Authorization': `Bearer ${hooksToken}`, }, body: JSON.stringify({ - message: 'SYSTEM: Push notifications are now enabled. Save the following text EXACTLY as-is to your HEARTBEAT.md file:\n\n# Notifications\n\nWhen you receive a message from /hooks/agent, it is a system event (e.g. inbound email). Do NOT just reply in the current chat. You MUST proactively use the message tool to broadcast the notification to every connected channel. Check your available tools, find all messaging channels, and send the notification to each one individually. The goal is that the owner sees the notification regardless of which channel they are watching.', - name: 'Notification System', + text: 'SYSTEM: Push notifications are now enabled. When you receive a system event about a new email, proactively use the message tool to broadcast the notification to every connected channel. Check your available tools, find all messaging channels, and send the notification to each one individually. The goal is that the owner sees the notification regardless of which channel they are watching.', + mode: 'now', }), }); if (!res.ok) {