mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
feat: add user input logging and history for /run command responses
This commit is contained in:
parent
92667c7963
commit
9c35556c2a
2 changed files with 3 additions and 3 deletions
|
@ -739,6 +739,9 @@ class Commands:
|
||||||
else:
|
else:
|
||||||
add = True
|
add = True
|
||||||
instructions = response
|
instructions = response
|
||||||
|
if response.strip():
|
||||||
|
self.io.user_input(response, log_only=True)
|
||||||
|
self.io.add_to_input_history(response)
|
||||||
|
|
||||||
if add:
|
if add:
|
||||||
for line in combined_output.splitlines():
|
for line in combined_output.splitlines():
|
||||||
|
|
|
@ -481,9 +481,6 @@ 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