Skip to content

[FEATURE]: Allow specifying git branch when creating a new workspace #13723

Closed

Description

@lldxflwb

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Allow passing an explicit git branch name when creating a new workspace (git worktree).

  • If the branch exists locally and isn't already checked out in another worktree, create a worktree for it.
  • If the branch doesn't exist, create it from current HEAD.
  • Keep auto-generated worktrees under opencode/* and restrict reset/delete behavior to those managed branches.

Related: #9965

Activity

  1. github-actions commented on Feb 15, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of or closely related to existing issues. Please check:

    These issues all overlap on allowing users to specify branches when creating new workspaces. Consider consolidating efforts or cross-referencing to avoid duplicate work.

  2. lldxflwb commented on Feb 15, 2026

    @lldxflwb
    Author

    Closing this as a duplicate of the existing workspace/branch requests (#9965, #13592). Implementation appears to be in progress in #13593.

    Sorry for the noise — I opened this because the feature is really needed for my workflow.


    抱歉重复开了 issue。这个需求和 #9965 / #13592 重合,且 #13593 看起来已经在实现中,所以我这里先关闭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions