Repository navigation
fix: keep a package version installed when its folder is hidden - #962
Conversation
Reading the packages folder skipped folders with the hidden flag, which a version folder synced through iCloud Drive can carry. Settings then offered that version again and failed with "already installed", and uninstalling the last visible version removed the hidden one and its install record. Only names starting with a dot are skipped now. Closes #961
Before and after
203 unchanged screens
Visual review: 203 screens, none changed. |
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
## [0.20.0](v0.19.0...v0.20.0) (2026-11-29) ### Features * animate widgets that a profile shows or hides ([#948](#948)) by @M4n0x ([eec8544](eec8544)), closes [#947](#947) [#947](#947) * log quit causes and show unexpected quits in Status ([#953](#953)) by @M4n0x ([ea5a64e](ea5a64e)), closes [#952](#952) ### Bug Fixes * choose a submenu item opened from the App menus tray ([#944](#944)) by @MaHofseth ([add49b0](add49b0)), closes [#942](#942) * draw borders in whole pixels so they keep every edge on 1x screens ([#934](#934)) by @M4n0x ([8590fcd](8590fcd)), closes [#933](#933) [#933](#933) * keep a package version installed when its folder is hidden ([#962](#962)) by @M4n0x ([2d97d15](2d97d15)), closes [#961](#961) * keep the Sound details open and smooth when picking a device ([#931](#931)) by @M4n0x ([df96453](df96453)), closes [#928](#928) [#928](#928) * keep windows clear of the bar after a double-click fills them ([#936](#936)) by @M4n0x ([c1478d1](c1478d1)), closes [#935](#935) [#935](#935) * leave the keyboard with the app while StableBar shows its menus ([#943](#943)) by @MaHofseth ([abc1c4f](abc1c4f)), closes [#941](#941) * play an app's first sound at its mixer volume ([#899](#899)) by @M4n0x ([2c38350](2c38350)), closes [#897](#897) [#897](#897) * show a turned-off widget's last output when it comes back ([#950](#950)) by @M4n0x ([6776fcb](6776fcb)), closes [#949](#949) [#949](#949) * show Countdown and Join in Settings after picking it ([#940](#940)) by @MaHofseth ([6ecaa72](6ecaa72)) * stop offering a package update that is already installed ([#956](#956)) by @M4n0x ([4592ebc](4592ebc))
|
🎉 This PR is included in version 0.20.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Problem
A package version folder with the macOS hidden flag dropped out of the installed list. Settings then kept offering that version as an update, and Update failed with "Package ai-usage 1.5.1 is already installed. Choose a new version to replace it", even with #956. Uninstalling the last visible version of that package also removed the hidden one and its install record, though the configuration still selected it.
On a configuration synced through iCloud Drive, the two newest Store installs (agent-status 1.0.5, ai-usage 1.5.1) had the flag. Closes #961.
Changes
WidgetPackageStoreread the packages folder with.skipsHiddenFiles, which skips names starting with a dot and also anything with the hidden flag. Its reads now go through one helper,contents(of:), which skips only names starting with a dot: the install record.source.json, the.install-<UUID>staging folder,.DS_Store.list(),records(),installedVersions(id:)andreleaseIfEmpty(id:).Where the flag comes from is still open (see #961). This makes the bar correct whatever sets it.
Not changed:
PackageSourceBuilderreads a source repository, not the configuration folder.ThemeCatalogalso skips hidden files in the themes folder. That's a separate folder and is noted in #961.Testing
HiddenPackageVersionTests(Swift Testing). All three ran before the fix too: the first two failed, the third passed:aHiddenVersionIsInstalledAndOffersNoUpdate: with note 2 hidden beside note 1, it's listed and no update is offered. Pressing Update leaves no error.uninstallingTheLastVisibleVersionKeepsAHiddenOne: before the fix, the hidden version and its record were deleted.namesStartingWithADotAreNotVersions: a leftover.install-…folder and.DS_Storefiles still aren't listed.--filter "Package|Widget(Add|Setup)|LinkedThemeCard|ModuleConfiguration|ThemeGallery|ICloudSync|Uninstall"): 255 Swift Testing and 129 XCTest tests pass.scripts/check.sh --quickand commitlint pass.chflags hidden. The 0.20.0 beta build 1765 listed[]with--packages, and--install-packagefailed with "already installed". This branch's build listsagent-status 1.0.5.Merging
One commit; any merge method works.
Claude Opus 5.5 via Claude Code