GeezerVison is showing github.com — Copy To Clipboard is not working · Issue #4283 · anomalyco/opencode
Copy To Clipboard is not working #4283DescriptionDescription
I selected some text from the response but its not copied to clipboard, please resolve this issue. these are my os related info.
OpenCode version
1.0.62
Steps to reproduce
- run
opencode in terminal
- ask any question
- select the response text (few lines or complete)
- it shows copied to clipboard
- try to paste the (ctrl+v or cmd+v)
- paste won't work or it will paste last copied text other than this opencode
Screenshot and/or share link
Operating System
24.04
Terminal
Terminal (Default Ubuntu One) and Vscode Terminal As well Reacted by burbilog, Federico Andres Lois, nielsole, Frank Fang, Phieu Dinh, Andreas Beder, Aymen, Abbas, mariazhao007, miltonparedes and 127 more Reacted by Petya Kohts Activitygithub-actions commented on Nov 13, 2025 This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case. burbilog commented on Nov 13, 2025 I have the same problem running opencode via ssh on remote machines. Reacted by miltonparedes, Patrick Schless, deltazefiro, Jyotirmaya Shivottam, Pawel Cioch, seanmamasde, Jeremy Akers, Igor Depolli, Angelo Neacsu, ふぁー and 52 more maheshmuttintidev commented on Nov 13, 2025 it seems there is no straight forward fix for this issue, at-least please provide context menu on text selection and show copy option please.. Reacted by Andreas Beder, Jyotirmaya Shivottam, Jeremy Akers, Deniz Genctürk, Will Garrison, Alexey Abel, Du, Changbin, Vadim Ippolitov, Steffen Kremsler, Mikita Hradovich and 15 more maheshmuttintidev commented on Nov 13, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
i've checked above, but it doesn't resolve this bug yet, please try to escalate to author and fix this bug in future release (this maybe medium priority) velorb commented on Nov 13, 2025 Reacted by Wolfgang Fahl, yifeisu, marceldempers, TechmanWAX, awa-xima, Quesso_con_pan and Mike Carter redknightlois commented on Nov 13, 2025 Same issue, found it in multiline. Paste is broken it seems, because I am getting the text from a notepad. Reacted by Wolfgang Fahl, yifeisu, marceldempers and TechmanWAX Haupc commented on Nov 21, 2025 Reacted by Wolfgang Fahl, Stephan Fuhrmann, yifeisu, marceldempers and mrpong99 dhogenson commented on Nov 21, 2025 Same thing here, it don't work on the default terminal but it works on vs codes terminal which is weird Reacted by xyhdad, mv2woods, Wolfgang Fahl, feifel, yifeisu and marceldempers taqtiqa-mark commented on Nov 25, 2025 I have noted this issue, but it has a couple of subtleties, and its not clear how to tease them out individually.
"Select-to-copy" fails when:
- The selection (mouse-drag) is done slowly, and unidirectionally. Almost always a 'fast', one-direction-only, select action works.
- The selection (mouse-drag) is done fast but multi-directionally (when the drag action overshoots, and you go back).
Note sure if that helps.
@kommander are there any settings that might affect this feature (e.g. scroll-speed)? kommander commented on Nov 25, 2025 I want to provide a generalized copyToClipboard from opentui, as opencode currently does that manually and it does not work remote either because of missing osc52 handling. It's on my list, please excuse the delay, just a little more patience, I'll get to it. Reacted by Mark Van de Vyver, Allan Chan, Wolfgang Fahl, John Hawley and Reza Mortazavi maheshmuttintidev commented on Nov 27, 2025 surprisingly, the copy to clipboard is working in iterm2, but not in-built terminal, it would be better if you look into this issue, because it was more useful for me especially (the developer like me as well) ominiverdi commented on Dec 3, 2025 On my Linux Mint installing xclip solved the problem:
Pity that the TUI doesn't warn when a dependency is missing Reacted by Mahesh Muttinti, Nigini Oliveira, Madeleine Mauz, VisionaryOS, Daniel Vélez, Tihomir Manushev, Apolostephen, Pádraig Galvin, Koen, David Dembeck and 16 more Reacted by Nigini Oliveira, Pádraig Galvin, Jens Kleikamp, quayle, Vadim Ippolitov, Jason Zvaniga, gabriel-piles, vanppsa, Prashant Shahi, langfeld and 3 more anasfik commented on Oct 13, 2026 on latest 2.0.28 version, the issue is still there when i use opencode on a VM, and this is starting to be a trade off since even the /share command i relied on says:
- Sharing is not implemented for V2 sessions yet
so now i can't even move any text from it to use unless I OCR it or switch to a free model to just tell opencode to upload the conversation somewhere, tried all solutions i found but non worked. citizeneuropa09 commented on Oct 16, 2026 one year and they can't fix a copy-pasting bullshit Reacted by Julien Veyssier and Nikos Moumoulidis Reacted by quetx, Mostafa and burbilog IntraCherche commented on Oct 18, 2026 Upgrading from 1.8.35 to 2.0.32 solved this problem on my linux box (XFCE4-Terminal, pasting in OpenCode with ctrl-shift-v, or in geany, or Nautilus, with ctrl-v). Thank you! donbowman commented on Oct 18, 2026
29. Upgrading from 1.8.35 to 2.0.32 solved this problem on my linux box. Thank you!
it does not.
2.0.32 the copy goes to clipboard, the paste comes from selection. so you cannot copy and paste back into opencode without going to your clipboard tool and selecting the clipboard entry back to selection.
/usr/bin/wl-paste | /usr/bin/wl-copy --primary
i created a global hotkey running this as a workaround, but its a real pain that opencode is the only application on a linux terminal that takes over control of the selection, and, does it wrong.
see #32370 for the PR to resolve it on v2. digregoriovalerio commented on Oct 18, 2026
its a real pain that opencode is the only application on a linux terminal that takes over control of the selection, and, does it wrong.
actually it also leaks API keys 🤣 sbgraphic commented on Oct 18, 2026 Hum I cannot even select anything to copy in VSC terminal opencode… (MacOS Thaoe, latest VSC Version: 1.142.0, latest Opencode 2.0.32) Reacted by Eric Scheurer and Steven Prins munderl commented on Oct 22, 2026 As a workaround I am able to press shift key upon text selection which results in the text being copied into the third-mouse-button-buffer instead of the clipboard. Using gnome terminal on gnome 50. Reacted by Nikos Moumoulidis, IoxoI, Aaron Whitehouse and Tim Waters Reacted by Morgan Christiansson nikosmoum commented on Oct 22, 2026 I confirm shift+select text copies it into third-mouse-button-buffer. It's a good workaround donbowman commented on Oct 22, 2026 except this doesn't work for multi-line, it ends up selecting the sidebar too. drummerwolli commented on Oct 23, 2026 for me the culprit was this line in my .zshrc file:
export DISPLAY=:99
tbh, not sure why i had it in there, but i commented it out now. copy to clipboard works for me now in opencode v2.
i found this out with the help of opencode. i recommend everyone to check their local setup with opencode and ask it to find the culprit. seems like in general it should work. donbowman commented on Oct 23, 2026 the issue we are facing, and this issue was solving, is... on Unix systems (Linux included), there are two copy mechanism:
all text applications use the selection. you select some text, then you can paste (e.g. double click a word and then hit shift-insert).
opencode overrides this, so when you double click a word, it goes to the clipboard, when you then hit shift-insert in the same window it pastes something else.
so we are looking (and there is an active PR against v2) to switch the default to double-click and go to selection.
the DISPLAY=:99 is probably an xwayland artifact. mmiller7 commented on Oct 26, 2026 Not working for me - I can CTRL+V to paste but there is no way to copy. Linux Mint 23, Gnome terminal. Highlighting says it copied but there's nothing to paste when trying to paste. Opencode v2.1.4 DSCmatter commented on Oct 26, 2026 Opencode can release v2 but cant do this Reacted by nachobh, ArtificialTruth, Rafael Zichia and Mike Carter nachobh commented on Nov 11, 2026 Debian 13, still not working anadi45 commented on Nov 19, 2026 Try installing xclip. Worked for me.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|