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 fails in tmux when allow-passthrough is off #25253
That breaks copy actions in tmux sessions where allow-passthrough off is required. In that topology, tmux's DCS passthrough is intentionally blocked, so OpenCode copy surfaces no longer reach the client clipboard.
Reproduction
Start a tmux session on a Linux host over SSH.
Keep set -g set-clipboard on and set -g allow-passthrough off in tmux.
Run opencode inside tmux.
Try any clipboard action such as:
copying a selected message
right-click selection copy
Copy session transcript
any other Clipboard.copy(...) path
Observed
Clipboard actions do not update the local terminal clipboard.
Expected
OpenCode should support a non-passthrough clipboard mode for tmux sessions where allow-passthrough is off, for example:
a raw OSC 52 mode / env override, or
tmux-aware fallback behavior that does not require DCS passthrough.
Why this matters
allow-passthrough off is a legitimate tmux hardening/workaround state. If OpenCode assumes tmux passthrough is always available whenever TMUX exists, clipboard support silently regresses in exactly the environments where tmux users need a safer topology.
Activity
github-actions commentedon May 1, 2026
This issue might be a duplicate of existing issues. Please check:
allow-passthrough offallow-passthroughis off, with a detailed analysis and workaroundPlease consider closing one of the duplicates and consolidating the discussion.
sebastien commentedon May 7, 2026
FYI OpenCode crashes Ghostty when used in tmux with passthrough ghostty-org/ghostty#12551 -- had to disable it, but now I've lost copy/paste.
feat(tmux,alacritty): enable OSC52 clipboard passthrough (#47)
github-actions commentedon Jul 8, 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.