Skip to content

Can't Paste content from clipboard #909

Closed

Description

@ntovarsolorzano
Image

By any means I can't paste from clipboard, nor by middle
clic, left clic, Cntrl+V, Shift+Cntrl+V, Insert, absolutely ANYTHING.

I am about to clone the code and ask gemini-pro to revise it for me if there is anything in the code that hinders me hehe 😣

How to reproduce:

  • Install as npm i -g opencode-ai@latest . [Current version: 0.2.33]
  • Open as opencode
  • Insert your API Key.
  • Paste your prompt that you have in clipboard. It just doesn't paste.

What I tried:

  • All the paste combination that I humanly know mouse, keyboard, etc..
  • Tried from MobaXterm remote SSH machine (linux endpoint)... nothing.
  • Tried on WSL2 in windows... didnt work either.

Am i missing something?
I did a quick search in the Issues and I haven't found something related, so hopefully this is not a duplicate issue.

Best regards,
Nelson.

Activity

  1. adamdotdevin commented on Jul 15, 2025

    @adamdotdevin
    Member

    the default keybind for pasting text/images is ctrl+v, but depending on OS this can be troublesome. if you're running on linux, there should be some log output saying whether it found a clipboard tool in your PATH. can you paste some logs here? https://opencode.ai/docs/troubleshooting/#logs

  2. ryzen3100 commented on Jul 16, 2025

    @ryzen3100

    the default keybind for pasting text/images is ctrl+v, but depending on OS this can be troublesome. if you're running on linux, there should be some log output saying whether it found a clipboard tool in your PATH. can you paste some logs here? https://opencode.ai/docs/troubleshooting/#logs

    Running apt install -y wl-clipboard as per noted in the docs fixed it for me (Arch, GNOME Wayland).
    I'm using opencode inside a distrobox, had to restart the container to make the newly installed dependency work.
    Thank you.

  3. ntovarsolorzano commented on Jul 17, 2025

    @ntovarsolorzano
    Author

    Hi, I come back just to report that it is working now simply using Cntrl+V (In Ubuntu 25.04 Wayland | Windows 10 , in both).
    Did you fix it in a recent update?
    I appreciate it so much, it is working now !! 🥹🥹🥹
    God bless 🤗

  4. pHequals7 commented on Aug 30, 2025

    @pHequals7

    this feature only works on models that support image as an input right? (anthropic models i.e?)

  5. rekram1-node commented on Aug 30, 2025

    @rekram1-node
    Contributor

    if you wanna send a model images then yeah it needs image support, openai and google both have models that support image inputs not just anthropic, there are others too

  6. pHequals7 commented on Aug 31, 2025

    @pHequals7
    Image

    Using Gemini 2.5 Pro on Opencode and it says it cannot access images :/

  7. rekram1-node commented on Aug 31, 2025

    @rekram1-node
    Contributor

    gemini 2.5 pro can definitely access images, if it says otherwise it is probably due to the previous context in session confusing llm

  8. hwacookie commented on Oct 6, 2025

    @hwacookie

    Using wsl in wezTerm under windows, I had to use Ctrl-Shift-V to paste text.

  9. LaughterOnWater commented on Dec 3, 2025

    @LaughterOnWater

    This is still an issue. Windows 10. wsl kali-linux. OpenCode 1.0.129
    I'm just trying to paste in some text.

    CTRL-V - nothing
    SHIFT-CTRL-V - nothing
    ???

  10. inalto commented on Dec 15, 2025

    @inalto

    Win 11.
    I confirm also with mobaxterm not working also not working the right mouse.
    ssh via powershell works with ctrl+v but not with right mouse.
    Also in git bash no ctrl+v and no right mouse
    Seems something intercepts the right mouse click blocking the paste.
    Quite annoying

  11. suse-coder commented on Dec 15, 2025

    @suse-coder

    i am on win 11 25h2 and have wsl (debian) and can copy and past (select the code and then right click to paste). But it would be great to document that better.

  12. bzhr commented on Dec 21, 2025

    @bzhr

    I can't paste text on Mac with Ghostty terminal. cmd + v doesn't work at all and cmd + shift + V is pasting something that I haven't actually copied.

    EDIT: To explain a little better:

    • I can paste text copied from the opencode conversation
    • I can't paste copied from outside, anywhere outside
    • I can paste normally in Ghostty, it just doesn't work in opencode.
  13. geeknik commented on Dec 26, 2025

    @geeknik

    ctrl-shift-v works to paste here on Fedora 43, however, opencode comes back with Could not process image and stops.

  14. 2 remaining items

  15. revskill10 commented on Jan 19, 2026

    @revskill10

    Annoying stupid bug.

  16. stephen2422 commented on Jan 21, 2026

    @stephen2422

    to paste, make sure something is in the buffer in windows, mouse over and ctrl+x or ctrl+c

    go to your SSH session and click on the text input window
    press shift + insert to paste.

    this works on local terminal and SSH.
    tested with mobaXterm and it works.

  17. gclsoft commented on Feb 20, 2026

    @gclsoft

    But on a MacBook keyboard, there is no dedicated Insert (Ins) key.

    to paste, make sure something is in the buffer in windows, mouse over and ctrl+x or ctrl+c

    go to your SSH session and click on the text input window press shift + insert to paste.

    this works on local terminal and SSH. tested with mobaXterm and it works.

  18. niwinz commented on Mar 12, 2026

    @niwinz

    what happens when i run opencode inside a tmux inside a docker container, i don't think installing wl-clipboard will fix it, because there are no wailand in docker container...

  19. abda11ah commented on Mar 15, 2026

    @abda11ah

    still not works on fedora 43 (on cinnamon x11), ctrl+shift+v paste the old clipboard content.
    xsel and xclip are installed
    Opencode CLI 1.2.24 on Gnome-terminal (whole OS updated)

  20. perapp commented on Mar 20, 2026

    @perapp

    Same for me. Running opencode in tmux in wezterm in Ubuntu 25.10 x86.
    Tried more vanilla Ubuntu using distro default terminal without tmux. Still can not paste.

  21. Bennch commented on Mar 20, 2026

    @Bennch

    Yes its still a problem... could be fixed easy... Btw. SHIFT+CTRL+V works, but is not nice for muscle memory..

    Ghostty on cachyOS here.

  22. joelrb commented on Mar 28, 2026

    @joelrb

    What a pain! Haha

    Why is this an issue at all??? Isn't it normal to copy and paste?

    So, today I just installed opencode in WSL Ubuntu. Opened it in my project directory in WSL.

    I have a prompt in Notepad++ in Windows I need to paste into opencode. Why can't I? Cntrl + V, Cntrl + Shift + V. nothing... what else?

    Installed ALL these one-by-one per documentation to check which one will work:
    apt install -y xclip
    apt install -y xsel
    apt install -y xvfb

    Shutdown WSL. Reopened Ubuntu and opencode

    Still not pasting text copied from Windows!

    I can paste it into the Ubuntu terminal even without installing those!

  23. joelrb commented on Mar 28, 2026

    @joelrb

    This is weird. You know what worked for me?

    I run opencode (not the extension) in VS Code terminal connected to WSL. Opened it in my Ubuntu project directory where I am working then pasted the prompt.

  24. misafu commented on Jun 5, 2026

    @misafu

    Just to be clear, the solution suggested above and what worked for me is

    • paste into opencode with: Shift + Insert

    The Insert key for me is above Delete on the keyboard

  25. kodcuserkan commented on Jun 7, 2026

    @kodcuserkan

    Are there any solutions for MacOS?

  26. kodcuserkan commented on Jun 7, 2026

    @kodcuserkan

    Are there any solutions for MacOS?

    weird cntrl+v worked as in windows :)

  27. yoshikakbudto commented on Jun 16, 2026

    @yoshikakbudto

    For those who feel pain with windows: Enable this tick in the window properties and live ...

    Image
  28. jkirsch-code commented on Jul 9, 2026

    @jkirsch-code

    on windows also SHIFT+RIGHT CLICK worked for me to paste into the opencode session

  29. MrNicolass commented on Aug 11, 2026

    @MrNicolass

    on windows also SHIFT+RIGHT CLICK worked for me to paste into the opencode session

    This one worked for me, I'm using Ubuntu Server via SSH on Windows 11!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions