diff --git a/server.py b/server.py index 3bf59d7..e32d40a 100644 --- a/server.py +++ b/server.py @@ -1474,8 +1474,12 @@ async def run_plan_visualization(run_id: str, request: Request): # Stats summary - count from built nodes to reflect actual execution status total = len(nodes) cached_count = sum(1 for n in nodes if n["data"]["status"] == "cached") + completed_count = sum(1 for n in nodes if n["data"]["status"] == "completed") running_count = sum(1 for n in nodes if n["data"]["status"] == "running") - pending_count = total - cached_count - running_count + pending_count = total - cached_count - completed_count - running_count + + # Plan name for display + plan_name = plan_data.get("recipe", run.recipe.replace("recipe:", "")) content = f'''