mirror of
https://github.com/usestrix/strix.git
synced 2026-10-16 04:28:23 +00:00
Update strix/agents/planner.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
30d1a055b4
commit
ebc6126513
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue