MCPcopy Create free account
hub / github.com/xerrors/Yuxi / makeChildThreadId

Function makeChildThreadId

web/src/utils/subagentThread.js:98–103  ·  view source on GitHub ↗
(parentThreadId, agentSlug, toolCallId)

Source from the content-addressed store, hash-verified

96}
97
98export async function makeChildThreadId(parentThreadId, agentSlug, toolCallId) {
99 if (!parentThreadId || !agentSlug || !toolCallId) return ''
100 const data = new TextEncoder().encode(`${parentThreadId}:${agentSlug}:${toolCallId}`)
101 const hex = await digestSha256Hex(data)
102 return `${PREFIX}${hex.slice(0, DIGEST_LENGTH)}`
103}

Callers 1

runFunction · 0.90

Calls 2

digestSha256HexFunction · 0.85
encodeMethod · 0.45

Tested by 1

runFunction · 0.72