From 27a7102ad439f70838f01b7f25adc0fa864c9617 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 17 Aug 2024 06:32:34 -0700 Subject: [PATCH] feat: Add --map-refresh switch and pass it into RepoMap.refresh --- aider/args.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aider/args.py b/aider/args.py index 2b18fb6a0..ab1839c41 100644 --- a/aider/args.py +++ b/aider/args.py @@ -201,6 +201,12 @@ def get_parser(default_config_files, git_root): default=None, help="Max number of tokens to use for repo map, use 0 to disable (default: 1024)", ) + group.add_argument( + "--map-refresh", + choices=["auto", "always", "files", "manual"], + default="auto", + help="Control when the repo map is refreshed (default: auto)", + ) group.add_argument( "--max-chat-history-tokens", type=int,