Repository navigation
Conversation
…swer-meta-row Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…swer-meta-row # Conflicts: # apps/mobile/src/features/threads/ThreadFeed.tsx
Fixes #42052
Problem
When a run keeps an earlier assistant reply visible alongside a later reply in the same run (for example a
final_answerreply before a steer or wake), only the run's last assistant message getsshowAssistantMeta. The kept earlier reply renders with no Copy/Fork/Reply/timestamp row even on hover, so clicking Copy under the turn copies only the final steer reply.Change
apps/web/src/components/chat/MessagesTimeline.logic.ts):showAssistantMeta(andshowAssistantCopyButton) for kept replies inretainedAssistantReplyIdsin addition toterminalAssistantMessageIds, once the run is no longer active and the message is not streaming.attachTrailingToolGroupsToAssistantscoped toterminalAssistantMessageIdsso intervening work rows in an expanded run do not detach an earlier kept reply's meta row.attachCreatedThreadSummarieswithindex === terminalIndexes.get(row.message.runId)so a run'ssummary:*resource cards attach once after the terminal reply instead of duplicating after earlier kept replies.apps/mobile/src/lib/threadActivity.ts,apps/mobile/src/features/threads/ThreadFeed.tsx):deriveAssistantMetaMessageIds(feed)combining each run's terminal assistant message withfinalAnswerIds(feed), and use it for bothshowAssistantMetaandLegendListgetItemType.Verification
main) inMessagesTimeline.logic.test.tsandapps/mobile/src/lib/threadActivity.test.ts, then verified all 187 unit tests pass:vp test run apps/web/src/components/chat/MessagesTimeline.logic.test.ts apps/web/src/components/chat/MessagesTimeline.active-tools.test.ts apps/mobile/src/lib/threadActivity.test.tsvp fmt --checkandvp lint --report-unused-disable-directiveson all changed files (0 warnings, 0 errors).vp run --filter @t3tools/web --filter @t3tools/mobile typecheck(2/2 passed).knip --workspace apps/web --exports(0 issues).