Skip to content

Project identity should not rely solely on git remote URL #36233

Description

@FelixLin0927

Description

OpenCode Desktop uses the git remote URL as the sole project identifier. This causes problems when users have multiple independent clones of the same repository in different directories.

For example:

  • D:/project_v1/myapp (branch feature-a)
  • D:/project_v2/myapp (branch feature-b)

Both clones share the same git remote, so OpenCode assigns them the same project ID. When trying to open the second clone via the + button, it's treated as a sandbox of the first and instantly redirects back.

Expected: Different working copies of the same repo should be treated as separate projects.

Plugins

N/A

OpenCode version

OpenCode Desktop v1.17.18

Steps to reproduce

  1. Clone a repo to two separate directories, e.g.:
    git clone http://example.com/myapp.git D:/project_v1/myapp
    git clone http://example.com/myapp.git D:/project_v2/myapp
  2. Open D:/project_v1/myapp in OpenCode Desktop
  3. Click the "+" button in the left sidebar and select D:/project_v2/myapp
  4. Observe: the app immediately switches back to D:/project_v1/myapp instead of opening the new project

Screenshot and/or share link

N/A

Operating System

Windows 10

Terminal

Desktop App

Metadata

Metadata

Assignees

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