openai / openai/codex

[Bug] Image viewer closes unexpectedly when dragging/scrolling large images

Open
#39,889 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

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

Version 26.730.61639

What subscription do you have?

pro 5x

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

When viewing a large image in Codex Image Viewer, dragging the image or interacting with the bottom area of the viewer may unexpectedly close the image preview.

The behavior looks like a mouse hit-test issue: the click is interpreted as pressing the close button instead of dragging/panning the image.

The issue mainly happens with large panoramic images that require scrolling or dragging.

What steps can reproduce the bug?
  1. Ask Codex to display a large PNG image.
  2. Click "Viewed an image" to open the image viewer.
  3. Use a large aspect-ratio image that requires scrolling/panning.
  4. Try to drag the image from the bottom area of the viewer.
  5. The image viewer closes instead of moving/panning the image.
What is the expected behavior?

Dragging should move/pan the image, and scrolling should zoom or navigate the image.

The image viewer should only close when clicking the close button explicitly.

Additional information

Additional observations:

  • The issue is easier to reproduce with very wide/tall images.
  • Right-clicking the image only shows:
    • Copy Image
    • Select All

There is no option to open the image externally or reveal the file location.

The problem appears to be related to mouse event handling or hit-test coordinates between the image canvas and overlay controls.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Codex Image Viewer entry point and reproduce the issue with a large panoramic image on Windows. Inspect mouse hit-testing between the image area and overlay controls, especially near the bottom edge. Done means dragging pans the image and scrolling zooms or navigates without closing; only an explicit close-button click closes the viewer.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.