Skip to content

One store manifest with a YAML syntax error hides every app of that store, with no message #680

Closed

Description

@nixfred

What happens

loadStore() in omarchyd/apps.mjs (about line 863) reads the store manifest like this:

let meta = (await readYaml(dir, STORE_FILES))?.data

readYaml() rethrows every error except ENOENT, and this call has no .catch. The per-app reads right below it do have one (readYaml(appPath, APP_FILES).catch(() => null)), so one broken app folder is skipped and the rest of the store stays. A syntax error in the store's own omarchy-app-store.yml (or umbrel-app-store.yml) is different: loadStore() throws, registry() swallows it in an empty catch {}, and the whole store is left out of the list. Nothing in the App Store says why; installed apps from that store also lose their listing (their updates and "Update available" stop working).

A store with an unparsable manifest is easy to publish (a tab, an unclosed bracket, an unquoted : in the name). Fixing it upstream brings the apps back only after the next sync.

How to reproduce

I ran createApps against a local bare git repository with two valid app folders (allowFileStores: true, real git), then pushed a store manifest containing:

id: x
name: [unclosed

and called appStore.refresh, then appStore.registry.

Actual: appStore.registry returns [] (the store and its two apps are gone). Before the push it returned the store with one and two; after removing the broken file and refreshing, they came back.

Expected: the apps stay listed (the store name falls back to the repository name, as it does when there is no manifest), or the App Store shows that the store's manifest could not be read.

Suggested fix

Catch the store-manifest read the same way the app manifests are caught (treat it as "no manifest") and fall back to the repository-name branch.

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. added a commit that references this issue on Nov 21, 2026
    a5f79cb
  3. calledtoconstruct commented on Nov 21, 2026

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. One manifest with invalid YAML no longer hides the other apps in that store. 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