Skip to content

fix: report failed tool actions as errors - #5374

Open
Soundcreates wants to merge 3 commits into
browser-use:mainfrom
Soundcreates:fix/issue-5361
Open

Soundcreates wants to merge 3 commits into
browser-use:mainfrom
Soundcreates:fix/issue-5361

Conversation

@Soundcreates

@Soundcreates Soundcreates commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • report stale input indices as action errors
  • report scroll failures when no scroll completed
  • distinguish scroll-to-text failures from a missing target

Tests

  • uv run pytest -q tests/ci/test_tools.py
  • uv run pre-commit run --all-files --show-diff-on-failure
  • uv run pyright

Fixes #5361


Summary by cubic

Report failed tool actions as explicit errors so callers can detect and handle them; covers stale input indices, failed scrolls, and scroll-to-text transport and dispatch failures. Fixes #5361.

  • Bug Fixes
    • Input: when element index is missing/stale, return an error instead of content.
    • Scroll: if no scroll attempts succeed, return an error with direction/target context.
    • Scroll-to-text: return an error for transport or event-bus dispatch failures; keep "text not found" as a non-error with a clear message.

Written for commit 59540f3. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread browser_use/tools/service.py Resolved
@github-actions

Copy link
Copy Markdown

👋 This PR has been automatically marked as stale because it hasn't had activity for 45 days.

To keep this PR open:

  • Rebase against the latest main branch
  • Address any review feedback or merge conflicts
  • Add a comment explaining the current status
  • Add the work-in-progress label if you're still actively working on this

This will be automatically closed in 14 days if no further activity occurs.

Thanks for contributing to browser-use! 🤖

@github-actions github-actions Bot added the stale label Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

This failure-reporting fix still addresses the open #5361. The branch remains mergeable, and the current lint, test, and CLA checks pass. Happy to rebase if maintainers want a current base.

@github-actions github-actions Bot removed the stale label Oct 14, 2026
sun04222 added a commit to sun04222/browser-use that referenced this pull request Oct 23, 2026
@github-actions

Copy link
Copy Markdown

👋 This PR has been automatically marked as stale because it hasn't had activity for 45 days.

To keep this PR open:

  • Rebase against the latest main branch
  • Address any review feedback or merge conflicts
  • Add a comment explaining the current status
  • Add the work-in-progress label if you're still actively working on this

This will be automatically closed in 14 days if no further activity occurs.

Thanks for contributing to browser-use! 🤖

@github-actions github-actions Bot added the stale label Nov 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: scroll/input/scroll_to_text report failed actions as successes, so multi_act never aborts and consecutive_failures never increments

1 participant