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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user