Skip to content

[Bug]: Triple-click selection stops at inline file-link chips on nightly #41573

Closed

Description

@Raghav-Kochhar

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a thread whose assistant message has an inline file-link chip in prose, for example The template (`app.yaml.example`) and two docs still say 5 fps. (inline code renders as a file chip when that file exists in the workspace).
  2. Triple-click the plain text on that line, for example on "and two docs" just after the chip.
  3. Look at what the triple-click selected.

Expected behavior

The whole line/paragraph is selected, including the file chip, like any other inline element on the line.

Actual behavior

The selection stops at the file chip. In the screenshot the triple-click landed after the chip: the highlight starts at "and", so The template (app.yaml.example) stays unselected and the chip is never part of the selection.

Impact

Minor bug or occasional failure. Copying or citing a line around a file reference needs a manual drag instead.

Version or commit

T3 Code (Nightly) nightly.20261123.5138, installed 2026-11-23.

Environment

Windows 11, T3 Code desktop app (Nightly) nightly.20261123.5138, Electron's bundled Chromium.

Logs or stack traces

None.

Screenshots, recordings, or supporting files

Not attached from the CLI (no repo write access). The reporter's screenshot shows the highlight starting immediately at "and" after the chip, with The template (app.yaml.example) left unselected.

Additional context

This is the same symptom as #32280, which was closed as completed after its fix made file chips inline-block with an inline icon and label. That CSS is in this build: server.asar contains .chat-markdown-file-link{display:inline-block;overflow-x:clip;text-overflow:ellipsis;white-space:nowrap} plus the > :is(svg,img) and > [data-slot=context-chip-label] rules, so the old inline-flex layout has not simply come back.

In a Playwright browser test against the pre-static-islands ChatMarkdown at 09a54f0 with that CSS applied, triple-clicking beside an inline-code file chip selected the whole line. The current main test "selects the whole line on triple-click beside a favicon link or a file chip" covers a Markdown link chip ([App.tsx](/tmp/project/src/App.tsx)), not an inline-code chip. A guess, unverified: the newer static-islands renderer changes the DOM around inline-code chips enough to reintroduce a selection boundary, so a regression test with an inline-code chip on the current renderer would be worthwhile.

Workaround

Drag-select the line instead of triple-clicking.

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