MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / clearCommandQueue

Function clearCommandQueue

source code/utils/messageQueueManager.ts:324–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

CancelRequestHandlerFunction · 0.85

Calls 1

notifySubscribersFunction · 0.85

Tested by

no test coverage detected