From ecacecdc3cf74d649e0bb032eb124c114c2c5308 Mon Sep 17 00:00:00 2001 From: shiva Date: Mon, 10 Aug 2026 14:26:31 +0530 Subject: [PATCH] fix(dashboard): jobs list badge distinguishes success from failure state="exited" alone doesn't mean success -- a job whose command ran but exited nonzero looked identical to a real success, both a plain gray "exited" badge. The API already returns output.exit_code in the list payload; the badge/label just never read it. exited+exit_code:0 now renders "done" (neutral styling); exited with a nonzero code renders "failed" (urgent styling), matching real failed/killed jobs. Detail view gets the same treatment. output can be null (seen on failed jobs) so both helpers use optional chaining. Agentflare-Agent: claude-code Agentflare-Branch: task/54 Agentflare-Item: 54 --- dashboard/web/jobs.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dashboard/web/jobs.html b/dashboard/web/jobs.html index f878b47e3..83c67c53f 100644 --- a/dashboard/web/jobs.html +++ b/dashboard/web/jobs.html @@ -93,7 +93,7 @@

Job - + @@ -109,7 +109,7 @@

Job
- State: + State: ID: Created: Started: @@ -275,13 +275,18 @@

Job