feat: add button to delete checkpoints only (fixes #10801) #10803
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.
Related GitHub Issue
Closes: #10801
Roo Code Task Context (Optional)
This PR was created using Roo Code to implement the enhancement request.
Description
This PR adds a new "Delete Checkpoints" button to task items in the history view, allowing users to delete only the checkpoints for a task while preserving the task history. This addresses user feedback about wanting to free up storage space used by shadow git repositories without losing task context.
Key implementation details:
deleteTaskCheckpointsWithIdmessage type to WebviewMessage unionDeleteCheckpointsButtoncomponent with Shift+Click to skip confirmation (following existing UI patterns)DeleteCheckpointsDialogconfirmation dialog (matching DeleteTaskDialog pattern)Test Procedure
Alternative test:
Pre-Submission Checklist
Screenshots / Videos
N/A - UI components follow existing patterns (DeleteButton, DeleteTaskDialog)
Documentation Updates
Additional Notes
This is an attempt to address Issue #10801. The implementation follows @nh2 suggestion to update/remove checkpoint_saved entries from ui_messages.json when checkpoints are deleted.
Feedback and guidance are welcome!
Get in Touch
N/A (automated PR)
Important
Adds a feature to delete task checkpoints in the history view, including UI components, backend logic, and localization updates.
HistoryViewto delete only checkpoints, preserving task history.webviewMessageHandler.tsto handledeleteTaskCheckpointsWithIdmessage.DeleteCheckpointsButtonandDeleteCheckpointsDialogcomponents for UI interaction.TaskItemandTaskItemFooter.deleteTaskCheckpointsWithIdinClineProvider.tsto handle deletion logic.ui_messages.json.This description was created by
for 471c194. You can customize this summary. It will automatically update as commits are pushed.