Skip to content

With a local app store, "Community stores" still suggests the TouchWorkStation store and its Add button fails with "already added" #412

Closed

Description

@nixfred

What happens

When omarchyd runs with OMARCHY_SERVER_APP_STORE, omarchyd/apps.mjs rewrites the default GitHub store entry to the local file:// address. web/src/screens/Store.tsx (CommunityStores, line ~280) decides what to suggest with sameRepo(r.url, s.url) against the hard-coded GitHub URL, which never equals the file:// entry. So the "Suggested" list keeps offering "TouchWorkStation" (with a blurb about Chrome and Brave) even though that store is already added. Pressing Add sends the GitHub URL; the server maps it to the local store (appStore.addRepository, "if (localDefault && isGithubAppStore(url))") and answers CONFLICT, shown as the toast "That store is already added".

How to reproduce

I started startOmarchyd on a throwaway data dir with OMARCHY_SERVER_APP_STORE pointing at a local git clone, then called:

appStore.repositories    -> ["file:///tmp/.../store"]
appStore.addRepository {url: "https://github.com/TouchWorkStation/app-store"}
                         -> error "That store is already added"

Open App Store > Stores: the Suggested section lists TouchWorkStation next to an Add button that can only fail.

Expected: no suggestion for a store that is already there under its local address.

Suggested fix

Have appStore.repositories mark (or the client skip) the suggestion when the server maps its URL to an existing store, for example by returning the GitHub URL it stands in for.

Environment

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

Activity

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

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. The TouchWorkStation store suggestion stays hidden when a local store is standing in for it. 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