mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Problem: - FCO missing last edited file (calculated at checkpoint creation before tools execute) - FCO disappears when tasks are aborted (state not preserved) - Manual user edits must remain protected during rollback (issue #4827) Solution: - Add immediate FCO updates after each file editing tool execution - Preserve FCO state during task abort and restore on resume - Maintain checkpoint timing BEFORE edits for rollback safety - Add final checkpoint on task completion to capture all changes Changes: - Add updateFCOAfterEdit helper to calculate and display changes without checkpoints - Update presentAssistantMessage to call FCO updates after file tools - Add final checkpoint in attemptCompletionTool - Preserve/restore FCO state in ClineProvider during abort/resume - Add test utilities for checkpoint functionality This separates FCO visibility (immediate updates) from checkpoint safety (before edits), solving both user experience issues while maintaining rollback protection. |
||
|---|---|---|
| .. | ||
| assistant-message | ||
| checkpoints | ||
| condense | ||
| config | ||
| context/context-management | ||
| context-tracking | ||
| diff | ||
| environment | ||
| ignore | ||
| mentions | ||
| message-queue | ||
| prompts | ||
| protect | ||
| sliding-window | ||
| task | ||
| task-persistence | ||
| tools | ||
| webview | ||