Include failed runs in list_runs output

Failed runs were not showing in UI/CLI because list_runs only
included runs with status "pending" or "running", excluding "failed".

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-13 02:10:58 +00:00
parent f28edf7ab6
commit 84d465b264

View File

@@ -295,9 +295,9 @@ class RunService:
if any(r.get("run_id") == run_id for r in completed_runs):
continue
# Get live status
# Get live status - include pending, running, and failed runs
run = await self.get_run(run_id)
if run and run.get("status") in ("pending", "running"):
if run and run.get("status") in ("pending", "running", "failed"):
pending.append(run)
# Combine and sort