mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
ask for confirmation
This commit is contained in:
parent
5032adf44b
commit
a405defcff
2 changed files with 4 additions and 5 deletions
|
@ -67,8 +67,7 @@ The benchmarking process was similar to a user employing aider like this:
|
|||
tells aider to automatically proceed with every suggestion
|
||||
and use pytest to run tests.
|
||||
- `aider --yes --test-cmd pytest`
|
||||
- Pasting the text of a GitHub issue into the chat, or adding it via URL with a command in the chat like:
|
||||
- `/web https://github.com/django/django/issues/XXX`
|
||||
- Pasting the URL of a GitHub issue into the chat. Aider will offer to pull in the URL's content.
|
||||
- If aider doesn't produce code that lints and tests clean, the user might decide to revert the changes and try again, maybe using aider with a different LLM this time.
|
||||
[Aider is tightly integrated with git](https://aider.chat/docs/faq.html#how-does-aider-use-git),
|
||||
so it's always easy to revert AI changes that don't pan out.
|
||||
|
|
|
@ -586,7 +586,7 @@ class Coder:
|
|||
)
|
||||
urls = url_pattern.findall(inp)
|
||||
for url in urls:
|
||||
self.io.tool_output(f"Adding {url} to the chat.")
|
||||
if self.io.confirm_ask(f"Add {url} to the chat?"):
|
||||
inp += "\n\n"
|
||||
inp += self.commands.cmd_web(url)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue