force remove leftover agents worktree -> "Couldn't schedule cleanup: Error: The worktree registration changed..."

Feb 12, 2025
6
0
0
windows agents session, Isolation: New Worktree.

first force remove already unregistered the row but left the folder because a terminal still held the path.

retry just YEETS
Couldn't schedule cleanup: Error: The worktree registration changed. Refresh the worktree inventory before cleanup.

close that terminal, reopen Open Worktree Cleanup, force remove again, same wall

nuking the leftover checkout directory off disk is what actually clears it