fix: Prompt user to confirm file edits before proceeding

This commit is contained in:
Paul Gauthier 2024-09-25 10:29:58 -07:00 committed by Paul Gauthier (aider)
parent 26745426ae
commit 130c6f7308

View file

@ -12,6 +12,9 @@ class SeniorCoder(AskCoder):
def reply_completed(self):
content = self.partial_response_content
if not self.io.confirm_ask("Edit the files?"):
return
kwargs = dict(self.original_kwargs)
kwargs["edit_format"] = self.main_model.junior_edit_format
kwargs["suggest_shell_commands"] = False