Skip to content

increase default consecutive failure to 5#4080

Merged
sauravpanda merged 5 commits into
mainfrom
regression-test
Feb 11, 2026
Merged

increase default consecutive failure to 5#4080
sauravpanda merged 5 commits into
mainfrom
regression-test

Conversation

@sauravpanda

@sauravpanda sauravpanda commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

Summary by cubic

Increase the default consecutive failure threshold from 3 to 5 and restore the original guard so only single-action step errors increment consecutive failures (multi-action steps are handled by loop detection). Improve browser-closed detection to trigger only on real CDP/WebSocket connection failures, reducing false positives.

Written for commit ae3b8be. Summary will update on new commits.

@github-actions

github-actions Bot commented Feb 11, 2026

Copy link
Copy Markdown

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.

@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.

No issues found across 2 files

@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.

2 issues found across 2 files (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="browser_use/agent/service.py">

<violation number="1" location="browser_use/agent/service.py:170">
P2: Default max_failures is set to 7, which conflicts with the PR’s stated goal of increasing the threshold to 5. If the intent is 5, this change will silently allow more consecutive failures than planned.</violation>
</file>

<file name="browser_use/agent/views.py">

<violation number="1" location="browser_use/agent/views.py:65">
P2: Default max_failures is set to 7, which conflicts with the PR’s stated intent to raise the default to 5. If the intent is truly 5, this will overshoot the expected retry threshold.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread browser_use/agent/service.py Outdated
Comment thread browser_use/agent/views.py Outdated

@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.

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="browser_use/agent/service.py">

<violation number="1" location="browser_use/agent/service.py:1188">
P2: Multi-action steps with errors no longer increment consecutive_failures, so repeated failures in multi-action steps can bypass the failure threshold entirely. If the intent is to count any action error as a step failure, restore the previous check that counts any error in the step.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread browser_use/agent/service.py
@sauravpanda sauravpanda merged commit 9d1a103 into main Feb 11, 2026
74 checks passed
@sauravpanda sauravpanda deleted the regression-test branch February 11, 2026 19:14
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.

1 participant