You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cmd+V does not trigger TUI image paste on macOS terminals #26695
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.
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.
Activity
github-actions commentedon May 10, 2026
This issue might be a duplicate of existing issues. Please check:
For keybind-related issues, please also check our pinned keybinds documentation: #4997
jmac-cornelis commentedon Jul 6, 2026
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 includesctrl+v. I'm going to open a PR that adds the Cmd-compatiblesuper+vdefault alongsidectrl+vand includes a regression test for the resolved binding.simonklee commentedon Aug 26, 2026
#45198 (comment)