ZIm/crates/assistant_tools/src/edit_files_tool
Agus Zubiaga 1d33bfde37
assistant edit tool: Replace with flexible indentation (#27039)
Sometimes the model produces SEARCH queries that don't match the
indentation of the source file exactly.

When we can't find an exact match, we'll now attempt to match the lines
while being more flexible about the leading whitespace as long as all
lines are consistently offset from the source, and extend the leading
whitespace in the REPLACE string accordingly.

Release Notes:

- N/A
2025-03-19 09:39:00 -03:00
..
description.md Fix issues in EditFilesTool, ListDirectoryTool and BashTool (#26647) 2025-03-13 09:41:27 +00:00
edit_action.rs assistant edit tool: Create file when search/replace is empty (#27009) 2025-03-18 18:35:11 +00:00
edit_prompt.md Fix issues in EditFilesTool, ListDirectoryTool and BashTool (#26647) 2025-03-13 09:41:27 +00:00
log.rs assistant edit tool: Return applied actions back to main model (#26810) 2025-03-17 13:21:35 -03:00
replace.rs assistant edit tool: Replace with flexible indentation (#27039) 2025-03-19 09:39:00 -03:00