Roo-Code/src/core
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
..
assistant-message fix: remove search_and_replace tool from codebase (#8892) 2025-10-30 22:51:29 -04:00
checkpoints Fix checkpoints test (#8803) 2025-10-24 10:18:19 -04:00
condense Enable browser-use tool for all image-capable models (#8121) 2025-10-21 22:23:42 -04:00
config fix(export): exclude max tokens field for models that don't support it (#8464) 2025-10-24 16:20:31 -04:00
context/context-management Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
context-tracking fix: use safeWriteJson for all JSON file writes with race condition fix (#4733) 2025-06-25 16:05:02 -04:00
diff fix: preserve trailing newlines in stripLineNumbers for apply_diff (#8227) 2025-10-24 10:16:00 -04:00
environment feat: add settings to configure time and cost in system prompt (#8451) 2025-10-27 18:40:16 -04:00
ignore Follow symlinks in rooignore checks (#7405) 2025-08-26 10:12:20 -04:00
mentions fix: identify mcp and slash command config path in multiple folder workspace (#6904) 2025-09-05 14:52:48 -04:00
message-queue Move message queue to the extension host (#7604) 2025-09-02 19:12:18 -07:00
prompts fix: remove search_and_replace tool from codebase (#8892) 2025-10-30 22:51:29 -04:00
protect Mark code-workspace files as protected (#7403) 2025-08-26 00:09:14 -04:00
sliding-window Feat: Adding Gemini tools - URL Context and Grounding with Google Search (#5959) 2025-07-27 14:34:55 -04:00
task Revert "fix: prevent UI flicker and enable resumption after task cancellation" (#9032) 2025-11-04 15:29:14 -05:00
task-persistence Remove GPT‑5 instructions/reasoning_summary from UI message metadata to prevent ui_messages.json bloat (#8756) 2025-10-21 14:55:29 -06:00
tools Terminal settings: Cleanup terminal settings tab and change default terminal to inline (#8342) 2025-11-03 10:38:09 -05:00
webview fix: eliminate UI flicker during task cancellation (#9037) 2025-11-04 21:40:39 -05:00