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

Function drop

packages/opencode/src/cli/cmd/run/session-data.ts:570–577  ·  view source on GitHub ↗
(data: SessionData, partID: string)

Source from the content-addressed store, hash-verified

568}
569
570function drop(data: SessionData, partID: string) {
571 data.part.delete(partID)
572 data.text.delete(partID)
573 data.sent.delete(partID)
574 data.visible.delete(partID)
575 data.msg.delete(partID)
576 data.end.delete(partID)
577}
578
579// Called when we learn a message's role (from message.updated). Flushes any
580// buffered text parts that were waiting on role confirmation. User-role

Callers 4

replayFunction · 0.70
flushInterruptedFunction · 0.70
reduceSessionDataFunction · 0.70
index.tsFile · 0.50

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected