codex - ✅(Solved) Fix The CLI cannot directly copy images; you must first convert the image to a file before you can copy it. [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17502Fetched 2026-04-12 13:27:31
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1unlabeled ×1

PR fix notes

PR #18376: Clarify Windows image paste shortcut

Description (problem / solution / changelog)

Summary

This updates the TUI guidance around image paste on Windows.

The codebase already supports direct clipboard image paste, but native Windows users were still being told to use Ctrl+V even though Windows terminals often intercept that shortcut before Codex sees it. This change makes the UI point users to the intended Windows shortcut and gives a better fallback message when paste fails.

What Changed

  • show Alt+V for image paste in the footer on native Windows
  • keep Ctrl+Alt+V on WSL and Ctrl+V elsewhere
  • improve the Windows paste failure message to suggest Alt+V before falling back to file paths
  • update the startup tooltip to mention the Windows shortcut caveat

Testing

  • On native Windows, copy an image to the clipboard and confirm the footer/help text shows Alt+V
  • Press Alt+V and confirm the image attaches to the draft
  • Press Ctrl+V in a terminal that intercepts it and confirm the fallback messaging now points users to Alt+V

Closes #17502.

Changed files

  • codex-rs/tui/src/bottom_pane/footer.rs (modified, +12/-3)
  • codex-rs/tui/src/chatwidget.rs (modified, +6/-1)
  • codex-rs/tui/tooltips.txt (modified, +1/-1)
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.119.0

What subscription do you have?

gptplus

Which model were you using?

gpt-5.4

What platform is your computer?

win10

What terminal emulator and version are you using (if applicable)?

PowerShell

What issue are you seeing?

The CLI cannot directly copy images; you must first convert the image to a file before you can copy it.

What steps can reproduce the bug?

Copy image

What is the expected behavior?

You can directly copy the image.

Additional information

No response

extent analysis

TL;DR

The issue can be worked around by first converting the image to a file before attempting to copy it using the Codex CLI.

Guidance

  • The likely cause is a limitation in the current version of the Codex CLI (0.119.0) that does not support direct copying of images.
  • To verify this limitation, try converting an image to a file and then attempt to copy it using the CLI to see if the issue is resolved.
  • As a workaround, convert images to files before attempting to copy them using the Codex CLI.
  • Check the documentation or release notes for the Codex CLI to see if this limitation has been addressed in a later version.

Example

No code snippet is provided as the issue does not imply a specific code-based solution.

Notes

The provided information does not specify if this is a known issue or if there are plans to address it in a future version of the Codex CLI.

Recommendation

Apply workaround, as there is no clear indication that upgrading to a fixed version will resolve the issue, and the current version has a known limitation regarding direct image copying.

FAIL-SAFE

Given the information provided, the suggested workaround of converting images to files before copying them should be a safe and minimal step to mitigate the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING