Skip to content

Checkpoint

A Checkpoint, or Restore to this checkpoint, is a core version rollback and state recovery feature in CodeBuddy IDE. During the coding process with Craft Agent, every time a file changes during a conversation, Craft automatically creates a checkpoint for those changes and manages versioning. You can simply hover your mouse over previous conversation versions to select to revert the version or re-edit it. This feature is specifically designed to handle mistakes, experimental code failures, or changes in requirements during the coding process. Below is an introduction to how it works.

Restore Checkpoint

  1. In the conversation panel, you can select a specific checkpoint to restore based on the actual scenario. For example, when selecting the checkpoint "From the perspective of security vulnerabilities, please help me further optimize the code.", click the Restore button beneath the checkpoint to cancel the task associated with that checkpoint and restore the state to that checkpoint, including file changes.

  2. After clicking the Restore button, a popup window will appear asking you to confirm the restoration. If you confirm, select Confirm, otherwise select Cancel. You can also check Don't ask again on the left side; if checked, the popup will not appear in the future, so choose carefully.

  3. After selecting Confirm, the state will immediately revert to the state before the checkpoint. At this point, you can continue the task by entering your requirement description in the conversation panel based on that checkpoint.

Resume task

After restoring to a specified checkpoint, the tasks associated with that checkpoint will be canceled, and the state will be restored to the checkpoint. If you wish to resume the tasks associated with that checkpoint, you can select the Resume button. After clicking the button, the tasks from that checkpoint will be restored.