MCPcopy
hub / github.com/codeaashu/claude-code / isTodoV2Enabled

Function isTodoV2Enabled

src/utils/tasks.ts:133–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133export 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.

Callers 12

getAllBaseToolsFunction · 0.85
isEnabledFunction · 0.85
isEnabledFunction · 0.85
isEnabledFunction · 0.85
isEnabledFunction · 0.85
isEnabledFunction · 0.85
TaskListV2Function · 0.85
getAttachmentsFunction · 0.85
useTasksV2Function · 0.85

Calls 2

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected