You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop app redirects to wrong directory when multiple clones of same repo exist #32785
opencode Desktop identifies projects by Git repository identity (VCS), not by filesystem path. When multiple clones of the same Git repository exist at different paths (e.g., ~/Desktop/WorkSpaceA/ProjectA and ~/Desktop/WorkSpaceB/ProjectB both cloned from the same upstream), they are assigned the same project ID (e7dc3c41... in SQLite project table). Opening the non-main clone always redirects to the main worktree directory.
Expected: Each local directory should be treated as an independent workspace.
Workaround: Temporarily change one repo's origin remote to a different URL, open it in opencode (creates separate project), then revert the remote.
Plugins
No response
OpenCode version
1.17.8
Steps to reproduce
Clone the same Git repo to two different local directories
Open directory A in opencode Desktop (becomes main)
Open directory B in opencode Desktop → redirects to directory A
Activity
github-actions commentedon Jun 18, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is different from those, please add a comment explaining how it differs.
github-actions commentedon Aug 18, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Hona commentedon Sep 2, 2026
Fixed for opencode2 launch via #46713
You can try the desktop beta here: https://github.com/anomalyco/opencode-beta