Skip to content

[WSL][tmux] opencode cannot copy text in WSL tmux #10128

Closed

Description

@FurryWolfX

Description

[WSL][tmux] opencode cannot copy text in WSL tmux

Plugins

no

OpenCode version

1.1.32

Steps to reproduce

  1. run wsl (Windows Terminal)
  2. run tmux
  3. run opencode
  4. select text (show "Copied to clipboard")
  5. paste

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 23, 2026
  2. github-actions commented on Jan 23, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. EdyTheCow commented on Jan 23, 2026

    @EdyTheCow

    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.

  4. FurryWolfX commented on Jan 24, 2026

    @FurryWolfX
    Author

    I found a way to solve this problem:

    edit ~/.tmux.conf

    set -g set-clipboard on
    set -g allow-passthrough all
    
  5. rudironsoni commented on Jan 24, 2026

    @rudironsoni

    I found a way to solve this problem:

    edit ~/.tmux.conf

    set -g set-clipboard on
    set -g allow-passthrough all
    

    🎯

  6. RodriMora commented on Feb 3, 2026

    @RodriMora

    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
    
  7. MoshPitCodes commented on Feb 3, 2026

    @MoshPitCodes

    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.

  8. MoshPitCodes commented on Feb 3, 2026

    @MoshPitCodes

    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.

    Works! Cheers, kind stranger!

  9. digregoriovalerio commented on Jun 2, 2026

    @digregoriovalerio

    changes to .tmux.conf didn't work on my raspbian with tmux and ssh connection via vscode

  10. rudironsoni commented on Jun 9, 2026

    @rudironsoni

    changes to .tmux.conf didn't work on my raspbian with tmux and ssh connection via vscode

    Have you executed the tmux source-file ~/.tmux.conf pointing to the location of your tmux.conf?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions