From 8d3a320ab3d3b1f893e4ea6af3b05c8656139857 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 8 Jun 2024 13:31:40 -0700 Subject: [PATCH] log the announcements in the gui too --- aider/gui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/gui.py b/aider/gui.py index 6d5cd0a9a..2776a477d 100755 --- a/aider/gui.py +++ b/aider/gui.py @@ -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