Repository navigation
bug: opencode kills ghostty clipborad on copy from opencode
#8196
Unanswered
zatevakhin
asked this question in
Issue Triage
Replies: 2 comments 2 replies
|
I tried really hard to run opencode but they have bad documentation and I can only run a local model (I wont sign up for any / pay money) |
1 reply
|
@mitchellh Hello! This problem is actually presented for me in 1.4. To reproduce:
Copying in opencode, then pasting in another ghostty window fails. Then, after trying pasting, for example, in browser, I am again able to paste text in opencode. Happens only for Linux Ghostty (GTK), with no problem on MacOS. Issue was present in 1.3 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
When I select and copy a piece of text in
opencode, it copies that text correctly. However, when I try to copy text from an external source and paste it intoghosttywithopencodeopen, it fails to paste the new text and instead pastes the previously copied value.This issue occurs only in
ghostty(affecting all instances ofghosttyeven those which does not runopencode) and only with the https://github.com/sst/opencode command-line tool.I tried reproducing the issue in GNOME Terminal, and it works as expected with no problems.
Workaround: Restarting all instances of
ghosttyresolves the issue temporarily.Notes:
tmuxghosttyconfig and on my own.neovimand others work as expected evengemini-cliif comparing to current problem.See attached video:
Screencast From 2025-08-10 02-10-54.webm
Expected Behavior
When selecting and copying text in opencode, it copies the selected text correctly. When copying text from an external source and pasting it into ghostty (using Ctrl+Shift+V), it pastes the newly copied text instead of the previously copied text from opencode.
Actual Behavior
When selecting and copying text in opencode, it copies the selected text correctly. However, when copying text from an external source outside ghostty and attempting to paste it (using Ctrl+Shift+V) into any ghostty window, it incorrectly pastes the previously copied text from opencode instead of the newly copied external text. This issue affects all instances of ghostty.
Reproduction Steps
ghostty.ghosttyinstance, run theopencodecommand-line tool (i used version v0.4.2).opencode(e.g., using mouse selection or keyboard shortcuts).ghostty(e.g., from a web browser or another application).ghosttyinstance (usingCtrl+Shift+V).opencodeinstead of the newly copied external text.ghosttyinstances.Ghostty Logs
Ghostty Version
OS Version Information
NixOS 25.05 (Warbler) x86_64
(Linux only) Display Server
Wayland
(Linux only) Desktop Environment/Window Manager
GNOME 48.2
Minimal Ghostty Configuration
default
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.All reactions