clipboard copy not works in remote SSH console.
hi . Sometimes I use opencode / claude code in remote SSH console.
Claude Code allows copy selected text.
But I can not copy text in remote console with Opencode.
Is it intended or missing or is there a way to copy text ?
This issue might be a duplicate of existing issues. Please check:
- #2114: Reports no way to select or copy text in output messages on macOS with Ghostty terminal
- #2755: Feature request for copy mode functionality, mentions tmux copy mode not working properly with OpenCode
- #2118: Requests /copy command due to issues with text selection and copying
Feel free to ignore if none of these address your specific case.
This should be fixed in next version of the tui, rn it is being rewritten: https://github.com/sst/opencode/pull/2685
Still having this issue on opencode installed today. Has this new TUI been released yet?
yeah, maybe a tmux issue for u?
Yes, proper osc52 handling is missing, opencode currently only copies to local clipboard. Opentui should provide a copyToClipboard method to handle that properly.
fwiw: I'm having this issue as well. I use tmux, but it WAS working fine before the 1.0 release. That's when copy broke for me.
im on 114 and the issue persists. it is extremely frustrating
i tried a lot of ways to get select text and copy to clipboard working with opencode in an ssh session. the only thing I could get to work was to use guacamole and ssh. it works but i'd rather not have to use this method.
how are others successfully able to copy text over an ssh session? why has this been such a persistent problem? most other terminal coders don't have this issue.
i really like opencode and it's my daily driver but this copy thing has me vexed for real.
my current workflow is to work normally in a regular tmux/ssh session. then in the rare case where I have to copy something, i fire up a guacamole session, ssh into the host, tmux attach, select the text, which gets copied into the clipboard of the browser/host where i'm sitting. tmux detach then go back to my regular terminal.
it works, but what a hack. i should be able to just select and copy text like any other terminal.
sometimes I can get the text with the /export command and once in vim select copy works normally, but that always doesn't work since not everything in the conversation shows up in the export.
I, for one would be very pleased if this issue were fixed.