feat: log user input from prompt function in chat history

This commit is contained in:
Paul Gauthier 2024-08-27 14:15:23 -07:00 committed by Paul Gauthier (aider)
parent 714c991230
commit 92667c7963

View file

@ -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):