claude -w hangs indefinitely

Resolved 💬 4 comments Opened Mar 5, 2026 by esetnik Closed Mar 9, 2026

Description

Running claude -w <worktree-name> causes a complete hang with no output. The CLI never responds or produces any error message.

Environment

  • Claude Code version: 2.1.69
  • OS: macOS (Darwin 25.3.0)
  • Shell: zsh

Steps to reproduce

  1. Run claude -w some-worktree-name
  2. Observe complete hang — no output, no error

Expected behavior

Claude Code should either enter the worktree and start a session, or produce an error message if the worktree doesn't exist.

Workaround

Manually creating a worktree and running claude from within it works fine:

git worktree add ../some-worktree-name some-branch
cd ../some-worktree-name
claude

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗