Skip to content

Conversation

@MagMueller
Copy link
Collaborator

@MagMueller MagMueller commented Oct 28, 2025

Auto-generated PR for branch: fix-auto-download


Note

Adds CDP Network-based monitoring to detect and auto-download PDFs/attachments across targets, with deduping and background downloads; exposes session→target lookup and tweaks tool action descriptions.

  • Downloads handling (browser_use/browser/watchdogs/downloads_watchdog.py):
    • Enable network monitoring per target via Network.enable and a global Network.responseReceived callback.
    • Detect PDFs and Content-Disposition: attachment responses (including iframes/JS-triggered) and auto-download in background using download_file_from_url (JS fetch).
    • Deduplicate by URL, track monitored targets and detected downloads, and clean up tasks/state on stop.
    • Integrate with existing CDP download events; attach monitoring on tab creation.
  • Session (browser_use/browser/session.py):
    • Add get_target_id_from_session_id(session_id) to map CDP session IDs to target_id for event routing.
  • Tools:
    • write_file action description updated to list supported formats and PDF behavior (browser_use/tools/service.py).
    • Clarify DoneAction and StructuredOutputAction field descriptions (browser_use/tools/views.py).

Written by Cursor Bugbot for commit 00b11e1. This will update automatically on new commits. Configure here.

…iptions

- Updated the `write_file` action to include detailed documentation on supported file formats (.txt, .md, .json, .jsonl, .csv, .pdf) and conversion process for PDF files.
- Refined the `text` field description in `DoneAction` to clarify the expected format for user summaries.
- Improved the `success` field description in `StructuredOutputAction` to specify its meaning more clearly.

These changes aim to enhance clarity and usability for developers interacting with the API.
@github-actions
Copy link

github-actions bot commented Oct 28, 2025

Agent Task Evaluation Results: 2/2 (100%)

View detailed results
Task Result Reason
amazon_laptop ✅ Pass Skipped - API key not available (fork PR or missing secret)
browser_use_pip ✅ Pass Skipped - API key not available (fork PR or missing secret)

Check the evaluate-tasks job for detailed task execution logs.

@MagMueller
Copy link
Collaborator Author

Evaluation Results

Commit: 191e0a9

📊 Summary

  • Success Rate: ⚠️ 66.1%
  • Average Steps: 21.1 steps/task
  • Average Time: 123.8 sec/task
  • Average Time per Step: 5.9s/step

Automated evaluation by browser-use

@MagMueller
Copy link
Collaborator Author

Evaluation Results

Commit: af1efd1

📊 Summary

  • Success Rate: ✅ 91.7%
  • Average Steps: 6.9 steps/task
  • Average Time: 10.3 sec/task
  • Average Time per Step: 1.5s/step

Automated evaluation by browser-use

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@MagMueller
Copy link
Collaborator Author

Evaluation Results

Commit: d4f9f9f

📊 Summary

  • Success Rate: ✅ 88.5%
  • Average Steps: 6.9 steps/task
  • Average Time: 10.7 sec/task
  • Average Time per Step: 1.6s/step

Automated evaluation by browser-use

…loadsWatchdog with global network response handling

- Introduced `get_target_id_from_session_id` method in `BrowserSession` to facilitate lookup of target IDs from CDP session IDs.
- Updated `DownloadsWatchdog` to register a global network response callback, improving detection of downloadable content.
- Enhanced error handling and logging for network response events to ensure better tracking of downloads and potential issues.

These changes aim to improve the reliability and functionality of session management and download monitoring in the browser automation framework.
@MagMueller
Copy link
Collaborator Author

Evaluation Results

Commit: 00b11e1

📊 Summary

  • Success Rate: ✅ 86.1%
  • Average Steps: 7.2 steps/task
  • Average Time: 13.8 sec/task
  • Average Time per Step: 1.9s/step

Automated evaluation by browser-use

@MagMueller MagMueller merged commit 9297941 into main Oct 28, 2025
43 checks passed
@MagMueller MagMueller deleted the fix-auto-download branch October 28, 2025 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants