Skip to content

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

Closed

Description

@Sewer56

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Oct 29, 2025
  2. rekram1-node commented on Oct 29, 2025

    @rekram1-node
    Contributor

    thanks for heads up

  3. veyselsahin commented on Dec 6, 2025

    @veyselsahin

    @rekram1-node i checked releated issues and #5084 expected to be solved. should I create a pull request?
    veyselsahin@2aecf94

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions