Skip to content

Desktop shows the primary worktree branch for manually opened worktrees #42976

Closed as not planned

Description

@liveonce

Description

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

  1. Create a secondary worktree with git worktree add.
  2. Open that worktree with Desktop's Open Folder action.
  3. Open a new session.
  4. Observe that the displayed branch belongs to the primary worktree instead of the opened worktree.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

No response

Activity

  1. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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