Fix #5173: Save checkpoints before tool execution instead of after #5251
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes issue #5173 where checkpoints functionality disappeared in Roo Code version 3.20.1.
Problem
The checkpoint system was saving checkpoints AFTER tool execution instead of BEFORE, which meant:
Solution
write_to_file,apply_diff,insert_content,search_and_replaceChanges
src/core/assistant-message/presentAssistantMessage.tsTesting
Impact
This restores the checkpoint functionality that users relied on in version 3.19.6, allowing them to:
Closes #5173
Important
Move checkpoint saving to occur before file-modifying tools in
presentAssistantMessage, restoring expected functionality for version comparison and rollback.presentAssistantMessage.write_to_file,apply_diff,insert_content,search_and_replace.This description was created by
for 5a9c9f0. You can customize this summary. It will automatically update as commits are pushed.