Skip to content

feat(cli): add /checkpoint enable and disable subcommand#4983

Merged
marius-kilocode merged 2 commits intomainfrom
4696-how-to-close-checkpoints
Jan 13, 2026
Merged

feat(cli): add /checkpoint enable and disable subcommand#4983
marius-kilocode merged 2 commits intomainfrom
4696-how-to-close-checkpoints

Conversation

@marius-kilocode
Copy link
Collaborator

Summary

Adds /checkpoint enable and /checkpoint disable subcommands to the CLI to allow users to toggle checkpoint creation and save disk space.

Changes

  • Added handleEnable() and handleDisable() functions that send updateSettings messages to the extension
  • Updated subcommand provider to include enable and disable options in autocomplete
  • Updated command metadata (usage, examples, help text)
  • Added comprehensive tests for the new functionality

Usage

# Disable checkpoint creation to save disk space
/checkpoint disable

# Re-enable checkpoint creation
/checkpoint enable

When disabling checkpoints, users are informed that existing checkpoints at ~/.kilocode/cli/global/tasks/*/checkpoints/ can be manually deleted to free disk space.

Closes #4696

@changeset-bot
Copy link

changeset-bot bot commented Jan 13, 2026

🦋 Changeset detected

Latest commit: efcab4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kilocode/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Jan 13, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

This PR adds /checkpoint enable and /checkpoint disable subcommands to the CLI, allowing users to toggle checkpoint creation and save disk space. The implementation is clean and well-tested.

Highlights

  • Clean implementation of handleEnable() and handleDisable() functions
  • Proper error handling with try/catch blocks
  • Platform-aware path display for Windows vs Unix
  • Comprehensive test coverage for all new functionality
  • Consistent with existing command patterns
Files Reviewed (3 files)
  • .changeset/checkpoint-enable-disable.md - Changeset for the patch
  • cli/src/commands/checkpoint.ts - Implementation of enable/disable subcommands
  • cli/src/commands/__tests__/checkpoint.test.ts - Test coverage for new functionality

@marius-kilocode marius-kilocode requested a review from a team January 13, 2026 12:59
@marius-kilocode marius-kilocode merged commit 82ef9b0 into main Jan 13, 2026
12 checks passed
@marius-kilocode marius-kilocode deleted the 4696-how-to-close-checkpoints branch January 13, 2026 13:26
@github-actions github-actions bot mentioned this pull request Jan 13, 2026
@hellosfs-bot
Copy link

well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to close checkpoints

3 participants

Comments