[PR #1420] [CLOSED] fix(tui): text selection for copying messages is not cleared when clicking and releasing without dragging #9927

Closed
opened 2026-02-16 18:14:24 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1420
Author: @yihuikhuu
Created: 7/30/2025
Status: Closed

Base: devHead: fix-text-select-on-click-release


📝 Commits (1)

  • 7a21aab fix: text selection is not cleared when click+release without dragging

📊 Changes

1 file changed (+11 additions, -8 deletions)

View changed files

📝 packages/tui/internal/components/chat/messages.go (+11 -8)

📄 Description

Note

This issue was only observed when running within tmux; couldn't replicate when running outside of tmux.

This fixes an issue 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. The user can only get out of this state by successfully triggering a copy by clicking and dragging.

Before:

https://github.com/user-attachments/assets/86d93c65-27c6-4807-9275-85fe34d66386

After:

https://github.com/user-attachments/assets/bae8eeaf-3ebf-4c32-a01d-df3563dc8eef


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1420 **Author:** [@yihuikhuu](https://github.com/yihuikhuu) **Created:** 7/30/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix-text-select-on-click-release` --- ### 📝 Commits (1) - [`7a21aab`](https://github.com/anomalyco/opencode/commit/7a21aabb89d814e23cc0b7cc5b68d563c9a293ca) fix: text selection is not cleared when click+release without dragging ### 📊 Changes **1 file changed** (+11 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/chat/messages.go` (+11 -8) </details> ### 📄 Description > [!NOTE] > This issue was only observed when running within tmux; couldn't replicate when running outside of tmux. This fixes an issue 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. The user can only get out of this state by successfully triggering a copy by clicking and dragging. Before: https://github.com/user-attachments/assets/86d93c65-27c6-4807-9275-85fe34d66386 After: https://github.com/user-attachments/assets/bae8eeaf-3ebf-4c32-a01d-df3563dc8eef --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:24 -05:00
yindo closed this issue 2026-02-16 18:14:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9927