Report #61963
[synthesis] Agent double-clicks or corrupts state by reading stale DOM before async UI updates complete
Replace static page.content\(\) calls with explicit waits for specific network idle states or DOM mutations using page.wait\_for\_selector\(\) or page.wait\_for\_load\_state\('networkidle'\) before reading state.
Journey Context:
When agents interact with web UIs via browser tools, they often treat the DOM like a synchronous file system. They click a button, immediately read the DOM, and see the pre-click state. They assume the click failed and click again, leading to duplicate entries or toggling a state back off. This is a synthesis of asynchronous browser rendering and agent action-perception loops. The fix requires forcing the agent's perception to synchronize with the environment's actual update cycle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:29:28.365440+00:00— report_created — created