Skip to content

Image pasting issue #6080

Closed as not planned
Closed as not planned

Description

@sgeier

What version of Codex is running?

0,53.0

What subscription do you have?

pro

Which model were you using?

doesnt matter

What platform is your computer?

windows and mac

What issue are you seeing?

I am amazed (negatively) how long it takes a multi-billion dollar company to fix one of the most fundamental features of input context into the model context - pasting an image from clipboard.

I am sure there are tickets open for that, but this is not prioritized.

What steps can reproduce the bug?

Try to paste images into the chat input field via control+v or alt+v
Claude does that just fine. Why can you not?

What is the expected behavior?

that the image is added to the context.

Additional information

No response

Activity

  1. added
    bug
    on Nov 1, 2025
  2. added
    codex-web
    enhancement
    on Nov 1, 2025
  3. changed the title [-]Fix the goddamn image pasting in all environments - this is rediculous[/-] [+]Fix the goddamn image pasting in all environments - this is ridiculous[/+] on Nov 1, 2025
  4. github-actions commented on Nov 1, 2025

    @github-actions
    Contributor

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

    Powered by Codex Action

  5. added
    CLI
    TUI
    and removed
    enhancement
    codex-web
    on Nov 2, 2025
  6. changed the title [-]Fix the goddamn image pasting in all environments - this is ridiculous[/-] [+]Image pasting issue[/+] on Nov 15, 2025
  7. kunickiaj commented on Dec 22, 2025

    @kunickiaj

    codex-cli 0.77.0 -- still cannot paste images either via drag and drop or copy/paste. you have to put it somewhere on the filesystem and give it a path to read... 🤯

  8. etraut-openai commented on Dec 22, 2025

    @etraut-openai
    Contributor

    @kunickiaj, which platform are you on, and which terminal emulator are you using? If you're using Windows, are you using WSL or Windows native?

  9. kunickiaj commented on Dec 22, 2025

    @kunickiaj

    macOS 26.2 (Tahoe)
    iTerm

    Drag and drop/Paste results in a filename in brackes, but codex says it has no idea where the file is and tells me to give it a path.

    Ctrl+V instead of normal paste results in a different filename like codex-.. but it also isnt able to see / read any image data.

  10. removed
    CLI
    on Dec 23, 2025
  11. jenglong1899 commented on Dec 24, 2025

    @jenglong1899

    @etraut-openai Similiar issue here, macos tahoe 26.1, 3 weeks ago I change my "paste" keymap from "ctrl+v" to "cmd+v", at that time, pasting image in codex cli is working, but seems like since 0.67, I cant use that keymap, when I press cmd+v, there is no any placeholder display, but a sound pop up which indicating a problem. in 0.77, I need to press "ctrl+v" to paste.

  12. PhilChen-6765 commented on Dec 24, 2025

    @PhilChen-6765

    macOS tahoe 26.2, codex cli v0.77.0, I am also encountering this issue, Codex cannot find the image in the clipboard.

    Add one more point: In the same version v0.77.0, some conversations can find the image in the clipboard, while others cannot, which is quite strange.

  13. Yisiooo commented on Dec 25, 2025

    @Yisiooo

    V 0.77 ,It still hasn’t fixed this bug. I have to use Ctrl+V, and even right-click paste doesn’t work. Truly bizarre.

  14. joeeeeey commented on Jan 12, 2026

    @joeeeeey

    +1. Please add native clipboard image paste in Codex CLI/TUI (Ctrl/Cmd+V when clipboard has an image). This is critical for screenshot-based context so we don’t have to describe visuals; Claude’s CLI already supports it. Ideally auto-detect image vs text and attach the image to the prompt, cross-platform.

  15. wbdb commented on Jan 13, 2026

    @wbdb

    Currently, you can no longer import images in Windows WSL2. You first have to explicitly instruct it to use the mnt path for it to work. By default, it says it cannot access it. Codex 0.80.0.

    Edit: This has since been fixed, but CTRL + ALT + V etc. doesn't work. Edit: This configuration now works: #11150

  16. zane0307-pixel commented on Feb 6, 2026

    @zane0307-pixel

    Still blocked by this in daily workflow.

    Environment:

    • codex-cli 0.98.0
    • macOS 15.7.3 (arm64)

    Why this matters:

    • Screenshot-first debugging is a core coding workflow.
    • When clipboard image paste is inconsistent, we have to save images to disk and pass file paths manually, which is much slower.

    Request:

    • Please prioritize reliable clipboard image paste in TUI.
    • On macOS, Cmd+V should be first-class and clearly documented (with platform-specific guidance vs Ctrl+V).
    • If work is already in progress, could you share target milestone/version so users can plan around it?
  17. serhii-chernenko commented on Feb 21, 2026

    @serhii-chernenko

    The same is true for me. It works when I simply screenshot and paste it. But when I switched to the last item, chose that image again, and pasted it, I got this error. It irritates me. I have to retake screenshots whenever I forget about this. Instead of taking a bunch of screenshots and then going to the terminal to explain everything. I have to jump between terminal and browser every time to make a screenshot

    Image
  18. wbdb commented on Feb 23, 2026

    @wbdb

    Found a solution: #6080 (comment)
    Just needs to be added to the documentation.

  19. ShunmeiCho commented on Mar 12, 2026

    @ShunmeiCho

    If anyone is running Codex CLI on a remote Linux server over SSH and hitting clipboard issues — cc-clip now supports Codex CLI as of v0.3.0.

    It works by running a headless Xvfb + a Go X11 selection owner on the remote that serves your local Mac's clipboard images on-demand through an SSH tunnel. Codex's arboard reads the X11 CLIPBOARD as if images were pasted locally.

    # One command to set up (from your Mac)
    cc-clip setup your-server --codex

    This won't help with local Linux desktop clipboard issues, but for the SSH/headless use case it's a drop-in solution. Open source (MIT): https://github.com/ShunmeiCho/cc-clip

  20. hqhq1025 commented on Apr 12, 2026

    @hqhq1025

    For macOS users hitting this: the root cause is that screenshots only put raw TIFF/PNG data on the clipboard without a file URL. Terminal emulators can only Cmd+V paste text or file URLs, and Codex's arboard library sometimes fails to read TIFF-only clipboard data.

    I built clipaste to fix this — a lightweight macOS daemon that watches the clipboard and auto-registers a file URL when it detects screenshot image data. Works with both Cmd+V and Ctrl+V.

    brew install hqhq1025/clipaste/clipaste
    brew services start clipaste

    Tested with Codex CLI + Ghostty 1.3.1.

  21. mraihan20295 commented on May 2, 2026

    @mraihan20295

    For macOS users hitting this: the root cause is that screenshots only put raw TIFF/PNG data on the clipboard without a file URL. Terminal emulators can only Cmd+V paste text or file URLs, and Codex's arboard library sometimes fails to read TIFF-only clipboard data.

    I built clipaste to fix this — a lightweight macOS daemon that watches the clipboard and auto-registers a file URL when it detects screenshot image data. Works with both Cmd+V and Ctrl+V.

    brew install hqhq1025/clipaste/clipaste
    brew services start clipaste
    Tested with Codex CLI + Ghostty 1.3.1.

    Hey , I installed your little tool, it worked, but it also has other downsides, now on other apps, ctrl + v does not paste the image from clipboard, instead it pastes the image temp file path, i found native solution without any tool, just use Ctrl + Alt + V in the terminal to paste images instead of ctrl + v

  22. GiGurra commented on Jul 5, 2026

    @GiGurra

    This needs a fix. Coming from claude code and now trying out codex cli, I use this feature daily

  23. mraihan20295 commented on Jul 5, 2026

    @mraihan20295

    This needs a fix. Coming from claude code and now trying out codex cli, I use this feature daily

    just use Ctrl + Alt + V instead of Ctrl + V, that would do the job

  24. qyte commented on Sep 27, 2026

    @qyte

    Confirmed on native Windows 11 Pro build 26200, Codex CLI 0.157.1, Windows Terminal 1.24.11911.0, and PowerShell 7.6.6:

    • Ctrl+V with an image on the clipboard briefly pauses the cursor but produces no attachment or error.
    • Ctrl+Alt+V successfully attaches the same clipboard image, without replacing the clipboard contents.
    • Ctrl+V is bound to Windows Terminal's normal paste action.
    • Clipboard-format enumeration showed PNG, CF_BITMAP, CF_DIB, and CF_DIBV5, with no text format present.

    This confirms the Ctrl+Alt+V workaround mentioned above and narrows the failure to terminal-mediated paste for this setup. Codex can read and attach this image through the direct shortcut.

    OpenCode works with ordinary image paste in the same terminal setup. Its paste handler explicitly checks the clipboard when it receives an empty paste event, with a comment about image-only clipboard behavior in Windows Terminal before 1.25. That looks like a useful comparison for the Codex terminal-paste path; I haven't captured a native input-event trace or measured the brief cursor pause.

  25. etraut-openai commented on Nov 15, 2026

    @etraut-openai
    Contributor

    We reproduced this with Codex CLI 0.169.0 on Windows 11 and traced Ctrl+V using Windows Terminal 1.24.11911.

    For an image-only clipboard, Terminal sends an empty bracketed-paste sequence (ESC[200~ESC[201~). However, the Windows console filters that sequence when virtual-terminal input is disabled, as it is in Codex’s current input mode. Codex therefore receives no paste event or V key-down. Microsoft documents this behavior in microsoft/terminal#18094.

    Workaround: Press Ctrl+Alt+V. This forwards the shortcut to Codex, which reads and attaches the clipboard image directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions