From 84d465b2644e32e01c0e668d781b60136ed832a6 Mon Sep 17 00:00:00 2001 From: gilesb Date: Tue, 13 Jan 2026 02:10:58 +0000 Subject: [PATCH] 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 --- app/services/run_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/run_service.py b/app/services/run_service.py index 489fd52..8a20c4c 100644 --- a/app/services/run_service.py +++ b/app/services/run_service.py @@ -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