What's wrong with this entry?
What changed: The worktree entry check now parses the git lock reason string rather than calling a generic lock-owner function, so it correctly identifies lock entries written by Claude Code agents specifically. A locked worktree from a different tool no longer prevents entry.
- Pattern matched:
claude agent <name> (pid <N>[ start <time>]) - Only if the matching PID is running and confirmed to be a Claude Code process is the
Cannot enter worktreeerror raised.
Worktree lock parsing (search for "claude agent .+ \\(pid")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.