log the announcements in the gui too

This commit is contained in:
Paul Gauthier 2024-06-08 13:31:40 -07:00
parent d2b9eec3e0
commit 8d3a320ab3

View file

@ -19,9 +19,11 @@ class CaptureIO(InputOutput):
def tool_output(self, msg):
self.lines.append(msg)
super().tool_output(msg)
def tool_error(self, msg):
self.lines.append(msg)
super().tool_error(msg)
def get_captured_lines(self):
lines = self.lines
@ -76,6 +78,9 @@ def get_coder():
# coder.io = io # this breaks the input_history
coder.commands.io = io
for line in coder.get_announcements():
coder.io.tool_output(line)
return coder