mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +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:
|
else:
|
||||||
res = prompt(question + " ", default=default, style=style)
|
res = prompt(question + " ", default=default, style=style)
|
||||||
|
|
||||||
|
if res.strip():
|
||||||
|
self.user_input(res, log_only=True)
|
||||||
|
|
||||||
hist = f"{question.strip()} {res.strip()}"
|
hist = f"{question.strip()} {res.strip()}"
|
||||||
self.append_chat_history(hist, linebreak=True, blockquote=True)
|
self.append_chat_history(hist, linebreak=True, blockquote=True)
|
||||||
if self.yes in (True, False):
|
if self.yes in (True, False):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue