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 shows the primary worktree branch for manually opened worktrees #42976
When a Git worktree created with git worktree add is opened in Desktop, the session is correctly bound to that directory but the new-session context shows the branch of the primary worktree.
This happens because the UI falls back to the aggregated project root when the workspace selector is unavailable.
Plugins
No response
OpenCode version
No response
Steps to reproduce
Create a secondary worktree with git worktree add.
Open that worktree with Desktop's Open Folder action.
Open a new session.
Observe that the displayed branch belongs to the primary worktree instead of the opened worktree.
Activity
github-actions commentedon Aug 17, 2026
This issue might be a duplicate of existing issues. Please check:
git worktree addand Desktop failing to correctly handle the resulting worktree directorygithub-actions commentedon Oct 17, 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.