Description
When running OpenCode inside WSL, selecting text in the TUI and choosing "Copy to clipboard" shows the success notification, but nothing is actually copied to the Windows clipboard.
I verified that the issue is not related to OSC52 support, Windows Terminal, WSL clipboard integration, or tmux.
Plugins
{ "plugin": [ "opencode-vibeguard", "opencode-notify" ] }
OpenCode version
1.18.8
Steps to reproduce
Environment
Windows Terminal
└── WSL (Ubuntu)
└── zsh
└── OpenCode
Reproduction
- Start OpenCode from a WSL shell.
- Open any chat session.
- Highlight part of a message.
- Select Copy to clipboard from the popup menu.
- Open a Windows application (Notepad, VS Code, etc.).
- Press
Ctrl+V.
Expected behavior
The selected text should be copied to the Windows clipboard and pasted successfully.
Actual behavior
OpenCode displays a "Copy to clipboard" success notification,
but the Windows clipboard is not updated and nothing can be pasted.
Debugging performed
The issue occurs both:
Outside tmux:
echo $TERM
xterm-256color
echo $TMUX
Output:
I also verified that OSC52 clipboard integration works correctly from the same WSL environment:
printf '\033]52;c;%s\a' "$(printf 'OSC52_TEST' | base64 -w0)"
After running the command above, I can successfully paste:
into Windows applications.
This suggests that:
- Windows clipboard integration is working
- Windows Terminal supports OSC52
- WSL clipboard access is working
- the problem is not caused by tmux
- the issue appears to be specific to OpenCode's clipboard handling
Screenshot and/or share link
No response
Operating System
Windows 11 WSL Ubuntu
Terminal
Windows Terminal
Description
When running OpenCode inside WSL, selecting text in the TUI and choosing "Copy to clipboard" shows the success notification, but nothing is actually copied to the Windows clipboard.
I verified that the issue is not related to OSC52 support, Windows Terminal, WSL clipboard integration, or tmux.
Plugins
{ "plugin": [ "opencode-vibeguard", "opencode-notify" ] }
OpenCode version
1.18.8
Steps to reproduce
Environment
Reproduction
Ctrl+V.Expected behavior
Actual behavior
Debugging performed
The issue occurs both:
Outside tmux:
Output:
I also verified that OSC52 clipboard integration works correctly from the same WSL environment:
After running the command above, I can successfully paste:
into Windows applications.
This suggests that:
Screenshot and/or share link
No response
Operating System
Windows 11 WSL Ubuntu
Terminal
Windows Terminal