MCPcopy Create free account
hub / github.com/echoVic/blade-code / cancelTask

Method cancelTask

src/prompt/WorkflowManager.ts:436–440  ·  view source on GitHub ↗

* 取消任务

(id: string, reason: string)

Source from the content-addressed store, hash-verified

434 * 取消任务
435 */
436 public cancelTask(id: string, reason: string): WorkflowTask {
437 const task = this.updateTask(id, { status: 'cancelled' });
438 this.addTaskNote(id, `任务被取消: ${reason}`);
439 return task;
440 }
441
442 /**
443 * 添加任务备注

Callers

nothing calls this directly

Calls 2

updateTaskMethod · 0.95
addTaskNoteMethod · 0.95

Tested by

no test coverage detected