mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
Update the run command to ask the user to add the output with possible responses: yes, no or provide additional instructions to accompany the output.
This commit is contained in:
parent
69af6f8ab5
commit
926f9cc39a
1 changed files with 18 additions and 1 deletions
|
@ -619,7 +619,20 @@ class Commands:
|
|||
if add_on_nonzero_exit:
|
||||
add = result.returncode != 0
|
||||
else:
|
||||
add = self.io.confirm_ask("Add the output to the chat?", default="y")
|
||||
response = self.io.prompt(
|
||||
"Add the output to the chat? (yes/no/instructions): ",
|
||||
default="no"
|
||||
).lower().strip()
|
||||
|
||||
if response == "yes":
|
||||
add = True
|
||||
instructions = None
|
||||
elif response == "no":
|
||||
add = False
|
||||
instructions = None
|
||||
else:
|
||||
add = True
|
||||
instructions = response
|
||||
|
||||
if add:
|
||||
for line in combined_output.splitlines():
|
||||
|
@ -629,6 +642,10 @@ class Commands:
|
|||
command=args,
|
||||
output=combined_output,
|
||||
)
|
||||
|
||||
if instructions:
|
||||
msg += f"\n\nAdditional instructions: {instructions}"
|
||||
|
||||
return msg
|
||||
|
||||
def cmd_exit(self, args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue