Windows CLI v0.142.0: Ctrl+V incorrectly treats plain text paste as an image paste
Open 💬 2 comments Opened Jun 23, 2026 by p05-HY
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
v0.142.0
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5.5
What platform is your computer?
设备名称 zhxs 处理器 AMD Ryzen 5 5500U with Radeon Graphics (2.10 GHz) 机带 RAM 16.0 GB (15.3 GB 可用) 图形卡 AMD Radeon(TM) Graphics (496 MB) 存储 已使用 477 GB 中的 374 GB 设备 ID 295B4B9F-8534-446B-8DF0-F91AC6D79977 产品 ID 00342-31418-61509-AAOEM 系统类型 64 位操作系统, 基于 x64 的处理器 笔和触控 没有可用于此显示器的笔或触控输入
What terminal emulator and version are you using (if applicable)?
Windows Terminal(PowerShell)
Codex doctor report
What issue are you seeing?
记事本可以Ctrl+V粘贴,并且也重启/更新Codex了。而在你的输入框,即codex cli输入框中,一旦按下Ctrl+V,就会报错:Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format or the clipboard is empty.然后我尝试只粘贴图片发现可以
What steps can reproduce the bug?
Uploaded thread: 019ef35b-db96-7410-b9e8-80ea1-1c3221
What is the expected behavior?
_No response_
Additional information
_No response_
2 Comments
English translation:
What version of Codex CLI is running?
v0.142.0
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5.5
What platform is your computer?
Device name zhxs Processor AMD Ryzen 5 5500U with Radeon Graphics (2.10 GHz) Installed RAM 16.0 GB (15.3 GB available) Graphics card AMD Radeon(TM) Graphics (496 MB) Storage 374 GB used out of 477 GB Device ID 295B4B9F-8534-446B-8DF0-F91AC6D79977 Product ID 00342-31418-61509-AAOEM System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display
What terminal emulator and version are you using (if applicable)?
Windows Terminal (PowerShell)
Codex doctor report
What issue are you seeing?
Notepad can paste with Ctrl+V, and I have also restarted/updated Codex. But in your input box, namely the Codex CLI input box, as soon as I press Ctrl+V, it reports an error: Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format or the clipboard is empty. Then I tried pasting only an image and found that it works.
What steps can reproduce the bug?
Uploaded thread: 019ef35b-db96-7410-b9e8-80ea1-1c3221
What is the expected behavior?
_No response_
Additional information
_No response_
<!-- codex-issue-translator -->
I can reproduce a closely related variant of this on Windows when using Codex CLI through a remote-control + terminal combination.
Environment/context:
Ctrl+Vin the Codex TUI reportsFailed to paste image: no image on clipboard...A useful detail is that this depends on the terminal/paste path:
cmd.exe, mouse right-click paste worked for plain text.Ctrl+Vin WezTerm appears to reach Codex as a raw key event, so Codex treats it as the image-paste shortcut instead of a text paste.Ctrl+Shift+VorShift+Insertis the workaround.Ctrl+VtoPasteFrom 'Clipboard'also works because the terminal consumes the shortcut and sends text paste content instead of forwarding rawCtrl+Vto Codex.This makes the bug more visible in remote-control setups because the remote tool may forward physical key events (
Ctrldown +V) rather than triggering the terminal's text paste path. The clipboard text itself can be valid; the failure is that Codex receivesCtrl+Vas an app keybinding and attempts image paste.