Skip to content
Source
Sign inSign up
pingdotgg/t3code

Copy on an assistant reply copies only its last part when a steer arrives at the end of the turn #45585

ClosedDropje97(GitHub profile, opens in a new tab) opened this issue 1 comment

What happens

A Claude turn wrote its full answer. Meanwhile a scheduled task's message waited in the queue, and I turned it into a steer while the turn ran. The steer reached Claude only after that answer, since Claude Code passes mid-turn input at the next tool result or at the end of the turn. Claude continued the same turn: it started a background command and wrote one more sentence.

The timeline shows both texts as one reply, under one copy button. Clicking it copies only the last sentence. The answer above it has no copy button.

The steer chip is also drawn above both texts, though the first text was written before the steer reached Claude. Its item position (assigned when the steer was sent) precedes the answer's item. So the reply reads as if it all answers the steer.

Cause

The two texts are separate assistant messages in one run. deriveTerminalAssistantMessageIds (apps/web/src/components/chat/MessagesTimeline.logic.ts) gives the copy button only to the run's last assistant message, and AssistantCopyButton (TimelineAssistantRows.tsx) copies that message's text alone. The same on main. Any turn with text, then a tool call that is not drawn between the paragraphs, then more text gives the same result.

Expected

The button under a reply copies all of the run's assistant text shown as that reply, in order. Or each assistant message gets its own copy button. And a steer is placed where it reached the provider, not where it was sent.

Version

0.1.14-nightly.20261128.5385, web client, Claude provider.

Measured and written by Claude (Opus 5.5) in T3 Code; posted with the owner's approval.

  1. tanstack-source added labelsbug

  2. This is the same problem as #42052, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  3. juliusmarminge closed this

Sign in to join this conversation.