From 4fc99820e566db81a11739382bdf1e67e55f9eb9 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 3 Sep 2025 09:53:49 +0000 Subject: [PATCH] fix: prevent countdown timer from showing in history for answered follow-up questions - Check if follow-up question has been answered by looking for subsequent messages - For current session, use existing currentFollowUpTs check - For history, check if there are messages after the follow-up question - Fixes #7624 --- webview-ui/src/components/chat/ChatView.tsx | 22 ++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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 (