/share does not copy to clipboard in tui #234

Closed
opened 2026-02-16 17:25:52 -05:00 by yindo · 4 comments
Owner

Originally created by @mohak34 on GitHub (Jun 23, 2025).

Originally assigned to: @adamdotdevin on GitHub.

The /share command does not work when i use it in the tui. This could probably be an issue with the clipboard package and wayland. When i use the --share flag, the link works. I'm using cliphist as the clipboard manager.

Using opencode version v0.1.121 on hyprland in arch.

Originally created by @mohak34 on GitHub (Jun 23, 2025). Originally assigned to: @adamdotdevin on GitHub. The `/share` command does not work when i use it in the tui. This could probably be an issue with the clipboard package and wayland. When i use the `--share` flag, the link works. I'm using cliphist as the clipboard manager. Using opencode version `v0.1.121` on hyprland in arch.
yindo closed this issue 2026-02-16 17:25:52 -05:00
Author
Owner

@markjaquith commented on GitHub (Jun 23, 2025):

FWIW it also doesn't work for me in macOS.

@markjaquith commented on GitHub (Jun 23, 2025): FWIW it also doesn't work for me in macOS.
Author
Owner

@mhuggins7278 commented on GitHub (Jun 25, 2025):

Also just ran into this today.
MacOS and Ghostty for my terminal.
Also running inside a tmux session.

@mhuggins7278 commented on GitHub (Jun 25, 2025): Also just ran into this today. MacOS and Ghostty for my terminal. Also running inside a tmux session.
Author
Owner

@matallui commented on GitHub (Jun 25, 2025):

Same issue for me on macOS, running in Alacritty inside tmux sessino.

@matallui commented on GitHub (Jun 25, 2025): Same issue for me on macOS, running in Alacritty inside tmux sessino.
Author
Owner

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

I found the solution for this. When using it inside a tmux session, add this in the .tmux.conf file.

set-option -g set-clipboard on

This worked for me when i added this in my tmux configuration file

@mohak34 commented on GitHub (Jul 3, 2025): I found the solution for this. When using it inside a tmux session, add this in the `.tmux.conf` file. `set-option -g set-clipboard on` This worked for me when i added this in my tmux configuration file
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#234