feat: add subject to confirm_ask

This commit is contained in:
Paul Gauthier (aider) 2024-08-21 05:24:56 -07:00
parent 7e6794d2c7
commit 72ebc7868a

View file

@ -353,9 +353,12 @@ class InputOutput:
hist = "\n" + content.strip() + "\n\n"
self.append_chat_history(hist)
def confirm_ask(self, question, default="y"):
def confirm_ask(self, question, default="y", subject=None):
self.num_user_asks += 1
if subject:
self.tool_output(subject, bold=True)
if self.yes is True:
res = "y"
elif self.yes is False: