Give the commit message model the chat context #748

This commit is contained in:
Paul Gauthier 2024-06-30 13:02:23 -07:00
parent 85ef60f083
commit 16856bb4ca
2 changed files with 4 additions and 4 deletions

View file

@ -1436,8 +1436,8 @@ class Coder:
return context
def auto_commit(self, edited):
# context = self.get_context_from_history(self.cur_messages)
res = self.repo.commit(fnames=edited, aider_edits=True)
context = self.get_context_from_history(self.cur_messages)
res = self.repo.commit(fnames=edited, context=context, aider_edits=True)
if res:
commit_hash, commit_message = res
self.last_aider_commit_hash = commit_hash