mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
better approach to cloning Commands in from_coders
This commit is contained in:
parent
5562bc96c7
commit
7a7febfb2b
2 changed files with 1 additions and 2 deletions
|
@ -117,6 +117,7 @@ class Coder:
|
||||||
done_messages=done_messages,
|
done_messages=done_messages,
|
||||||
cur_messages=from_coder.cur_messages,
|
cur_messages=from_coder.cur_messages,
|
||||||
aider_commit_hashes=from_coder.aider_commit_hashes,
|
aider_commit_hashes=from_coder.aider_commit_hashes,
|
||||||
|
commands=from_coder.commands.clone(),
|
||||||
)
|
)
|
||||||
|
|
||||||
use_kwargs.update(update) # override to complete the switch
|
use_kwargs.update(update) # override to complete the switch
|
||||||
|
|
|
@ -778,7 +778,6 @@ class Commands:
|
||||||
edit_format="help",
|
edit_format="help",
|
||||||
summarize_from_coder=False,
|
summarize_from_coder=False,
|
||||||
map_tokens=512,
|
map_tokens=512,
|
||||||
commands=self.clone(),
|
|
||||||
map_mul_no_files=1,
|
map_mul_no_files=1,
|
||||||
)
|
)
|
||||||
user_msg = self.help.ask(args)
|
user_msg = self.help.ask(args)
|
||||||
|
@ -817,7 +816,6 @@ class Commands:
|
||||||
from_coder=self.coder,
|
from_coder=self.coder,
|
||||||
edit_format="ask",
|
edit_format="ask",
|
||||||
summarize_from_coder=False,
|
summarize_from_coder=False,
|
||||||
commands=self.clone(),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
user_msg = args
|
user_msg = args
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue