fall back to global repo map if files in chat are disjoint from rest of repo

This commit is contained in:
Paul Gauthier 2024-05-08 13:53:56 -07:00
parent a9d9c6881d
commit 738c3b8e5e

View file

@ -409,6 +409,11 @@ class Coder:
other_files = set(self.get_all_abs_files()) - set(self.abs_fnames)
repo_content = self.repo_map.get_repo_map(self.abs_fnames, other_files)
# fall back to global repo map if files in chat are disjoint from rest of repo
if not repo_content:
repo_content = self.repo_map.get_repo_map(set(), set(self.get_all_abs_files()))
return repo_content
def get_files_messages(self):