Skip to content

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

@swalker326

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions