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

Function clearCommandQueue

src/utils/messageQueueManager.ts:322–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320 * Used by ESC cancellation to discard queued notifications.
321 */
322export function clearCommandQueue(): void {
323 if (commandQueue.length === 0) {
324 return
325 }
326 commandQueue.length = 0
327 notifySubscribers()
328}
329
330/**
331 * Clear all commands and reset snapshot.

Callers 2

CancelRequestHandlerFunction · 0.85

Calls 1

notifySubscribersFunction · 0.85

Tested by

no test coverage detected