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
Workspace automatically redirects to the main repository path when opening a git branch/worktree folder #31593
Description:
When I use OpenCode Desktop to open a specific folder (D:\p1), which is a git branch project (worktree) of a main repository (D:\R0), the application automatically changes the workspace root and redirects me to the main repository folder (D:\R0).
Steps to Reproduce:
Have a main git repository located at D:\R0.
Have a git branch project / worktree located at D:\p1.
Open OpenCode Desktop.
Use the "Open Folder" option to select D:\p1.
Expected Behavior:
OpenCode Desktop should open D:\p1 and treat it as the current workspace root, without automatically switching directories.
Actual Behavior:
OpenCode Desktop automatically switches the workspace/directory to D:\R0 (the main repository root).
Troubleshooting / Attempts:
I have tried the following methods, but none of them resolved the issue:
Reinstalled OpenCode Desktop completely.
Deleted the .git folder/file in the directory.
(It seems the application is aggressively resolving the git root and forcing the workspace to the main repository path, ignoring the actual opened path).
Environment:
OS: Windows 11
OpenCode Desktop Version: [1.16.2]
Activity
github-actions commentedon Jun 10, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from the above, please clarify how it differs.
github-actions commentedon Aug 9, 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.