MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / collectChildIds

Method collectChildIds

src/core/webview/ClineProvider.ts:1992–2005  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

1990 if (cascadeSubtasks) {
1991 // Recursively collect all child IDs
1992 const collectChildIds = async (taskId: string): Promise<void> => {
1993 try {
1994 const { historyItem: item } = await this.getTaskWithId(taskId)
1995 if (item.childIds && item.childIds.length > 0) {
1996 for (const childId of item.childIds) {
1997 allIdsToDelete.push(childId)
1998 await collectChildIds(childId)
1999 }
2000 }
2001 } catch (error) {
2002 // Child task may already be deleted or not found, continue
2003 console.log(`[deleteTaskWithId] child task ${taskId} not found, skipping`)
2004 }
2005 }
2006
2007 await collectChildIds(id)
2008 }

Callers

nothing calls this directly

Calls 2

getTaskWithIdMethod · 0.95
logMethod · 0.65

Tested by

no test coverage detected