Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
192
function scopeKey(scope: Scope) {
193
if (
"draftID"
in scope) return `draft:${scope.draftID}`
194
return `${scope.dir}:${scope.id ?? WORKSPACE_KEY}`
195
}
196
197
type PromptCacheEntry = {
198
value: PromptSession
Callers
1
load
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected