feat(desktop): per-turn wall-clock duration badge in the transcript (salvage #84430) - #87245
Merged
Conversation
Each assistant reply now carries a small time badge below the message text showing how long its turn took (message.start -> message.complete), so users can gauge task latency at a glance without hovering. The duration is computed renderer-side from the per-session turnStartedAt timestamp the app already tracks and stamped onto the ChatMessage at completion (successful and failed turns alike). It is not persisted backend-side, so messages hydrated from history have no badge — matching how reasoning-block durations already behave. Also adds the assistant.thread.turnDuration i18n key across all five locale files.
Contributor
૮ >ﻌ< ა ci reviewran on 671eea3 — chore: map 807847218@qq.com -> Tommy00748 for attribution au
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Salvage of #84430 (@Tommy00748) onto current main: each settled assistant reply now shows a small "⏱ 38s" badge (message.start → completion), giving a glanceable per-turn latency signal — renderer-only, no backend changes.
Pairs with #86923: since the turn clock now arms at submit, the badge measures the full user-perceived wait including gateway-accept latency.
Changes
ChatMessage.durationSstamped at completion (completeAssistantMessagesettle paths +failAssistantMessage), rendered inAssistantFooter, carried throughmetadata.custom, added to theCOMPARED_FIELDSre-render contract,turnDurationi18n key in all 5 locales. Not persisted (renderer-memory, matching reasoning-block durations). Perf-safe: value set once at completion, referentially stable across the 30 Hz delta stream.completedAt/completeOpenTimelinePartstimeline fields alongside the newdurationS; dropped the PR'sMessageAgefooter component as redundant (main already rendersMessageTimelineTimestamp).Validation
Infographic