Repository navigation
Description
What happens
With the configuration synced through iCloud Drive (Settings → General → Configuration file → Sync with iCloud), the bar uses agent-status 1.0.5 and ai-usage 1.5.1, but Settings keeps offering them as updates. Pressing Update fails:
Package ai-usage 1.5.1 is already installed. Choose a new version to replace it.
Package agent-status 1.0.5 is already installed. Choose a new version to replace it.
The offer never goes away, also on a build with #956.
Steps to reproduce
- Install a Store package, such as
StableBar --config <scratch>/config.json --install-package <folder of ai-usage 1.5.1>. - Set the macOS hidden flag on its version folder:
chflags hidden <scratch>/packages/ai-usage/1.5.1. StableBar --config <scratch>/config.json --packagesno longer lists ai-usage 1.5.1, though the folder is there and--inspect-packagereads it.- With an older version installed and 1.5.1 in the Store, Settings offers Update to 1.5.1, and pressing it fails as above.
Expected
A version folder is installed whatever its Finder visibility: it's listed, no update to it is offered, and nothing removes it as if it were missing.
Environment
StableBar 0.20.0-beta.20261128232559.1765 (build 1765), macOS 27.2.1, MacBook Pro M1 Pro. The configuration folder is synced with iCloud and shared by two Macs.
Evidence
ls -lO ~/.config/stablebar/packages/*/ shows hidden on the two newest Store installs only:
agent-status/:
drwxr-xr-x@ 7 user staff - 224 Nov 17 10:18 1.0.4
drwxr-xr-x@ 7 user staff hidden 224 Nov 29 09:05 1.0.5
ai-usage/:
drwx------@ 7 user staff - 224 Nov 28 00:05 1.5.0
drwxr-xr-x@ 7 user staff hidden 224 Nov 28 00:57 1.5.1
- The running bar loads
packages/ai-usage/1.5.1/config.json(its--queryorigins), and--inspect-packagereads both folders. --packageslists agent-status only up to 1.0.4 and ai-usage only up to 1.5.0.- Reproduced with the build 1765 binary in a local scratch folder. After
chflags hiddenonagent-status/1.0.5,--packageslists nothing,--inspect-packagestill reads the folder, and--install-packageon the same version fails with the message above.
Where the flag comes from is still open. StableBar never sets it, and these come out without it:
- The Store archives for both versions. Their root entry is a plain
drwxr-xr-x, with no AppleDouble or flags. - An install into a local folder.
- 21 command-line installs into a scratch folder in iCloud Drive, watched for 4 minutes.
Diagnosis
WidgetPackageStore (Sources/StableBar/Packages/WidgetPackage.swift) reads the packages folder with contentsOfDirectory(..., options: .skipsHiddenFiles). That skips dot names and also anything with the hidden flag (UF_HIDDEN, URLResourceValues.isHidden):
list()leaves the version out, soPackageLibrary.installedlacks it.PackageLibrary.update(for:)then offers it.- After fix: stop offering a package update that is already installed #956's reread,
applyUpdatestill finds it missing (isInstalled) and callsinstall, which finds the folder there and throws.alreadyInstalled. releaseIfEmpty(id:)reads the same way. Uninstalling the last visible version would then removepackages/<id>, the hidden version and its install record included, though the configuration still selects that version.records()andinstalledVersions(id:)read the same way.
Only dot names (.source.json, the .install-<UUID> staging folder, .DS_Store) need skipping there.
Related
- Settings keeps offering a package update that is already installed #955 / fix: stop offering a package update that is already installed #956 fixed the same message for a version installed after Settings read the list. This is a different cause: the version is never in the list.
- Sync the configuration across Macs with iCloud #700 / feat: sync the configuration across Macs with iCloud Drive #759 added iCloud sync.
ThemeCatalogreads the themes folder with.skipsHiddenFilestoo.
Triaged by Claude Code (Claude Opus 5.5).
Activity
chore(release): 0.20.0 [skip ci]
stablebar-releases commentedon Nov 29, 2026
🎉 This issue has been resolved in version 0.20.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀