diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 9b8c96dea1..c88da3c8cb 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -434,9 +434,12 @@ const ChatViewComponent: React.ForwardRefRenderFunction { + // Reset UI states setExpandedRows({}) everVisibleMessagesTsRef.current.clear() // Clear for new task setCurrentFollowUpTs(null) // Clear follow-up answered state for new task + setIsCondensing(false) // Reset condensing state when switching tasks + // Note: sendingDisabled is not reset here as it's managed by message effects // Clear any pending auto-approval timeout from previous task if (autoApproveTimeoutRef.current) {