From ed6cb17501bd14ce5ec009f68fba54539cf1a470 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 5 Mar 2026 22:54:30 +0000 Subject: web: fix Restart button calling nonexistent /restart endpoint restartTask() was POSTing to /api/tasks/{id}/restart (405) instead of the existing /api/tasks/{id}/run endpoint. Co-Authored-By: Claude Sonnet 4.6 --- web/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index 578d9a8..20d7a03 100644 --- a/web/app.js +++ b/web/app.js @@ -303,7 +303,7 @@ async function cancelTask(taskId) { } async function restartTask(taskId) { - const res = await fetch(`${API_BASE}/api/tasks/${taskId}/restart`, { method: 'POST' }); + const res = await fetch(`${API_BASE}/api/tasks/${taskId}/run`, { method: 'POST' }); if (!res.ok) { let msg = `HTTP ${res.status}`; try { const body = await res.json(); msg = body.error || body.message || msg; } catch {} -- cgit v1.2.3