Browser-agent builder solves stale-page races with control epochs and page revisions

OyaAI · reddit · 2026-10-29

A developer building a browser where humans and agents share tabs explains the hardest design problem: staleness. By the time an agent's planned click lands, a modal, human takeover, or navigation may have changed the target. Their fix: every agent call carries a control epoch (who is driving the tab) and the page revision the plan was computed from; on mismatch the call fails with a stale-target error and the agent must re-read. Tab open/close is human-only. The cost is more round trips and treating staleness as a normal outcome; the benefit is no silent wrong clicks on submitted forms. He asks how Playwright/CDP users handle the same race.

Original post →

More from coding & agent

coding & agent channel →