pub async fn run_cancel(
__arg0: State<AppState>,
__arg1: Path<String>,
) -> Result<StatusCode, ApiError>Expand description
POST /v1/runs/:id/cancel — record a cancel request on the Run’s
trace stream (core.cancel_requested) and mark the Run’s status
to Cancelled for still-in-flight rows. Idempotent: repeat calls
re-append the trace event but keep the status setter idempotent
on the store side. In-flight abort itself remains a v3 carry — the
current effect is observational + status marker, matching the
swarm_cancel MCP tool’s local semantics but reflected onto the
server-side RunTraceStore so GET /v1/runs/:id/trace reflects
it too.