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
- 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
- Open D:/project_v1/myapp in OpenCode Desktop
- Click the "+" button in the left sidebar and select D:/project_v2/myapp
- 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
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:
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
git clone http://example.com/myapp.git D:/project_v1/myapp
git clone http://example.com/myapp.git D:/project_v2/myapp
Screenshot and/or share link
N/A
Operating System
Windows 10
Terminal
Desktop App