pub fn recipient_label(team: &TeamSnapshot, recipient_id: &str) -> StringExpand description
Return the operator-facing label for a MessageRow.recipient.
Recipients come in three shapes:
<project>:<agent>— an agent id. Resolves viaagent_labelto the agent’s display name (or canonical id when unset).channel:<project>:<name>— a broadcast target. Strips thechannel:prefix and renders as#<name>(matches the precedent incompose::ComposeTarget::label+ the MailboxFirst-layout channel list).user:<handle>(e.g.user:telegram) — an operator-facing bridge. Renders verbatim; operators recognize the shape and stripping the prefix would lose useful context.
Owned String return (rather than the &str shape of
agent_label) because the channel-recipient path constructs
#<name> at call time. Cheap allocation in a single-row render;
180-char body cap dominates.