We currently have a setup and a cleanup script, but it's not clear when these actually run. It looks like the setup/cleanup run around task in progress.
There is a need for something more wide, like onTaskStart and finish, I've seen people in discord complain about ballooning worktree dirs, and this would be a good place to throw a checkbox for deleting workspace after the onTaskFinish completes if specified.