You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: New workspace creation not using correct branch if the branch name includes a dash or slash. #2524
When creating a new workspace and selecting an existing branch with a dash or slash (ie. fix/bug-0) in its name it triggers these issues:
After selecting the existing branch, in the Advanced section, the Name of the workspace only uses includes the part of the name that was written before clicking the existing branch. For example, clicking fix/bug-0 when only fix/bug is written will set the name to fix/bug only.
Once you click Create Workspace the result workspace will be named with a flatten name of the branch. This is okay but the same happens to the checked out branch which is also set to this name, being created if it doesn't exist. For example, if created from the branch fix/bug-0 it will create a fix-bug-0 branch and checkout it for that workspace.
Additionally, when deleting a workspace it will also delete the local branch that was checked out by that workspace. This is done without confirmation from the user.
Expected Behavior
Creating a new workspace for an existing branch should use the full name of the selected branch when building its name, and check out the exact branch instead of creating a new one based on the used name. When deleting the workspace only the equivalent actions for git worktree remove should be applied keeping the used branch intact unless specified by the user.
How to Reproduce
Add a repository and create a branch named fix/bug-0.
Click create a workspace for the correct repository and select the Branch tab.
Write fix/bug and click the fix/bug-0 branch.
Check in the Advanced section the workspace Name is set to fix/bug.
Click Create Workspace and check that the checkout out branch is set to fix-bug.
Delete the created workspace and check that the fix-bug branch is also deleted.
changed the title [-][Bug]: New worktree creation not using correct branch if the branch name includes a dash or slash.[/-][+][Bug]: New workspace creation not using correct branch if the branch name includes a dash or slash.[/+]on May 21, 2026
@AmethystLiang The first issue reported here — workspace name using the partial search text instead of the selected combobox value — is still reproducible on v1.4.91 macOS. The other two issues (wrong branch checkout, branch deletion) may have been addressed, but this one persists.
Would it make sense to reopen this, or should I file a separate report?
Activity
[-][Bug]: New worktree creation not using correct branch if the branch name includes a dash or slash.[/-][+][Bug]: New workspace creation not using correct branch if the branch name includes a dash or slash.[/+]jenkei commentedon Jun 22, 2026
@AmethystLiang The first issue reported here — workspace name using the partial search text instead of the selected combobox value — is still reproducible on v1.4.91 macOS. The other two issues (wrong branch checkout, branch deletion) may have been addressed, but this one persists.
Would it make sense to reopen this, or should I file a separate report?