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

Method clearTask

src/core/webview/ClineProvider.ts:3267–3273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3265 // Clear the current task without treating it as a subtask.
3266 // This is used when the user cancels a task that is not a subtask.
3267 public async clearTask(): Promise<void> {
3268 if (this.clineStack.length > 0) {
3269 const task = this.clineStack[this.clineStack.length - 1]
3270 console.log(`[clearTask] clearing task ${task.taskId}.${task.instanceId}`)
3271 await this.removeClineFromStack()
3272 }
3273 }
3274
3275 public resumeTask(taskId: string): void {
3276 // Use the existing showTaskWithId method which handles both current and

Callers

nothing calls this directly

Calls 2

removeClineFromStackMethod · 0.95
logMethod · 0.65

Tested by

no test coverage detected