[BUG] using mouse left button choose the contents, then release button, can not copy content #7212

Closed
opened 2026-02-16 18:06:28 -05:00 by yindo · 4 comments
Owner

Originally created by @kappuszhou on GitHub (Jan 22, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When I want to copy some contents from the TUI, I use the mouse left button to choose content that I want to copy. Then I release the left button and it shows that content copied to clipboard. But when I paste the contents, there is nothing or it's not what I choose.

I have no idea what is going on or what I have done wrong in this procedure.
I run this open code in the Ubuntu22.04 version OS system.

Plugins

No response

OpenCode version

1.1.31

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Ubuntu OS system 22.04

Terminal

Ubuntu22.04 OS system terminal

Originally created by @kappuszhou on GitHub (Jan 22, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When I want to copy some contents from the TUI, I use the mouse left button to choose content that I want to copy. Then I release the left button and it shows that content copied to clipboard. But when I paste the contents, there is nothing or it's not what I choose. I have no idea what is going on or what I have done wrong in this procedure. I run this open code in the Ubuntu22.04 version OS system. ### Plugins _No response_ ### OpenCode version 1.1.31 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Ubuntu OS system 22.04 ### Terminal Ubuntu22.04 OS system terminal
yindo added the opentuibug labels 2026-02-16 18:06:28 -05:00
yindo closed this issue 2026-02-16 18:06:28 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

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

  • #7048: Copy Text "Copied to clipboard" does never work
  • #5046: Can't copy text from opencode through mouse selection in Windows Terminal
  • #9942: Copy-on-Select fails when running opencode via Tmux in Kitty terminal (Linux)
  • #4283: Copy To Clipboard is not working
  • #9374: [BUG] /share clipboard copy fails over SSH

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

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #7048: Copy Text "Copied to clipboard" does never work - #5046: Can't copy text from opencode through mouse selection in Windows Terminal - #9942: Copy-on-Select fails when running opencode via Tmux in Kitty terminal (Linux) - #4283: Copy To Clipboard is not working - #9374: [BUG] /share clipboard copy fails over SSH Feel free to ignore if none of these address your specific case.
Author
Owner

@cravenceiling commented on GitHub (Jan 22, 2026):

Did you try this? https://opencode.ai/docs/troubleshooting/#copypaste-not-working-on-linux

@cravenceiling commented on GitHub (Jan 22, 2026): Did you try this? https://opencode.ai/docs/troubleshooting/#copypaste-not-working-on-linux
Author
Owner

@kappuszhou commented on GitHub (Jan 22, 2026):

@cravenceiling Great appreciate for your information, It is working now, thanks again!

@kappuszhou commented on GitHub (Jan 22, 2026): @cravenceiling Great appreciate for your information, It is working now, thanks again!
Author
Owner

@robinr2 commented on GitHub (Feb 3, 2026):

Setting set -g allow-passthrough on in my tmux.conf worked.

@robinr2 commented on GitHub (Feb 3, 2026): Setting `set -g allow-passthrough on` in my tmux.conf worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7212