Skip to content

Fix worktree creation for selected existing branches - #2543

Merged
AmethystLiang merged 2 commits into
mainfrom
https-github.com-stablyai-orca-issues-2524
May 21, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
https-github.com-stablyai-orca-issues-2524

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Checkout selected existing local branches instead of creating suffixed sibling branches.
  • Propagate existing-branch worktree creation through local, runtime, SSH, and relay paths.
  • Preserve existing branches on worktree deletion and add regression coverage for dashed/slashed branch names.

Tests

  • pnpm typecheck
  • pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/worktrees.test.ts src/main/runtime/orca-runtime.test.ts
  • pnpm exec oxfmt --check src/main/ipc/worktree-remote.ts src/main/ipc/worktrees.test.ts src/main/runtime/orca-runtime.ts src/main/runtime/orca-runtime.test.ts

Fixes #2524

@AmethystLiang
AmethystLiang force-pushed the https-github.com-stablyai-orca-issues-2524 branch from a77944a to c1bc085 Compare May 21, 2026 19:20
@AmethystLiang
AmethystLiang merged commit d4e9c22 into main May 21, 2026
1 check passed
@AmethystLiang
AmethystLiang deleted the https-github.com-stablyai-orca-issues-2524 branch May 21, 2026 19:25
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* fix: address review findings

* fix: address CI failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant