Skip to content

Commit 8f16416

Browse files
committed
update to latest browser-use
1 parent ec00e55 commit 8f16416

File tree

5 files changed

+295
-310
lines changed

5 files changed

+295
-310
lines changed

.cursor/rules/project-structure.mdc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ alwaysApply: true
1717
- `create_browser` creates a remote Kernel browser from `KERNEL_API_KEY`, returns `(session, browser)` with fixed viewport and auto PDF downloads.
1818
- `downloaded_files(agent)` collects files from the profile downloads path.
1919

20-
- **Browser patches**: [lib/patch.py](mdc:lib/patch.py)
21-
- `PatchedBrowser` and `PatchedDownloadsWatchdog` ensure download events fire reliably (injects a synthetic `NavigationCompleteEvent`).
22-
2320
- **Storage (Cloudflare R2)**: [lib/storage.py](mdc:lib/storage.py)
2421
- Uploads downloaded files and trajectory JSON to R2; returns presigned URLs.
2522

lib/browser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
from pathlib import Path
33
from os import environ as env
44

5-
from browser_use import Agent, BrowserProfile
5+
from browser_use import Agent, BrowserProfile, Browser
66
from kernel import AsyncKernel, KernelContext
77
from kernel.types import BrowserCreateParams
88

99
from lib.models import BrowserAgentRequest
10-
from lib.patch import PatchedBrowser
1110

1211
VIEWPORT_SIZE = {"width": 1280, "height": 800}
1312

@@ -39,7 +38,7 @@ async def create_browser(ctx: KernelContext, request: BrowserAgentRequest):
3938
if not headless:
4039
logger.info(f"Browser live view: {remote_browser.browser_live_view_url}")
4140

42-
browser = PatchedBrowser(
41+
browser = Browser(
4342
id=invocation_id,
4443
browser_profile=BrowserProfile(
4544
is_local=False,

lib/patch.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies = [
88
"anyio>=4.10.0",
99
"asyncer>=0.0.8",
1010
"boto3>=1.40.25",
11-
"browser-use>=0.7.2",
11+
"browser-use>=0.7.9",
1212
"kernel>=0.11.0",
1313
"orjson>=3.11.3",
1414
"pydantic>=2.10.6",

0 commit comments

Comments
 (0)