feat: Add auto-accept option for architect coder edits

This commit is contained in:
Paul Gauthier (aider) 2025-03-12 13:09:41 -07:00
parent c052270048
commit 5668b41daa
2 changed files with 3 additions and 1 deletions

View file

@ -13,7 +13,7 @@ class ArchitectCoder(AskCoder):
if not content or not content.strip(): if not content or not content.strip():
return return
if not self.io.confirm_ask("Edit the files?"): if not self.auto_accept_architect and not self.io.confirm_ask("Edit the files?"):
return return
kwargs = dict() kwargs = dict()

View file

@ -322,6 +322,7 @@ class Coder:
ignore_mentions=None, ignore_mentions=None,
file_watcher=None, file_watcher=None,
auto_copy_context=False, auto_copy_context=False,
auto_accept_architect=True,
): ):
# Fill in a dummy Analytics if needed, but it is never .enable()'d # Fill in a dummy Analytics if needed, but it is never .enable()'d
self.analytics = analytics if analytics is not None else Analytics() self.analytics = analytics if analytics is not None else Analytics()
@ -334,6 +335,7 @@ class Coder:
self.abs_root_path_cache = {} self.abs_root_path_cache = {}
self.auto_copy_context = auto_copy_context self.auto_copy_context = auto_copy_context
self.auto_accept_architect = auto_accept_architect
self.ignore_mentions = ignore_mentions self.ignore_mentions = ignore_mentions
if not self.ignore_mentions: if not self.ignore_mentions: