[Bug] Windows image preview close button overlaps main window close button

Open 💬 2 comments Opened Jun 1, 2026 by ybebeej

What version of Codex are you using?

OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0

What platform is your computer?

Windows

What issue are you seeing?

When opening an image preview in Codex Desktop on Windows, the image preview close button appears in the top-right corner very close to, and visually competing with, the native Codex window close button.

This creates a hit-testing / UX risk: when the user tries to close the image preview, it is easy to accidentally click the main app window close button instead.

Observed from a screenshot: the preview toolbar shows a download button and an image-preview X button near the top-right, while the native window close X remains directly behind or adjacent in the same corner.

Steps to reproduce

  1. Open Codex Desktop on Windows.
  2. Open any image attachment or image preview in a conversation.
  3. Look at the top-right corner of the app window.
  4. Try to close only the image preview using its X button.

Expected behavior

The image preview close button should avoid the native titlebar/window-control area and have enough safe padding so users cannot accidentally close the whole Codex window.

Possible fixes:

  • Move the image-preview controls inward/downward from the native window controls.
  • Add a safe-area offset on Windows.
  • Prefer Esc as the visible primary close affordance or make the preview close button location unambiguous.

Actual behavior

The image preview close button is positioned too close to the native app close button, creating overlap/near-overlap and accidental-close risk.

Additional context

This is a UI/layout issue in the Codex Desktop image preview overlay, not a local config/plugin issue.

View original on GitHub ↗

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