Copy to clipboard fails on MacOS when using tmux #8468

Closed
opened 2026-02-16 18:10:02 -05:00 by yindo · 5 comments
Owner

Originally created by @natcl on GitHub (Feb 3, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When running OpenCode inside Tmux (in ghostly) it seems like copying text doesn't work with version 1.1.49, I tested an old session that was running 1.1.36 and that worked fine. Outside of tmux it behaves normally.

Plugins

No response

OpenCode version

1.1.49

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 26

Terminal

Ghostty + Tmux

Originally created by @natcl on GitHub (Feb 3, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When running OpenCode inside Tmux (in ghostly) it seems like copying text doesn't work with version 1.1.49, I tested an old session that was running 1.1.36 and that worked fine. Outside of tmux it behaves normally. ### Plugins _No response_ ### OpenCode version 1.1.49 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOS 26 ### Terminal Ghostty + Tmux
yindo added the opentuibug labels 2026-02-16 18:10:02 -05:00
yindo closed this issue 2026-02-16 18:10:02 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 3, 2026):

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

  • #11904: Copy function broken in Windows 11 Terminal and Warp (v1.1.49)
  • #11909: OSC52 clipboard doesn't work with VS Code Remote SSH - need fallback or detection
  • #12003: Copy & Newline Not Working in macOS Default Terminal
  • #11996: Clipboard copy broken in terminals without OSC52 support (CLOSED)

All of these appear to be related to recent changes in v1.1.49 affecting clipboard functionality across different terminal environments (Tmux, Windows Terminal, Warp, VS Code Remote SSH, macOS Terminal).

Feel free to ignore if your specific case with Ghostty + Tmux has unique aspects not covered by these issues.

@github-actions[bot] commented on GitHub (Feb 3, 2026): This issue might be a duplicate of existing issues. Please check: - #11904: Copy function broken in Windows 11 Terminal and Warp (v1.1.49) - #11909: OSC52 clipboard doesn't work with VS Code Remote SSH - need fallback or detection - #12003: Copy & Newline Not Working in macOS Default Terminal - #11996: Clipboard copy broken in terminals without OSC52 support (CLOSED) All of these appear to be related to recent changes in v1.1.49 affecting clipboard functionality across different terminal environments (Tmux, Windows Terminal, Warp, VS Code Remote SSH, macOS Terminal). Feel free to ignore if your specific case with Ghostty + Tmux has unique aspects not covered by these issues.
Author
Owner

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

This seems like a duplicate indeed ! not sure the other issues mention tmux however

@natcl commented on GitHub (Feb 3, 2026): This seems like a duplicate indeed ! not sure the other issues mention tmux however
Author
Owner

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

+1 Same issue here

Environment:

Ubuntu 24.04.3 LTS (headless server)
OpenCode 1.1.50 (npm install)
VS Code Remote SSH terminal
TERM: xterm-256color
Tried without success:

  • Installed xclip
  • Installed xvfb + set DISPLAY=:99.0
  • Reinstalled opencode (both curl and npm methods)
@umutaxoy commented on GitHub (Feb 3, 2026): +1 Same issue here Environment: Ubuntu 24.04.3 LTS (headless server) OpenCode 1.1.50 (npm install) VS Code Remote SSH terminal TERM: xterm-256color Tried without success: * Installed xclip * Installed xvfb + set DISPLAY=:99.0 * Reinstalled opencode (both curl and npm methods)
Author
Owner

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

Seems fixed on my side in 1.1.51

@natcl commented on GitHub (Feb 4, 2026): Seems fixed on my side in 1.1.51
Author
Owner

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

Reproed in macOS 26 & Ghostty and is fixed on 1.1.51

@R44VC0RP commented on GitHub (Feb 4, 2026): Reproed in macOS 26 & Ghostty and is fixed on 1.1.51
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8468