()
| 131 | } |
| 132 | |
| 133 | export function isTodoV2Enabled(): boolean { |
| 134 | // Force-enable tasks in non-interactive mode (e.g. SDK users who want Task tools over TodoWrite) |
| 135 | if (isEnvTruthy(process.env.CLAUDE_CODE_ENABLE_TASKS)) { |
| 136 | return true |
| 137 | } |
| 138 | return !getIsNonInteractiveSession() |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Resets the task list for a new swarm - clears any existing tasks. |
no test coverage detected