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
- Run opencode TUI on macOS in Ghostty.
- Copy an image to the clipboard.
- Configure Ghostty to pass image-only Cmd+V through to the terminal application.
- Press Cmd+V in the prompt.
Screenshot and/or share link
N/A
Operating System
macOS
Terminal
Ghostty
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.pastecommand 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
Screenshot and/or share link
N/A
Operating System
macOS
Terminal
Ghostty