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
[WSL][tmux] opencode cannot copy text in WSL tmux #10128
Since you're using tmux, a hacky way to workaround this is by using tmux scroll mode CTRL + B[. While in scroll mode, you'll be able to select and copy the text anywhere in the terminal.
set -g set-clipboard on
set -g allow-passthrough all
Reacted by Rudimar Ronsoni, Thomas Profelt, adrian-gralak95, micchy326, n4cr4, seungkon, nanosun, Danny Kok, Vladimir Deshchenya, Marko Velkovski and 8 more
set -g set-clipboard on
set -g allow-passthrough all
for me what worked was:
# Let applications inside tmux send OSC sequences (incl. OSC 52 clipboard) to the terminal
set -g allow-passthrough on
# Enable tmux clipboard integration (OSC 52)
set -g set-clipboard on
I found a way to solve this problem:
edit ~/.tmux.conf
set -g set-clipboard on
set -g allow-passthrough all
for me what worked was:
# Let applications inside tmux send OSC sequences (incl. OSC 52 clipboard) to the terminal
set -g allow-passthrough on
# Enable tmux clipboard integration (OSC 52)
set -g set-clipboard on
I will try that since I've been running into this issue at least since 1.1.42 and just didn't use tmux at all. It's weird though because copying from/to other applications inside tmux on WSL works fine.
I found a way to solve this problem:
edit ~/.tmux.conf
set -g set-clipboard on
set -g allow-passthrough all
for me what worked was:
# Let applications inside tmux send OSC sequences (incl. OSC 52 clipboard) to the terminal
set -g allow-passthrough on
# Enable tmux clipboard integration (OSC 52)
set -g set-clipboard on
I will try that since I've been running into this issue at least since 1.1.42 and just didn't use tmux at all. It's weird though because copying from/to other applications inside tmux on WSL works fine.
Activity
github-actions commentedon Jan 23, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
EdyTheCow commentedon Jan 23, 2026
Since you're using tmux, a hacky way to workaround this is by using tmux scroll mode
CTRL + B[. While in scroll mode, you'll be able to select and copy the text anywhere in the terminal.FurryWolfX commentedon Jan 24, 2026
I found a way to solve this problem:
edit
~/.tmux.confrudironsoni commentedon Jan 24, 2026
🎯
RodriMora commentedon Feb 3, 2026
for me what worked was:
MoshPitCodes commentedon Feb 3, 2026
I will try that since I've been running into this issue at least since 1.1.42 and just didn't use tmux at all. It's weird though because copying from/to other applications inside tmux on WSL works fine.
MoshPitCodes commentedon Feb 3, 2026
Works! Cheers, kind stranger!
digregoriovalerio commentedon Jun 2, 2026
changes to .tmux.conf didn't work on my raspbian with tmux and ssh connection via vscode
rudironsoni commentedon Jun 9, 2026
Have you executed the
tmux source-file ~/.tmux.confpointing to the location of your tmux.conf?