[PR #13724] feat(worktree): allow custom branch on create #14790

Closed
opened 2026-02-16 18:19:33 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13724

State: closed
Merged: No


What does this PR do?

Fixes #13723

  • Add optional branch to worktree create so a workspace can be created/reused on a specific local branch.
  • Reserve opencode/* for auto-generated worktrees and keep reset/delete behavior limited to managed branches.
  • Add a small "Create workspace" dialog in the app to optionally enter a branch name; disable Reset for non-managed branches.

Related: #9965

How did you verify your code works?

  • ./script/generate.ts
  • bun turbo build --filter=opencode --filter=@opencode-ai/app --filter=@opencode-ai/sdk
  • bun turbo typecheck (git hook on push)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13724 **State:** closed **Merged:** No --- ### What does this PR do? Fixes #13723 - Add optional `branch` to worktree create so a workspace can be created/reused on a specific local branch. - Reserve `opencode/*` for auto-generated worktrees and keep reset/delete behavior limited to managed branches. - Add a small "Create workspace" dialog in the app to optionally enter a branch name; disable Reset for non-managed branches. Related: #9965 ### How did you verify your code works? - `./script/generate.ts` - `bun turbo build --filter=opencode --filter=@opencode-ai/app --filter=@opencode-ai/sdk` - `bun turbo typecheck` (git hook on push)
yindo added the pull-request label 2026-02-16 18:19:33 -05:00
yindo closed this issue 2026-02-16 18:19:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14790