File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,13 +141,13 @@ async def agent_loop(self, codeIdentifiers :Optional[List[str]]=None):
141141 autocomplete = AutoComplete (self .tide .cached_ids )
142142 if self ._direct_mode :
143143 self .contextIdentifiers = None
144- exact_matches = autocomplete .extract_words_from_text (self .history [- 1 ])["all_found_words" ]
144+ exact_matches = autocomplete .extract_words_from_text (self .history [- 1 ], max_matches_per_word = 1 )["all_found_words" ]
145145 self .modifyIdentifiers = self .tide ._as_file_paths (exact_matches )
146146 codeIdentifiers = self .modifyIdentifiers
147147 self ._direct_mode = False
148148
149149 else :
150- matches = autocomplete .extract_words_from_text ("\n \n " .join (self .history ))
150+ matches = autocomplete .extract_words_from_text ("\n \n " .join (self .history ), max_matches_per_word = 1 )
151151
152152 # --- Begin Unified Identifier Retrieval ---
153153 identifiers_accum = set (matches ["all_found_words" ]) if codeIdentifiers is None else set (codeIdentifiers + matches ["all_found_words" ])
You can’t perform that action at this time.
0 commit comments