Skip to content

Image pasting in Windows to WSL in Terminal directly from clipboard #3939

Closed

Description

@PrzemyslawKlys

What feature would you like to see?

People already reported this:

But it seems not all options are covered:

  • Basically an image can be dragged and dropped to Windows Terminal with WSL session and it correctly works.
  • If i copy file in Windows Explorer and paste it into Windows Terminal with WSL all i get is path, maybe this would be useful, but the path is from windows and Codex usually doesn't like those paths as it claims it's can't get out of sandbox or claims it's not available
  • But I often do screenshots with ShareX and it has a copy feature, when doing CTRL+V it does nothing.
  • Copying "virtual image" from photos doesn't work either.

Supposedly should be implemented in: 468a8b4

This means the correct implementation (full one):

  • Dragging file to WSL Terminal should work and produce an image for Codex
  • Copying a file frrom Windows Explorer and pasting into terminal should produce an image for Codex
  • Copying an image from apps like sharex, etc that have the image in memory and put it in clipboard and pasting it.. should produce an image for Codex

Are you interested in implementing this feature?

Probably not. Maybe if it gets denied, and i can use codex to fix codex :-)

Additional information

No response

Activity

  1. piyalitt commented on Sep 20, 2025

    @piyalitt

    I also have the same problems.

  2. esdrasrenan commented on Sep 25, 2025

    @esdrasrenan

    i had the same problem

  3. Kahitar commented on Sep 28, 2025

    @Kahitar

    Can confirm, same issue. Super annoying to always have to save screenshots and then manually tell codex about them.

  4. adal-idl commented on Oct 12, 2025

    @adal-idl

    I can confirm here. just did the suggested update yesterday

    now it says

    _ OpenAI Codex (v0.46.0)

    if you hit ? it now shows

      / for commands                          ctrl + j for newline
      @ for file paths                        ctrl + v to paste images
      esc esc to edit previous message        ctrl + c to exit
                                              ctrl + t to view transcript
    

    ctrl + v to paste images

    but when I do have an image in the clipboard, nothing gets pasted at all. whereas the text paste works great + image paste in chatgpt works great too.

    typical scenario: I screenshot something that gets added to the clipbaord, and I hit CTRL+V pretty much anywhere, and i'd like to do it in codex cli whereas it says it can accept it with a CTRL+V
    => quite frustrating

    context: windows 11, codex cli running in wsl as suggested in the official openai install documentation a couple weeks ago when I first installed it

  5. Waxime64 commented on Oct 17, 2025

    @Waxime64
    Contributor

    ctrl + v to paste images
    not work on WSL on 0.46

  6. krisalcordo commented on Oct 19, 2025

    @krisalcordo

    Can confirm. Image pasting not working

  7. bartlomiejborzucki commented on Oct 20, 2025

    @bartlomiejborzucki

    0.47 still not working

  8. Waxime64 commented on Oct 30, 2025

    @Waxime64
    Contributor

    Pull request: #5644

  9. added
    bugSomething isn't working
    and removed
    enhancementNew feature or request
    on Oct 30, 2025
  10. adal-idl commented on Nov 1, 2025

    @adal-idl

    just upgraded to codex-cli 0.53.0
    still not working

  11. unclejimao commented on Nov 2, 2025

    @unclejimao

    just upgraded to codex-cli 0.53.0 still not working

    A temporary work around: https://github.com/unclejimao/WSL-Image-Clipboard-Helper/tree/performance-optimize

  12. 16 remaining items

  13. wbdb commented on Dec 11, 2025

    @wbdb

    @Waxime64 But CTRL+ALT+V doesn't work for me either when I have a screenshot in the clipboard :(

  14. Waxime64 commented on Dec 11, 2025

    @Waxime64
    Contributor

    Can you take a screenshoot with codex-cli version and you windows version ?
    And in code-cli, if you press ?, that write CTRL+ALT+V for paste image ?

  15. wbdb commented on Dec 12, 2025

    @wbdb

    @Waxime64
    Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 Pro)
    with WSL2 Ubuntu 24.04.3 LTS (GNU/Linux 6.6.87.2-microsoft-standard-WSL2 x86_64)
    Codex 0.71.0
    Windows Terminal 1.23.12811.0

    I took a screenshot using the Windows Snipping Tool (no autosave enabled in the settings) – it is now in the clipboard. I then tried to paste it into WSL2 Codex using CTRL + ALT + V:

    Image
  16. TechWithTy commented on Feb 14, 2026

    @TechWithTy

    Unable to paste clipboard, i think it worked intermittently

  17. wbdb commented on Feb 16, 2026

    @wbdb

    @TechWithTy

    sudo nano /etc/wsl.conf
    ---
    [interop]
    enabled = true
    appendWindowsPath = true
    ---
    wsl --shutdown
    

    That was the problem for me (this was missing) and should be included in the Codex WSL documentation (https://developers.openai.com/codex/windows/). Restart WSL. Then press CTRL + ALT + V.

    #11150 / #11145

  18. shanytc commented on Apr 29, 2026

    @shanytc

    Hey,
    I find myself from time to time to paste an image snapshot from the clipboard. However, claude/codex in wsl cannot pickup the clipboard. so I made a small tool (lives in the sys tray) that will automatically save the image in a tmp folder and reutrn back the path to it which picks up wonderfully 😄

    1. run the tool (access its menu via right click on the sys tray con)
    2. snapshot image into clipboard
    3. hit shift+ctrl+v (you can also select in the tool shift+alt+v) in claude
    4. codex/claude will pick it up and show [Image #xxx]
      enjoy!
      https://github.com/shanytc/claude_image_fixer
  19. added 2 commits that reference this issue on Jun 27, 2026
    f664c92
    7b60ba6
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

    bugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions