Skip to content

Commit 4467173

Browse files
authored
Merge pull request #56 from atxp-dev/naveen/agent-push-notifications
fix: update heartbeat instruction to /hooks/wake payload format
2 parents 2d6652a + 6fa6966 commit 4467173

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/atxp/src/commands/notifications.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ async function sendHeartbeatInstruction(webhookUrl: string, hooksToken: string):
6363
'Authorization': `Bearer ${hooksToken}`,
6464
},
6565
body: JSON.stringify({
66-
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.',
67-
name: 'Notification System',
66+
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.',
67+
mode: 'now',
6868
}),
6969
});
7070
if (!res.ok) {

0 commit comments

Comments
 (0)