You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(config): enforce allow_edit_existing_files restriction in tool selection (#388) (#389)
Wire up the existing but unused `infer_task_edit_requirement()` heuristic
to the tool selection pipeline. When a prompt indicates editing intent
(fix, implement, refactor, etc.), tools with `allow_edit_existing_files =
false` are now filtered out during tier-based selection.
Three changes:
- `resolve_tool_and_model()` accepts `needs_edit` and forwards it to
`resolve_tier_tool_rotated()` (was hardcoded `false`)
- New `resolve_tier_tool_filtered()` replaces the unfiltered fallback,
`resolve_tier_tool()` now delegates to it with `needs_edit=false`
- `run_cmd_execute` calls `infer_task_edit_requirement()` and passes
the result through the strategy resolution chain
Closes#388
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments