Problem
resolve_worktree_dir has an explicit .filter(|d| !d.is_empty()) guard that treats WorktreeConfig { base_dir: "" } the same as None. No test verifies this fallthrough behavior.
Solution
Add a unit test with make_config(Some("")) and verify it falls through to the default ../<project>-worktrees/ path.
Problem
resolve_worktree_dirhas an explicit.filter(|d| !d.is_empty())guard that treatsWorktreeConfig { base_dir: "" }the same asNone. No test verifies this fallthrough behavior.Solution
Add a unit test with
make_config(Some(""))and verify it falls through to the default../<project>-worktrees/path.