feat(messages): add sender-side wake recipient override

Senders can now force the recipient agent to wake on receipt regardless
of the recipient's `messageResponseMode`. Surfaced as a "Wake recipient
immediately" checkbox in MessageComposer and as a `wake_recipient`
boolean param on the `fn_send_message` agent tool. Carried as
`metadata.wakeRecipient: true` on the message; the heartbeat hook
treats forced wakes as `message_received_urgent` in the wake delta so
agents can distinguish them from normal `messageResponseMode: immediate`
wakes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-06 09:26:15 -07:00
parent c17c288cea
commit 890f8853ed
6 changed files with 104 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
---
"@runfusion/fusion": minor
---
Add a sender-side "wake recipient immediately" override for messages. The
message composer now offers a checkbox (when sending to an agent) and the
`fn_send_message` agent tool gains a `wake_recipient` boolean parameter.
When set, the recipient agent is woken on receipt regardless of their own
`messageResponseMode` setting. Carried as `metadata.wakeRecipient: true` on
the message; ignored when the recipient is a user.