Skip to content

SSH: adding a repo through a symlinked path creates a duplicate project for the same repository #29637

Closed

Description

@nwparker

Priority: P2

What happens

On an SSH host, adding a repository through a symlinked path creates a second project for the same repository. Adding the canonical path a second time is correctly deduplicated: Orca just selects the existing project. The symlinked path is not resolved before that duplicate check, so the alias gets through.

Repro (current main, 7a77653, managed SSH host)

  1. Add /tmp/soak-a43/home/repo on an SSH host as a Git project.
  2. On the host, run ln -s /tmp/soak-a43/home/repo /tmp/soak-a43/home/repo-link.
  3. Add project → pick that host → type /tmp/soak-a43/home/repo-link in Host path → Add Git Project.
  4. The sidebar now has two projects, tmp/soak-a43/home/repo and repo-link. Both list a main worktree whose id ends in ::/tmp/soak-a43/home/repo, and each has its own terminals.
  5. For comparison, adding /tmp/soak-a43/home/repo again just selects the existing project.

Expected

The alias resolves to the same repository and selects the existing project, or the dialog says the project already exists. It should not create a duplicate project on the same host.

Notes

Found during an SSH end-to-end soak on an isolated profile.

Activity

  1. nwparker commented on Oct 16, 2026

    @nwparker
    ContributorAuthor

    Fix is in #29651: the host that owns the path now compares real paths, so adding a symlink alias selects the existing project, while separate checkouts stay separate. Verified live on a Linux managed host. This issue will close when that PR merges.

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