From 87f4d25133d65e1d5e083ef1914125c766b1dfcb Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 27 Jun 2024 10:58:06 -0700 Subject: [PATCH] Added gui support for tool_error(log_only=True) #740 --- aider/gui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aider/gui.py b/aider/gui.py index b2239b162..a2284c1b9 100755 --- a/aider/gui.py +++ b/aider/gui.py @@ -17,9 +17,10 @@ from aider.scrape import Scraper class CaptureIO(InputOutput): lines = [] - def tool_output(self, msg): - self.lines.append(msg) - super().tool_output(msg) + def tool_output(self, msg, log_only=False): + if not log_only: + self.lines.append(msg) + super().tool_output(msg, log_only=log_only) def tool_error(self, msg): self.lines.append(msg)