fix: skip untracked files in update safety check + add 26 missing SYSTEM_PATHS#195
fix: skip untracked files in update safety check + add 26 missing SYSTEM_PATHS#195SAY-5 wants to merge 1 commit intosantifer:mainfrom
Conversation
…TEM_PATHS Two bugs in update-system.mjs: 1. Safety check false positive (fixes santifer#169): `git status` entries with `??` (untracked) status code now skip the user-file check. Untracked files cannot be created by `git checkout FETCH_HEAD`, so they are always user-created local files. This unblocks updates for users who have cv.md or other untracked user-layer files. 2. SYSTEM_PATHS was stale: 26 paths added since v1.2.0 were missing from the updater, meaning `node update-system.mjs apply` silently skipped them. Added: 3 mode files (followup, patterns, interview-prep), 2 i18n mode dirs (fr/, ja/), 7 scripts (doctor, test-all, scan, analyze-patterns, check-liveness, liveness-core, followup-cadence), 2 config dirs (.opencode/, examples/), 5 community docs, 5 i18n READMEs, and 2 Nix files.
|
Confirmed reproducer here — hit both bugs today while updating from v1.1.0 → v1.3.0 on macOS Darwin 25.4.0 / Node v22. Bug 1 (cv.md false positive): Bug 2 (missing SYSTEM_PATHS): After the abort, the following v1.3.0 files were absent and had to be manually checked out from FETCH_HEAD: Your fix covers both exactly. The one-liner for Bug 1 is the right call — Would be great to see this merged before more users hit it on fresh v1.1.0 → v1.3.0 upgrades. |
The update safety check was flagging untracked files as uncommitted changes, blocking legitimate updates. Skips untracked files in the check and adds 26 missing entries to SYSTEM_PATHS.