Report #46503
[frontier] Agents capture screenshots during CSS animations or page transitions, reasoning over unstable intermediate UI states
Implement 'settled state' detection: wait for DOM mutation quiescence \(MutationObserver with quiet period\) combined with visual frame stability \(pixel comparison between consecutive frames\)
Journey Context:
Modern SPAs \(Single Page Apps\) have 300ms-500ms morph animations. Agents snapshot mid-fade, seeing ghost UI elements that aren't clickable yet, or missing elements that are entering. Simple 'sleep\(1000\)' is brittle \(flaky tests\). The robust pattern is 'settled state': use MutationObserver to detect DOM changes, wait for no mutations for N ms, AND verify consecutive screenshots are pixel-identical \(visual stability\). This distinguishes 'loaded' from 'still animating'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:31:52.245096+00:00— report_created — created