Skip to content

Copy to clipboard is not working on Pop-os #2413

Closed

Description

@vasilvestre

I can't ctrl + C and when I select text, "Copied to clipboard" text appears but the clipboard content isn't changed.

I have no debug information so far, I would like some guidance.

Activity

  1. github-actions commented on Sep 4, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. vasilvestre commented on Sep 4, 2025

    @vasilvestre
    Author

    I may have missed this documentation and no issue I saw were about this. Sorry ! https://opencode.ai/docs/troubleshooting/#copypaste-not-working-on-linux

  3. alexellis commented on Sep 18, 2025

    @alexellis

    I have xclip, xsel, and wl-clipboard installed and Copy is still not working.. nothing is on my clipboard at all - Ubuntu 22.04 - default Gnome-based terminal.

    Any suggestions @vasilvestre / @adamdotdevin ?

    Image

    Perhaps if there's an issue using the clipboard - it should error/warn the user?

  4. alexellis commented on Sep 18, 2025

    @alexellis

    Looks like you have to hard exit opencode to get it to detect/pick-up the clipboard packages. Thanks

  5. SvenMeyer commented on Oct 3, 2025

    @SvenMeyer

    I have the same issue which I just reported and closed after the bot told me that this issue is already covered here.

    #2948 (comment)

  6. SvenMeyer commented on Oct 3, 2025

    @SvenMeyer

    opencode is at this stage unusable for me, so back to claude code

  7. arlogilbert commented on Oct 6, 2025

    @arlogilbert

    I keep coming back to try opencode every few months, but this type of issue suggests to me that nobody is really using opencode on a linux desktop or that linux is a second class citizen in the eyes of opencode, because an inability to copy/paste is a foundational part of any application, full stop. Opencode is the only terminal application I have used on Ubuntu in several years that blocks copying & pasting.

  8. rekram1-node commented on Oct 6, 2025

    @rekram1-node
    Contributor

    we definitely don't view it as a second class citizen, some of the maintainers have/currently use arch. The tui is currently being rewritten and I think these pesky issues that are behaving inconsistently for some OS/terminals should be fewer and further between

    Hope to have this better addressed for you very soon.

  9. vasilvestre commented on Oct 7, 2025

    @vasilvestre
    Author

    I keep coming back to try opencode every few months, but this type of issue suggests to me that nobody is really using opencode on a linux desktop or that linux is a second class citizen in the eyes of opencode, because an inability to copy/paste is a foundational part of any application, full stop. Opencode is the only terminal application I have used on Ubuntu in several years that blocks copying & pasting.

    I use Pop-os, I just had to install the package in the troubleshot page and it worked. Pay some respect to OSS maintainers please.

  10. arlogilbert commented on Oct 7, 2025

    @arlogilbert

    I am paying respect by reporting that the bug exists and conveying honestly what I'm experiencing as a user.

    I could have fixed it myself for myself and not reported it as most people do with Ubuntu desktop apps.

    Fix it, don't fix it, it's not my problem. You're welcome.

  11. rekram1-node commented on Oct 7, 2025

    @rekram1-node
    Contributor

    it's all good, we welcome feedback, thank you for your honesty @arlogilbert

  12. arlogilbert commented on Oct 9, 2025

    @arlogilbert

    Looks like somebody fixed it, still a bit odd (on Ubuntu 25 Wayland the user hsa to click on an icon that shows up in the dock in order to get the content onto the clipboard) but it works even with that extra step, thanks!

  13. ispyinternet commented on Oct 21, 2025

    @ispyinternet

    I am running latest v0.15.10, running on a remote machine via ssh. If I use mac terminal to ssh copy and paste doesn't work, I've tried tmux and other suggestions from chatgpt, but I cannot get it to work. If I connect to the machine through vscode ssh and run opencode from a vscode terminal, copy and paste does work. Any suggestions on getting it to work in mac terminal? Actually I just downloaded iterm and it works (I'm on gf macbook, also too old for ghostty), so I'm happy now, anyway leaving this here for additional data. Prob just conclude that mac terminal is shit and shouldn't be used.

  14. rekram1-node commented on Oct 21, 2025

    @rekram1-node
    Contributor

    mac terminal isnt the best yeah, we are also shipping a rewrite of the tui this week, may fix ur issue

  15. arlogilbert commented on Nov 5, 2025

    @arlogilbert

    FWIW, it's working for me on Ubuntu now, i've tried VS Code terminal, Ptyxis, and default Terminal. What it does on Ubuntu is non-obvious, you THINK it is not copying, but if you go look at your dock, you'll see a little settings icon pop up, you have to manually click that icon to get whatever is in the opencode buffer into your clipboard. Super annoying at first, now kind of don't notice it except when I have copied something previously and forgotten, then you have to click it once for each copy you didn't previously retrieve from buffer.

    Definitely odd behavior though, I've never seen that in any app.

  16. ironbelly commented on Dec 23, 2025

    @ironbelly

    Putting this here for anyone else searching this issue like I was: I installed xsel and then if I am holding shift and selecting the text I am able to paste what I selected with right click.. Without shift, it doesn't work. Not sure if xsel is key here or not as I haven't tried without it.

  17. skoenman commented on Jan 14, 2026

    @skoenman

    Putting this here for anyone else searching this issue like I was: I installed xsel and then if I am holding shift and selecting the text I am able to paste what I selected with right click.. Without shift, it doesn't work. Not sure if xsel is key here or not as I haven't tried without it.

    Please could the guys from Opencode please add this to the troubleshooting page...

  18. matannagar-factorial commented on Feb 17, 2026

    @matannagar-factorial

    not working for me :( sometimes yes and other not

  19. bobbles911 commented on Feb 20, 2026

    @bobbles911

    Just want to give some feedback: Installing xclip made it work for me - but it took me a long time to find this out, since the terminal I use is one other than the recommended ones and so I just assumed it was a glitch with the terminal.

    I feel like you should print some warning if xclip/whatever is required and not installed, rather than just silently failing.

    Aside from this, I prefer an option to allow natural terminal copy and paste rather than "auto copy when mouse is released" since that is how every other terminal software works.

    but otherwise thanks for some great software :P

  20. bartoszb-dev commented on Feb 23, 2026

    @bartoszb-dev

    I can confirm that xclip is needed for copy to work on Ubuntu 22.04 with gnome terminal, thank you @bobbles911

  21. demeesterroeland commented on Mar 24, 2026

    @demeesterroeland

    I can also confirm on Ubuntu 25.10 "Questing" that installing xclip helps.

    To fix
    Close opencode-cli
    />sudo apt install xclip
    />opencode-cli
    select text with mouse now correctly copies to clipboard..

  22. vasilvestre commented on Mar 25, 2026

    @vasilvestre
    Author

    Visit this link if you have an issue. The workaround are already knowned. https://opencode.ai/docs/troubleshooting/#copypaste-not-working-on-linux

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions