Deprecate the entire checkpoints v2 migrate command#1224
Merged
Conversation
The v1 → v2 checkpoint migration is no longer maintained. Replace the command with a stub that prints "v2 has been deprecated." and exits non-zero for any invocation, and remove the push-time hint that recommended running it. compactTranscriptForStartLine moves into attach.go (its only remaining caller), and the now-unused progressBar helper is dropped. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Entire-Checkpoint: 39052b57fe6c
Contributor
There was a problem hiding this comment.
Pull request overview
This PR deprecates the hidden v1-to-v2 checkpoint migration path by replacing the migrate implementation with a failing stub and removing push-time hints that recommended running it.
Changes:
- Replaced
entire migratewith a hidden, non-zero deprecation stub. - Removed the v2 migration hint from push flows and deleted the now-unused progress bar helper.
- Moved compact transcript generation helper into
attach.goand updated related references.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
cmd/entire/cli/strategy/push_v2.go |
Removes v2 migration hint calls after v2 push outcomes. |
cmd/entire/cli/strategy/push_common.go |
Deletes migration hint helpers and removes remaining hint calls. |
cmd/entire/cli/strategy/push_common_test.go |
Removes tests for deleted migration hint logic. |
cmd/entire/cli/progress.go |
Removes unused progress bar implementation. |
cmd/entire/cli/migrate.go |
Replaces migration implementation with deprecated stub command. |
cmd/entire/cli/migrate_test.go |
Deletes previous migration test suite. |
cmd/entire/cli/doctor.go |
Replaces removed migrate remote constant with origin. |
cmd/entire/cli/attach.go |
Adds compact transcript helper now used by attach flow. |
Adds TestMigrateCmd_DeprecationStub covering no-args, legacy --checkpoints v2, and unknown-flag invocations — each must hit the deprecation message and return a SilentError. Also lowercases and unpunctuates the wrapped error string so revive (error-strings) is satisfied; the user-facing stderr message is unchanged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Entire-Checkpoint: 39998bd31cf7
pfleidi
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
https://entire.io/gh/entireio/cli/trails/389
The v1 -> v2 checkpoint migration is no longer recommended. This replaces the v2 migration command with a stub that prints "Migration to checkpoints v2 has been halted for now." and exits non-zero for any invocation, and remove the push-time hint that recommended running it.
compactTranscriptForStartLinemoves into attach.go (its only remaining caller), and the now-unused progressBar helper is dropped.Note
Medium Risk
Changes runtime CLI behavior by turning the hidden
entire migrateflow into a hard-failing stub and removing push-time migration guidance; low code complexity but could impact users relying on migration/recovery workflows.Overview
Deprecates v2 checkpoint migration. Replaces the hidden
entire migrateimplementation with a stub that disables flag parsing, prints a deprecation message, and exits non-zero; the large v1→v2 migration code and its test suite are removed.Cleans up related UX and utilities. Removes the push-time hint that recommended running migration, drops the now-unused terminal
progressBarhelper, and movescompactTranscriptForStartLineintoattach.go(its remaining caller). Also updatesdoctor’s disconnected/maincheck to default to remoteorigin.Reviewed by Cursor Bugbot for commit 0baffbd. Configure here.