/clear should only clear history, not drop files

This commit is contained in:
Paul Gauthier 2023-06-21 14:36:31 -07:00
parent d00dca034d
commit 3974629d50

View file

@ -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 = []