MCPcopy
hub / github.com/coder/mux / clear

Method clear

src/node/services/messageQueue.ts:416–430  ·  view source on GitHub ↗

* Clear all queued messages, options, and images.

()

Source from the content-addressed store, hash-verified

414 * Clear all queued messages, options, and images.
415 */
416 clear(): void {
417 this.messages = [];
418 this.firstMuxMetadata = undefined;
419 this.latestOptions = undefined;
420 this.accumulatedFileParts = [];
421 this.dedupeKeys.clear();
422 this.goalInterventionPolicy = undefined;
423 this.queueDispatchMode = "tool-end";
424 this.onCanceled = undefined;
425 this.onAccepted = undefined;
426 this.onAcceptedPreStreamFailure = undefined;
427 this.queuedEntryCount = 0;
428 this.queuedSyntheticCount = 0;
429 this.queuedAgentInitiatedCount = 0;
430 }
431
432 /**
433 * Check if queue is empty (no messages AND no images).

Callers 15

__resetTokenizerForTestsFunction · 0.45
workerPool.tsFile · 0.45
disposeMethod · 0.45
stopMethod · 0.45
resetMethod · 0.45
stopMethod · 0.45
stopMethod · 0.45
buildOutputFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected