Skip to main content

handle_agent_stop_forward

Function handle_agent_stop_forward 

Source
pub(super) async fn handle_agent_stop_forward(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<AgentStopForwardRequest>,
) -> impl IntoResponse
Expand description

POST /agentmux/agent/stop — the cross-channel bulk-stop forward target. See fleet_bulk_stop_impl’s doc comment for the caller side. The request names its asker itself and cannot be checked, so it goes through this instance’s own override window (banner, chime, Keep running) like /agentmux/agent/stop-pending: the stop happens after 30 s unless the user keeps the agent running.