Skip to content

"Update available" is shown for an app whose update then always fails with "no longer in your stores" #137

Closed

Description

@nixfred

What happens

updates() (omarchyd/apps.mjs, around lines 1732-1755) decides which installed apps have a newer version. For an app installed from a given store, if that store (or the app in it) is gone, it falls back to src ??= byId.get(a.id), which takes the same id from any other store. update() uses findInRegistry() instead (lines 958-978), which deliberately never switches stores for an app that recorded one ("an update must never switch between them"); it returns null in that case.

So the app list offers "Update to X", and pressing it always fails with NOT_FOUND "That app is no longer in your stores". The button also never goes away.

How to reproduce

I ran createApps with two local stores that both list demo-app (store A version 1.0, store B version 2.0), installed it from A, then called appStore.removeRepository for A.

Actual: apps.updates returns [{id: 'demo-app', version: '2.0'}]; apps.update then throws NOT_FOUND That app is no longer in your stores.

Expected: both agree. Either no update is offered, or the update works.

Suggested fix

Drop the byId fallback in updates() for apps that recorded a store, so it matches findInRegistry.

Environment

Omarchy Server main (0786ba9, 0.9.50), Node 26.

Activity

  1. added a commit that references this issue on Nov 21, 2026
    b0f1ea7
  2. calledtoconstruct commented on Nov 21, 2026

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. An update check stays on the store the app was installed from. This is on main in #858.

    🤖 Generated with Grok 4.7

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions