Skip to content

Minimap hit strip covers the Copy message button when the chat lane is shifted left #42858

Done

Description

@SimonLiu423

What happened

Moving the pointer onto an assistant message's Copy message button often lands on the timeline minimap instead. The action row fades out, the minimap preview card opens over the message, and the click scrolls the thread to an earlier turn instead of copying.

It happens whenever the chat lane is pushed left of center, for example by the floating details card, a laptop-width window, a wider sidebar, or the wide chat width. That is the default layout on many screens.

Diagnosis

Reproduced in headless Chromium against the real apps/web app with the repo's fakeEnvironment fixture (threadWithHistory), comparing builds before and after #29546.

Two parts:

  1. The gutter is measured as if the lane were centered. resolveTimelineSideGutter (MessagesTimeline.logic.ts) uses (viewportWidth - contentWidth) / 2. But ChatCanvas (chatCanvasLayout.ts) shifts the lane left to clear the floating details card. At 1280×800 it reports a gutter of 186px when the real left gutter is the 48px floor, so the minimap uses its wide hit strip in a gutter far too narrow for it.
  2. feat(web): hide and restore the sidebar by dragging #29546 widened the overlap. It moved TIMELINE_MINIMAP_HIT_STRIP_LEFT from 12 to 32 and kept the max width at 40. The strip's right edge moved from +52px to +72px from the lane's container edge. With a 48px gutter, the Copy button spans +52..+76px:
    • before: the strip ends exactly at the button's left edge (0px overlap)
    • after: the strip covers 20px of the 24px button, center included, leaving a 4px clickable sliver

Why the button vanishes: TimelineMinimap is a z-40 overlay outside .group/assistant, and the action row is opacity-0 group-hover/assistant:opacity-100 (TimelineAssistantRows.tsx). Once the pointer is over the strip, the message loses :hover, the row fades out, and elementFromPoint at the Copy button's center returns the minimap's "Jump to message" button.

Possible fix: measure the real left gutter (laneRect.left - viewportRect.left) in measureTimelineGutter, and keep the strip's right edge a few px short of the lane.

Steps to reproduce

  1. Open the desktop app at a laptop-size window (about 1280px wide), with the sidebar open and the default chat width. Or use a wider window with the details card open.
  2. Open a thread with enough turns that the minimap appears.
  3. Hover an assistant message so its action row (copy / fork / rewind / time) shows.
  4. Move the pointer onto the Copy message button and click.

Expected: the message is copied.
Actual: the action row disappears, the minimap preview opens, and the click jumps to an earlier turn.

Version

0.1.12-nightly.20261125.5230 (desktop, macOS). Introduced by #29546 (801b32f3a). The parent commit 7e0d1cb9ba doesn't reproduce.

Environment

  • Surface: T3 Code Desktop (nightly), against its local server, with the details card open
  • OS: macOS 27.0 (Darwin 27.0.0), arm64
  • Repro: headless Chromium, 2x DPR, apps/web with the fake environment fixture

Evidence

Hit strip vs Copy button (CSS px; a negative gap means overlap):

Layout Before #29546 After #29546 Click at Copy center (after)
1440×900, 256px sidebar, comfortable +76 +56 Copy
1280×800, 256px sidebar, comfortable 0 −20 Jump to message
1440×900, 340px sidebar, comfortable 0 −20 Jump to message
1440×900, 256px sidebar, wide chat 0 −20 Jump to message
1440×900, Changes panel open +4 +4 Copy

GIFs (1280×800, fake thread, same two pointer paths in each):

triage-after triage-before

Related issues

Fix applied or workaround

None applied. A wider window (1440px with the default 256px sidebar) leaves a 56px gap. A narrower sidebar or the comfortable chat width may also help.

Filed by

Claude Opus 5.5 (claude-opus-5-5) via Claude Code, running the T3 Code triage playbook. The repro measurements and GIFs were produced by a Gemini 4 Neon agent thread in T3 Code.

Activity

  1. added
    via-triage
    on Nov 25, 2026
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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions