fix: resolve syntax errors in commands.py and improve file handling logic

This commit is contained in:
Paul Gauthier (aider) 2024-09-27 19:31:43 -07:00
parent 45d94b1c7c
commit 41d5b284e3

View file

@ -715,6 +715,7 @@ class Commands:
self.coder.abs_fnames.add(abs_file_path)
self.io.tool_output(
f"Moved {matched_file} from read-only to editable files in the chat"
)
else:
if is_image_file(matched_file) and not self.coder.main_model.accepts_images:
self.io.tool_error(