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
[FEATURE]: On Linux/Wayland allow pasting with middle click #3684
@thdxr Is that something you'd be open to have added as is or does it need more details/discussion? I'd be happy to implement. I'd imagine that would require some opentui changes too.
I'm experiencing the same issue on CachyOS with KDE Plasma Wayland.
Environment:
OS: CachyOS (Arch-based)
Desktop: KDE Plasma Wayland
Terminal: Ghostty 1.2.3-arch2.1
Mouse paste methods that don't work:
Middle-Click (Primary Selection)
Right-Click context menu (Clipboard)
Paste methods that work: Shift+Insert (Clipboard)
Details:
Pasting text into OpenCode prompts doesn't work with either mouse-based clipboard mechanism available in Ghostty. Middle-Click (Primary Selection) and the Right-Click context menu (Clipboard) both fail. However, Shift+Insert works reliably. Interestingly, pasting works perfectly fine in regular Ghostty outside of OpenCode using both methods.
Activity
Sewer56 commentedon Nov 1, 2025
Extra note: Works in VSCode's terminal, not in Alacritty.
Guessing it's VSC injecting it manually.
spahl commentedon Nov 1, 2025
@thdxr Is that something you'd be open to have added as is or does it need more details/discussion? I'd be happy to implement. I'd imagine that would require some opentui changes too.
itmo commentedon Nov 8, 2025
i am having same issue in fedora 42 X11. Especially annoying when quickly copypasting error messages from tests to prompt..
m0x2A commentedon Jan 10, 2026
I'm experiencing the same issue on CachyOS with KDE Plasma Wayland.
Environment:
Details:
Pasting text into OpenCode prompts doesn't work with either mouse-based clipboard mechanism available in Ghostty. Middle-Click (Primary Selection) and the Right-Click context menu (Clipboard) both fail. However, Shift+Insert works reliably. Interestingly, pasting works perfectly fine in regular Ghostty outside of OpenCode using both methods.
Additional info:
acidkewpie commentedon Jan 26, 2026
Shift + middle click works when I do it in a foot terminal.
github-actions commentedon Mar 29, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
dolzenko commentedon May 26, 2026
Thank you, works for me in alacritty as well!