A browser agent failure mode that's easy to miss: the page says no and the agent keeps going

ahstanin · reddit · 2026-08-28

A recurring failure mode when building browser tools for agents: when a form rejects a submit, it usually adds no new controls — just a message near the fields. If the action result only reports structural change, a refused submit and a successful one look identical, so the agent proceeds and every remaining action runs against a page that never advanced; the task fails three steps later somewhere unrelated. Screenshot-based agents have it worse: the refusal is a few red pixels the model must notice and interpret.

The fix: make the action result carry what the page said, not just structural changes, and treat a refusal as a stop condition for the rest of the batch. Two general suggestions:

Notably, the author's own test suite missed this: tests re-read the page after each step and saw the error, but the per-action result was blind — exactly what a batching agent reads.

Original post →

More from coding & agent

coding & agent channel →