Repository navigation
fix(project): keep config.yaml true after reinstall, uninstall and fresh-clone installs - #860
Merged
Merged
Conversation
…esh-clone installs In project mode the committed config.yaml is what teammates install from, but it could disagree with what a machine actually has (#858): - `uninstall -p` and the dashboard's single-skill and tracked-repo removal left the skill's entry in config.yaml, so a later `install -p` brought it back. They now drop the entry and the lock pin through one shared config.ForgetProjectSkills, as the uninstall docs already promised. - Installing a skill again from another source or branch (after an uninstall, or over the copy with --force) updated only the gitignored .metadata.json. config.yaml kept the old source and skills.lock.json ended with the old source and the new commit. Installs from a named source (CLI install, search, dashboard) now compare the records from before and after the command and let the config entry follow the skills it actually reinstalled. Install from config never rewrites an entry from local records, so a teammate's edit survives on a machine that has not updated yet. - Reconcile removed every config entry that had no folder and no record. On a fresh clone nothing is installed yet, so `install <source> -p` deleted all the other declared skills. An entry now goes only when the skill was installed here and its folder is gone, when it was moved, or when a command removed it; `move` passes the old paths and `update --prune` cleans the config itself.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 11, 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.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
Closes #858
What and why
In project mode the committed
.skillshare/config.yamlis what teammates install from. Three gaps let it disagree with what a machine really has:uninstall -pand the dashboard's single-skill and tracked-repo removal kept the skill inconfig.yaml; the nextinstall -pbrought it backconfig.ForgetProjectSkills.metadata.jsongot the new source.config.yamlkept the old one, andskills.lock.jsonended with the old source and the new commitinstall <source> -pon a fresh clone deleted all other declared skillsHow the reinstall case is decided: installs from a named source (CLI
install,search, dashboard) compare the install records from before and after the command (config.ReconcileProjectInstall). Only a skill whose source, branch or tracked mode changed in between rewrites its config entry. Install from config (install -p) never rewrites an entry from local records, so a teammate's edit toconfig.yamlsurvives on a machine that has not updated yet.Because reconcile no longer treats "no folder, no record" as removed, the flows that remove or move a skill say so themselves:
movepasses the old paths (config.ReconcileProjectMove), andupdate --prunecleans the config in project mode.Tests
internal/config: config follows a reinstalled source; an untouched skill keeps its declared source;ForgetProjectSkillsdrops entries and pins (group folder, name-prefix neighbour, same-named agent entry kept); an entry not installed here is kept.tests/integration: the Project mode: reinstalling a skill from a new source keeps the old source in .skillshare/config.yaml #858 flow via uninstall and via--force(config and lockfile name only the new source); a named-source install on a fresh clone keeps the other declared skills; group uninstall now asserts the config.internal/server: dashboard reinstall from a new source; single-skill uninstall drops the config entry.make checkpasses; the wholetests/integrationsuite passes.--alluninstall, tracked repo,--dry-run,--json, trash restore, branch change, failed install, teammate-edited config, fresh clone,move, hand-deleted and hand-moved folders,update --all --prune.Not run: UI tests and website build beyond what
make checkcovers; no E2E runbook was added.Not covered
_prefix (repo_team, records in groupteam):uninstall _team -pdoes not dropteam/...config entries.update --prunecleaning the project config is verified by hand only.install -srecords for GitLab andfile://sources) is a separate bug.Checklist
make check) — for code changes