From 72ebc7868a920a75bfd4ee6a07a2e0ed1a0251ab Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 21 Aug 2024 05:24:56 -0700 Subject: [PATCH] feat: add subject to `confirm_ask` --- aider/io.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 2d5b6ef36..07f6b3f38 100644 --- a/aider/io.py +++ b/aider/io.py @@ -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: