[Bug] Worktree creation hangs with complex branch names containing hyphens

Status Fixed / completed
Reported on v2.1.81
Maintainer reply ✓ Yes — ashwin-ant
Activity 4 comments · opened Mar 23, 2026 · closed Apr 18, 2026
💡 Likely answer: A maintainer (ashwin-ant, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
Worktree branching with "complex" name no longer working.

My workflow is to copy linear branch names and create worktrees from them. This worked until around the 19th/20th. When I attempt to create a worktree from the branch name, it stalls indefinitely.

myname/projectname-1235-i-am-working-on-this-feature for example.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.81
  • Feedback ID: 9ef7460a-4882-4a2d-a1f7-4a52e66ff591

Errors

[]

View original on GitHub ↗

4 Comments

github-actions[bot] · 6 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/37874
  2. https://github.com/anthropics/claude-code/issues/29384

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

benjaaguila · 6 months ago

Same issue here!! :(

ashwin-ant collaborator · 6 months ago

This was fixed in v2.1.83 — --worktree with a name containing / now creates the worktree (validated per path segment) instead of hanging silently. If you're still seeing this in the latest version, please comment with your version and repro and we'll reopen.

github-actions[bot] · 5 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.