Problem
handle_worktree_cleanup_all computes worktree path as worktree_dir.join(&entry.spec_slug), then falls back to entry.path if the computed path doesn't exist. This heuristic can silently use a stale entry.path from git worktree list that may differ from what the user expects based on --worktree-dir.
Solution
Solution
Always use entry.path (the canonical path from git) for cleanup operations, since git worktree list already returns the actual path.
Created via Kata PR review backlog
Problem
handle_worktree_cleanup_allcomputes worktree path asworktree_dir.join(&entry.spec_slug), then falls back toentry.pathif the computed path doesn't exist. This heuristic can silently use a staleentry.pathfromgit worktree listthat may differ from what the user expects based on--worktree-dir.Solution
Solution
Always use
entry.path(the canonical path from git) for cleanup operations, sincegit worktree listalready returns the actual path.Created via Kata PR review backlog