pub async fn spawn_agent(
__arg0: State<AppState>,
__arg1: Path<String>,
__arg2: Json<SpawnBody>,
) -> Result<(StatusCode, Json<SpawnedResponse>), ApiError>Expand description
POST /api/workspaces/{workspace}/agents — spawn an agent (worktree by default).
Routed through the FleetProvider seam: LocalFleet::ensure_agent
delegates to the same FleetManager::spawn_agent this handler called
directly before, so behavior is unchanged.