opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Unable to copy using shortcut from TUI (opentui & current)

Open Sewer56 opened this issue 2 months ago • 2 comments

Description

Opencode defines a hotkey "messages_copy": "<leader>y",, for copying from the prompt. Unfortunately I've never historically been able to get it to work- causing me to have to copy messages out of the message history before cleaning up newlines instead.

I'm on a wayland system with wl-clipboard installed, and opencode does successfully copy through the following methods:

  • /share (copies to clipboard)
  • Highlighting text

However using the <leader>y combination does not work for me as a means of copying. The 'message copied to clipboard' notification does show up, however, no message is copied to the clipboard in my experience.

OpenCode version

0.15.23

Steps to reproduce

I'm not quite sure. I'm on a Hyprland 0.51.1 (latest) based system, with wl-clipboard for managing the clipboard. Everything works as intended, i.e. other places in opencode where you copy/paste work fine (pasting works too). Just that this specific keybind has never worked for me.

Screenshot and/or share link

No response

Operating System

NixOS

Terminal

Reproduces in:

  • Alacritty
  • VSCode Terminal
  • JetBrains Terminal

Sewer56 avatar Oct 29 '25 15:10 Sewer56

thanks for heads up

rekram1-node avatar Oct 29 '25 15:10 rekram1-node

@rekram1-node i checked releated issues and #5084 expected to be solved. should I create a pull request? https://github.com/veyselsahin/opencode/commit/2aecf94d2ca91146df4375760135db7a5b6ecd6d

I haven't read the contributing doc yet. It was my own problem as well. So, sorry if missed anything.

veyselsahin avatar Dec 06 '25 17:12 veyselsahin