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
When using opencode, you lose the ability to select text. You have the default cursor instead of the text cursor, and dragging does nothing. Allow selecting text either by default or upon a command to allow copying out prompts, outputs, and errors more ergonomically.
Agree: The issue with the shift-drag method is that it'll copy everything including UI elements, and not understanding or respecting line breaks or anything like that.
Comparatively, if I select multiple lines of wrapping text in tmux that's just in zsh (without shift), it'll understand which text is wrapping and which isn't, making it copy nearly as seamlessly as copying from a webpage.
Does anyone figure out how to select the text to copy an specific part of the response ? I have the same problem when I select the text with shift it copies everything, including UI elements.
Does anyone figure out how to select the text to copy an specific part of the response
Current workarounds:
paste the text into a text editor to edit out the UI elements
if it's not an error, make a share link and open it in the browser
Other agent CLIs also have this problem. Only automatic fix I could think of is watching the clipboard and, if it corresponds with a part of the opencode UI, editing the clipboard to remove the UI elements.
Just a tip: in many terminal emulators, there's a key you can hold down to enable selection. In Ghostty, it's shift.
This works only till a certain point. I can't select stuff that goes out of the screen because it doesn't automatically scroll like a browser would if you reached the end of the page.
This works only till a certain point. I can't select stuff that goes out of the screen because it doesn't automatically scroll like a browser would if you reached the end of the page.
Agree... not proposing as a complete solution! Just a partial stopgap.
Other agent CLIs also have this problem. Only automatic fix I could think of is watching the clipboard and, if it corresponds with a part of the opencode UI, editing the clipboard to remove the UI elements.
For me claude code works fine. I can select text as I want.
FWIW there is a keybind for "copying a message" but it seems to not use the system copy buffer for some reason, and the keybinds aren't really intuitive. It only copies to an internal buffer it seems like.
I'd be satisfied myself with ctrl+p / ctrl + n to paginate, and yy to copy to the system buffer or something.
Activity
markjaquith commentedon Jul 13, 2025
Just a tip: in many terminal emulators, there's a key you can hold down to enable selection. In Ghostty, it's
shift.KTibow commentedon Jul 13, 2025
I can confirm shift+drag works. Ideally it would be either explained or not required.
johnpyp commentedon Jul 13, 2025
Agree: The issue with the shift-drag method is that it'll copy everything including UI elements, and not understanding or respecting line breaks or anything like that.
Comparatively, if I select multiple lines of wrapping text in tmux that's just in zsh (without shift), it'll understand which text is wrapping and which isn't, making it copy nearly as seamlessly as copying from a webpage.
Regboy744 commentedon Jul 14, 2025
Does anyone figure out how to select the text to copy an specific part of the response ? I have the same problem when I select the text with shift it copies everything, including UI elements.
KTibow commentedon Jul 14, 2025
Current workarounds:
Other agent CLIs also have this problem. Only automatic fix I could think of is watching the clipboard and, if it corresponds with a part of the opencode UI, editing the clipboard to remove the UI elements.
mrbm commentedon Jul 15, 2025
shift technique does not work on a mac terminal.
deadcoder0904 commentedon Jul 15, 2025
This works only till a certain point. I can't select stuff that goes out of the screen because it doesn't automatically scroll like a browser would if you reached the end of the page.
markjaquith commentedon Jul 15, 2025
Agree... not proposing as a complete solution! Just a partial stopgap.
wiserfirst commentedon Jul 15, 2025
I reckon this is a major issue with opencode.
For me claude code works fine. I can select text as I want.
likelymichael commentedon Jul 15, 2025
this is a major blocker for me to be able to use opencode. if i can't select text, especially error outputs, this is a major issue
johnpyp commentedon Jul 15, 2025
FWIW there is a keybind for "copying a message" but it seems to not use the system copy buffer for some reason, and the keybinds aren't really intuitive. It only copies to an internal buffer it seems like.
I'd be satisfied myself with ctrl+p / ctrl + n to paginate, and yy to copy to the system buffer or something.
adamdotdevin commentedon Jul 16, 2025
carrying the conversation on in #212
Migrate workflows to Blacksmith (anomalyco#927)
Migrate workflows to Blacksmith (anomalyco#927)
fix: imessage read/search parses attributedBody for modern macOS
crobinson42 commentedon Jul 31, 2026
Adding for future researchers -
shiftdrag did not work on my mac,fndrag works for me.