From 92667c7963eb02b3038fd904a26e9e9e1380ceb9 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 27 Aug 2024 14:15:23 -0700 Subject: [PATCH] feat: log user input from prompt function in chat history --- aider/io.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/io.py b/aider/io.py index 925d60aac..0cdd00d59 100644 --- a/aider/io.py +++ b/aider/io.py @@ -481,6 +481,9 @@ class InputOutput: else: res = prompt(question + " ", default=default, style=style) + if res.strip(): + self.user_input(res, log_only=True) + hist = f"{question.strip()} {res.strip()}" self.append_chat_history(hist, linebreak=True, blockquote=True) if self.yes in (True, False):