-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-viewsIssues or features related to (tree) viewsIssues or features related to (tree) viewsarea-worktreesIssues or features related to worktreesIssues or features related to worktreesbugverified ✔VerifiedVerified
Milestone
Description
When gitlens.views.collapseWorktreesWhenPossible is enabled and there's only 1 grouped repository, clicking on the repository filter header node does nothing, even though the UI displays "click to change" when a filter is active.
This affects the Branches, Worktrees, Tags, Remotes, Stashes, and Contributors views.
Impact
Users with an active repository filter cannot clear or modify it when worktree collapsing results in only 1 visible repository group. This creates a confusing UX where the UI promises clickability but the action fails silently.
Validation
- Enable
gitlens.views.collapseWorktreesWhenPossiblesetting - Open a repository that has worktrees (all under the same parent repo)
- Apply a repository filter to one of the worktrees
- Observe the header shows "RepoName — click to change"
- Click the header and confirm the repository picker opens
- Verify the filter can be cleared or modified
Risk
Low - this is a read-only fix that relaxes early-return conditions. No changes to filtering logic itself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-viewsIssues or features related to (tree) viewsIssues or features related to (tree) viewsarea-worktreesIssues or features related to worktreesIssues or features related to worktreesbugverified ✔VerifiedVerified