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