Description
OpenCode's copy function shows "copied to clipboard" notification but doesn't actually update the system clipboard when running over SSH inside tmux.
Description
OpenCode's copy function shows "copied to clipboard" notification but doesn't actually update the system clipboard when running over SSH inside tmux.
Environment
- Terminal: Ghostty on macOS
- Remote: SSH into Linux workstation
- Multiplexer: tmux with
set -g set-clipboard on
- OpenCode pane: right side of a tmux split
Steps to Reproduce
- SSH into a remote machine from Ghostty
- Start tmux with a horizontal split – shell on the left, OpenCode on the right
- Highlight/copy text from the OpenCode pane
- Attempt to paste with Cmd+V
Expected
Copied text appears in the macOS clipboard.
Actual
OpenCode shows "copied to clipboard" notification, but Cmd+V pastes the previous clipboard content. The clipboard is not updated.
Notes
- Copying from the shell pane in the same tmux session works correctly – clipboard is updated and Cmd+V pastes the new content.
- This suggests tmux and Ghostty OSC 52 passthrough are configured correctly, and the issue is specific to how OpenCode emits the OSC 52 sequence.
Plugins
N/A
OpenCode version
1.2.15
Steps to reproduce
- SSH into a remote machine from Ghostty
- Start tmux with a horizontal split – shell on the left, OpenCode on the right
- Highlight/copy text from the OpenCode pane
- Attempt to paste with Cmd+V
Screenshot and/or share link
No response
Operating System
MacOS 26.3
Terminal
Ghostty
Description
OpenCode's copy function shows "copied to clipboard" notification but doesn't actually update the system clipboard when running over SSH inside tmux.
Description
OpenCode's copy function shows "copied to clipboard" notification but doesn't actually update the system clipboard when running over SSH inside tmux.
Environment
set -g set-clipboard onSteps to Reproduce
Expected
Copied text appears in the macOS clipboard.
Actual
OpenCode shows "copied to clipboard" notification, but Cmd+V pastes the previous clipboard content. The clipboard is not updated.
Notes
Plugins
N/A
OpenCode version
1.2.15
Steps to reproduce
Screenshot and/or share link
No response
Operating System
MacOS 26.3
Terminal
Ghostty