Acknowledge agent messages and clarify how to wake idle recipients (#61894)

## What changed

Return `Message accepted.` from the v2 `send_message` tool. For non-root recipients, also advise using `followup_task` when an idle agent should act immediately. Messages to the root agent receive only the acknowledgment.

## Testing

Assert the acknowledgment when a child messages the root agent, and update the idle-eviction follow-up snapshot to include the guidance for non-root recipients.

GitOrigin-RevId: bb0cf6039d9b693052a1747daa2e75fa25c13522
This commit is contained in:
RJ
2026-11-16 22:07:07 +00:00
committed by copyberry
parent 3a51865c8c
commit c0d47262f3
3 changed files with 17 additions and 3 deletions
@@ -55,7 +55,7 @@ Scenario: A parent with no configured environment delegates an API migration, qu
Run send_message for the API migration.
-- request 4 (turn) --
10:function_call/collaboration.send_message:{"message":"Use the new API for the migration.","target":"worker"}
11:function_call_output:
11:function_call_output:Message accepted. If the recipient is idle and should act now, use followup_task to ask it to act on the message.
12:agent_message
-- request 5 (turn) --
13:message/user: