Image paste fails in some Codex CLI sessions (Ctrl+V and Right-click Paste both fail)
Resolved 💬 5 comments Opened Apr 20, 2026 by wenshirong Closed Apr 23, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
- codex-cli 0.121.0
- @openai/codex@0.121.0
Platform
- OS: Windows NT 10.0.26200.0
- Shell: PowerShell 5.1
- Terminal: JetBrains-JediTerm (IDE integrated terminal)
Problem summary
Image paste works in some newly started Codex sessions, but fails in other sessions on the same machine/account.
Steps to reproduce
- Start Codex interactive session A.
- Copy an image to clipboard.
- Try paste with
Ctrl+Vand alsoRight-click -> Paste. - No image is attached.
- Start another Codex session B on same machine.
- Repeat paste, image attaches normally.
Expected behavior
Image paste should be consistently available across sessions with same environment.
Actual behavior
Session-level inconsistency: some sessions accept image paste; others do not.
Both keyboard paste and context-menu paste fail in bad sessions, so this is not just a shortcut mapping issue.
Extra notes
codex --helpshows image input is supported (-i, --image <FILE>...).- This looks like session/channel capability regression or initialization mismatch.
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Have you tried this in other terminals other than the JetBrains integrated terminal? Problems like this are often terminal-specific. If you're able to repro it in another terminal, let us know.
Hi, thanks for the suggestion. I've found the root cause. It was a compatibility issue introduced by a recent JetBrains IDE update. I've already resolved it by adjusting the terminal settings.
I’m seeing the same issue on Windows.
Image paste used to work for me in Codex CLI: when I pasted a screenshot/image into the TUI, it was accepted as an image attachment and Codex could analyze it. It did not render visibly inside the terminal, but it appeared as an attached image/screenshot and worked correctly.
Now image paste no longer works in the same workflow. Both Ctrl+V and right-click paste fail to attach the image.
Environment:
This looks like the same regression/session-level issue described here.
Previously, everything worked without problems. At least up to version 0.122.0, image paste definitely worked for me.
I'm going to close this because the original issue has been resolved (confirmed as "a compatibility issue introduced in a recent JetBrains IDE update").
@tagorr, it sounds like your issue is different. Please look for other active bug reports. If you don't find one, open a new one and fill out the information requested in the bug template.