Skip to content

Text selection highlight for copying messages is not cleared when clicking and releasing without dragging #1992

Closed

Description

@yihuikhuu

There is a sporadic issue that sometimes happens when running opencode in tmux, where clicking on message text and releasing without dragging causes the user to be stuck in a text selection state. Moving the mouse around in this state causes text to be highlighted even though mouse is not held down. Clicking clears the highlight (without copying text) but moving the mouse will create a new highlight. The user can only get out of this state by successfully triggering a copy by clicking and dragging. Accidentally clicking anywhere in the messages causes the issue again.

This is an odd bug because I've only observed it in tmux sessions, but creating a fresh tmux session does not have this issue. However, once the issue presents (trigger unknown), it happens across all panes in that tmux session and persists even after detaching/reattaching to that same session.

selectionissue.mov

Activity

  1. github-actions commented on Aug 16, 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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions