You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
check: update-status resolution is duplicated across the CLI and two dashboard handlers #444
internal/check exposes only leaf helpers (ParallelCheckURLs, FetchRemoteTreeHashesForRef, local checks). The actual status resolution — group by URL + branch → remote hash → all-match fast path → tree-hash slow path → per-skill status — is written out in three callers. The helpers are tested; the sequencing, where the bugs occur, is not testable without real repositories.
The two handlers share roughly 100 near-identical lines; the differences are mostly SSE event output. The CLI copy was confirmed to have the same structure but was not compared line by line.
efcc3e6 had to add branch handling to batch update, web check and web update separately.
Proposed change
internal/check owns the whole resolution ("given metadata entries, return each skill's status") and accepts a progress callback. The CLI progress bar and the SSE handler become adapters on that callback — two adapters already exist, so the seam is real. With the remote-hash source injected, the resolution can be table-tested with fake hashes.
Risks
The CLI and the server use different grouping key types (string vs urlBranchGroup); semantic equivalence needs confirming.
Lower change frequency than the uninstall and update flows.
Activity
test(check): skip the fake-git auth test on Windows
test(check): pin update-status resolution for the CLI and dashboard
refactor(check): resolve update status in internal/check
fix(check): run a sequential resolution on the caller's goroutine