Added gui support for tool_error(log_only=True) #740

This commit is contained in:
Paul Gauthier 2024-06-27 10:58:06 -07:00
parent 7016587bc6
commit 87f4d25133

View file

@ -17,9 +17,10 @@ from aider.scrape import Scraper
class CaptureIO(InputOutput): class CaptureIO(InputOutput):
lines = [] lines = []
def tool_output(self, msg): def tool_output(self, msg, log_only=False):
self.lines.append(msg) if not log_only:
super().tool_output(msg) self.lines.append(msg)
super().tool_output(msg, log_only=log_only)
def tool_error(self, msg): def tool_error(self, msg):
self.lines.append(msg) self.lines.append(msg)