-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows
Description
When running OpenCode over SSH from Windows, the "Copy Message" feature (ctrl+x then y) displays "copied to clipboard" notification, but pasting on Windows does not work. The clipboard contains only the previous content.
This issue makes OpenCode unusable for SSH connections from Windows. Other CLI agents such as Claude Code and Gemini CLI do not block clipboard operations over SSH - they allow normal copy/paste functionality. OpenCode is the only agent with this clipboard limitation.
Steps to Reproduce
- Connect from Windows to Debian host via SSH using MobaXterm
- Run
opencode - Open a session or continue an existing one
- Press
ctrl+xthenyto copy a message - See "copied to clipboard" notification
- Paste in Windows (ctrl+v or right-click) - contains old clipboard content only
Expected Behavior
Text should be copied to Windows clipboard and available for pasting
Actual Behavior
Clipboard shows "copied to clipboard" but pasting returns previous clipboard content (often just -`)
Environment
- OpenCode version: v1.0.132+ (TUI with opentui)
- Platform: Windows 11
- Terminal: MobaXterm (latest)
- SSH target: Debian Linux
- Connection: Windows → MobaXterm → SSH → Debian → opencode
Additional Testing
- Same issue occurs with Windows Terminal instead of MobaXterm
- Tested with OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT=1 - stops auto-copy-on-select but manual copy (ctrl+x then y) still fails
- Without the env var, auto-copy shows same issue (clipboard contains -`)
Metadata
Metadata
Assignees
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows