# sidebar: Add submenu to create a worktree \(\#59341\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3e8aae49b56cad6b810cc22a288f14b86971ae8c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3e8aae49b56cad6b810cc22a288f14b86971ae8c

Requested commit: 3e8aae49b56cad6b810cc22a288f14b86971ae8c

Commit: 3e8aae49b56cad6b810cc22a288f14b86971ae8c

Tree: 9a3ca1a7acdba0b4e680e68428837c0bd56934bd

Author: Danilo Leal

Committer: GitHub

## Message

```
sidebar: Add submenu to create a worktree (#59341)

Closes AI-403

Recently, we introduced the ability to pick, from the plus icon button
in a project's header in the sidebar, which of the currently loaded
worktree you'd like to create a new thread on. This PR extends this
ability by allowing you to _create_ a new worktree from there as well.
Turned out this just felt like a natural move after playing around with
the change internally; we had a good amount of internal asks for this.
What's exposed in the menu is exactly the same options available in the
worktree picker, following the same display rules.

<img width="650" alt="Screenshot 2026-06-15 at 12  22@2x"
src="https://github.com/user-attachments/assets/ef45d93e-9106-46c6-9a8b-bc099036a7de"
/>

Release Notes:

- Agent: Enabled creating a new worktree from the sidebar's "new thread"
icon button.
```

## Parents

- [84b753cb51441f104fc35b540b9fe77a409f4529](https://git.cafe/gitcafe/zed/commit/84b753cb51441f104fc35b540b9fe77a409f4529?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3e8aae49b56cad6b810cc22a288f14b86971ae8c?format=markdown)
