Repository navigation
fix(windows): keep generated skills and snapshots LF - #25972
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change adds Git attributes for LF line endings on generated skill JSON files and Vitest snapshot files. A regression test checks line endings after staging and checkout with different Git autocrlf settings. A host setup test now provides a resolveLaunchArgs callback that returns an empty array. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk is established for the Windows line-ending change. Complete the planned CI checks before merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Out of Scope Changes checkExplanation The change to
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Pin byte-compared skill artifacts and Vitest snapshots to LF on every checkout. Verify real Git autocrlf checkout conversion while preserving Windows script and terminal transcript policies. Co-authored-by: Shuhei Konno <[email protected]>
ddd4aa4 to
f15c4f7
Compare
ELI5
A fresh Windows checkout should pass the generated-file checks without first rewriting files.
What Changed
Pin generated skill JSON and Vitest snapshots to LF in
.gitattributes. Add a real Git checkout test withcore.autocrlf=true, including checks that Windows scripts and captured terminal transcripts retain their existing line-ending rules.Carries forward Shuhei Konno’s work from #19291, with his co-author credit retained. Current main already pins TypeScript source to LF, so this replacement includes only the remaining rules. The regression fixture also passes the Windows command-spawn ratchet without adding exemptions.
Why
The skill verifier compares exact text, while Git for Windows normally writes CRLF. Pinning the generated files fixes checkout bytes at the source instead of relaxing verification or requiring each contributor to change Git settings.
Linked Issue
Fixes #14479
Visual Proof
N/A — checkout policy and test coverage; no application UI change.
Testing
Actual Git autocrlf checkout: main fails all three generated skill JSON checks; replacement passes. Nine focused suites pass on macOS (86 tests, 32 conditional skips), including the Windows command-spawn ratchet. Generated skill manifests, bundled skill guides, formatting, root lint, and changed-code quality pass. On native Windows (
awin), the real checkout regression and command-spawn ratchet pass (4 tests); freshly checked-out generated JSON also passes the manifest verifier. Existing worktrees may need to re-checkout previously converted files once after the attribute update. Rebased onto current main; its existing fixture fixes make the previous extra repair unnecessary, so the final diff contains only the LF rules and checkout regression. CI covers the full suite.Review
Merge risk: low. No application runtime, SSH execution, wire protocol, or folder-workspace behavior changes.
Agent skill upstream boundary
Checklist