Report #83449
[frontier] Screenshot agent produces drifting click coordinates after page scroll or viewport resize
Implement viewport-normalized coordinates with persistent anchor elements, converting absolute pixel coordinates to percentages relative to the viewport or specific DOM elements before each action, and re-calculate from the anchor on every step.
Journey Context:
Agents often calculate coordinates once then reuse them after scrolling, causing cumulative drift and missed clicks. DOM-based agents avoid this but fail on canvas apps. The fix is treating coordinates as ephemeral: snapshot the viewport, identify an anchor element that persists across steps \(like a header\), express target coordinates as percentages relative to that anchor, and rehydrate to absolute pixels immediately before the action.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:39:25.977210+00:00— report_created — created