Update strix/agents/planner.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Dagim Woldemareyam 2026-10-14 11:30:24 +03:00 • committed by GitHub
parent 30d1a055b4
commit ebc6126513
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -191,7 +191,9 @@ class ScanPlanner:
)
# 6. Apply max_steps limit if specified
if max_steps is not None and max_steps > 0:
if max_steps is not None:
if max_steps < 0:
raise ValueError("max_steps must be non-negative")
steps = steps[:max_steps]
# Renumber sequentially
for idx, step in enumerate(steps, start=1):