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 — clipboard copy not works in remote SSH console. · Issue #2773 · anomalyco/opencode

clipboard copy not works in remote SSH console. #2773

New issue
Copy link
New issue
Copy link
Closed
Closed
clipboard copy not works in remote SSH console.#2773
#8974 (+2)
Copy link
Assignees
kommander
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@magic-thomas
magic-thomas
opened on Sep 25, 2025
Issue body actions

hi .
Sometimes I use opencode / claude code in remote SSH console.

Claude Code allows copy selected text.

But I can not copy text in remote console with Opencode.

Is it intended or missing or is there a way to copy text ?

Reacted by Fran Boon, Practicus AI, Cong Zhang, Christoph Döllinger and Lewin Kelly

Activity

Next
  1. github-actions commented on Sep 25, 2025

    @github-actions
    github-actionsBot
    on Sep 25, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • No way to select or copy text, either in the input field or from the output messages #2114: Reports no way to select or copy text in output messages on macOS with Ghostty terminal
    • feat: Copy Mode for OpenCode #2755: Feature request for copy mode functionality, mentions tmux copy mode not working properly with OpenCode
    • Add a /copy command to copy latest message (or allow scrolling while selecting text) #2118: Requests /copy command due to issues with text selection and copying

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

  2. rekram1-node
    assigned
    thdxr
    and
    adamdotdevin
    and unassigned
    thdxr
    on Sep 25, 2025
  3. rekram1-node commented on Sep 25, 2025

    @rekram1-node
    rekram1-node
    on Sep 25, 2025
    Member
    More actions

    This should be fixed in next version of the tui, rn it is being rewritten: #2685

    Reacted by magic-thomas
  4. W1BTR commented on Nov 21, 2025

    @W1BTR
    W1BTR
    on Nov 21, 2025
    More actions

    Still having this issue on opencode installed today. Has this new TUI been released yet?

  5. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    rekram1-node
    on Nov 21, 2025
    Member
    More actions

    yeah, maybe a tmux issue for u?

  6. rekram1-node
    assigned
    kommander
    and unassigned
    adamdotdevin
    on Nov 21, 2025
  7. rekram1-node
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 21, 2025
  8. kommander commented on Nov 22, 2025

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

    Yes, proper osc52 handling is missing, opencode currently only copies to local clipboard. Opentui should provide a copyToClipboard method to handle that properly.

    Reacted by travofoz and Lee B
  9. thevinchi commented on Nov 23, 2025

    @thevinchi
    thevinchi
    on Nov 23, 2025
    Contributor
    More actions

    fwiw: I'm having this issue as well. I use tmux, but it WAS working fine before the 1.0 release. That's when copy broke for me.

    Reacted by travofoz
  10. travofoz commented on Nov 26, 2025

    @travofoz
    travofoz
    on Nov 26, 2025
    More actions

    im on 114 and the issue persists. it is extremely frustrating

  11. aaronnewsome commented on Dec 7, 2025

    @aaronnewsome
    aaronnewsome
    on Dec 7, 2025
    More actions

    i tried a lot of ways to get select text and copy to clipboard working with opencode in an ssh session. the only thing I could get to work was to use guacamole and ssh. it works but i'd rather not have to use this method.

    how are others successfully able to copy text over an ssh session? why has this been such a persistent problem? most other terminal coders don't have this issue.

    i really like opencode and it's my daily driver but this copy thing has me vexed for real.

    my current workflow is to work normally in a regular tmux/ssh session. then in the rare case where I have to copy something, i fire up a guacamole session, ssh into the host, tmux attach, select the text, which gets copied into the clipboard of the browser/host where i'm sitting. tmux detach then go back to my regular terminal.

    it works, but what a hack. i should be able to just select and copy text like any other terminal.

    sometimes I can get the text with the /export command and once in vim select copy works normally, but that always doesn't work since not everything in the conversation shows up in the export.

    I, for one would be very pleased if this issue were fixed.

  12. b3nw commented on Dec 24, 2025

    @b3nw
    b3nw
    on Dec 24, 2025
    Contributor
    More actions

    1.0.193 using ssh/MobaXterm this is still broken.

  13. 18 remaining items

  14. Rhiz3K commented on Jan 16, 2026

    @Rhiz3K
    Rhiz3K
    on Jan 16, 2026
    More actions

    this is driving me crazy as I only use opencode on remote machine via SSH

  15. rekram1-node
    closed this as completedin #8974on Jan 16, 2026
  16. Son0fSun
    added 3 commits that reference this issue on Jan 17, 2026

    feat(clipboard): add OSC 52 clipboard support for SSH/remote sessions

    8e9b138

    fix(clipboard): improve OSC 52 escape sequence for SSH compatibility

    ef6ab63

    fix(clipboard): improve OSC 52 escape sequence for SSH compatibility

    8a1ce2e
  17. b3nw
    added a commit that references this issue on Jan 17, 2026

    fix: centralize OSC 52 clipboard support for SSH sessions (resolves a…

    This issue will close once commit 97b3ff7 is merged into the 'dev' branch.
    97b3ff7
  18. kommander
    reopened this on Jan 18, 2026
  19. thevinchi commented on Jan 20, 2026

    @thevinchi
    thevinchi
    on Jan 20, 2026
    Contributor
    More actions

    FYI: This has been resolved for me as of 1.1.26 (shuv1337#309)

    I see that #9374 is now open, so hopefully whatever is needed to resolve that issue doesn't break whatever is allowing me to copy to clipboard again! 😆

  20. kommander
    closed this as completedin opentui#546on Jan 31, 2026
  21. Trynox-by-Fasky commented on Sep 21, 2026

    @Trynox-by-Fasky
    Trynox-by-Fasky
    on Sep 21, 2026
    More actions

    almost the end of 2026 and this issue is still not resolved....

  22. aaronnewsome commented on Sep 21, 2026

    @aaronnewsome
    aaronnewsome
    on Sep 21, 2026
    More actions

    almost the end of 2026 and this issue is still not resolved....

    no one with any authority to do anything about it, sees this as an issue to be fixed. this means you can check back in another year and it's not likely to be addressed by then either.

    opencode works great when I'm working on the computer I'm sitting in front of, which is RARELY. 95% of the time my coding agent is running in a remote session, via ssh or docker exec shell. one of the many reason I switched to pi a long time ago and have never looked back.

  23. niicolaai commented on Sep 22, 2026

    @niicolaai
    niicolaai
    on Sep 22, 2026
    More actions

    Quick workaround until it's fixed that works for me: Connect to your remote server via SSH through VSCode and from there open up a terminal in a new window (top toolbar → Terminal → New Terminal Window OR Ctrl + Shift + Alt + `). Open up opencode from there as usual and copying now works.

  24. Trynox-by-Fasky commented on Sep 22, 2026

    @Trynox-by-Fasky
    Trynox-by-Fasky
    on Sep 22, 2026
    More actions

    Quick workaround until it's fixed that works for me: Connect to your remote server via SSH through VSCode and from there open up a terminal in a new window (top toolbar → Terminal → New Terminal Window OR Ctrl + Shift + Alt + `). Open up opencode from there as usual and copying now works.

    @niicolaai thanks for the solution but i mostly use my vps with ssh like this on my iphone while i’m not at home so it won’t work for me…

  25. nozamdavid commented on Oct 26, 2026

    @nozamdavid
    nozamdavid
    on Oct 26, 2026
    More actions

    This is still happening...

  26. lee-b commented on Oct 26, 2026

    @lee-b
    lee-b
    on Oct 26, 2026
    More actions

    27. This is still happening...

    Until fixed, pi.dev complies with selection/clipboard norms much better.

    Better again, Forge can just integrate with your shell and output like a regular command, effectively letting your normal shell session be the TUI. So that has no issue at all.

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

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

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.