Skip to content

A store app whose id is purely numeric (for example 2048) is silently dropped from the store #128

Closed

Description

@nixfred

What happens

loadStore in omarchyd/apps.mjs (line 823) requires the manifest id to be strictly equal to the folder name:

if (!m?.data?.id || m.data.id !== entry.name || !APP_ID.test(m.data.id) || !c) return null

APP_ID allows ids that start with a digit, but YAML parses an unquoted id: 2048 as the number 2048, and 2048 !== '2048', so the app is skipped without any message. The same applies to every id that YAML reads as a number. Store authors can work around it only by quoting the id, which nothing tells them.

How to reproduce

Store folder 2048/ with omarchy-app.yml containing id: 2048, name: 2048, port: 31001 and a compose file, next to a normal app demo-app. I added the store through the test setup from test/apps.test.mjs and called appStore.registry.

Actual: the listed apps are ["demo-app"]. Expected: both demo-app and 2048.

Suggested fix

Compare String(m.data.id) with the folder name (and use the string form afterwards).

Environment

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

Activity

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

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. A store manifest whose id is only a number is accepted and kept as text. 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