Skip to content

A compose variable written as ${VAR:+text} or ${VAR+text} is reported as a missing setting #133

Closed

Description

@nixfred

What happens

missingVars in omarchyd/apps.mjs (lines 312-321) treats a variable as having a default only when the text after the name starts with -, :-, = or :=:

if (/^:?[-=]/.test(rest)) continue // has a default

${VAR:+text} and ${VAR+text} also never fail when VAR is unset (they expand to an empty string), but they are reported as required. The listing then gets a "Some features may not work here: it expects settings Omarchy Server doesn’t have (VAR)" caution (loadStore, line 851-855) for an app that works fine.

How to reproduce

import {missingVars} from './omarchyd/apps.mjs'
missingVars('image: ${FOO:+bar}\nx: ${BAR+baz}')

Actual: [ 'FOO', 'BAR' ]. Expected: [].

Suggested fix

Also skip names followed by :+ or +.

Environment

Omarchy Server main (0786ba9, 0.9.50), 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, #527, #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. ${VAR:+text} and ${VAR+text} are no longer reported as missing settings. 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