diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index e66bbb55be..823a438d97 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -1485,6 +1485,26 @@ const ChatViewComponent: React.ForwardRefRenderFunction { + if (messageOrGroup.ask === "followup") { + // First check if it's the current follow-up that was just answered + if (messageOrGroup.ts === currentFollowUpTs) { + return true + } + // For historical messages, check if there's a message after this follow-up + // If there is, it means the follow-up was answered + const messageIndex = modifiedMessages.findIndex((msg) => msg.ts === messageOrGroup.ts) + if (messageIndex !== -1 && messageIndex < modifiedMessages.length - 1) { + // There's at least one message after this follow-up, so it was answered + return true + } + } + return false + })() + return (