Repository navigation
README: plain-text intro under the badges - #6072
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FtaLtmtYzypkdaUnjCHT6U
Agent Task Evaluation Results: 2/2 (100%)View detailed results
Check the evaluate-tasks job for detailed task execution logs. |
gregpr07
added a commit
that referenced
this pull request
Oct 15, 2026
…on main) (#6076) **Change:** the Claude browser-toolset adapter and its example import the names anthropic 1.14.0 actually ships: - `BrowserState` -> `BetaBrowserState` - `BetaBrowserScreenshotResult` -> `BetaScreenshotResult` - `LocalFilePolicy` -> `BetaLocalFilePolicy`, `ConfirmContext` -> `BetaConfirmContext` - `ToolError` from `anthropic.tools` (no longer re-exported from `anthropic.tools.browser`) **Why:** with the current SDK, importing `browser_use.integrations.anthropic.browser_use` raises ImportError, and pyright reports 4 errors on main. That fails the required `code-style` and `type-checker` checks on every open PR (e.g. #6072). Fields are unchanged (`BetaBrowserState(tabs, state_changes)`, `BetaScreenshotResult(data)`, `BetaLocalFilePolicy(upload_roots=..., upload_document_ids=...)`), so this is a pure rename. **Proof (anthropic 1.14.0, local `uv sync --dev`):** - `pyright` whole repo: main 4 errors -> this branch 0. - `pytest tests/ci/integrations/test_anthropic_browser_use.py`: main 1 failed (`test_browser_use_and_bash_construct_with_a_compatible_sdk`) -> this branch 11 passed, 1 skipped (the skip is the "SDK already includes browser tools" case). - `ruff check` / `ruff format --check` on changed files: clean. **Risk:** users pinned to a pre-release SDK that only had the old names would now fail to import; `pyproject` already allows any `anthropic>=0.76,<2`, and the released SDK is the one CI and new installs resolve. **Rollback:** revert. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FtaLtmtYzypkdaUnjCHT6U <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes the Anthropic browser toolset adapter to use the names shipped in the released anthropic 1.14.0 SDK, so importing `browser_use.integrations.anthropic.browser_use` no longer raises ImportError and pyright passes on main. - Renames `BrowserState` → `BetaBrowserState`, `BetaBrowserScreenshotResult` → `BetaScreenshotResult`, `LocalFilePolicy` → `BetaLocalFilePolicy`, and `ConfirmContext` → `BetaConfirmContext`. - Imports `ToolError` from `anthropic.tools` instead of `anthropic.tools.browser`. - Updates the Claude toolset example README and quickstart to the new names. Users pinned to a pre-release SDK that only had the old names would fail to import; rollback is a revert. <sup>Written for commit a428215. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/browser-use/browser-use/pull/6076?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/browser-use/browser-use/6076?returnTo=https%3A%2F%2Fgithub.com%2Fbrowser-use%2Fbrowser-use%2Fpull%2F6076&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change: adds one plain-text paragraph right under the badges, saying what Browser Use is: the open-source library, Cloud (stealth browsers from $0.02/browser-hour, 90.5% on Stealth Bench V2) and Browser Harness.
Why: the README's only text above the fold was "Agents that use the browser." In a 160-answer test, Claude Code and Codex treated Browser Use as just a Python library and never named Cloud for stealth or Browser Harness. GitHub was the source they linked most often, and Google's AI Overview for "browser automation" cites this repo.
Proof: text only; every number is from https://browser-use.com/benchmarks/browsers. Risk: none at runtime. Rollback: revert.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FtaLtmtYzypkdaUnjCHT6U
Summary by cubic
Adds a plain-text intro under the README badges so the project's content is clear above the fold.
The README previously had only "Agents that use the browser." as text there, and in a 160-answer test Claude Code and Codex treated Browser Use as just a Python library, never naming Cloud's stealth browsers or Browser Harness. The new paragraph introduces all three, with benchmark numbers sourced from browser-use.com.
Text only; no runtime risk; revert to roll back.
Written for commit 3cdda3f. Summary will update on new commits.