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
self-update backups accumulate without bound (.wpm/backup = 61.8 MB) #1208
wpm update winuxcmd writes a fresh winuxcmd-before-update-<pid>.exe on every run (apply_update → unique_update_backup_path), including runs that end up reinstalling the same version. Nothing ever prunes them: wpm clean covers cache and staging only.
Related, on the same machine: the niubash install directory accumulates its own copies (niu.exe.bak-20261014, niu.exe.old-shposix, niu.exe.old2, niu.exe.prev, niu.exe.prev2 = 54.5 MB), which suggests the pattern is systemic rather than specific to wpm.
Why it matters
Not latency, but a silent multi-hundred-MB tax on every user, growing with each update, in a directory no tool surfaces. It also makes "which build am I actually running" harder to answer, since the directory is full of plausible images (this is how the stale-yes.exe investigation got confusing).
Suggested fix
Keep the newest one or two backups and prune older ones at the end of a successful update (unique_update_backup_path already knows the filename shape, so pruning is a sorted glob).
Include backup in wpm clean (either as a third target or folded into clean all), documenting that it removes the rollback copy.
Report the reclaimed bytes in the update summary, the way wpm clean already does.
Acceptance
Ten forced updates of the same version leave at most two backup files.
wpm clean all removes the backups and says how much it freed.
The rollback path still has a usable backup after every update (a test that forces a failed swap and checks the restore).
Activity
fix(wpm): bound the rollback copies and let `wpm clean` reclaim them
fix(wpm): bound the rollback copies and let `wpm clean` reclaim them
Merge pull request #1226 from unixwin/fix/wpm-lifecycle-acceptance-tests