Repository navigation
fix(#1409): update records a full install in the manifest - #1477
Merged
Merged
Conversation
update writes every new template file, hooks and settings included, but left the manifest's groups field as it was. After an update, a skills-only manifest still said "skills" and drift outside .claude/skills/ read 0. update now calls updateManifest({ full: true }), the same as a full sync.
Claude-Session: https://claude.ai/code/session_01Fsmq5Ys6sEojxXZ9d7TheM
Entire-Checkpoint: becaef034883
3 tasks
This was referenced Oct 16, 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.
Summary
Follow-up to #1409 (PR #1467). This covers the gap that #1409's spec listed as OQ-3, and the owner ruled to fix it now rather than file it.
updatewrites every new template file, hooks, agents and.claude/settings.jsonincluded. But it calledupdateManifest()with no options, so a skills-only manifest keptgroups: ["skills"]. After a routineupdate, the drift check stayed scoped to.claude/skills/and reported 0 for the hooks and settings now on disk.src/commands/update.ts:updatenow callsupdateManifest({ full: true }), which is what a fullsyncalready does. The manifest then records a full install.docs/adr/0015-install-scope-recorded-in-manifest.mdand the fix(sync): a --only skills install warns 'N file(s) differ' forever, and the suggested sync --force overwrites the repo's constitution #1409 CHANGELOG entry now sayupdateremoves the field.updatethat respectsgroupsand stays skills-only would be a new feature. fix(sync): a --only skills install warns 'N file(s) differ' forever, and the suggested sync --force overwrites the repo's constitution #1409 madeupdate --onlya Non-Goal.updateManifesthas two callers:sync.ts:827(already scoped) andupdate.ts:373(this fix).Tests
sync.install-scope.integration.test.tsgains one case. It does a realinit --manifest-onlyandsync --only skillsin a temp repo, then runsupdate --yes. It checks that hooks are installed,groupsis gone, andgetInstallScopereadsfull.Targeted run:
sync.install-scope.integration,update,update.integration,sync,manifest.trailing-newlineandunmanaged-skill-safety.integrationgave 88/88 passed. Full-suite evidence is CI's.Mutation verification
Mutation-verified: AC-1 — reverted the call to
updateManifest()with no options;src/commands/sync.install-scope.integration.test.ts > #1409 skills-only install scope > an update on a skills-only install records a full installfailed (1 failed, 30 passed across the three update/scope files); restored.🤖 Generated with Claude Code