mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
log the announcements in the gui too
This commit is contained in:
parent
d2b9eec3e0
commit
8d3a320ab3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue