What
One Claude Code session can send a message to another. Some of these messages are held back instead of delivered straight away. Before, the notice about a held message was for information only, and the app hosting the session could not approve it. A host is the program that started Claude Code and talks to it, such as an app built with the SDK, Anthropic's toolkit for building on Claude Code.
- The held-message notice now carries
hold_id,can_deliver,always_scope,session_class,verified_pidand a preview of the message. - A local host answers it with a
decide_held_peer_messagerequest. - A new
set_peer_deliveryrequest controls whether the host is shown held messages. - Both requests are accepted only on stdin, from the app that started the session. Other connections get an error saying so.
- A
decide_held_peer_messagerequest that combinesalwayswith a decision to drop the message is rejected.
Why
An app hosting Claude Code can now let its user approve or drop messages from other sessions, instead of only seeing that they are waiting. Limiting these requests to the app that started the session means another connection cannot approve messages on its behalf.