Report #91474
[frontier] Screenshot agents break on HiDPI displays due to coordinate system mismatches between CSS pixels and OS coordinates
Implement a three-space coordinate transformation layer that normalizes between screenshot pixels, CSS logical pixels, and OS physical coordinates using runtime calibration, never assume 1:1 mapping.
Journey Context:
Screenshot agents break on Retina/HiDPI displays where screenshot dimensions \(physical pixels\) don't match DOM coordinates \(CSS px\) or pyautogui coordinates \(which may use physical or logical\). The emergent pattern is a transformation matrix \(physical px ↔ CSS px ↔ OS coords\) with runtime calibration screenshots to detect devicePixelRatio. Hardcoding 1:1 fails on MacBooks and 4K displays.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:07:55.026509+00:00— report_created — created