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

Function ensureDetail

packages/opencode/src/cli/cmd/run/subagent-data.ts:63–72  ·  view source on GitHub ↗
(data: SubagentData, sessionID: string)

Source from the content-addressed store, hash-verified

61}
62
63function ensureDetail(data: SubagentData, sessionID: string) {
64 const current = data.details.get(sessionID)
65 if (current) {
66 return current
67 }
68
69 const next = createDetail(sessionID)
70 data.details.set(sessionID, next)
71 return next
72}
73
74export function sameSubagentTab(a: FooterSubagentTab | undefined, b: FooterSubagentTab | undefined) {
75 if (!a || !b) {

Callers 5

syncTaskTabFunction · 0.85
ensureBlockerTabFunction · 0.85
bootstrapSubagentDataFunction · 0.85
bootstrapSubagentCallsFunction · 0.85
reduceSubagentDataFunction · 0.85

Calls 3

createDetailFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected