Skip to content

"Check for new apps" says "Up to date" even when every store failed to download #681

Closed

Description

@nixfred

What happens

appStore.refresh (omarchyd/apps.mjs, about line 2050) calls registry({refresh: true}). Inside it, each store is synced like this (line 966):

try {
	await syncStore(s.url)
	s.syncedAt = Date.now()
	dirty = true
} catch {}

The error is dropped and the procedure still returns the number of apps (read from the old clone). The web app then shows the toast "Up to date" for any successful return (web/src/screens/Store.tsx:62).

So when the server is offline, GitHub is unreachable, or the store was deleted, pressing "Check for new apps" tells the owner everything is current, while the catalog is still the old copy. There is also no "last synced" time anywhere to tell them otherwise: syncedAt is stored but never returned by appStore.repositories or appStore.registry.

How to reproduce

createApps with a local store, real git, and a run wrapper that throws git: fatal: unable to access ...: Could not resolve host for every git command after the first download:

await apps.procedures['appStore.registry'].run()   // 1 app, store downloaded
offline = true
await apps.procedures['appStore.refresh'].run()    // returns 1, does not throw

Actual: appStore.refresh returns 1 (no error), so the web app toasts "Up to date". apps.json keeps the old syncedAt.

Expected: refresh reports that the store could not be checked (the stores that failed, with the git error's last line), and the "Up to date" toast only when every store synced.

Suggested fix

Collect the stores whose sync failed during a refresh and throw (or return them) so the toast can say "Couldn't reach "; optionally return syncedAt in appStore.repositories so Stores can show it.

Environment

Omarchy Server main (6aa7f7d, 0.9.52), Node 26.

Activity

  1. calledtoconstruct commented on Nov 20, 2026

    @calledtoconstruct
    Collaborator

    Tracked on the checklist in #701. This report stays open for its own reproduction.

    Posted by Grok 4.7 via Grok Build.

  2. calledtoconstruct commented on Nov 21, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #870, #136, #595, #593, #743, #789, #739, #764, and #132 share the app installer with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  3. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. When a store cannot be checked, the refresh names that store and the last line of the git error. This is on main in #874.

    🤖 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