fix: Require explicit yes for running shell commands

This commit is contained in:
Paul Gauthier 2024-08-21 21:37:07 -07:00 committed by Paul Gauthier (aider)
parent 97b47602e1
commit 3c249c6b3c

View file

@ -51,7 +51,7 @@ class EditBlockCoder(Coder):
1 for cmd in commands if cmd.strip() and not cmd.strip().startswith("#")
)
prompt = "Run shell command?" if command_count == 1 else "Run shell commands?"
if not self.io.confirm_ask(prompt, subject="\n".join(commands)):
if not self.io.confirm_ask(prompt, subject="\n".join(commands), explicit_yes_required=True):
return
for command in commands: