Skip to content

Text Copy Issue from VSCODE Terminal Opencode TUI session. #60602

Closed as not planned

Description

@AslamNazeerShaikh

Description

Unable to copy text or unable to select text after few time or after doing few text selection and copy.

Plugins

No response

OpenCode version

v2.2.3

Steps to reproduce

  1. Open opencode TUI session from latest VSCODE Terminal Panel.
  2. Use opencode for while and do text selection and text copy few times.
  3. Switch to different open apps/windows then come back to same VSCODE terminal where the opencode TUI session is.
  4. Now try to copy the text by text selection via mouse cursor, it will not allow to copy selected words/lines etc.

Screenshot

No response

Operating System

macOS 27.2

Terminal

VSCODE Terminal (zsh with oh-my-zsh)

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    Thanks for the report! To narrow down which problem this is, could you tell us a bit more about what happens when copying stops working?

    1. When you drag with the mouse, does the text still get highlighted, or does nothing get highlighted?
    2. If it is highlighted, does the "Copied to clipboard" toast appear? And when you paste, do you get the old clipboard contents or nothing?
    3. Does the rest of the TUI keep working (typing shows up, clicks respond), or does it seem frozen?
    4. How do you get it working again: restarting opencode, clicking inside the TUI, or something else?
    5. Does the same thing happen in another terminal, such as Terminal.app or iTerm2, or only in the VS Code terminal? Which VS Code version are you on?

    You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.

    These existing issues might already cover your problem (ordered by likelihood):

  2. AslamNazeerShaikh commented on Oct 30, 2026

    @AslamNazeerShaikh
    Author

    Hi @opencodejr

    1. When you drag with the mouse, does the text still get highlighted, or does nothing get highlighted?
      Answer: No text does not gets highlighted or selected when i use mouse cursor to select any text.

    2. If it is highlighted, does the "Copied to clipboard" toast appear? And when you paste, do you get the old clipboard contents or nothing?
      Answer: When the text gets highlighted via mouse cursor selection it does not show "Copied to clipboard" and i dont get any text copied into my clipboard.

    3. Does the rest of the TUI keep working (typing shows up, clicks respond), or does it seem frozen?
      Answer: When I exit from opencode TUI session via "/exit" command and close the terminal as well, after relaunching a branch new terminal session in VSCODE and then i reopen opencode TUI it works for few times then again same issue.

    4. How do you get it working again: restarting opencode, clicking inside the TUI, or something else?
      Answer: I close opencode TUI session and terminal and relaunch both again. Copying & selecting text starts working again but only for few times then same issue occurs.

    5. Does the same thing happen in another terminal, such as Terminal.app or iTerm2, or only in the VS Code terminal? Which VS Code version are you on?
      Answer: Yes, it happens in all terminal apps on MAC OS. Please fix it.

  3. opencodejr commented on Nov 2, 2026

    @opencodejr
    Contributor

    We haven't heard back, so I'm closing this for now. Without knowing what happens when copying stops (whether text still highlights, whether the "Copied to clipboard" toast appears, whether the TUI still responds, and whether it also happens outside the VS Code terminal), we can't tell which problem this is or reproduce it.

    If it still happens on a current version, reply here with those details and we can reopen it. In the meantime, #51056, #59664 and #59052 cover closely related selection and copy problems, so one of them may match what you're seeing.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions