Skip to content

can not copy and paste in opencode CLI #13984

Closed as duplicate
Closed as duplicate

Description

@hongyesuifeng

Description

I can not copy and paste in opencode,right top show copied to clipboard,but when I ctrl+v,nothing to paste

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 17, 2026
  2. github-actions commented on Feb 17, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Steps to reproduce field is empty - please provide detailed steps to reproduce the issue
    • Operating System field is empty - please specify your OS (Windows/macOS/Linux)
    • Terminal field is empty - please specify which terminal emulator you're using
    • OpenCode version field is empty - please specify your OpenCode version

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    Note: This issue might be a duplicate of existing paste/clipboard issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. wranvaud commented on Feb 17, 2026

    @wranvaud

    Plugins
    None

    OpenCode version
    1.2.6

    Steps to reproduce
    Select a text in opencode. Paste in a text app, the selected text was not copied and won't be pasted.

    Screenshot and/or share link
    It's hard to screenshot this.

    Operating System
    Linux

    Terminal
    GNOME Terminal

  4. spaceater commented on Feb 20, 2026

    @spaceater

    I meet the same issue

    Plugins
    None

    OpenCode version
    1.2.7

    Steps to reproduce
    Select a text in opencode. Paste in a text app, the selected text was not copied and won't be pasted.

    Screenshot and/or share link
    It's hard to screenshot this.

    Operating System
    Linux (Ubuntu 25.10)

    Terminal
    GNOME Terminal

  5. symdeb commented on Feb 22, 2026

    @symdeb

    can copy but it does not paste to other windows like gedit, vscode etc.. So cannot connect mcp streaming http server for authorization. Furthermore it takes a huge amount of time to tell OC how to use OAuth with DCR and well known authorization endpoints. Ubuntu 25.10 , standard terminal .

    Image
  6. spaceater commented on Feb 22, 2026

    @spaceater

    I meet the same issue

    Plugins None

    OpenCode version 1.2.7

    Steps to reproduce Select a text in opencode. Paste in a text app, the selected text was not copied and won't be pasted.

    Screenshot and/or share link It's hard to screenshot this.

    Operating System Linux (Ubuntu 25.10)

    Terminal GNOME Terminal

    I update to 1.2.10 and this bug has been fixed.

  7. spaceater commented on Feb 22, 2026

    @spaceater

    can copy but it does not paste to other windows like gedit, vscode etc.. So cannot connect mcp streaming http server for authorization. Furthermore it takes a huge amount of time to tell OC how to use OAuth with DCR and well known authorization endpoints. Ubuntu 25.10 , standard terminal .

    Image

    try update

  8. symdeb commented on Feb 23, 2026

    @symdeb

    1.2.10 not working.
    After installing xsel it works

  9. realmilsky commented on Feb 25, 2026

    @realmilsky

    I'm seeing this issue as well. Already have xsel. Upgrading from 1.2.10 to 1.2.11 did not help.

    Debian 12
    Gnome Terminal
    No plugins

  10. symdeb commented on Feb 25, 2026

    @symdeb
  11. symdeb commented on Feb 25, 2026

    @symdeb
  12. arnavatsim74-alt commented on Feb 25, 2026

    @arnavatsim74-alt

    cant even paste my API Code wow

  13. zalcit commented on Feb 26, 2026

    @zalcit

    meet the same issue
    ubuntu 24
    Terminator
    ctrl + shift + c and ctrl +shift + v not work

  14. 44 remaining items

  15. disarticulate commented on Jul 16, 2026

    @disarticulate
  16. nzsambo commented on Jul 27, 2026

    @nzsambo

    I just discovered that if I hold shift and select text, then I can copy manually. Hope this helps someone.

  17. disarticulate commented on Aug 9, 2026

    @disarticulate

    even when you use the shift key in the terminal, it now copies all the useless noise ascii rather than just the text you want;

    do not override normal user controls

  18. LucasCstrx commented on Aug 24, 2026

    @LucasCstrx

    i was able to copy and paste it when i open the opencode in my terminal inside cursor.

  19. disarticulate commented on Sep 12, 2026

    @disarticulate

    copy paste doesnt work anywhere because who ever decided to override normal terminal behavior fails to read issues.

  20. Shivp1413 commented on Sep 13, 2026

    @Shivp1413

    It doesnt work for me either, but i used Shift+mouse right key to paste and that works. You can try it out

  21. gnuton commented on Sep 14, 2026

    @gnuton

    on 1.1718 I can paste text in opencode
    with SHIFT + CTRL + V

  22. mobley-trent commented on Sep 15, 2026

    @mobley-trent

    Started off good then stopped working for me

  23. mlnj commented on Sep 21, 2026

    @mlnj

    Randomly works. Mostly does not. Just have this one thing i dislike about Opencode.

  24. vsolontsov-ll commented on Sep 22, 2026

    @vsolontsov-ll

    There was an explanation long ago: #13984 (comment) .
    The thing is Opencode TUI relies on OSC 52 terminal function which is not supported by some popular terminal emulators like GNOME Terminal.

    Would be great to put this info into the issue description, so people can see it easily without reading the full thread.

    CC @hongyesuifeng

  25. Cyrille37 commented on Sep 22, 2026

    @Cyrille37

    Pour this warning in the README too ;-)

  26. IrishFPV212 commented on Sep 27, 2026

    @IrishFPV212

    how is this still an issue
    stop trying to be different or unique just give us back Ctrl+
    this shitty highlight copy does not work on any of my devices , android , multiple versions of linux windows , mac , it does not work in chrome , chromium firefox , brave does it work for anyone ? ? ? this has been an issue for a year so i have no intention of babying you all , its a shit feature

  27. dhowe commented on Sep 29, 2026

    @dhowe

    same issue in mac terminal

    any update?

  28. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    Closing as a duplicate of #4283, which tracks copy to clipboard not working in the TUI. Please add your OS, terminal and OpenCode version there.

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