mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Add missing utils import to base_coder.py
feat: Improve prompt for adding tool output to chat
This commit is contained in:
parent
35eecee739
commit
eed7e0b652
2 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ import git
|
|||
from rich.console import Console, Text
|
||||
from rich.markdown import Markdown
|
||||
|
||||
from aider import __version__, models, prompts, urls
|
||||
from aider import __version__, models, prompts, urls, utils
|
||||
from aider.commands import Commands
|
||||
from aider.history import ChatSummary
|
||||
from aider.io import ConfirmGroup, InputOutput
|
||||
|
|
|
@ -729,14 +729,14 @@ class Commands:
|
|||
if combined_output is None:
|
||||
return
|
||||
|
||||
self.io.tool_output(combined_output)
|
||||
|
||||
if add_on_nonzero_exit:
|
||||
add = exit_status != 0
|
||||
else:
|
||||
self.io.tool_output()
|
||||
response = self.io.prompt_ask(
|
||||
"Add the output to the chat?\n[Y/n/instructions]",
|
||||
"Add the output to the chat?\n(Y)es/(n)o/message with instructions:",
|
||||
).strip()
|
||||
self.io.tool_output()
|
||||
|
||||
if response.lower() in ["yes", "y"]:
|
||||
add = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue