From 985a9136fca9f534da39f52e5821ffe5d2998477 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 9 Aug 2024 15:09:09 -0300 Subject: [PATCH] Don't trigger an LLM response after /add --- aider/commands.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index c3e9ec67a..4c0421a0b 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -578,16 +578,6 @@ class Commands: self.coder.check_added_files() added_fnames.append(matched_file) - if not added_fnames: - return - - # only reply if there's been some chatting since the last edit - if not self.coder.cur_messages: - return - - reply = prompts.added_files.format(fnames=", ".join(added_fnames)) - return reply - def completions_drop(self): files = self.coder.get_inchat_relative_files() files = [self.quote_fname(fn) for fn in files] @@ -932,7 +922,7 @@ class Commands: self.io.tool_output(f"Added clipboard image to the chat: {abs_file_path}") self.coder.check_added_files() - return prompts.added_files.format(fnames=str(abs_file_path)) + return # If not an image, try to get text text = pyperclip.paste()