Copy Text "Copied to clipboard" does never work #4282

Open
opened 2026-02-16 17:43:17 -05:00 by yindo · 8 comments
Owner

Originally created by @ambedded on GitHub (Jan 6, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I cant copy text, be it in the output window or in the input window. Whenever i mark text and right click it, it always says "Copied to clipboard", and un-highlights the marked text. But it never does. Its not in the clipboard buffer.

  • Ubuntu Desktop
  • GhostTTY

Plugins

No response

OpenCode version

1.1.3

Steps to reproduce

  • Ubuntu Desktop
  • GhostTTY
  • ZSH + OMZ

Try to copy text from opencode and paste (never actually copied into clipboard buffer)

Screenshot and/or share link

No response

Operating System

Ubuntu 25.10

Terminal

GhosTTY w. zsh/OMZ

Originally created by @ambedded on GitHub (Jan 6, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I cant copy text, be it in the output window or in the input window. Whenever i mark text and right click it, it always says "Copied to clipboard", and un-highlights the marked text. But it never does. Its not in the clipboard buffer. - Ubuntu Desktop - GhostTTY ### Plugins _No response_ ### OpenCode version 1.1.3 ### Steps to reproduce - Ubuntu Desktop - GhostTTY - ZSH + OMZ Try to copy text from opencode and paste (never actually copied into clipboard buffer) ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 25.10 ### Terminal GhosTTY w. zsh/OMZ
yindo added the opentuibug labels 2026-02-16 17:43:17 -05:00
Author
Owner

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

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

  • #4283: Copy To Clipboard is not working
  • #3538: Unable to copy using shortcut from TUI
  • #6110: Wayland clipboard copy doesn't populate primary clipboard selection
  • #5046: Can't copy text from opencode through mouse selection in Windows Terminal
  • #6111: Copy to clipboard broken over SSH
  • #4754: Copy and Paste behaviour under Linux
  • #6072: X Window (xorg) middle-click paste doesn't work
  • #6586: does not keep selected text in remote SSH Session
  • #2114: No way to select or copy text

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

@github-actions[bot] commented on GitHub (Jan 6, 2026): This issue might be a duplicate of existing issues. Please check: - #4283: Copy To Clipboard is not working - #3538: Unable to copy using shortcut from TUI - #6110: Wayland clipboard copy doesn't populate primary clipboard selection - #5046: Can't copy text from opencode through mouse selection in Windows Terminal - #6111: Copy to clipboard broken over SSH - #4754: Copy and Paste behaviour under Linux - #6072: X Window (xorg) middle-click paste doesn't work - #6586: does not keep selected text in remote SSH Session - #2114: No way to select or copy text Feel free to ignore if none of these address your specific case.
Author
Owner

@wunki commented on GitHub (Jan 11, 2026):

This is how I got it to work. The ghostty part may help: https://petar.dev/notes/copypaste-for-opencode-with-ghostty-and-tmux/

@wunki commented on GitHub (Jan 11, 2026): This is how I got it to work. The ghostty part may help: https://petar.dev/notes/copypaste-for-opencode-with-ghostty-and-tmux/
Author
Owner

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

here also, from 1.1.49, works good at 1.1.48

@jc01rho commented on GitHub (Feb 3, 2026): here also, from 1.1.49, works good at 1.1.48
Author
Owner

@castle-bravo commented on GitHub (Feb 3, 2026):

here also, from 1.1.49, works good at 1.1.48

Can confirm. I have 1.1.48 and 1.1.49 open in different containers. I can copy from 1.1.48 but not 1.1.49.

@castle-bravo commented on GitHub (Feb 3, 2026): > here also, from 1.1.49, works good at 1.1.48 Can confirm. I have 1.1.48 and 1.1.49 open in different containers. I can copy from 1.1.48 but not 1.1.49.
Author
Owner

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

can't copy, 1.1.49, ubuntu 24.04.

@neru1234 commented on GitHub (Feb 3, 2026): can't copy, 1.1.49, ubuntu 24.04.
Author
Owner

@yaasin-raki2 commented on GitHub (Feb 3, 2026):

can't copy, 1.1.49, Macos 26.2. Iterm2

@yaasin-raki2 commented on GitHub (Feb 3, 2026): can't copy, 1.1.49, Macos 26.2. Iterm2
Author
Owner

@jc01rho commented on GitHub (Feb 4, 2026):

reinstall v1.1.51 with bun add -g opencode-ai, with tmux set -g allow-passthrough on works

@jc01rho commented on GitHub (Feb 4, 2026): reinstall v1.1.51 with bun add -g opencode-ai, with tmux set -g allow-passthrough on works
Author
Owner

@maxhillaert commented on GitHub (Feb 10, 2026):

reinstall v1.1.51 with bun add -g opencode-ai, with tmux set -g allow-passthrough on works

This worked for me I was on 1.1.49

@maxhillaert commented on GitHub (Feb 10, 2026): > reinstall v1.1.51 with bun add -g opencode-ai, with tmux set -g allow-passthrough on works This worked for me I was on 1.1.49
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4282