Skip to content

No way to select or copy text, either in the input field or from the output messages #2114

Closed as not planned

Description

@JeongJuhyeon
  • Opencode run in Ghostty
  • MacOS 15.5

There does not seem to be any way to select or copy text, both for the input field as well as for the output messages.

Activity

  1. github-actions commented on Aug 20, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Aug 20, 2025

    @rekram1-node
    Collaborator

    @JeongJuhyeon does this not work for you?

    Screen.Recording.2025-08-20.at.8.57.14.AM.mov
  3. JeongJuhyeon commented on Aug 20, 2025

    @JeongJuhyeon
    Author

    @rekram1-node
    It does, though with limitations:

    • What if the part to copy spans longer than the height of the terminal
    • As mentioned, this doesn't work for the input field
  4. jensk commented on Aug 20, 2025

    @jensk

    WSL2 user here, only input selection not working. Output selection works fine.

  5. rekram1-node commented on Aug 20, 2025

    @rekram1-node
    Collaborator

    Oh yeah the text select only applies for msgs rn

  6. jensk commented on Aug 20, 2025

    @jensk

    Known limitation, gotcha. Thanks for the quick update!

  7. av commented on Aug 21, 2025

    @av

    It appears that "copy on selection" doesn't work on default Gnome terminal in Pop!_OS. After selection is released, the popup is shown: "Copied to clipboard", but the actual clipboard then doesn't have the new data.

  8. zach-fuller commented on Aug 22, 2025

    @zach-fuller

    I've introduced two PRs to address some of the concerns mentioned here. Feedback is welcome!

    #2160 #2158

  9. septicdank commented on Sep 3, 2025

    @septicdank

    It appears that "copy on selection" doesn't work on default Gnome terminal in Pop!_OS. After selection is released, the popup is shown: "Copied to clipboard", but the actual clipboard then doesn't have the new data.

    It isn't working on debian 13 in terminator for me.
    Can we get an option to turn off the highlight to copy?
    It seems to be causing a lot of issues for something that is really not necessary.

  10. dburkland commented on Sep 4, 2025

    @dburkland

    I am in the process of trying to migrate my workflows from claude code to opencode and the copy/paste behavior with input and output messages is still a big limitation for me.

  11. rekram1-node commented on Sep 4, 2025

    @rekram1-node
    Collaborator

    @dburkland opencode is being migrated to a new tui library: opentui, once this is done I think the text copying issues should be resolved

  12. dburkland commented on Sep 4, 2025

    @dburkland

    @dburkland opencode is being migrated to a new tui library: opentui, once this is done I think the text copying issues should be resolved

    Fantastic, thanks!

  13. JGKle commented on Sep 17, 2025

    @JGKle

    Same issue on Konsole->tmux (my actual terminal is Konsole, but I have to use opencode thru tmux because it's broken in konsole per here). When I select text I do see the "Copied to clipboard" message, but nothing is actually copied. Have found no workaround / no way to copy text, which is a critical blocker to moving over from ClaudeCode (I ultimately found myself having to dig through the raw JSON message files to get something into the clipboard)

  14. rekram1-node commented on Sep 17, 2025

    @rekram1-node
    Collaborator

    this should be better addressed soon but in meantime you could use /export (ik not ideal)

  15. mikewaters commented on Oct 18, 2025

    @mikewaters

    Here's a one-liner to grab the path to the tempfile that /export pops into $EDITOR:

    # run `/export` in opencode then grab another shell:
    fd --changed-within 1m conver /private/var/folders
    -> /private/var/folders/gk/0l8cgrfj6ws3c2dhq7rxxyq00000gn/T/conversation-2002301606.md
    • uses fd (from here)

    I use this command, which assumes I've only done this once in the past minute, and opens the file in Zed (on macos):
    fd --changed-within 1m conver /private/var/folders |xargs open -a zed

  16. Huge commented on Jan 2, 2026

    @Huge

    Weirdly I have even set copy-on-selection in Alacritty, but opencode somehow eats it, evading the selection to enter the clipboard. Also fails on WSL terminal when running in byobu.

  17. HiChen404 commented on Feb 28, 2026

    @HiChen404

    The 'select text' interaction is inconsistent - sometimes works, sometimes doesn't in the latest opencode release.

  18. dburkland commented on Feb 28, 2026

    @dburkland

    The 'select text' interaction is inconsistent - sometimes works, sometimes doesn't in the latest opencode release.

    I've experienced the same thing frequently

  19. github-actions commented on Apr 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions