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 "/!"