You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Update available" is shown for an app whose update then always fails with "no longer in your stores" #137
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.
Activity
Keep update checks tied to the store an app was installed from
calledtoconstruct commentedon Nov 21, 2026
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