Codex macOS app crops image previews, showing only the top portion
What version of the Codex App are you using (From “About Codex” dialog)?
26.623.101652
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
Image previews in the Codex macOS app are cropped vertically. Only the top portion of the image is visible, while the bottom is cut off.
This affects both:
- inline image previews/thumbnails inside the thread
- the opened image preview/viewer
The image itself appears to exist, but the preview container/viewer does not size or fit the image correctly.
<img width="727" height="327" alt="Image" src="https://github.com/user-attachments/assets/e5bef91f-c915-4e98-822c-56eebda848e8" />
<img width="474" height="351" alt="Image" src="https://github.com/user-attachments/assets/bc2d664c-2fa8-4eb2-acd1-2996f0be1074" />
What steps can reproduce the bug?
- Open Codex on macOS Apple Silicon.
- Use default app zoom.
- Open a thread that contains image previews, generated images, or image attachments.
- Observe the inline image preview.
- Click/open the image preview.
- Observe that only the top portion of the image is visible and the bottom is cropped.
This may be a function of image resolution / height in pixels but I'm unsure.
What is the expected behavior?
Inline previews and opened image previews should fit the available container or viewport so the full image is visible, with optional manual zoom/pan if needed.
Additional information
I found related reports, but none appear to be exact duplicates:
- https://github.com/openai/codex/issues/26851 reports image preview/lightbox cropping on Windows when Codex UI zoom is increased. This report is macOS Apple Silicon at default zoom.
- https://github.com/openai/codex/issues/29880 reports macOS image thumbnails showing placeholder icons instead of rendering. This report is about images rendering partially but cropped.
- https://github.com/openai/codex/issues/22952 reports broader UI clipping on Intel Mac. This report is Apple Silicon and focused on image previews.
4 Comments
I found that the PNG saved through Codex is truncated at exactly 524288 bytes (512 KiB) and is missing the final PNG IEND chunk, while the same remote file copied via scp is complete and opens normally.
Exactly the same issue here. Screenshots or even generated images in the Codex app thread preview are cropped, but when viewed directly, the images appear fine.
This is not macOS-only. Codex reproduced the same symptom on Windows 11 with Codex Desktop
26.707.9981.0, specifically when the task runs on a Linux host connected through Codex's SSH remote support. Local Windows tasks do not have the problem.Observed behavior:
scp/opened directly.1672x941), rows0-666were pixel-identical to the original, and the remaining rows were transparent.Codex inspected the packaged desktop code and found a remote-only truncation path:
app://fs/file://path.readFileimplementation runscat <path>through app-serverprocess/spawn.outputBytesCap: null, so app-server applies its default stdout cap.capReached/stdoutCapReached, treats exit code 0 as a successful complete read, base64-encodes the received prefix, and supplies it to Chromium as an image data URL.Codex verified this directly against Codex app-server
0.144.4on the SSH host:This also appears consistent with @MaxLinked's 512 KiB finding above; the exact cap can vary with the app-server version or execution path.
The fix belongs in the desktop client. For the Unix-remote
catread, it should either:outputBytesCap: null, or preferablyfs/readFileAPI, as the Windows-remote branch already does.The client should additionally fail/retry any file read for which
capReachedis true instead of silently accepting incomplete bytes.So the apparent preview cropping is a consequence of a truncated remote file transfer, not only a preview-container/CSS sizing problem.
Annoying, same on windows. Trims images in previews and no way to look at them in codex