mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
log with_message
This commit is contained in:
parent
f23327ecf9
commit
9e506cccb0
2 changed files with 4 additions and 2 deletions
|
@ -279,6 +279,7 @@ class Coder:
|
||||||
try:
|
try:
|
||||||
if with_message:
|
if with_message:
|
||||||
new_user_message = with_message
|
new_user_message = with_message
|
||||||
|
self.io.user_input(with_message)
|
||||||
else:
|
else:
|
||||||
new_user_message = self.run_loop()
|
new_user_message = self.run_loop()
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,10 @@ class InputOutput:
|
||||||
break
|
break
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
self.user_input(inp)
|
||||||
|
return inp
|
||||||
|
|
||||||
|
def user_input(self, inp):
|
||||||
prefix = "####"
|
prefix = "####"
|
||||||
if inp:
|
if inp:
|
||||||
hist = inp.splitlines()
|
hist = inp.splitlines()
|
||||||
|
@ -195,8 +198,6 @@ class InputOutput:
|
||||||
{prefix} {hist}"""
|
{prefix} {hist}"""
|
||||||
self.append_chat_history(hist, linebreak=True)
|
self.append_chat_history(hist, linebreak=True)
|
||||||
|
|
||||||
return inp
|
|
||||||
|
|
||||||
# OUTPUT
|
# OUTPUT
|
||||||
|
|
||||||
def ai_output(self, content):
|
def ai_output(self, content):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue