mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Remove unnecessary output when dropping all files
This commit is contained in:
parent
7eb761fd98
commit
023c59d0f3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue