Fix copilot setup when skills install fails#1783
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/4eae6f6e-af38-472f-b7b4-671eda64b9b3 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
…kflow Instead of failing the step when skills-lock.json is out of date: - Emit a warning annotation - Delete .agents/skills directory (stale external skills) - Revert all working tree changes - Continue without failing Also add GIT_CONFIG_* env vars for reproducible hash computation. Resolves #1779 Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/4eae6f6e-af38-472f-b7b4-671eda64b9b3 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix copilot setup when skills install fails
Fix copilot setup when skills install fails
Apr 3, 2026
Copilot stopped work on behalf of
nathanjmcdougall due to an error
April 3, 2026 20:39
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
nathanjmcdougall
approved these changes
Apr 3, 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.
When
skills-lock.jsonis out of date,npx skills experimental_installmutates the lockfile, andgit diff --exit-codefails the entire setup step. This blocks Copilot from working at all, when it should degrade gracefully..agents/skills(stale external skills), revert all changes, and emit a::warning::annotation. Local skills (tracked in git) are restored bygit checkout .; gitignored external skills stay removed.GIT_CONFIG_*env vars: Setcore.autocrlf=falseper theusethis-skills-external-installskill docs to produce reproducible hashes, reducing false lockfile diffs from the skills CLI bug.