From 49f332db3f1f49147d7a1016bc06a05d71afe5dc Mon Sep 17 00:00:00 2001 From: "Your Name (aider)" Date: Sun, 28 Jul 2024 19:05:19 -0300 Subject: [PATCH] Add support for 'y' and 'n' responses in the 'cmd_run' method --- aider/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index b8efc02d4..bfad45b41 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -620,14 +620,14 @@ class Commands: add = result.returncode != 0 else: response = self.io.prompt( - "Add the output to the chat? (yes/no/instructions): ", + "Add the output to the chat? (yes/y/no/n/instructions): ", default="no" ).lower().strip() - if response == "yes": + if response in ["yes", "y"]: add = True instructions = None - elif response == "no": + elif response in ["no", "n"]: add = False instructions = None else: