In-app browser annotation hover highlight ignores page zoom level
What version of the Codex App are you using (From “About Codex” dialog)?
26.519.41501 (3044)
What subscription do you have?
Pro
What platform is your computer?
Darwin 24.6.0 arm64 arm
What issue are you seeing?
When the Codex Desktop in-app browser content is zoomed in or out, the browser annotation hover preview highlights the wrong region.
After rechecking, this does not appear to be caused by the overall Codex app window zoom level. The issue appears specifically when the in-app browser page/content itself is zoomed in or out.
While hovering in annotation/comment mode, the blue preview rectangle appears to use stale or unscaled element bounds. However, after clicking, the final selected/commented annotation region snaps to the correct actual element bounds.
So the hover preview and the final click/commit behavior seem to be using different coordinate transforms. The click path appears to hit-test or calculate bounds correctly, while the hover preview appears to ignore the in-app browser page zoom level.
This makes browser comments hard to place accurately because the preview rectangle is misleading before the click.
What steps can reproduce the bug?
- Open a local web app in Codex Desktop's in-app browser.
- Enter in-app browser annotation/comment mode.
- At normal in-app browser page zoom, hover over a visible UI element and observe that the hover highlight is aligned.
- Zoom the in-app browser page/content in or out.
- Hover over the same visible UI element again.
- Observe that the hover preview highlight is offset or sized as if the page were still at the previous / unzoomed scale.
- Click the element.
- Observe that the committed annotation highlight uses the correct actual target bounds.
What is the expected behavior?
The annotation hover preview and the final clicked annotation region should use the same coordinate transform and remain aligned with the visible page regardless of the in-app browser page zoom level.
If the in-app browser content is zoomed in or out, the hover preview rectangle should be calculated from the zoom-adjusted visual bounds, not from stale or unscaled coordinates.
Additional information
This looks like a zoom-coordinate mismatch in the annotation hover preview path only. The final click/commit path appears to calculate the target correctly.
Possibly related coordinate-space issue:
Related in-app browser annotation/overlay issues:
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗