Instead of immediately failing when an agent finishes without calling task_done, spawn a fresh session with a recovery prompt that asks the agent to review the worktree state and complete the task. Only fail if the retry also doesn't produce a task_done call. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>