Skip to content

fix(agent): observe a control again only after it stops being busy - #978

Merged
Kikobeats merged 4 commits into
masterfrom
fix/agent-busy-settle
Oct 8, 2026
Merged

Kikobeats merged 4 commits into
masterfrom
fix/agent-busy-settle

Conversation

@Kikobeats

Copy link
Copy Markdown
Member

Summary

  • After input, settle waited at most 50ms. A submit button that disables itself, or a page that sets aria-busy or shows a progress bar, was observed in the middle of that work.
  • Settle now polls until the acted control is enabled again and those busy signals are gone, or until about 3 seconds have passed.

Test plan

  • pnpm exec ava test/chrome.js -m '*disables itself*'

Made with Cursor

A button that disables itself for the request was snapshotted while it was still disabled, so the run ended before the result appeared.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8b6c6963-0a78-41a9-8206-d24954fd998c
📥 Commits

Reviewing files that changed from the base of the PR and between 5cd1023 and a26dc96.

📒 Files selected for processing (3)
  • packages/agent/src/browser.js
  • packages/agent/test/chrome.js
  • packages/agent/test/fixtures/page.js
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 58f51ac. Configure here.

Comment thread packages/agent/src/browser.js Outdated
Comment thread packages/agent/src/browser.js Outdated
Kikobeats and others added 2 commits October 8, 2026 17:26
A hidden aria-busy flag or a progress meter with a value is not an in-flight request, so settle no longer waits on it. The check also walks shadow roots.

Co-authored-by: Cursor <cursoragent@cursor.com>
The page double treats an unrecognized evaluate as the next observation, so the idle check was consuming the state the following decision was supposed to see.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coveralls

coveralls commented Oct 8, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 77.415% (-0.2%) from 77.569% — fix/agent-busy-settle into master

Co-authored-by: Cursor <cursoragent@cursor.com>
@Kikobeats
Kikobeats merged commit 22b2f49 into master Oct 8, 2026
29 checks passed
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