refactor: sort new file mentions before confirmation

This commit is contained in:
Paul Gauthier 2024-08-28 17:59:04 -07:00 committed by Paul Gauthier (aider)
parent 41a43fc313
commit e45def7a98
2 changed files with 4 additions and 4 deletions

View file

@ -1327,7 +1327,7 @@ class Coder:
added_fnames = []
group = ConfirmGroup(new_mentions)
for rel_fname in new_mentions:
for rel_fname in sorted(new_mentions):
if self.io.confirm_ask(f"Add {rel_fname} to the chat?", group=group):
self.add_rel_fname(rel_fname)
added_fnames.append(rel_fname)