You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Removing OMARCHY_SERVER_APP_STORE later leaves the App Store on the old local clone; the GitHub store is never put back #413
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).
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.
Activity
Restore the default GitHub store when local store override is removed
calledtoconstruct commentedon Nov 21, 2026
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