mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +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.console import Console, Text
|
||||||
from rich.markdown import Markdown
|
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.commands import Commands
|
||||||
from aider.history import ChatSummary
|
from aider.history import ChatSummary
|
||||||
from aider.io import ConfirmGroup, InputOutput
|
from aider.io import ConfirmGroup, InputOutput
|
||||||
|
|
|
@ -729,14 +729,14 @@ class Commands:
|
||||||
if combined_output is None:
|
if combined_output is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.io.tool_output(combined_output)
|
|
||||||
|
|
||||||
if add_on_nonzero_exit:
|
if add_on_nonzero_exit:
|
||||||
add = exit_status != 0
|
add = exit_status != 0
|
||||||
else:
|
else:
|
||||||
|
self.io.tool_output()
|
||||||
response = self.io.prompt_ask(
|
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()
|
).strip()
|
||||||
|
self.io.tool_output()
|
||||||
|
|
||||||
if response.lower() in ["yes", "y"]:
|
if response.lower() in ["yes", "y"]:
|
||||||
add = True
|
add = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue