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

Open
opened 2026-02-16 17:35:11 -05:00 by yindo · 2 comments
Owner

Originally created by @Sewer56 on GitHub (Oct 29, 2025).

Originally assigned to: @thdxr on GitHub.

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
Originally created by @Sewer56 on GitHub (Oct 29, 2025). Originally assigned to: @thdxr on GitHub. ### 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
yindo added the opentuibug labels 2026-02-16 17:35:11 -05:00
Author
Owner

@rekram1-node commented on GitHub (Oct 29, 2025):

thanks for heads up

@rekram1-node commented on GitHub (Oct 29, 2025): thanks for heads up
Author
Owner

@veyselsahin commented on GitHub (Dec 6, 2025):

@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 commented on GitHub (Dec 6, 2025): @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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2337