Skip to main content

dispatch_session_agent

Function dispatch_session_agent 

Source
pub(super) fn dispatch_session_agent(
    turn: Turn<'_>,
    acp_ctrl: &dyn SessionAgent,
    tracker: Option<Arc<TurnActivityTracker>>,
) -> Result<(), String>
Expand description

ACP agents (Copilot, OpenClaw, Pi) and Muse Code (MSP): the message becomes a prompt (a turn) on the agent’s running session. If the agent’s process exited or crashed, this starts it again from the pane’s meta; the message waits for the new session.