Pet overlay is clipped to top-left corner on external monitor with macOS "More Space" scaling

Resolved 💬 3 comments Opened May 6, 2026 by MintCondition Closed May 6, 2026

What version of the Codex App are you using (From “About Codex” dialog)?

26.429.61741 (Build 2429)

What subscription do you have?

N/A

What platform is your computer?

macOS

What issue are you seeing?

Environment

  • App: Codex desktop
  • Version: 26.429.61741
  • Build: 2429
  • Date observed: May 6, 2026
  • OS: macOS
  • Display setup: External monitor (BenQ SW321C), scaling set to More Space
  • Main display: external monitor

Issue
When pets are enabled, the floating pet appears heavily clipped. Only the top-left portion of the sprite is visible.

Actual
Pet is clipped; only a small top-left fragment is visible.

Frequency

  • 100% reproducible in this setup.

What steps can reproduce the bug?

  1. Connect external monitor and set macOS display scaling to More Space.
  2. Launch Codex desktop.
  3. Enable/wake pet (/pet or via Settings > Personalization > Pets).
  4. Observe pet rendering in overlay.

What I already tried

  • Fully quit/relaunch Codex.
  • Cleared persisted overlay state in ~/.codex/.codex-global-state.json.
  • Reset avatar/window layout keys and overlay bounds.
  • Forced overlay bounds to app-default geometry values.
  • Created and selected custom pet package with scaled-down sprite content.
  • None resolved clipping.

What is the expected behavior?

Full pet sprite should render correctly in the overlay.

Additional information

Artifacts

  • Screenshot 1: 2026-05-06_12-08-27.png
  • Screenshot 2 (display settings): 2026-05-06_12-14-14.png

Suspected area

  • Pet overlay rendering/layout calculations under high-density or scaled external displays (DPI/devicePixelRatio/viewport clipping math).

<img width="431" height="395" alt="Image" src="https://github.com/user-attachments/assets/7a9f4a23-bfda-494a-afe6-6d7341c98c03" />

<img width="477" height="217" alt="Image" src="https://github.com/user-attachments/assets/6f5628e3-6cd6-4ea4-bd7a-b80066d11458" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗