pub struct PeerMessageHoldMessage {
pub state: PeerMessageHoldState,
pub message_uuid: Option<String>,
pub lane: PeerMessageLane,
pub from: String,
pub from_name: Option<String>,
pub cause: Option<PeerMessageHoldCause>,
pub outcome: Option<PeerMessageHoldOutcome>,
pub uuid: String,
pub session_id: String,
pub extra: Map<String, Value>,
}Expand description
system/peer_message_hold — a cross-session (peer) message this
session’s receive-side policy held rather than queued, and how that hold
resolved. Lets a host show the human that a message arrived but has not
reached the model (and may never) instead of nothing at all; the sending
session is told separately over its own transport where one exists.
Informational only — there is no host-side approval through this frame.
Emitted in -p/SDK sessions (CLI 2.1.273+).
Fields§
§state: PeerMessageHoldStateheld once per message per hold cause (a re-announcement under a
different cause emits again); then at most one of released (it
enters the queue — its command_lifecycle queued and user replay
echo follow under message_uuid) or dropped (it will never reach
the model in this session; see outcome).
message_uuid: Option<String>The parked command’s uuid — the value its later command_lifecycle
frames and user replay echo carry. For lane bridge/stdin it is
the id the host supplied on the inbound message; for lane socket it
was chosen by the sending session, so correlate it only within
peer_message_hold / peer replay frames, never against the host’s
own prompts’ lifecycle.
lane: PeerMessageLaneWhich ingress delivered it.
from: StringThe sender’s address as the envelope will show it — an address-shaped token with control and invisible code points scrubbed; empty when the sender supplied none or an unshaped one. Sender-asserted on the socket lane: a label, not an identity proof.
from_name: Option<String>The sender’s display name when it supplied one, normalized and
scrubbed the same way. A claim, like from.
cause: Option<PeerMessageHoldCause>State held only: why the policy parked it.
outcome: Option<PeerMessageHoldOutcome>State dropped only: how the hold ended.
uuid: String§session_id: String§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for PeerMessageHoldMessage
impl Clone for PeerMessageHoldMessage
Source§fn clone(&self) -> PeerMessageHoldMessage
fn clone(&self) -> PeerMessageHoldMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more