mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
/clear should only clear history, not drop files
This commit is contained in:
parent
d00dca034d
commit
3974629d50
1 changed files with 1 additions and 2 deletions
|
@ -79,9 +79,8 @@ class Commands:
|
||||||
self.coder.commit(message=commit_message, which="repo_files")
|
self.coder.commit(message=commit_message, which="repo_files")
|
||||||
|
|
||||||
def cmd_clear(self, args):
|
def cmd_clear(self, args):
|
||||||
"Clear the chat history and drop all files from the chat context"
|
"Clear the chat history"
|
||||||
|
|
||||||
self.coder.abs_fnames = set()
|
|
||||||
self.coder.done_messages = []
|
self.coder.done_messages = []
|
||||||
self.coder.cur_messages = []
|
self.coder.cur_messages = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue