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

Closed
opened 2026-02-16 17:31:42 -05:00 by yindo · 17 comments
Owner

Originally created by @vasilvestre on GitHub (Sep 4, 2025).

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.

Originally created by @vasilvestre on GitHub (Sep 4, 2025). 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.
yindo closed this issue 2026-02-16 17:31:42 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 4, 2025):

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

  • #943: selection clipboard integration in linux - Similar clipboard functionality issues on Linux (Wayland)
  • #954: wl-clipboard Not Working on Arch Linux Hyprland with OpenCode - Copy/Paste Issues - Similar clipboard problems on Linux with wl-clipboard
  • #909: Can't Paste content from clipboard - Very similar issue where clipboard content isn't pasting despite showing copy feedback
  • #774: [0.2.6] pasting with ctrl+v crashes the program - Related clipboard crash issues on Linux systems
  • #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.

@github-actions[bot] commented on GitHub (Sep 4, 2025): This issue might be a duplicate of existing issues. Please check: - #943: selection clipboard integration in linux - Similar clipboard functionality issues on Linux (Wayland) - #954: wl-clipboard Not Working on Arch Linux Hyprland with OpenCode - Copy/Paste Issues - Similar clipboard problems on Linux with wl-clipboard - #909: Can't Paste content from clipboard - Very similar issue where clipboard content isn't pasting despite showing copy feedback - #774: [0.2.6] pasting with ctrl+v crashes the program - Related clipboard crash issues on Linux systems - #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.
Author
Owner

@vasilvestre commented on GitHub (Sep 4, 2025):

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

@vasilvestre commented on GitHub (Sep 4, 2025): 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
Author
Owner

@alexellis commented on GitHub (Sep 18, 2025):

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?

@alexellis commented on GitHub (Sep 18, 2025): 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 ? <img width="1196" height="643" alt="Image" src="https://github.com/user-attachments/assets/cd3fa6b6-9d34-4564-bca2-aec9702c54c0" /> Perhaps if there's an issue using the clipboard - it should error/warn the user?
Author
Owner

@alexellis commented on GitHub (Sep 18, 2025):

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

@alexellis commented on GitHub (Sep 18, 2025): Looks like you have to hard exit opencode to get it to detect/pick-up the clipboard packages. Thanks
Author
Owner

@SvenMeyer commented on GitHub (Oct 3, 2025):

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

https://github.com/sst/opencode/issues/2948#issuecomment-3365759953

@SvenMeyer commented on GitHub (Oct 3, 2025): I have the same issue which I just reported and closed after the bot told me that this issue is already covered here. https://github.com/sst/opencode/issues/2948#issuecomment-3365759953
Author
Owner

@SvenMeyer commented on GitHub (Oct 3, 2025):

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

@SvenMeyer commented on GitHub (Oct 3, 2025): opencode is at this stage unusable for me, so back to claude code
Author
Owner

@arlogilbert commented on GitHub (Oct 6, 2025):

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.

@arlogilbert commented on GitHub (Oct 6, 2025): 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.
Author
Owner

@rekram1-node commented on GitHub (Oct 6, 2025):

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.

@rekram1-node commented on GitHub (Oct 6, 2025): 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.
Author
Owner

@vasilvestre commented on GitHub (Oct 7, 2025):

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.

@vasilvestre commented on GitHub (Oct 7, 2025): > 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.
Author
Owner

@arlogilbert commented on GitHub (Oct 7, 2025):

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.

@arlogilbert commented on GitHub (Oct 7, 2025): 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.
Author
Owner

@rekram1-node commented on GitHub (Oct 7, 2025):

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

@rekram1-node commented on GitHub (Oct 7, 2025): it's all good, we welcome feedback, thank you for your honesty @arlogilbert
Author
Owner

@arlogilbert commented on GitHub (Oct 9, 2025):

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!

@arlogilbert commented on GitHub (Oct 9, 2025): 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!
Author
Owner

@ispyinternet commented on GitHub (Oct 21, 2025):

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.

@ispyinternet commented on GitHub (Oct 21, 2025): 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.
Author
Owner

@rekram1-node commented on GitHub (Oct 21, 2025):

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

@rekram1-node commented on GitHub (Oct 21, 2025): mac terminal isnt the best yeah, we are also shipping a rewrite of the tui this week, may fix ur issue
Author
Owner

@arlogilbert commented on GitHub (Nov 4, 2025):

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.

@arlogilbert commented on GitHub (Nov 4, 2025): 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.
Author
Owner

@ironbelly commented on GitHub (Dec 23, 2025):

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.

@ironbelly commented on GitHub (Dec 23, 2025): 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.
Author
Owner

@skoenman commented on GitHub (Jan 14, 2026):

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

@skoenman commented on GitHub (Jan 14, 2026): > 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...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1599