You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No way to select or copy text, either in the input field or from the output messages #2114
It appears that "copy on selection" doesn't work on default Gnome terminal in Pop!_OS. After selection is released, the popup is shown: "Copied to clipboard", but the actual clipboard then doesn't have the new data.
Reacted by Diego Jancic, Ironbelly, Huge and Marko Novitović
It appears that "copy on selection" doesn't work on default Gnome terminal in Pop!_OS. After selection is released, the popup is shown: "Copied to clipboard", but the actual clipboard then doesn't have the new data.
It isn't working on debian 13 in terminator for me.
Can we get an option to turn off the highlight to copy?
It seems to be causing a lot of issues for something that is really not necessary.
I am in the process of trying to migrate my workflows from claude code to opencode and the copy/paste behavior with input and output messages is still a big limitation for me.
Same issue on Konsole->tmux (my actual terminal is Konsole, but I have to use opencode thru tmux because it's broken in konsole per here). When I select text I do see the "Copied to clipboard" message, but nothing is actually copied. Have found no workaround / no way to copy text, which is a critical blocker to moving over from ClaudeCode (I ultimately found myself having to dig through the raw JSON message files to get something into the clipboard)
Here's a one-liner to grab the path to the tempfile that /export pops into $EDITOR:
# run `/export` in opencode then grab another shell:
fd --changed-within 1m conver /private/var/folders
-> /private/var/folders/gk/0l8cgrfj6ws3c2dhq7rxxyq00000gn/T/conversation-2002301606.md
I use this command, which assumes I've only done this once in the past minute, and opens the file in Zed (on macos): fd --changed-within 1m conver /private/var/folders |xargs open -a zed
Weirdly I have even set copy-on-selection in Alacritty, but opencode somehow eats it, evading the selection to enter the clipboard. Also fails on WSL terminal when running in byobu.
Activity
github-actions commentedon Aug 20, 2025
This issue might be a duplicate of existing issues. Please check:
ghosttyclipborad on copy from opencode #1771: Ghostty clipboard issues when copying from opencode - specifically mentions problems with text selection and copying in GhosttyFeel free to ignore if none of these address your specific case.
rekram1-node commentedon Aug 20, 2025
@JeongJuhyeon does this not work for you?
Screen.Recording.2025-08-20.at.8.57.14.AM.mov
JeongJuhyeon commentedon Aug 20, 2025
@rekram1-node
It does, though with limitations:
jensk commentedon Aug 20, 2025
WSL2 user here, only input selection not working. Output selection works fine.
rekram1-node commentedon Aug 20, 2025
Oh yeah the text select only applies for msgs rn
jensk commentedon Aug 20, 2025
Known limitation, gotcha. Thanks for the quick update!
av commentedon Aug 21, 2025
It appears that "copy on selection" doesn't work on default Gnome terminal in Pop!_OS. After selection is released, the popup is shown: "Copied to clipboard", but the actual clipboard then doesn't have the new data.
zach-fuller commentedon Aug 22, 2025
I've introduced two PRs to address some of the concerns mentioned here. Feedback is welcome!
#2160 #2158
septicdank commentedon Sep 3, 2025
It isn't working on debian 13 in terminator for me.
Can we get an option to turn off the highlight to copy?
It seems to be causing a lot of issues for something that is really not necessary.
dburkland commentedon Sep 4, 2025
I am in the process of trying to migrate my workflows from claude code to opencode and the copy/paste behavior with input and output messages is still a big limitation for me.
rekram1-node commentedon Sep 4, 2025
@dburkland opencode is being migrated to a new tui library: opentui, once this is done I think the text copying issues should be resolved
dburkland commentedon Sep 4, 2025
Fantastic, thanks!
JGKle commentedon Sep 17, 2025
Same issue on Konsole->tmux (my actual terminal is Konsole, but I have to use opencode thru tmux because it's broken in konsole per here). When I select text I do see the "Copied to clipboard" message, but nothing is actually copied. Have found no workaround / no way to copy text, which is a critical blocker to moving over from ClaudeCode (I ultimately found myself having to dig through the raw JSON message files to get something into the clipboard)
rekram1-node commentedon Sep 17, 2025
this should be better addressed soon but in meantime you could use /export (ik not ideal)
mikewaters commentedon Oct 18, 2025
Here's a one-liner to grab the path to the tempfile that
/exportpops into $EDITOR:fd(from here)I use this command, which assumes I've only done this once in the past minute, and opens the file in Zed (on macos):
fd --changed-within 1m conver /private/var/folders |xargs open -a zedHuge commentedon Jan 2, 2026
Weirdly I have even set copy-on-selection in Alacritty, but opencode somehow eats it, evading the selection to enter the clipboard. Also fails on WSL terminal when running in byobu.
HiChen404 commentedon Feb 28, 2026
The 'select text' interaction is inconsistent - sometimes works, sometimes doesn't in the latest opencode release.
dburkland commentedon Feb 28, 2026
I've experienced the same thing frequently
github-actions commentedon Apr 30, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.