fix: Improve prompt caching and repo map refresh logic

This commit is contained in:
Paul Gauthier 2024-08-19 15:36:13 -07:00 committed by Paul Gauthier (aider)
parent f8b80548fd
commit 34dc7cc37d
5 changed files with 14 additions and 7 deletions

View file

@ -507,7 +507,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
args.max_chat_history_tokens or main_model.max_chat_history_tokens,
)
if args.cache_prompts:
if args.cache_prompts and args.map_refresh == "auto":
args.map_refresh = "files"
try: