MCPcopy Index your code
hub / github.com/anomalyco/opencode / onQueuedRemove

Method onQueuedRemove

packages/opencode/src/cli/cmd/run/footer.ts:371–376  ·  view source on GitHub ↗
(fn: (messageID: string) => boolean | Promise<boolean>)

Source from the content-addressed store, hash-verified

369 }
370
371 public onQueuedRemove(fn: (messageID: string) => boolean | Promise<boolean>): () => void {
372 this.queuedRemoves.add(fn)
373 return () => {
374 this.queuedRemoves.delete(fn)
375 }
376 }
377
378 public onClose(fn: () => void): () => void {
379 if (this.isClosed) {

Callers 2

RunFooterViewFunction · 0.80
runPromptQueueFunction · 0.80

Calls 2

addMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected