Share URL isn't copied to system clipboard in TMUX #419

Closed
opened 2026-02-16 17:26:39 -05:00 by yindo · 5 comments
Owner

Originally created by @AVGVSTVS96 on GitHub (Jul 1, 2025).

Originally assigned to: @adamdotdevin on GitHub.

I use TMUX with the tmux-yank plugin, noticed that the share URL isn't copied to the system clipboard in when opencode is opened in TMUX.

I'm not sure if this is in scope for opencode, but it would be great to enable a way for TMUX users to be able to view and copy the shareable URL.

Originally created by @AVGVSTVS96 on GitHub (Jul 1, 2025). Originally assigned to: @adamdotdevin on GitHub. I use TMUX with the `tmux-yank` plugin, noticed that the share URL isn't copied to the system clipboard in when opencode is opened in TMUX. I'm not sure if this is in scope for opencode, but it would be great to enable a way for TMUX users to be able to view and copy the shareable URL.
yindo closed this issue 2026-02-16 17:26:39 -05:00
Author
Owner

@thdxr commented on GitHub (Jul 1, 2025):

i use tmux over ssh and it just works without any plugins

this setup is finnicky though - requires OSC codes to propagate from tmux through ssh through to terminal

@thdxr commented on GitHub (Jul 1, 2025): i use tmux over ssh and it just works without any plugins<br><br>this setup is finnicky though - requires OSC codes to propagate from tmux through ssh through to terminal
Author
Owner

@Sir-Goose commented on GitHub (Jul 1, 2025):

i had the same problem. not sure what your setup looks like but i just had to add this to my tmux config:
set-option -g set-clipboard on

@Sir-Goose commented on GitHub (Jul 1, 2025): i had the same problem. not sure what your setup looks like but i just had to add this to my tmux config: `set-option -g set-clipboard on`
Author
Owner

@wienans commented on GitHub (Jul 1, 2025):

Similar issue with Terminator https://gnome-terminator.org/

@wienans commented on GitHub (Jul 1, 2025): Similar issue with Terminator https://gnome-terminator.org/
Author
Owner

@AVGVSTVS96 commented on GitHub (Jul 3, 2025):

i had the same problem. not sure what your setup looks like but i just had to add this to my tmux config: set-option -g set-clipboard on

That worked, thanks!

@AVGVSTVS96 commented on GitHub (Jul 3, 2025): > i had the same problem. not sure what your setup looks like but i just had to add this to my tmux config: `set-option -g set-clipboard on` That worked, thanks!
Author
Owner

@adamdotdevin commented on GitHub (Jul 8, 2025):

i'm going to close this. see https://github.com/sst/opencode/issues/576#issuecomment-3024444918 for tmux workaround, but i also made improvements today to support native clipboard operations and only fallback to OSC codes, so this should be more reliable on more systems/setups.

@adamdotdevin commented on GitHub (Jul 8, 2025): i'm going to close this. see https://github.com/sst/opencode/issues/576#issuecomment-3024444918 for tmux workaround, but i also made improvements today to support native clipboard operations and only fallback to OSC codes, so this should be more reliable on more systems/setups.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#419