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

Function clearContext

packages/app/src/components/prompt-input/submit.ts:260–264  ·  view source on GitHub ↗
(target: ReturnType<ReturnType<typeof usePrompt>["capture"]>)

Source from the content-addressed store, hash-verified

258 }
259
260 const clearContext = (target: ReturnType<ReturnType<typeof usePrompt>["capture"]>) => {
261 for (const item of target.context.items()) {
262 target.context.remove(item.key)
263 }
264 }
265
266 const seed = (dir: string, info: Session) => {
267 serverSync().session.remember(info)

Callers 1

handleSubmitFunction · 0.85

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected