GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Copy to clipboard is not working on Pop-os · Issue #2413 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Copy to clipboard is not working on Pop-os#2413
Copy link

Description

@vasilvestre
vasilvestre
opened on Sep 4, 2025
Issue body actions

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.

Reacted by Mauricio Scheffer

Activity

  1. github-actions commented on Sep 4, 2025

    @github-actions
    github-actionsBot
    on Sep 4, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • selection clipboard integration in linux #943: selection clipboard integration in linux - Similar clipboard functionality issues on Linux (Wayland)
    • wl-clipboard Not Working on Arch Linux Hyprland with OpenCode - Copy/Paste Issues #954: wl-clipboard Not Working on Arch Linux Hyprland with OpenCode - Copy/Paste Issues - Similar clipboard problems on Linux with wl-clipboard
    • Can't Paste content from clipboard #909: Can't Paste content from clipboard - Very similar issue where clipboard content isn't pasting despite showing copy feedback
    • [0.2.6] pasting with ctrl+v crashes the program. #774: [0.2.6] pasting with ctrl+v crashes the program - Related clipboard crash issues on Linux systems
    • Sharing a session results in panic: runtime error: index out of range [-1] #792: Sharing a session results in panic: runtime error: index out of range [-1] - Clipboard-related panic issues on Linux

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

  2. vasilvestre commented on Sep 4, 2025

    @vasilvestre
    vasilvestre
    on Sep 4, 2025
    Author
    More actions

    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. vasilvestre
    closed this as completedon Sep 4, 2025
  4. alexellis commented on Sep 18, 2025

    @alexellis
    alexellis
    on Sep 18, 2025
    More actions

    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?

  5. alexellis commented on Sep 18, 2025

    @alexellis
    alexellis
    on Sep 18, 2025
    More actions

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

  6. SvenMeyer commented on Oct 3, 2025

    @SvenMeyer
    SvenMeyer
    on Oct 3, 2025
    More actions

    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)

  7. SvenMeyer commented on Oct 3, 2025

    @SvenMeyer
    SvenMeyer
    on Oct 3, 2025
    More actions

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

  8. arlogilbert commented on Oct 6, 2025

    @arlogilbert
    arlogilbert
    on Oct 6, 2025
    More actions

    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.

    Reacted by skoenman
  9. rekram1-node commented on Oct 6, 2025

    @rekram1-node
    rekram1-node
    on Oct 6, 2025
    Member
    More actions

    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.

  10. vasilvestre commented on Oct 7, 2025

    @vasilvestre
    vasilvestre
    on Oct 7, 2025
    Author
    More actions

    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.

  11. arlogilbert commented on Oct 7, 2025

    @arlogilbert
    arlogilbert
    on Oct 7, 2025
    More actions

    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.

  12. rekram1-node commented on Oct 7, 2025

    @rekram1-node
    rekram1-node
    on Oct 7, 2025
    Member
    More actions

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

    Reacted by Valentin Silvestre
  13. arlogilbert commented on Oct 9, 2025

    @arlogilbert
    arlogilbert
    on Oct 9, 2025
    More actions

    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!

    Reacted by Aiden Cline
  14. ispyinternet commented on Oct 21, 2025

    @ispyinternet
    ispyinternet
    on Oct 21, 2025
    More actions

    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.

  15. rekram1-node commented on Oct 21, 2025

    @rekram1-node
    rekram1-node
    on Oct 21, 2025
    Member
    More actions

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

    Reacted by Ivan Charapanau and Valentin Silvestre
  16. arlogilbert commented on Nov 5, 2025

    @arlogilbert
    arlogilbert
    on Nov 5, 2025
    More actions

    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.

  17. ironbelly commented on Dec 23, 2025

    @ironbelly
    ironbelly
    on Dec 23, 2025
    More actions

    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.

    Reacted by liwei
  18. skoenman commented on Jan 14, 2026

    @skoenman
    skoenman
    on Jan 14, 2026
    More actions

    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...

  19. matannagar-factorial commented on Feb 17, 2026

    @matannagar-factorial
    matannagar-factorial
    on Feb 17, 2026
    More actions

    not working for me :( sometimes yes and other not

  20. bobbles911 commented on Feb 20, 2026

    @bobbles911
    bobbles911
    on Feb 20, 2026
    More actions

    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

  21. bartoszb-dev commented on Feb 23, 2026

    @bartoszb-dev
    bartoszb-dev
    on Feb 23, 2026
    More actions

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

    Reacted by Valentin Silvestre
  22. demeesterroeland commented on Mar 24, 2026

    @demeesterroeland
    demeesterroeland
    on Mar 24, 2026
    More actions

    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..

    Reacted by skoenman
  23. vasilvestre commented on Mar 25, 2026

    @vasilvestre
    vasilvestre
    on Mar 25, 2026
    Author
    More actions

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

    Reacted by Vinicius Lima
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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.