MCPcopy Create free account
hub / github.com/anomalyco/opencode / remove

Function remove

packages/opencode/src/plugin/openai/ws-pool.ts:186–192  ·  view source on GitHub ↗
(sessionID: string)

Source from the content-addressed store, hash-verified

184 }
185
186 function remove(sessionID: string) {
187 const key = `${sessionID}:conversation`
188 const entry = pool.get(key)
189 if (!entry) return
190 invalidate(entry)
191 pool.delete(key)
192 }
193
194 return Object.assign(websocketFetch, { close, remove })
195}

Callers

nothing calls this directly

Calls 3

invalidateFunction · 0.70
getMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected