Skip to content
fastbrowsefastbrowse

How the agent acts

Why an AI agent clicks the wrong button

An agent that clicks screen coordinates can hit a control that is not there. How an indexed control set bounds what fastbrowse can click.

·verified against v0.11.0 on ·this post’s source·all posts

A coordinate against a control indexLeft: a banner pushes the page down and a click at a fixed coordinate lands on the banner. Right: the agent picks control 3, Add to cart, from an indexed list.SCREEN COORDINATESNewsletter bannerAdd to cartclick (96, 114) lands on the bannerINDEXED CONTROLS[1]linkHome[2]fieldSearch[3]buttonAdd to cartpicked[4]buttonCheckouthit-tested again before the click
A coordinate hits whatever is at that pixel once the layout shifts. fastbrowse picks from the controls the page offered and hit-tests the target before it clicks.

An agent that clicks screen coordinates can hit a control that is not there. The click lands on something real, just not the button the task meant, and the run reports a wrong answer.

fastbrowse takes the coordinate out of the loop. The agent can only name a control the page offered it.

What the agent chooses from

At each step the agent sends one request that names an operation and its targets, drawn from the page's indexed buttons, links and fields. A target that is not in the list cannot be chosen. That rules out a guessed region, a control that has since been removed, and a caption that only looks like a button.

A fill decision can also name other offered fields the task needs filled. Those are filled in page order without a request each, and only while the page still shows each one as it was offered; anything else goes back to a full decision.

A read decision can cover a whole list through its observed next-page links. Each page is checked before it is read; a different list or a page that needs an action returns to an ordinary decision. Each read and navigation still spends its own step.

The authorization gate

Every click the model picks is judged before it runs, including links, navigation to a supplied or proposed known address, each Enter press or key chord, and accepting a confirm or prompt dialog. A refusal is recorded as a failed step with a reason.

An action the judge is confident cannot be undone stops the run at needs_confirmation with exit code 3, and an uncertain one goes to recovery. In a browser that stays open, such as a running Chrome reached over its DevTools port or through the extension, a run stopped at needs_confirmation leaves its tab on the step it stopped at. The judge can be wrong, so read the step before you authorize it.

See what the agent was offered

Config(step_choices=True) adds StepResult.choices to each step: the controls the agent was offered for that decision, with its pick marked. When recovery overrides a decision, the step still records what the first chooser saw.

For a run that clicked something unexpected, check whether the right control was in that list:

The control the agent clicked and the quote a result is checked against come from one reading of the page. How it works covers the loop, run statuses and exit codes lists each ending, and the comparison page shows how other agents read a page.

uvx fastbrowse "cancel the subscription and confirm the page says cancelled" --start https://example.com/account

Next: your first run.

hosted

Run fastbrowse over an API

The same agent behind an API. Keys, secrets, run history and spend limits live in the console. Free to start.

create an account·plans and pricing