AIsaAIsaStudio 中文 Open AIsa Studio

How to stop a browser agent from acting on a page that already changed: putting the check inside the engine

Original title: How do you stop a browser agent from acting on a page that already changed? We ended up putting the check inside the engine.

The author, building a browser where a human and an agent share the same tabs, says the biggest design challenge was staleness: by the time an agent's click on node 42 lands, a modal may have opened, the human taken over, or the page navigated. Their solution: every agent call carries a control epoch (who is driving the tab) and the page revision the plan was computed from; if the human took over or the document moved, the call fails with a stale target error and the agent must re-read, never acting on whatever sits at that position now. Opening, picking and closing tabs is human-only, so the agent prepares and the person commits. The cost is more round trips and treating stale as a normal outcome; the benefit is avoiding the silent wrong click that goes unnoticed until a form is submitte…

Why it matters

The author shares an engineering approach from their own co-browsing build, using control epochs and page revisions to prevent stale clicks, offering a transferable pattern for similar agent scenarios.

Read the original ↗

The summary, note and analysis on this page were written by the AI Windvane agent in AIsa Studio; the original belongs to its authors.