refactor: improve file path handling and remove debug code

This commit is contained in:
Paul Gauthier 2024-12-01 08:27:15 -08:00 committed by Paul Gauthier (aider)
parent ee4206099a
commit 59af7ed3bb
4 changed files with 3 additions and 4 deletions

View file

@ -785,7 +785,8 @@ class Commands:
self.io.tool_error(f"Unable to read {matched_file}")
else:
self.coder.abs_fnames.add(abs_file_path)
self.io.tool_output(f"Added {matched_file} to the chat")
fname = self.coder.get_rel_fname(abs_file_path)
self.io.tool_output(f"Added {fname} to the chat")
self.coder.check_added_files()
def completions_drop(self):