feat: add suggest_shell_commands option to control shell command suggestions

This commit is contained in:
Paul Gauthier (aider) 2024-08-27 13:31:43 -07:00
parent f33850ceab
commit b178fe85d8
2 changed files with 5 additions and 0 deletions

View file

@ -255,6 +255,7 @@ class Coder:
map_refresh="auto",
cache_prompts=False,
num_cache_warming_pings=0,
suggest_shell_commands=True,
):
self.commit_before_message = []
self.aider_commit_hashes = set()
@ -1865,6 +1866,9 @@ class Coder:
return
def run_shell_commands(self):
if not self.suggest_shell_commands:
return ""
done = set()
group = ConfirmGroup(set(self.shell_commands))
accumulated_output = ""