feat: add user input logging and history for /run command responses

This commit is contained in:
Paul Gauthier 2024-08-27 14:18:56 -07:00 committed by Paul Gauthier (aider)
parent 92667c7963
commit 9c35556c2a
2 changed files with 3 additions and 3 deletions

View file

@ -739,6 +739,9 @@ class Commands:
else:
add = True
instructions = response
if response.strip():
self.io.user_input(response, log_only=True)
self.io.add_to_input_history(response)
if add:
for line in combined_output.splitlines():

View file

@ -481,9 +481,6 @@ 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):