feat: Add repo-map refresh information to output

This commit is contained in:
Paul Gauthier 2024-08-17 07:06:31 -07:00 committed by Paul Gauthier (aider)
parent 022d103a99
commit 77be2b37d3
2 changed files with 3 additions and 1 deletions

View file

@ -230,7 +230,8 @@ class Coder:
if self.repo_map:
map_tokens = self.repo_map.max_map_tokens
if map_tokens > 0:
lines.append(f"Repo-map: using {map_tokens} tokens")
refresh = self.repo_map.refresh
lines.append(f"Repo-map: using {map_tokens} tokens, {refresh} refresh")
max_map_tokens = 2048
if map_tokens > max_map_tokens:
lines.append(

View file

@ -545,6 +545,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
if return_coder:
return coder
io.tool_output()
coder.show_announcements()
if args.show_prompts: