diff --git a/web/api.py b/web/api.py index 52c6fae..53c481b 100644 --- a/web/api.py +++ b/web/api.py @@ -1053,7 +1053,7 @@ def revise_task(task_id: str, body: TaskRevise): # KIN-128: On 2nd+ revision, inject analyst as first step for fresh perspective. # Guard: skip if analyst is already the first step (idempotent), or if steps is None. - if revise_count >= 2 and steps and (not steps or steps[0].get("role") != "analyst"): + if revise_count >= 2 and steps and steps[0].get("role") != "analyst": analyst_step = { "role": "analyst", "model": "sonnet",