From 5b50eadae33450f2610a7c0c8e303cf4d5f925b0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 28 Jul 2024 19:11:06 -0300 Subject: [PATCH] Add prompt to add command output to chat with instructions --- aider/commands.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index bfad45b41..7b350b376 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -619,15 +619,15 @@ class Commands: if add_on_nonzero_exit: add = result.returncode != 0 else: - response = self.io.prompt( - "Add the output to the chat? (yes/y/no/n/instructions): ", - default="no" - ).lower().strip() + response = self.io.prompt_ask( + "Add the output to the chat? (y/n/instructions): ", + default="y" + ).strip() - if response in ["yes", "y"]: + if response.lower() in ["yes", "y"]: add = True instructions = None - elif response in ["no", "n"]: + elif response.lower() in ["no", "n"]: add = False instructions = None else: @@ -644,7 +644,7 @@ class Commands: ) if instructions: - msg += f"\n\nAdditional instructions: {instructions}" + msg += f"\n\n{instructions}" return msg