Repository navigation
Description
What happens
In Settings › Packages, the page of an older installed version of a package offers Update to X even though version X is already installed from the Store and in use. Pressing it can fail with:
Package ai-usage 1.5.1 is already installed. Choose a new version to replace it.
The offer stays until the installed list is read again (reopening Settings, or the hourly update check).
Steps to reproduce
- Have a Store package with several versions installed, such as
ai-usage1.5.0 and older. - Open Settings › Packages and leave it open.
- Install the newer Store version (1.5.1) outside Settings, such as with
StableBar --install-package ai-usage, and switch the bar to it. - Settings still offers Update to 1.5.1 on the package page; any page of an older installed version always does. Press it.
Expected
No update is offered once the Store's own copy of that version (or a newer one) is installed, and updating never fails because the version arrived in the meantime.
Environment
StableBar 0.19.1-beta (built 2026-11-26), macOS 27.2.
Evidence
On disk everything matched: ~/.config/stablebar/packages/ai-usage/1.5.1 installed from the Store, the configuration's selection at 1.5.1, and the Store index listing 1.5.1. A fresh PackageLibrary over a copy of that configuration listed no updates, yet update(for:) returned 1.5.1 for every older installed version (1.2.0 through 1.5.0).
Diagnosis
PackageLibrary.update(for:) (Sources/StableBar/Packages/PackageLibrary.swift) compares the given manifest's version with the source's entry alone, without checking whether that version is already installed. PackageDetailView.actions calls it with the page's manifest, so an older version's page always offers the Store's version. update(_:) and applyUpdate decide whether to install from installed, read when Settings opened, so a version installed since makes WidgetPackageStore.install throw .alreadyInstalled. The same holds when it's installed while the "Review additional access" dialog is open.
Related
- Update packages already on the bar in one click #147 added one-click updates; Offer each StableBar the newest Store version it can run #775 offers each StableBar the newest version it can run. Neither covers a version that is already installed.
Triaged by Claude Code (Claude Opus 5.5).
Activity
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 📦🚀