mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix: reset condensing state when switching tasks (#6922)
Previously, when users initiated context condensing and switched to another task before completion, the 'condensing context' indicator would persist on the new task. This fix ensures the condensing state is properly reset in the task switching effect, preventing the indicator from appearing incorrectly on different tasks.
This commit is contained in:
parent
48af73dba9
commit
e5d93f2bca
1 changed files with 3 additions and 0 deletions
|
|
@ -434,9 +434,12 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
}, [messages.length])
|
||||
|
||||
useEffect(() => {
|
||||
// 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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue