From 2dc2b45d1521ccd84b23cd306a2005f5ae2c9c16 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 23 Aug 2024 16:24:16 -0700 Subject: [PATCH] fix: Update input prompt for yes/no questions --- aider/io.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/aider/io.py b/aider/io.py index 09ec1ab7a..f3cd8bf47 100644 --- a/aider/io.py +++ b/aider/io.py @@ -379,12 +379,12 @@ class InputOutput: ): self.num_user_asks += 1 - if explicit_yes_required: - question += " (Y)es/(N)o [Y]: " - elif group is None: - question += " (Y)es/(N)o [Y]: " - else: - question += " (Y)es/(N)o/(A)ll/(S)kip all [Y]: " + question += " (Y)es/(N)o" + if group: + if not explicit_yes_required: + question += "/(A)ll" + question += "/(S)kip all" + question += " [Y]: " if subject: self.tool_output() @@ -403,6 +403,8 @@ class InputOutput: style = dict() def is_valid_response(text): + if not text: + return if explicit_yes_required or group is None: valid_responses = ["y", "n", ""] else: