mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
feat: log user input from prompt function in chat history
This commit is contained in:
parent
714c991230
commit
92667c7963
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue