Skip to content

Cmd+V does not trigger TUI image paste on macOS terminals #26695

Closed

Description

@swalker326

Description

On macOS terminals such as Ghostty, users expect Cmd+V to paste into the opencode TUI. Text paste can be handled by the terminal, but image-only clipboard paste needs opencode's existing prompt.paste command to run so it can read the native clipboard and attach the image.

The default TUI paste binding only includes Ctrl+V, so Cmd+V is not wired to the TUI paste command when the terminal passes that shortcut through.

Plugins

None

OpenCode version

Current dev branch

Steps to reproduce

  1. Run opencode TUI on macOS in Ghostty.
  2. Copy an image to the clipboard.
  3. Configure Ghostty to pass image-only Cmd+V through to the terminal application.
  4. Press Cmd+V in the prompt.

Screenshot and/or share link

N/A

Operating System

macOS

Terminal

Ghostty

Activity

  1. github-actions commented on May 10, 2026

    @github-actions
    Contributor

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

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. jmac-cornelis commented on Jul 6, 2026

    @jmac-cornelis

    I confirmed this in the TUI keybind config path and have a small fix ready: the native clipboard image paste command is wired through input_paste / prompt.paste, but the default paste binding only includes ctrl+v. I'm going to open a PR that adds the Cmd-compatible super+v default alongside ctrl+v and includes a regression test for the resolved binding.

  3. simonklee commented on Aug 26, 2026

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions