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
Clipboard copy not working over SSH (Mac-to-Mac) #16962
OpenCode shows "copied to clipboard" notification when selecting text with mouse, but the system clipboard is not updated. This happens when running OpenCode over SSH from one Mac to another Mac.
Environment:
Local machine: macOS (SSH client)
Remote machine: macOS (SSH host, where opencode runs)
OpenCode version: 1.2.24
Remote macOS version: macOS 26.3.1 (upgraded from macOS 15.4 today - issue exists on both versions)
Steps to Reproduce:
SSH from local Mac to remote Mac
Run opencode on the remote Mac
Use mouse to select text in the opencode TUI
Observe the "copied to clipboard" notification appears
Press Cmd+V on the local Mac to paste
Expected Behavior:
The selected text should be in the system clipboard and paste correctly.
Actual Behavior:
The clipboard still contains previous content. The "copied to clipboard" notification is shown, but no actual data is written to the clipboard.
Additional Context:
Running pbpaste on the remote Mac shows old clipboard content, confirming the clipboard was never updated
Same issue here, running opencode over SSH. The "copied to clipboard" message shows up but nothing actually lands in the clipboard. Would be great to get this fixed since SSH is a pretty common workflow.
If you're on macOS, clipaste may help — it's a background daemon that normalizes the screenshot clipboard so image paste works in terminal AI tools. Also supports SSH remote paste.
I encountered the same issue. I encountered this problem when connecting to a mac mini on Warp. I tested on iTerm2 and was able to successfully transfer the selected content back to the local clipboard
Activity
github-actions commentedon Mar 11, 2026
This issue might be a duplicate of existing issues. Please check:
If your Mac-to-Mac scenario has a distinct cause or requires a separate fix, please clarify how it differs from #15907.
uriva commentedon Apr 9, 2026
Same issue here, running opencode over SSH. The "copied to clipboard" message shows up but nothing actually lands in the clipboard. Would be great to get this fixed since SSH is a pretty common workflow.
hqhq1025 commentedon Apr 12, 2026
If you're on macOS, clipaste may help — it's a background daemon that normalizes the screenshot clipboard so image paste works in terminal AI tools. Also supports SSH remote paste.
For SSH remote:
clipaste ssh-setup user@hostGitHub: https://github.com/hqhq1025/clipaste
LPFchan commentedon May 24, 2026
can confirm this is still indeed an issue, macos 15.7.4
mack-peng commentedon May 28, 2026
I encountered the same issue. I encountered this problem when connecting to a mac mini on Warp. I tested on iTerm2 and was able to successfully transfer the selected content back to the local clipboard
github-actions commentedon Jul 28, 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.