Skip to content

Adjust worktree name display in agent panel and git picker#53351

Merged
danilo-leal merged 4 commits intomainfrom
agent-panel-worktree-pickers
Apr 8, 2026
Merged

Adjust worktree name display in agent panel and git picker#53351
danilo-leal merged 4 commits intomainfrom
agent-panel-worktree-pickers

Conversation

@danilo-leal
Copy link
Copy Markdown
Member

This PR adjust the name of the worktree within the agent panel: we display main if you're in the main worktree and then the worktree name when in a linked one. Additionally, I also took the opportunity to fix something that confused me in the general worktree picker: for the list item that represented the main worktree, we were using the current checked out branch name for that item's name. I think that's a bit incorrect, given the name of that worktree isn't the name of the branch you have active at that moment. For now, I'm using simply main as the worktree name. Lastly, also added a little blue check icon in the worktree and branch picker to highlight which worktree/branch is currently active.

main worktree linked worktree main worktree in picker
Screenshot 2026-04-07 at 10  32 2@2x Screenshot 2026-04-07 at 10  32@2x Screenshot 2026-04-07 at 10  36@2x

Release Notes:

  • Git: Fixed display of the main worktree name in the worktree picker.

@danilo-leal danilo-leal requested a review from Anthony-Eid April 8, 2026 01:37
@danilo-leal danilo-leal self-assigned this Apr 8, 2026
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Apr 8, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Apr 8, 2026
@danilo-leal danilo-leal merged commit 30e7e8b into main Apr 8, 2026
47 of 49 checks passed
@danilo-leal danilo-leal deleted the agent-panel-worktree-pickers branch April 8, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants