Skip to content

[Bug]: SSH host aliases split the same repository into separate cross-environment project groups #38673

Closed

Description

@kyle-xavier-clark

Area

apps/server and cross-environment project grouping

Steps to reproduce

  1. Pair two environments in one browser client, using repository grouping.
  2. Register checkouts of the same GitHub repository on both environments.
  3. On one environment use origin [email protected]:owner/repo.git, with SSH config Host github.com-personal, HostName github.com, and the appropriate account key.
  4. On the other use [email protected]:owner/repo.git.

Expected behavior

Both checkouts appear in one logical repository group. Preserve physical project IDs, threads/history, active runs, checkout paths, and the original SSH transport URLs and credentials.

Actual behavior

The identities differ: github.com-personal/owner/repo versus github.com/owner/repo. The browser splits the same repository into separate groups. A singleton uses its project title while a multi-checkout group can use owner/repo, making the split confusing.

The inspected RepositoryIdentityResolver derives identity from the selected fetch remote (upstream, then origin). Client projectGrouping uses that repository key. Project update tooling does not expose an identity-alias override or safe merge operation.

Version / environment

Observed with macOS client/server 0.1.11-nightly.20261118.4877 and linked Linux environments; one Linux server reports 0.1.10-nightly.20261112.4580. Browser client with repository grouping enabled.

Impact

Duplicate catalog groups fragment access to ongoing work across environments. Renaming projects does not consolidate their identity. Changing SSH routing merely to fix grouping risks selecting the wrong account.

Related report and suggested remedy

Related to #17805 (alias-based forge detection); this report focuses on repository identity and cross-environment catalog grouping. Resolve SSH host aliases for canonical identity while retaining the original URL for transport, or support an explicit safe identity mapping. Do not merge or delete physical projects or move running checkouts.

Workaround

Use the same SSH alias on all machines, configured to resolve to github.com with each machine's existing account key. This requires consistent remote URLs as well as SSH configuration; adding HostName alone does not change the current identity key.

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