MCPcopy
hub / github.com/claude-code-best/claude-code / clear

Method clear

src/utils/task/TaskOutput.ts:381–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379 }
380
381 clear(): void {
382 this.#stdoutBuffer = ''
383 this.#stderrBuffer = ''
384 this.#recentLines.clear()
385 this.#onProgress = null
386 this.#disk?.cancel()
387 TaskOutput.stopPolling(this.taskId)
388 TaskOutput.#registry.delete(this.taskId)
389 }
390}

Callers 15

execFunction · 0.95
setSystemPromptInjectionFunction · 0.45
submitMessageMethod · 0.45
disposeKeybindingWatcherFunction · 0.45
renderColorDiffFunction · 0.45
loadChangesFunction · 0.45
handleSelectFunction · 0.45
ElicitationFormDialogFunction · 0.45
useMemorySurveyFunction · 0.45
disconnectMethod · 0.45

Calls 3

stopPollingMethod · 0.80
deleteMethod · 0.65
cancelMethod · 0.45

Tested by 2

clearConfigDirCacheFunction · 0.36
cleanupFunction · 0.36