MCPcopy
hub / github.com/Aider-AI/aider / cmd_clear

Method cmd_clear

aider/commands.py:411–415  ·  view source on GitHub ↗

Clear the chat history

(self, args)

Source from the content-addressed store, hash-verified

409 self.cmd_commit("")
410
411 def cmd_clear(self, args):
412 "Clear the chat history"
413
414 self._clear_chat_history()
415 self.io.tool_output("All chat history cleared.")
416
417 def _drop_all_files(self):
418 self.coder.abs_fnames = set()

Callers

nothing calls this directly

Calls 2

_clear_chat_historyMethod · 0.95
tool_outputMethod · 0.45

Tested by

no test coverage detected