diff --git a/aider/coder.py b/aider/coder.py index 2f2bb69f0..c07f7afe9 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -219,7 +219,7 @@ class Coder: messages += self.get_files_messages() messages += self.cur_messages - # self.show_messages(messages, "all") + # utils.show_messages(messages, "all") content, interrupted = self.send(messages) if interrupted: diff --git a/aider/commands.py b/aider/commands.py index 344ee0e64..383d8ee19 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -164,13 +164,7 @@ class Commands: if not added_fnames: return - quoted_fnames = self.coder.get_files_content(added_fnames) - reply = prompts.added_files.format(quoted_fnames=quoted_fnames) - - from aider.dump import dump - - dump(reply) - + reply = prompts.added_files.format(fnames=", ".join(added_fnames)) return reply def completions_drop(self, partial): diff --git a/aider/prompts.py b/aider/prompts.py index f9e7e5ca4..73698c4c1 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -107,7 +107,4 @@ undo_command_reply = ( "I did not like those edits, so I did `git reset --hard HEAD~1` to discard them." ) -added_files = """Here is the content of more files: - -{quoted_fnames} -""" +added_files = "Please note that I shared content of these additional files: {fnames}" diff --git a/aider/utils.py b/aider/utils.py index 0efd24762..139ce4151 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -113,7 +113,7 @@ def do_replace(fname, before_text, after_text): return True -def show_messages(self, messages, title): +def show_messages(messages, title): print(title.upper(), "*" * 50) for msg in messages: