diff --git a/aider/commands.py b/aider/commands.py index 9a8e899b8..0c5cec66b 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1205,7 +1205,7 @@ class Commands: f" {self.coder.main_model.name} does not support images." ) return - + if abs_path in self.coder.abs_read_only_fnames: self.io.tool_error(f"{original_name} is already in the chat as a read-only file") return