Repository navigation
fix(cli): after an upgrade, status and the reminder name only codegraph index - #3123
Merged
Merged
Conversation
…ph index `codegraph status` and the post-upgrade reminder both offered `codegraph sync` for an index an older engine built. Sync re-reads changed files only and never advances the extraction stamp, so it can't deliver what they promised. The reminder also offered `codegraph index -f`, but `index` is always a full rebuild and `-f` only allows a home or root folder. Both now name `codegraph index` alone. Validation: a new status case and the reworked reminder case fail on main and pass here (upgrade + status-during-rebuild: 99 of 99). Reimplements PR #1256 by @Adam0120. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
After an upgrade,
codegraph statusand the upgrade reminder now namecodegraph indexalone.Root cause
Both offered
codegraph syncfor an index an older engine built. Sync re-reads changed files only and never advances the extraction stamp, so it can't deliver what they promised. The reminder also offeredcodegraph index -f, butindexis always a full rebuild and-fonly allows a home or root folder.Fix
Text only: the
statushint andreindexAdvisory(). Sync's own behaviour is the sibling PR for #1842.The indexing guide on the site has the same
--forcemistake.site/waits for the release, so that fix is saved for release day and isn't in this PR.Validation
upgrade.test.ts+status-during-rebuild.test.ts: 99 of 99.owning-package.test.ts, pinned to feat(cli): expose test-file classification #1960 and fixed in its commit.Reimplements #1256 by @Adam0120
🤖 Generated with Claude Code