mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
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:
parent
e09a2033e2
commit
2241741316
1 changed files with 2 additions and 1 deletions
|
@ -935,6 +935,7 @@ class Coder:
|
||||||
if history:
|
if history:
|
||||||
for msg in history:
|
for msg in history:
|
||||||
context += "\n" + msg["role"].upper() + ": " + msg["content"] + "\n"
|
context += "\n" + msg["role"].upper() + ": " + msg["content"] + "\n"
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def auto_commit(self, edited):
|
def auto_commit(self, edited):
|
||||||
|
@ -963,7 +964,7 @@ class Coder:
|
||||||
self.repo.commit(fnames=self.need_commit_before_edits)
|
self.repo.commit(fnames=self.need_commit_before_edits)
|
||||||
|
|
||||||
# files changed, move cur messages back behind the files messages
|
# 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
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue