opencode icon indicating copy to clipboard operation
opencode copied to clipboard

bug: ctrl+v / ctrl+c does not work with WSL ubuntu

Open baccaraaa opened this issue 1 month ago • 1 comments

Description

My Windows VDS runs WSL, which runs Ubuntu, and Opencode already runs on it. Copying and pasting text does not work within Opencode.

OpenCode version

1.0.133

Steps to reproduce

  1. Install WSL on Windows Server
  2. Install Ubuntu there
  3. Try copying or pasting text within Opencode

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

CMD

baccaraaa avatar Dec 04 '25 22:12 baccaraaa

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

  • #3081: I can't paste text with CTRL+V or right mouse click when running inside WSL - This appears to be the exact same issue on WSL
  • #4754: Copy and Paste behaviour under Linux - Related copy/paste issues on Linux systems
  • #3538: Unable to copy using shortcut from TUI (opentui & current) - Copy/paste shortcut issues with opentui
  • #4283: Copy To Clipboard is not working - General copy/paste functionality issues

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

github-actions[bot] avatar Dec 04 '25 22:12 github-actions[bot]

we will fix

rekram1-node avatar Dec 05 '25 04:12 rekram1-node

Installing xclip on my WSL Ubuntu 24.04 and restarted OpenCode allowed me to get this working. I didn't have issues with paste Ctrl+V but couldn't copy anything.

sudo apt install xclip

vincentauger avatar Dec 09 '25 17:12 vincentauger