Repository navigation
Description
What happened
While a Turn is live, the durable local copy of the just-sent user message can render twice, and the transient copy ignores the transcript reading measure:
-
Duplicate row.
ChatViewroutes tail-turn transients into the live Turn only while the Turn has no user row yet (inlineTransientMessagesinpackages/ui/src/chat-view.tsx). Once the transcript receives the Turn — which renders the admitted message as its own user bubble — the same local copy is excluded from the inline slot, but the tail renderer draws everything that is "not inline":{transientMessages.filter( (message) => !inlineTransientMessageIds.has(message.id), ).map((message) => ( <TransientUserMessage key={message.id} message={message} /> ))}
The result: the same text appears as the Turn's settled user bubble and again below the running status with a delivery chip (
Host accepted/Host 已接受) until the local row is reconciled away. Screenshot from a live session (zh-CN locale): the narrow bubble inside the Turn and the full-width transient below the spinner carry identical text. -
No reading measure. Both render sites that place
<TransientUserMessage>directly underChatMessageList(the transcript tail and the empty-session optimistic path) skip the wrapper that owns the measure:max-width: var(--maka-reading-measure); margin: 0 autolives on.maka-turn(apps/desktop/src/renderer/maka-tokens.css, introduced by fix(desktop): give the chat surface one reading measure #3997). Without it the bubble stretches across the full window width, while the identical component inside a Turn wraps at the reading measure.
How to reproduce
- Send a message in a session whose Turn is already running (steering/follow-up), or send while the previous Turn is streaming.
- When the transcript receives the live Turn, observe the message twice: once as the Turn's user bubble, once at the tail with the delivery chip.
- Make the text wider than the reading measure: the tail copy spans the whole window instead of wrapping at the transcript measure.
Expected
- A transient whose message id the transcript already renders as a Turn user row (
turn.user.id, or ausertimeline item whosemessageIdmatches) is not rendered a second time — the existing guard covers only the inline slot, not the tail. - Transient rows rendered outside a Turn respect the same reading measure as Turn content, e.g. via the same
.maka-turnwrapper the live-status placeholder already uses.
Environment
- Surface: Desktop transcript (
packages/ui/src/chat-view.tsx,packages/ui/src/chat-turn.tsx) - Related: fix(desktop): give the chat surface one reading measure #3997 (reading measure), feat(desktop): clarify message delivery states and failure recovery #5010 / fix(desktop): clarify delivery states and recover failed messages #5058 (delivery states)
Activity
UncertaintyDeterminesYou4ndMe commentedon Sep 11, 2026
take
fix(ui): retire duplicated host-accepted transient and keep tail rows…
fix(ui): retire duplicated host-accepted transient and keep tail rows…
fix(ui): retire duplicated host-accepted transient and keep tail rows…