Skip to content

App page warns "Some features may not work here" because of variables that only appear in YAML comments #527

Closed

Description

@nixfred

What happens

missingVars() in omarchyd/apps.mjs (~line 314) scans the raw compose text with a regex, so a ${NAME} or $NAME inside a YAML comment counts as a variable the app needs:

for (const m of String(text).replace(/\$\$/g, '').matchAll(/\$(?:\{([A-Za-z_]...

loadStore() feeds the whole file to it (missingVars(compose, ...), ~line 895) and turns any unknown name into the listing's caution, which the App Store shows on the app's page as a warning box. A compose file that documents its own settings in comments (for example "# Set ${ADMIN_TOKEN} for production" or a commented-out line that was used before) therefore gets a warning telling the user that the app "expects settings Omarchy Server doesn't have", for names the file never reads.

How to reproduce

A store app whose compose file is:

# Set ${ADMIN_TOKEN} in your own deployment
services:
  web:
    image: x
    environment:
      A: "1"  # was ${OLD_NAME}

appStore.registry returns for this app:

caution: "Some features may not work here: it expects settings Omarchy Server doesn’t have (ADMIN_TOKEN, OLD_NAME)."

Expected: no caution, because the file contains no variable reference at all.

Suggested fix

Parse the YAML and scan its string values (or at least drop # comments before scanning).

Environment

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

Activity

  1. calledtoconstruct commented on Nov 22, 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.

    #526, #342, #525, #524, #133, #102, #777, #129, #239, #243, #236, #233, #232, #142, #242, and #443 share the app store with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thanks @nixfred. A variable that appears only in a comment is no longer reported as a missing setting. This ships in #876.

    🤖 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