can't paste image
What version of Codex CLI is running?
v0.116.0
What subscription do you have?
can't paste image in windows(PowerShell 7.6.0)
Which model were you using?
gpt-5.4
What platform is your computer?
Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format or the clipboard is empty.
What terminal emulator and version are you using (if applicable)?
PowerShell 7.6.0
What issue are you seeing?
Description:
I am experiencing an issue where I cannot paste images directly from the Windows clipboard into the Codex CLI. When I take a screenshot or copy an image to the clipboard and attempt to paste it into the prompt, the CLI fails to recognize the image data.
Error Message:
Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format
Environment Details:
Codex CLI version: v0.116.0
OS: Windows (x64)
Terminal Emulator: PowerShell 7.6.0
Steps to Reproduce:
Copy an image/screenshot to the Windows clipboard (e.g., using the Snipping Tool or Snip & Sketch).
Open PowerShell 7.6.0 and start the Codex CLI.
Attempt to paste the image directly into the chat prompt.
The error message mentioned above appears.
Expected Behavior:
The CLI should be able to read standard Windows clipboard image formats (such as CF_BITMAP or CF_DIB) and attach the image to the prompt, similar to its behavior on macOS.
Temporary Workaround:
Currently, I have to save the image as a local file and drag/drop the file path into the terminal to make it work.
What steps can reproduce the bug?
paste iamge
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗