ask for confirmation

This commit is contained in:
Paul Gauthier 2024-05-22 21:27:59 -07:00
parent 5032adf44b
commit a405defcff
2 changed files with 4 additions and 5 deletions

View file

@ -586,9 +586,9 @@ class Coder:
)
urls = url_pattern.findall(inp)
for url in urls:
self.io.tool_output(f"Adding {url} to the chat.")
inp += "\n\n"
inp += self.commands.cmd_web(url)
if self.io.confirm_ask(f"Add {url} to the chat?"):
inp += "\n\n"
inp += self.commands.cmd_web(url)
return inp