Skip to content

Home: opening main branch from a branch card should open the default worktree #5105

@d13

Description

@d13

Problem

Today, in the home view, when a user is on a branch in a worktree, we treat the default branch (eg main, master, etc) as any other branch and provide the "Switch to Branch..." action. Clicking this action causes the error "Unable to checkout 'main'. See output channel for more details.". In this case, that branch is actually on the default worktree, so if the user wanted to open the branch, they would have to use the "Open Worktree *" actions not Switch.

Metadata

Metadata

Assignees

Labels

area-homeIssues or features related to Homeverified ✔Verified

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions