fix: Remove unnecessary output when dropping all files

This commit is contained in:
Paul Gauthier 2024-08-21 15:23:59 -07:00 committed by Paul Gauthier (aider)
parent 7eb761fd98
commit 023c59d0f3

View file

@ -287,7 +287,6 @@ class Commands:
self._clear_chat_history()
def _drop_all_files(self):
self.io.tool_output("Dropping all files from the chat session.")
self.coder.abs_fnames = set()
self.coder.abs_read_only_fnames = set()
@ -299,7 +298,7 @@ class Commands:
"Drop all files and clear the chat history"
self._drop_all_files()
self._clear_chat_history()
self.io.tool_output("Reset complete: all files dropped and chat history cleared.")
self.io.tool_output("All files dropped and chat history cleared.")
def cmd_tokens(self, args):
"Report on the number of tokens used by the current chat context"
@ -644,6 +643,7 @@ class Commands:
"Remove files from the chat session to free up context space"
if not args.strip():
self.io.tool_output("Dropping all files from the chat session.")
self._drop_all_files()
return