Skip to main content

push_peer_user_turn_into_chat

Function push_peer_user_turn_into_chat 

Source
pub(crate) fn push_peer_user_turn_into_chat(
    workspace: &Workspace,
    target_key: &SessionSlot,
    wrapped: &WrappedPrompt,
    uuid: &str,
)
Expand description

Emit a typed PeerEnvelopeAppended so the target session’s chat buffer shows the inbound peer user-turn. A view’s reducer builds the chat-side echo directly from the WrappedPrompt’s typed fields - workspace no longer forges an SDK Message::User frame (audit I11).

Note: this only affects the visible chat echo. The recipient’s claude subprocess still receives the prose via a separate Command::Prompt dispatch - the CLI’s input channel is text-shaped and stays that way.