opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Can't copy text from opencode through mouse selection in Windows Terminal

Open tiberiuichim opened this issue 1 month ago • 3 comments

Description

I've noticed the newly introduced OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT which I hoped would make it better for me to copy text from opencode tui, but it doesn't work. I run Windows Terminal > wsl > ubuntu > ssh > tmux > opencode. Whenever I mouse-select text that shows up in opencode, the selection is cleared and nothing is copied to the clipboard. Before toggling the flag, it said "copied to clipboard" (which it didn't, who knows, maybe I need a clipboard forward integration or something). Now it doesn't say "copied to clipboard", but it does not copy, it just clears selection. I've tried in a separate windows terminal tab and the behavior is: select text and only after right click the selection is cleared and the clipboard gets that content.

OpenCode version

1.0.132

Steps to reproduce

  1. Run windows terminal with wsl
  2. open opencode via an ssh connection. First set the environment flag
  3. mouse select some text
  4. I expectat that my selection is copied to the clipboard. Instead, the selection is cleared and nothing happens.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

tiberiuichim avatar Dec 04 '25 05:12 tiberiuichim