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.
This commit is contained in:
Roo Code 2025-08-11 05:02:03 +00:00
parent f53fd39014
commit 2702a4e4f5

View file

@ -437,6 +437,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
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
// Clear any pending auto-approval timeout from previous task
if (autoApproveTimeoutRef.current) {