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

  1. Start Codex interactive session A.
  2. Copy an image to clipboard.
  3. Try paste with Ctrl+V and also Right-click -> Paste.
  4. No image is attached.
  5. Start another Codex session B on same machine.
  6. 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 --help shows image input is supported (-i, --image <FILE>...).
  • This looks like session/channel capability regression or initialization mismatch.

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #17050
  • #17103
  • #17502

Powered by Codex Action

etraut-openai contributor · 4 months ago

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.

wenshirong · 4 months ago
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.

tagorr · 4 months ago

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:

  • OS: Windows NT 10.0.17763.0
  • Terminal: WezTerm
  • Shell: Windows PowerShell 5.1
  • Codex CLI: 0.124.0

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.

etraut-openai contributor · 4 months ago

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.