Skip to main content

message_claude_peer

Function message_claude_peer 

Source
pub async fn message_claude_peer(
    homes: &HarnessHomes,
    session_id: &str,
    text: &str,
    runner: &dyn CourierRunner,
) -> Result<ClaudePeerDelivery, ClaudePeerRefusalError>
Expand description

Resolve session_id in the registry and deliver text into it.

The registry is re-read here rather than trusted from a discovery result, and the resolved name is checked back against the requested session id: a name that has moved to another live session must refuse, not deliver the message to the wrong reader.