Skip to content

Chat text selection clears and reappears on different messages while manually scrolling #12943

Description

@01-1

What happened

In the Linux desktop app, I tried to select multiple chat messages by dragging from a message near “test 12” toward the bottom of the conversation. I kept the left mouse button held throughout and manually scrolled. The selection developed gaps: message bodies between highlighted messages—including my “test 45” message—were not highlighted. It then cleared entirely, and later highlighted different messages while the same drag continued. This makes selecting and copying a long span of conversation unreliable.

Diagnosis

The v0.0.42 chat timeline renders messages with LegendList, a virtualized list. Its scroll handler does not explicitly clear the browser selection. The citation selection observer dismisses its own toolbar on scroll, but also does not directly call removeAllRanges() on this path. A likely explanation is that scrolling replaces or unmounts rows containing the native selection’s DOM endpoints, causing the browser selection to collapse or shift. This is a hypothesis based on source and the recording, not a confirmed root cause.

Steps to reproduce

  1. Open a desktop-app conversation with enough alternating user and assistant messages to scroll.
  2. Press and hold the left mouse button on text near an earlier message (in this case, “test 12”).
  3. Drag to select across multiple messages. Keep the button held.
  4. Manually scroll toward later messages while continuing the drag.
  5. Observe that intervening message bodies can remain unhighlighted; the selection can clear entirely and later reappear on different text.

Version

T3 Code 0.0.42 (v0.0.42, commit 719a76ca1dbf5490f1aa33ffb9966301e02be9a9).

Environment

Linux x64, Fedora kernel 7.2.5-200.fc44.x86_64; T3 Code desktop app. Local T3 server was running during triage. Whether the desktop app was connected to that local server or a remote one was not established. Node v26.8.2 was used for npx t3 triage.

Evidence

User-provided 19-second screen recording and screenshots show one continuous held-click selection changing during manual scroll. One screenshot shows no highlighted text; subsequent screenshots show highlighting on different messages. The message bodies and timestamps are selected inconsistently, including gaps around “test 45.” The recording and screenshots need to be attached by the user after issue creation. No server logs were needed to establish this UI symptom, and none were reviewed.

Relevant source: MessagesTimeline.tsx and selectionActions.ts.

Related issues

No matching issue found in searches for chat text selection clearing or changing during scroll. Existing terminal-selection and mobile text-selection issues concern different surfaces.

Fix applied or workaround

None. Selecting and copying shorter spans without scrolling may avoid the trigger, but was not verified.

Filed by

Codex (GPT-5), via npx t3 triage.

Activity

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

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions