happier icon indicating copy to clipboard operation
happier copied to clipboard

Ability to specify a name for a new worktree

Open ShawnFumo opened this issue 6 months ago • 2 comments

Problem statement

It would be nice if when creating a new worktree, we could manually specify a name for it. Claude at least supports this with their worktree feature via claude --worktree my-worktree-name. Personally, I tend to find the "misty-morning" style random names to be confusing. It also means you need to make a new branch (or rename it) before creating a PR, if you want a more descriptive branch name in GitHub's merge commit message.

You can get around this by having an ongoing session in the main project folder (that you use to tell an AI to create worktrees for you, or could use the terminal feature and do it yourself if on the web). Then when you create your feature session, can select the existing worktree, but is all a bit more work. It has the advantage that you can make sure you've fetched the latest from git before basing on a particular branch, but you could also fix that easily after the session has been created (fast-forward the branch if needed).

Proposed solution

Just an an optional additional textbox to specify a name manually

Acceptance criteria

When text is put into the optional textbox, the resulting worktree and branch use that name instead of generating a random name.

Non-goals (optional)

No response

Priority (optional)

None

Additional context (optional)

No response

ShawnFumo avatar May 26 '26 17:05 ShawnFumo

Hi!

Sorry for the late reply, it has been added a while ago to dev but I forgot to update you on here. If you're on stable/preview release channels, will come very soon on the next release :)

leeroybrun avatar Aug 25 '26 09:08 leeroybrun

Thanks for the request. This is now available in app 0.2.17: select New worktree and its base branch when creating a session, then type your chosen name and create the worktree.

Please reply or reopen with your component versions if you cannot use this feature after updating.

Posted on behalf of @leeroybrun.

happier-bot avatar Oct 11 '26 12:10 happier-bot