The new TUI cannot handle mouse events #2447

Closed
opened 2026-02-16 17:35:41 -05:00 by yindo · 2 comments
Owner

Originally created by @DonKongPaPa on GitHub (Nov 1, 2025).

Originally assigned to: @thdxr on GitHub.

Description

Image

when i try to select text it pops out

OpenCode version

v1.0.7

Steps to reproduce

Selecting text with the mouse causes the issue

Screenshot and/or share link

No response

Operating System

Arch linux

Terminal

kitty, konsole

Originally created by @DonKongPaPa on GitHub (Nov 1, 2025). Originally assigned to: @thdxr on GitHub. ### Description <img width="1502" height="388" alt="Image" src="https://github.com/user-attachments/assets/3586e355-0a51-4c50-bb3d-d1e8861d2377" /> when i try to select text it pops out ### OpenCode version v1.0.7 ### Steps to reproduce Selecting text with the mouse causes the issue ### Screenshot and/or share link _No response_ ### Operating System Arch linux ### Terminal kitty, konsole
yindo added the opentuibug labels 2026-02-16 17:35:41 -05:00
yindo closed this issue 2026-02-16 17:35:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2025):

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

  • #3621: Similar text selection problems with mouse in the new TUI (v1.0.0+) - also reports errors when selecting text
  • #3627: Weird text selection behavior in WezTerm on Windows - text selection doesn't work properly in opentui
  • #1210: Mouse text selection has unexpected behavior - reports issues with mouse coordinates and selection behavior
  • #849: Mouse scroll characters rendering in chat box making TUI unusable and impossible to exit
  • #3199: Mouse generates garbled text input and blocks user input - mouse interactions causing TUI corruption

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

@github-actions[bot] commented on GitHub (Nov 1, 2025): This issue might be a duplicate of existing issues. Please check: - #3621: Similar text selection problems with mouse in the new TUI (v1.0.0+) - also reports errors when selecting text - #3627: Weird text selection behavior in WezTerm on Windows - text selection doesn't work properly in opentui - #1210: Mouse text selection has unexpected behavior - reports issues with mouse coordinates and selection behavior - #849: Mouse scroll characters rendering in chat box making TUI unusable and impossible to exit - #3199: Mouse generates garbled text input and blocks user input - mouse interactions causing TUI corruption Feel free to ignore if none of these address your specific case.
Author
Owner

@DonKongPaPa commented on GitHub (Nov 1, 2025):

The issue was resolved after installing wl-clipboard in the Wayland KDE desktop environment

@DonKongPaPa commented on GitHub (Nov 1, 2025): The issue was resolved after installing `wl-clipboard` in the Wayland KDE desktop environment
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2447