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
packages/opencode/src/cli/cmd/tui/util/clipboard.ts switches OSC 52 into the tmux DCS passthrough envelope whenever TMUX or STY is present.
That breaks clipboard copy in a common tmux setup:
set -g set-clipboard on
set -g allow-passthrough off
In that topology tmux can still handle raw OSC 52 for clipboard forwarding, but the DCS passthrough envelope is exactly what allow-passthrough off blocks.
Reproduction
Start tmux with set -g set-clipboard on and set -g allow-passthrough off
Run opencode inside tmux over SSH
Use any OpenCode-native copy path that goes through Clipboard.copy() (for example a sidebar/message copy action)
The terminal clipboard does not update
Current behavior
The helper currently does this when TMUX/STY is set:
Activity
github-actions commentedon May 1, 2026
This issue might be a duplicate of existing issues. Please check:
TMUX= opencode)Please review these existing issues and consider closing this one in favor of the existing reports, or clarifying how this differs.
github-actions commentedon Jul 1, 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.