From 3c249c6b3ca79f2a5398333f8743faa0f659f766 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 21 Aug 2024 21:37:07 -0700 Subject: [PATCH] fix: Require explicit yes for running shell commands --- aider/coders/editblock_coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coders/editblock_coder.py b/aider/coders/editblock_coder.py index 32d702c0b..d12b2a34c 100644 --- a/aider/coders/editblock_coder.py +++ b/aider/coders/editblock_coder.py @@ -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: