From 16defb3c8c874b25c5d46d310ffd76ba59019917 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 5 Aug 2024 17:49:57 -0300 Subject: [PATCH] feat: sort tuples in get_ranked_tags_map --- aider/repomap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aider/repomap.py b/aider/repomap.py index 0252f460a..c497fa71d 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -415,11 +415,11 @@ class RepoMap: ): # Check if the arguments match the last call current_args = ( - tuple(chat_fnames), - tuple(other_fnames) if other_fnames else None, + tuple(sorted(chat_fnames)), + tuple(sorted(other_fnames)) if other_fnames else None, max_map_tokens, - frozenset(mentioned_fnames) if mentioned_fnames else None, - frozenset(mentioned_idents) if mentioned_idents else None, + frozenset(sorted(mentioned_fnames)) if mentioned_fnames else None, + frozenset(sorted(mentioned_idents)) if mentioned_idents else None, ) if current_args == self._last_ranked_tags_map_args: