mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
Add prompt to add command output to chat with instructions
This commit is contained in:
parent
49f332db3f
commit
5b50eadae3
1 changed files with 7 additions and 7 deletions
|
@ -619,15 +619,15 @@ class Commands:
|
|||
if add_on_nonzero_exit:
|
||||
add = result.returncode != 0
|
||||
else:
|
||||
response = self.io.prompt(
|
||||
"Add the output to the chat? (yes/y/no/n/instructions): ",
|
||||
default="no"
|
||||
).lower().strip()
|
||||
response = self.io.prompt_ask(
|
||||
"Add the output to the chat? (y/n/instructions): ",
|
||||
default="y"
|
||||
).strip()
|
||||
|
||||
if response in ["yes", "y"]:
|
||||
if response.lower() in ["yes", "y"]:
|
||||
add = True
|
||||
instructions = None
|
||||
elif response in ["no", "n"]:
|
||||
elif response.lower() in ["no", "n"]:
|
||||
add = False
|
||||
instructions = None
|
||||
else:
|
||||
|
@ -644,7 +644,7 @@ class Commands:
|
|||
)
|
||||
|
||||
if instructions:
|
||||
msg += f"\n\nAdditional instructions: {instructions}"
|
||||
msg += f"\n\n{instructions}"
|
||||
|
||||
return msg
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue