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
|
tells aider to automatically proceed with every suggestion
|
||||||
and use pytest to run tests.
|
and use pytest to run tests.
|
||||||
- `aider --yes --test-cmd pytest`
|
- `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:
|
- Pasting the URL of a GitHub issue into the chat. Aider will offer to pull in the URL's content.
|
||||||
- `/web https://github.com/django/django/issues/XXX`
|
|
||||||
- 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.
|
- 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),
|
[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.
|
so it's always easy to revert AI changes that don't pan out.
|
||||||
|
|
|
@ -586,9 +586,9 @@ class Coder:
|
||||||
)
|
)
|
||||||
urls = url_pattern.findall(inp)
|
urls = url_pattern.findall(inp)
|
||||||
for url in urls:
|
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 += "\n\n"
|
||||||
inp += self.commands.cmd_web(url)
|
inp += self.commands.cmd_web(url)
|
||||||
|
|
||||||
return inp
|
return inp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue