From b3d13e44b258934362d7a06477967497f9ce9581 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 8 Nov 2024 14:21:59 -0800 Subject: [PATCH] refactor: Modify cmd_web to add scraped content to cur_messages as assistant reply --- aider/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 45d19c1b8..b48379b9e 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -162,7 +162,8 @@ class Commands: self.io.tool_output("... done.") - return content + # Add the content to cur_messages as a faux assistant reply + self.coder.cur_messages.append(dict(role="assistant", content=content)) def is_command(self, inp): return inp[0] in "/!"