Skip to content

Removing OMARCHY_SERVER_APP_STORE later leaves the App Store on the old local clone; the GitHub store is never put back #413

Closed

Description

@nixfred

What happens

On start-up with a local store, omarchyd/apps.mjs (around line 593) rewrites the GitHub store entry in state.stores (and each installed app's store) to the file:// address and deletes the cached GitHub clone. Nothing does the reverse. If the installer is later run without OMARCHY_SERVER_APP_STORE (the person wants GitHub again), defaultsAdded is already true so the GitHub default is not added back, and the file:// entry stays in the saved state. The App Store keeps reading that local folder, and apps keep updating from it, although the server no longer claims to be isolated. The only way back is to remove the store and add the GitHub address by hand.

How to reproduce

I ran startOmarchyd twice on the same data dir, first with OMARCHY_SERVER_APP_STORE=/tmp/x/store (a local git clone), then with the variable unset:

first start   appStore.repositories -> ["file:///tmp/x/store"]
second start  appStore.repositories -> ["file:///tmp/x/store"]

Expected on the second start: the default GitHub store is back (as on a server that never used the variable).

Suggested fix

When no local default is configured, turn a file:// store that was created by this migration back into the GitHub default (record that it was a replacement when migrating).

Environment

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

Activity

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

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. Removing a local store puts the default GitHub store back, including for apps that were installed from that local 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