From 443acbe4b556d141108130e1507950ae8cdce575 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 21 Nov 2024 06:23:32 -0800 Subject: [PATCH] fix: Correct command output confirmation logic in base coder --- aider/coders/base_coder.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index ebd36a941..8d0d6a265 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -2061,9 +2061,8 @@ class Coder: if output: accumulated_output += f"Output from {command}\n{output}\n" - if accumulated_output.strip() and not self.io.confirm_ask( + if accumulated_output.strip() and self.io.confirm_ask( "Add command output to the chat?", allow_never=True ): - accumulated_output = "" - - return accumulated_output + self.io.output("Added ## lines of output to the chat") # TODO + return accumulated_output