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
Copy-on-Select fails when running opencode via Tmux in Kitty terminal (Linux) #9942
When using the opencode CLI tool on a remote Linux server within a tmux session inside the Kitty terminal emulator, the "auto-copy on select" functionality fails. Highlighting text does not populate the system clipboard.
Note: This functionality works as expected in the same environment when using other CLI tools like claude-code or codex, suggesting the issue is specific to how opencode handles terminal escape sequences or clipboard integration.
Environment
Local OS: macOS
Terminal Emulator: Kitty
Remote OS: Ubuntu 24.04
Terminal Multiplexer: tmux 3.4-1ubuntu0.1
Connection: SSH
OpenCode Version:
Steps to Reproduce
Connect to a remote Linux server via SSH using the Kitty terminal.
Start a tmux session.
Launch opencode.
Select/highlight text within the opencode interface.
Attempt to paste the selection into a local application.
Expected Behavior
The selected text should be automatically copied to the system clipboard consistent with the behavior of claude-code or codex.
Actual Behavior
The text is highlighted, but the clipboard remains unchanged. No data is passed back to the local client.
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Reacted by Jay Thomason, Dylan Ophir, RodriMora, Andrey Kuznetsov and alphaliang
No properly behaving terminal application depends on external tools for text selection and copy. On X11 no-one even needs to "copy" as selected text is immediately available for being pasted. opencode is completely broken, does not work over remote session, inside container etc. It generally is misbehaving application that damages your terminal and should be avoided.
Activity
github-actions commentedon Jan 22, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
stonematt commentedon Feb 3, 2026
I can confirm this is also happening in Ghostty with tmux on Mac on local files. Here's the observed behavior:
without tmux
with tmux
this worked until a few days ago. This feels like a regression.
Here's my tmux.conf (nothing too special):
github-actions commentedon Apr 5, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
emsi commentedon May 8, 2026
No properly behaving terminal application depends on external tools for text selection and copy. On X11 no-one even needs to "copy" as selected text is immediately available for being pasted. opencode is completely broken, does not work over remote session, inside container etc. It generally is misbehaving application that damages your terminal and should be avoided.