From baa412b172b5fb19292481fb4155442bf6f4296e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 00:52:48 +0000 Subject: [PATCH] fix(status): simplify terminal step guard condition in get_step_summary Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- app/utils/step_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/step_manager.py b/app/utils/step_manager.py index d183452e..56ad8b58 100644 --- a/app/utils/step_manager.py +++ b/app/utils/step_manager.py @@ -358,7 +358,7 @@ def get_step_summary(db: Session, file_id: int) -> Dict: # Note: if TERMINAL_STEP already appears in `steps`, the loop above has # already incremented `main_steps_count` for it, so we only add here when # the step is absent from the DB entirely. - if not any(step.step_name == TERMINAL_STEP for step in steps if step.step_name in REAL_MAIN_STEPS): + if not any(step.step_name == TERMINAL_STEP for step in steps): main_steps_count += 1 main_counts["queued"] += 1