Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
22.46k stars 2.09k forks source link

Add option to disable external web scraping #2187

Open dtharumia opened 3 weeks ago

dtharumia commented 3 weeks ago

Issue

First of all, great work with this project! We are running Aider non-interactively through a script and have enabled the setting to "always say yes to every confirmation". Similar to #1522, Aider is trying to automatically scrape URLs in its outputs. We would like to disable this feature in its entirety or potentially only allow it for certain hostnames. Could we block the cmd_web function here behind a config setting or environment variable so that we can restrict this behaviour even when not requiring confirmations?

Version and model info

No response

ifokeev commented 3 weeks ago

Same issue here, need this a lot

hyperknot commented 4 days ago

This is quite bad at the moment. For example the following message triggers downloading playwright install!

implement bsky login using the following snippet

import { BskyAgent } from '@atproto/api'

const agent = new BskyAgent({
  service: 'https://bsky.social'
})
await agent.login({
  identifier: 'handle.example.com',
  password: 'hunter2'
})

This is the official snippet from the docs, the URL really shouldn't be scraped! Especially in programming related commands, those URLs are usually not even scrappable. Playwright should really not be installed, nor httpx should be used.

hyperknot commented 4 days ago

In my case, it might be related to yes-always: true Which is good for every thing answer, except for this.

nang-dev commented 2 hours ago

agree, ill try to make a pr for this