diff --git a/apps/web/app/components/chat-message.tsx b/apps/web/app/components/chat-message.tsx index b8b55e2028e..f7bcae520ce 100644 --- a/apps/web/app/components/chat-message.tsx +++ b/apps/web/app/components/chat-message.tsx @@ -118,6 +118,8 @@ function groupParts(parts: UIMessage["parts"]): MessageSegment[] { const statusLabels = [ "Preparing response...", "Optimizing session context...", + "Waiting for subagent results...", + "Waiting for subagents...", ]; const isStatus = statusLabels.some((l) => rp.text.startsWith(l), @@ -746,11 +748,6 @@ export const ChatMessage = memo(function ChatMessage({ message, isStreaming, onS ); } - // Find the last text segment index for streaming optimization - const lastTextIdx = isStreaming - ? segments.reduce((acc, s, i) => (s.type === "text" ? i : acc), -1) - : -1; - // Assistant: free-flowing text, left-aligned, NO bubble return (