@@ -594,6 +594,7 @@ type MessagesTimelineRowContent =
594594 message : ChatMessage ;
595595 projectedItem ?: OrchestrationV2ProjectedTurnItem ;
596596 showAssistantMeta : boolean ;
597+ suppressEmptyResponse ?: boolean ;
597598 showAssistantCopyButton : boolean ;
598599 assistantCopyStreaming : boolean ;
599600 assistantTurnDiffSummary ?: TurnDiffSummary | undefined ;
@@ -1520,6 +1521,12 @@ export function deriveMessagesTimelineRows(input: {
15201521 revealedMessageId ?: MessageId | null ;
15211522} ) : MessagesTimelineRow [ ] {
15221523 const timelineEntries = timelineRowEntries ( input ) ;
1524+ const embeddedResultRunIds = new Set < RunId > ( ) ;
1525+ for ( const entry of timelineEntries ) {
1526+ if ( ( entry . kind === "html-render" || entry . kind === "mcp-app" ) && entry . runId !== null ) {
1527+ embeddedResultRunIds . add ( entry . runId ) ;
1528+ }
1529+ }
15231530 const isPendingApproval = ( entry : WorkLogEntry ) => {
15241531 const item = entry . projectedItem ?. item ;
15251532 return (
@@ -2164,6 +2171,10 @@ export function deriveMessagesTimelineRows(input: {
21642171 ? { }
21652172 : { projectedItem : timelineEntry . projectedItem } ) ,
21662173 showAssistantMeta,
2174+ suppressEmptyResponse :
2175+ timelineEntry . message . role === "assistant" &&
2176+ timelineEntry . message . runId != null &&
2177+ embeddedResultRunIds . has ( timelineEntry . message . runId ) ,
21672178 showAssistantCopyButton : showAssistantMeta ,
21682179 assistantCopyStreaming : timelineEntry . message . streaming || assistantResponseStillInProgress ,
21692180 assistantTurnDiffSummary :
@@ -2633,6 +2644,7 @@ function isRowUnchanged(a: MessagesTimelineRow, b: MessagesTimelineRow): boolean
26332644 a . message === bm . message &&
26342645 a . projectedItem === bm . projectedItem &&
26352646 a . showAssistantMeta === bm . showAssistantMeta &&
2647+ a . suppressEmptyResponse === bm . suppressEmptyResponse &&
26362648 a . showAssistantCopyButton === bm . showAssistantCopyButton &&
26372649 a . assistantCopyStreaming === bm . assistantCopyStreaming &&
26382650 a . assistantTurnDiffSummary === bm . assistantTurnDiffSummary &&
0 commit comments