codex - 💡(How to fix) Fix Image paste fails in some Codex CLI sessions (Ctrl+V and Right-click Paste both fail)

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…
RAW_BUFFERClick to expand / collapse

What version of Codex is running?

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.

extent analysis

TL;DR

The issue may be resolved by ensuring consistent session initialization or channel capability settings across all Codex sessions.

Guidance

  • Verify that the codex-cli and @openai/codex versions are consistent across all sessions, as version mismatches could lead to inconsistencies in session capabilities.
  • Check the Codex configuration files or environment variables for any settings that might affect image paste functionality and ensure they are identical across sessions.
  • Test image paste in a new session with a minimal configuration to isolate if the issue is related to a specific setting or plugin.
  • Consider resetting Codex settings to their defaults in a problematic session to see if the issue persists.

Example

No code snippet is provided as the issue seems related to session configuration or initialization rather than a specific code problem.

Notes

The exact cause of the session-level inconsistency is unclear without further information about the environment or how sessions are initialized. The issue might be related to how Codex handles clipboard input or initializes its capabilities in different sessions.

Recommendation

Apply workaround: Try resetting Codex settings to their defaults in problematic sessions or ensure that all sessions are started with the same configuration to maintain consistency, as the issue seems to be related to session initialization or capability settings rather than a version problem.

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…

FAQ

Expected behavior

Image paste should be consistently available across sessions with same environment.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Image paste fails in some Codex CLI sessions (Ctrl+V and Right-click Paste both fail)