From 8517681f02275d3527e437a561b6893064d307ea Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 22 Jun 2023 12:01:34 -0700 Subject: [PATCH] Log the `explanation` to the chat history file --- aider/coders/base_coder.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 99c9f7dc0..050b6fc64 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -487,8 +487,15 @@ class Coder: interrupted = True if not silent: - # TODO: self.partial_response_function_call - self.io.ai_output(self.partial_response_content) + # TODO... + if self.partial_response_content: + self.io.ai_output(self.partial_response_content) + elif self.partial_response_function_call: + args = self.parse_partial_args() + if args: + explanation = args.get("explanation") + if explanation: + self.io.ai_output(explanation) return interrupted