Teach task-finish to recycle submodule-bearing worktrees #4

Merged
weichen merged 1 commits from fix/task-finish-submodule-recycle into main 2026-09-30 03:27:15 +00:00
1 Commits
Author SHA1 Message Date
weichen a073b8712c Teach task-finish to recycle submodule-bearing worktrees
Why: git refuses to remove a worktree with initialized submodules; the first
real dogfood run of task-finish hit this on the empty-list fix task.
Evidence: the fix task's worktree recycled only after manual force-remove;
deinit-then-remove path exercised on the same state afterwards.
Impact: finish deinitializes submodules, removes, prunes, and deletes the
remote branch; unmerged-result guard unchanged.
Refs: .task/fix-empty-list-json.md
2026-09-30 03:27:06 +00:00