Skip to content

Settings keeps offering a package update that is already installed #955

Done

Description

@M4n0x

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

  1. Have a Store package with several versions installed, such as ai-usage 1.5.0 and older.
  2. Open Settings › Packages and leave it open.
  3. Install the newer Store version (1.5.1) outside Settings, such as with StableBar --install-package ai-usage, and switch the bar to it.
  4. 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

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 28, 2026
  2. stablebar-releases commented on Nov 29, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.20.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions