Skip to content

Commit 2702a4e

Browse files
committed
fix: reset isCondensing state when switching tasks
Fixes #6919 - Context condensing indicator no longer persists when switching between tasks. The isCondensing state is now properly reset in the useEffect hook that handles task changes.
1 parent f53fd39 commit 2702a4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
437437
setExpandedRows({})
438438
everVisibleMessagesTsRef.current.clear() // Clear for new task
439439
setCurrentFollowUpTs(null) // Clear follow-up answered state for new task
440+
setIsCondensing(false) // Reset condensing state when switching tasks
440441

441442
// Clear any pending auto-approval timeout from previous task
442443
if (autoApproveTimeoutRef.current) {

0 commit comments

Comments
 (0)