fix double lines for confirm_ask

This commit is contained in:
Paul Gauthier 2024-05-23 13:55:53 -07:00
parent 670f78a874
commit a395d9bb5c

View file

@ -300,7 +300,7 @@ class InputOutput:
res = prompt(question + " ", default=default)
hist = f"{question.strip()} {res.strip()}"
self.tool_output(hist)
self.append_chat_history(hist, linebreak=True, blockquote=True)
if not res or not res.strip():
return