From 239302a2191e537ad3723c0dbe80afdee7b8a86b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 24 Oct 2024 13:43:01 -0700 Subject: [PATCH] feat: sort filenames before adding to chat --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index b21d78aac..06fb3f435 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -725,7 +725,7 @@ class Commands: except OSError as e: self.io.tool_error(f"Error creating file {fname}: {e}") - for matched_file in all_matched_files: + for matched_file in sorted(all_matched_files): abs_file_path = self.coder.abs_root_path(matched_file) if not abs_file_path.startswith(self.coder.root) and not is_image_file(matched_file):