Skip to content

[Bug]: New workspace creation not using correct branch if the branch name includes a dash or slash. #2524

Closed

Description

@cbermudez97

Operating system

macOS

Orca version

v1.4.16

Details

Summary

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

  1. Add a repository and create a branch named fix/bug-0.
  2. Click create a workspace for the correct repository and select the Branch tab.
  3. Write fix/bug and click the fix/bug-0 branch.
  4. Check in the Advanced section the workspace Name is set to fix/bug.
  5. Click Create Workspace and check that the checkout out branch is set to fix-bug.
  6. Delete the created workspace and check that the fix-bug branch is also deleted.

Activity

  1. added
    bug
    on May 21, 2026
  2. added
    os:macos
    on May 21, 2026
  3. 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
  4. jenkei commented on Jun 22, 2026

    @jenkei

    @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?

  5. added theissue type on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugos:macos

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions