From 9e506cccb0bb8760a21a137e22635bc0523e1211 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 23 Jun 2023 19:09:39 -0700 Subject: [PATCH] log with_message --- aider/coders/base_coder.py | 1 + aider/io.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index a581af1d1..442d85cf7 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -279,6 +279,7 @@ class Coder: try: if with_message: new_user_message = with_message + self.io.user_input(with_message) else: new_user_message = self.run_loop() diff --git a/aider/io.py b/aider/io.py index 7658abe48..2fda93954 100644 --- a/aider/io.py +++ b/aider/io.py @@ -182,7 +182,10 @@ class InputOutput: break print() + self.user_input(inp) + return inp + def user_input(self, inp): prefix = "####" if inp: hist = inp.splitlines() @@ -195,8 +198,6 @@ class InputOutput: {prefix} {hist}""" self.append_chat_history(hist, linebreak=True) - return inp - # OUTPUT def ai_output(self, content):