Codex Desktop on Windows: media preview closes when interacting with the scrollbar

Open
#35,199 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start at the Codex Desktop media preview and trace how scrollbar pointer events reach the preview backdrop's dismiss handler on Windows. Reproduce with a zoomed media attachment showing scrollbars, then verify that dragging either scrollbar scrolls the preview without closing it while explicit close, Escape, and genuine outside clicks still dismiss it.

Written by the indexing model from the issue text.

Description

app bug windows-os
What version of the Codex App are you using (From “About Codex” dialog)?

26.721.3996.0

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 Home)

What issue are you seeing?

When a media preview is open in Codex Desktop on Windows, pressing the left mouse button on a visible scrollbar thumb immediately closes the preview. The scrollbar handle therefore cannot be grabbed or dragged.

The scrollbar interaction appears to be handled as a click outside the preview (or another dismiss action) instead of as interaction with the preview's scrollable area.

What steps can reproduce the bug?
  1. Open Codex Desktop on Windows.
  2. Open a media attachment in the preview window, using media large enough that the preview shows a scrollbar. (zoom in so both vert/hori appear)
  3. Move the cursor over the scrollbar thumb.
  4. Press the left mouse button to begin dragging the thumb.
  5. Observe that the media preview closes immediately after release, before the scrollbar can be dragged correctly.
What is the expected behavior?

Clicking or dragging the scrollbar thumb should scroll the media preview and must not dismiss it. The preview should close only through its explicit close control, Escape, or a genuine click outside the preview.

Additional information

This is observed in the Windows Codex Desktop app. It may be caused by the scrollbar pointer/click event propagating to the preview backdrop's dismiss handler.

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

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.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.