summaryrefslogtreecommitdiff
path: root/misc/py-aider-chat/files/patch-aider_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/py-aider-chat/files/patch-aider_commands.py')
-rw-r--r--misc/py-aider-chat/files/patch-aider_commands.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/misc/py-aider-chat/files/patch-aider_commands.py b/misc/py-aider-chat/files/patch-aider_commands.py
index 4ee55c42b1dd..cfa6e67a6b58 100644
--- a/misc/py-aider-chat/files/patch-aider_commands.py
+++ b/misc/py-aider-chat/files/patch-aider_commands.py
@@ -1,4 +1,4 @@
---- aider/commands.py.orig 2025-04-14 23:24:32 UTC
+--- aider/commands.py.orig 2025-05-09 22:41:18 UTC
+++ aider/commands.py
@@ -21,7 +21,7 @@ from aider.run_cmd import run_cmd
from aider.llm import litellm
@@ -9,17 +9,23 @@
from aider.utils import is_image_file
from .dump import dump # noqa: F401
-@@ -219,14 +219,6 @@ class Commands:
+@@ -220,20 +220,6 @@ class Commands:
return
self.io.tool_output(f"Scraping {url}...")
- if not self.scraper:
-- res = install_playwright(self.io)
-- if not res:
-- self.io.tool_warning("Unable to initialize playwright.")
+- disable_playwright = getattr(self.args, "disable_playwright", False)
+- if disable_playwright:
+- res = False
+- else:
+- res = install_playwright(self.io)
+- if not res:
+- self.io.tool_warning("Unable to initialize playwright.")
-
- self.scraper = Scraper(
-- print_error=self.io.tool_error, playwright_available=res, verify_ssl=self.verify_ssl
+- print_error=self.io.tool_error,
+- playwright_available=res,
+- verify_ssl=self.verify_ssl,
- )
content = self.scraper.scrape(url) or ""