Roo-Code/src/core/webview
Daniel e25b4e62d1
fix: eliminate UI flicker during task cancellation (#9037)
* fix: eliminate UI flicker during task cancellation

- Modify ClineProvider.createTaskWithHistoryItem() to detect when rehydrating current task
- Implement in-place task replacement to avoid empty stack state that causes UI flicker
- Add comprehensive unit tests for flicker-free cancel behavior
- Maintain backward compatibility and proper event listener cleanup

Fixes the jarring navigation to home view when cancelling tasks

* fix: ensure proper garbage collection of old task during flicker-free rehydration

- Call abortTask(true) on old task before replacement to stop processes and mark as abandoned
- This ensures proper cleanup and prevents memory leaks during task cancellation
- Add test verification for abortTask cleanup
2025-11-04 21:40:39 -05:00
..
__tests__ fix: eliminate UI flicker during task cancellation (#9037) 2025-11-04 21:40:39 -05:00
checkpointRestoreHandler.ts Edit/Delete User Message (#7447) 2025-09-05 14:50:18 -04:00
ClineProvider.ts fix: eliminate UI flicker during task cancellation (#9037) 2025-11-04 21:40:39 -05:00
generateSystemPrompt.ts Enable browser-use tool for all image-capable models (#8121) 2025-10-21 22:23:42 -04:00
getNonce.ts Refactor out of utils 2024-09-24 11:36:37 -04:00
getUri.ts Refactor out of utils 2024-09-24 11:36:37 -04:00
messageEnhancer.ts feat: Add Task History Context to Prompt Enhancement (#6343) 2025-07-30 16:54:33 -04:00
webviewMessageHandler.ts Revert "fix: prevent UI flicker and enable resumption after task cancellation" (#9032) 2025-11-04 15:29:14 -05:00