GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Copy To Clipboard is not working · Issue #4283 · anomalyco/opencode

Copy To Clipboard is not working #4283

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Copy To Clipboard is not working#4283
Copy link
Assignees
kommander

Description

@maheshmuttintidev
maheshmuttintidev
opened on Nov 13, 2025
Issue body actions

Description

I selected some text from the response but its not copied to clipboard, please resolve this issue. these are my os related info.

OpenCode version

1.0.62

Steps to reproduce

  1. run opencode in terminal
  2. ask any question
  3. select the response text (few lines or complete)
  4. it shows copied to clipboard
  5. try to paste the (ctrl+v or cmd+v)
  6. paste won't work or it will paste last copied text other than this opencode

Screenshot and/or share link

Image Image

Operating System

24.04

Terminal

Terminal (Default Ubuntu One) and Vscode Terminal As well

Reacted by burbilog, Federico Andres Lois, nielsole, Frank Fang, Phieu Dinh, Andreas Beder, Aymen, Abbas, mariazhao007, miltonparedes and 127 more
Reacted by Petya Kohts

Activity

Next
  1. maheshmuttintidev
    added
    bugSomething isn't working
    on Nov 13, 2025
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 13, 2025
  3. github-actions commented on Nov 13, 2025

    @github-actions
    github-actionsBot
    on Nov 13, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Unable to copy using shortcut from TUI (opentui & current) #3538: Unable to copy using shortcut from TUI - similar clipboard issues where text selection shows 'copied to clipboard' but doesn't actually copy
    • Copy to clipboard is not working on Pop-os #2413: Copy to clipboard is not working on Pop-os (closed) - very similar issue on Linux
    • clipboard copy not works in remote SSH console. #2773: Clipboard copy not works in remote SSH console - similar clipboard functionality issues

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

  4. burbilog commented on Nov 13, 2025

    @burbilog
    burbilog
    on Nov 13, 2025
    More actions

    I have the same problem running opencode via ssh on remote machines.

    Reacted by miltonparedes, Patrick Schless, deltazefiro, Jyotirmaya Shivottam, Pawel Cioch, seanmamasde, Jeremy Akers, Igor Depolli, Angelo Neacsu, ふぁー and 52 more
  5. maheshmuttintidev commented on Nov 13, 2025

    @maheshmuttintidev
    maheshmuttintidev
    on Nov 13, 2025
    Author
    More actions

    it seems there is no straight forward fix for this issue, at-least please provide context menu on text selection and show copy option please..

    Reacted by Andreas Beder, Jyotirmaya Shivottam, Jeremy Akers, Deniz Genctürk, Will Garrison, Alexey Abel, Du, Changbin, Vadim Ippolitov, Steffen Kremsler, Mikita Hradovich and 15 more
  6. maheshmuttintidev commented on Nov 13, 2025

    @maheshmuttintidev
    maheshmuttintidev
    on Nov 13, 2025
    Author
    More actions

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

    • Unable to copy using shortcut from TUI (opentui & current) #3538: Unable to copy using shortcut from TUI - similar clipboard issues where text selection shows 'copied to clipboard' but doesn't actually copy
    • Copy to clipboard is not working on Pop-os #2413: Copy to clipboard is not working on Pop-os (closed) - very similar issue on Linux
    • clipboard copy not works in remote SSH console. #2773: Clipboard copy not works in remote SSH console - similar clipboard functionality issues

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

    i've checked above, but it doesn't resolve this bug yet, please try to escalate to author and fix this bug in future release (this maybe medium priority)

    Reacted by marceldempers
  7. velorb commented on Nov 13, 2025

    @velorb
    velorb
    on Nov 13, 2025
    More actions

    i have the same issue

    Reacted by Wolfgang Fahl, yifeisu, marceldempers, TechmanWAX, awa-xima, Quesso_con_pan and Mike Carter
  8. kommander
    self-assigned this
    on Nov 13, 2025
  9. redknightlois commented on Nov 13, 2025

    @redknightlois
    redknightlois
    on Nov 13, 2025
    More actions

    Same issue, found it in multiline. Paste is broken it seems, because I am getting the text from a notepad.

    Reacted by Wolfgang Fahl, yifeisu, marceldempers and TechmanWAX
  10. Haupc commented on Nov 21, 2025

    @Haupc
    Haupc
    on Nov 21, 2025
    More actions

    I'm having same issue

    Reacted by Wolfgang Fahl, Stephan Fuhrmann, yifeisu, marceldempers and mrpong99
  11. dhogenson commented on Nov 21, 2025

    @dhogenson
    dhogenson
    on Nov 21, 2025
    More actions

    Same thing here, it don't work on the default terminal but it works on vs codes terminal which is weird

    Reacted by xyhdad, mv2woods, Wolfgang Fahl, feifel, yifeisu and marceldempers
  12. taqtiqa-mark commented on Nov 25, 2025

    @taqtiqa-mark
    taqtiqa-mark
    on Nov 25, 2025
    More actions

    I have noted this issue, but it has a couple of subtleties, and its not clear how to tease them out individually.

    "Select-to-copy" fails when:

    • The selection (mouse-drag) is done slowly, and unidirectionally. Almost always a 'fast', one-direction-only, select action works.
    • The selection (mouse-drag) is done fast but multi-directionally (when the drag action overshoots, and you go back).

    Note sure if that helps.

    @kommander are there any settings that might affect this feature (e.g. scroll-speed)?

  13. kommander commented on Nov 25, 2025

    @kommander
    kommander
    on Nov 25, 2025 – with Linear
    Contributor
    More actions

    I want to provide a generalized copyToClipboard from opentui, as opencode currently does that manually and it does not work remote either because of missing osc52 handling. It's on my list, please excuse the delay, just a little more patience, I'll get to it.

    Reacted by Mark Van de Vyver, Allan Chan, Wolfgang Fahl, John Hawley and Reza Mortazavi
  14. maheshmuttintidev commented on Nov 27, 2025

    @maheshmuttintidev
    maheshmuttintidev
    on Nov 27, 2025
    Author
    More actions

    surprisingly, the copy to clipboard is working in iterm2, but not in-built terminal, it would be better if you look into this issue, because it was more useful for me especially (the developer like me as well)

  15. ominiverdi commented on Dec 3, 2025

    @ominiverdi
    ominiverdi
    on Dec 3, 2025
    More actions

    On my Linux Mint installing xclip solved the problem:

    sudo apt install xclip
    
    

    Pity that the TUI doesn't warn when a dependency is missing

    Reacted by Mahesh Muttinti, Nigini Oliveira, Madeleine Mauz, VisionaryOS, Daniel Vélez, Tihomir Manushev, Apolostephen, Pádraig Galvin, Koen, David Dembeck and 16 more
    Reacted by Nigini Oliveira, Pádraig Galvin, Jens Kleikamp, quayle, Vadim Ippolitov, Jason Zvaniga, gabriel-piles, vanppsa, Prashant Shahi, langfeld and 3 more
  16. 140 remaining items

  17. anasfik commented on Oct 13, 2026

    @anasfik
    anasfik
    on Oct 13, 2026
    More actions

    on latest 2.0.28 version, the issue is still there when i use opencode on a VM, and this is starting to be a trade off since even the /share command i relied on says:

    • Sharing is not implemented for V2 sessions yet

    so now i can't even move any text from it to use unless I OCR it or switch to a free model to just tell opencode to upload the conversation somewhere, tried all solutions i found but non worked.

  18. citizeneuropa09 commented on Oct 16, 2026

    @citizeneuropa09
    citizeneuropa09
    on Oct 16, 2026
    More actions

    one year and they can't fix a copy-pasting bullshit

    Reacted by Julien Veyssier and Nikos Moumoulidis
    Reacted by quetx, Mostafa and burbilog
  19. IntraCherche commented on Oct 18, 2026

    @IntraCherche
    IntraCherche
    on Oct 18, 2026
    More actions

    Upgrading from 1.8.35 to 2.0.32 solved this problem on my linux box (XFCE4-Terminal, pasting in OpenCode with ctrl-shift-v, or in geany, or Nautilus, with ctrl-v). Thank you!

  20. donbowman commented on Oct 18, 2026

    @donbowman
    donbowman
    on Oct 18, 2026
    Contributor
    More actions

    29. Upgrading from 1.8.35 to 2.0.32 solved this problem on my linux box. Thank you!

    it does not.

    2.0.32 the copy goes to clipboard, the paste comes from selection. so you cannot copy and paste back into opencode without going to your clipboard tool and selecting the clipboard entry back to selection.

    /usr/bin/wl-paste | /usr/bin/wl-copy --primary

    i created a global hotkey running this as a workaround, but its a real pain that opencode is the only application on a linux terminal that takes over control of the selection, and, does it wrong.

    see #32370 for the PR to resolve it on v2.

  21. digregoriovalerio commented on Oct 18, 2026

    @digregoriovalerio
    digregoriovalerio
    on Oct 18, 2026
    More actions

    its a real pain that opencode is the only application on a linux terminal that takes over control of the selection, and, does it wrong.

    actually it also leaks API keys 🤣

  22. sbgraphic commented on Oct 18, 2026

    @sbgraphic
    sbgraphic
    on Oct 18, 2026
    More actions

    Hum I cannot even select anything to copy in VSC terminal opencode… (MacOS Thaoe, latest VSC Version: 1.142.0, latest Opencode 2.0.32)

    Reacted by Eric Scheurer and Steven Prins
  23. munderl commented on Oct 22, 2026

    @munderl
    munderl
    on Oct 22, 2026
    More actions

    As a workaround I am able to press shift key upon text selection which results in the text being copied into the third-mouse-button-buffer instead of the clipboard. Using gnome terminal on gnome 50.

    Reacted by Nikos Moumoulidis, IoxoI, Aaron Whitehouse and Tim Waters
    Reacted by Morgan Christiansson
  24. nikosmoum commented on Oct 22, 2026

    @nikosmoum
    nikosmoum
    on Oct 22, 2026
    More actions

    I confirm shift+select text copies it into third-mouse-button-buffer. It's a good workaround

  25. donbowman commented on Oct 22, 2026

    @donbowman
    donbowman
    on Oct 22, 2026
    Contributor
    More actions

    except this doesn't work for multi-line, it ends up selecting the sidebar too.

  26. drummerwolli commented on Oct 23, 2026

    @drummerwolli
    drummerwolli
    on Oct 23, 2026
    More actions

    for me the culprit was this line in my .zshrc file:

    export DISPLAY=:99

    tbh, not sure why i had it in there, but i commented it out now. copy to clipboard works for me now in opencode v2.

    i found this out with the help of opencode. i recommend everyone to check their local setup with opencode and ask it to find the culprit. seems like in general it should work.

  27. donbowman commented on Oct 23, 2026

    @donbowman
    donbowman
    on Oct 23, 2026
    Contributor
    More actions

    the issue we are facing, and this issue was solving, is... on Unix systems (Linux included), there are two copy mechanism:

    • selection
    • clipboard

    all text applications use the selection. you select some text, then you can paste (e.g. double click a word and then hit shift-insert).
    opencode overrides this, so when you double click a word, it goes to the clipboard, when you then hit shift-insert in the same window it pastes something else.

    so we are looking (and there is an active PR against v2) to switch the default to double-click and go to selection.

    the DISPLAY=:99 is probably an xwayland artifact.

  28. mmiller7 commented on Oct 26, 2026

    @mmiller7
    mmiller7
    on Oct 26, 2026
    More actions

    Not working for me - I can CTRL+V to paste but there is no way to copy. Linux Mint 23, Gnome terminal. Highlighting says it copied but there's nothing to paste when trying to paste. Opencode v2.1.4

  29. DSCmatter commented on Oct 26, 2026

    @DSCmatter
    DSCmatter
    on Oct 26, 2026
    More actions

    Opencode can release v2 but cant do this

    Reacted by nachobh, ArtificialTruth, Rafael Zichia and Mike Carter
  30. nachobh commented on Nov 11, 2026

    @nachobh
    nachobh
    on Nov 11, 2026
    More actions

    Debian 13, still not working

  31. anadi45 commented on Nov 19, 2026

    @anadi45
    anadi45
    on Nov 19, 2026
    More actions

    Try installing xclip. Worked for me.

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

Metadata

Metadata

Assignees

  • @kommander
    kommander

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.