dirty commits shouldn't move back the messages; was clipping the earlier USER: messages and preventing them from appearing in the commit message transcript

This commit is contained in:
Paul Gauthier 2024-01-02 09:23:00 -08:00
parent e09a2033e2
commit 2241741316

View file

@ -935,6 +935,7 @@ class Coder:
if history:
for msg in history:
context += "\n" + msg["role"].upper() + ": " + msg["content"] + "\n"
return context
def auto_commit(self, edited):
@ -963,7 +964,7 @@ class Coder:
self.repo.commit(fnames=self.need_commit_before_edits)
# files changed, move cur messages back behind the files messages
self.move_back_cur_messages(self.gpt_prompts.files_content_local_edits)
# self.move_back_cur_messages(self.gpt_prompts.files_content_local_edits)
return True