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

Function scopeKey

packages/app/src/context/prompt.tsx:192–195  ·  view source on GitHub ↗
(scope: Scope)

Source from the content-addressed store, hash-verified

190}
191
192function scopeKey(scope: Scope) {
193 if ("draftID" in scope) return `draft:${scope.draftID}`
194 return `${scope.dir}:${scope.id ?? WORKSPACE_KEY}`
195}
196
197type PromptCacheEntry = {
198 value: PromptSession

Callers 1

loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected