MCPcopy
hub / github.com/codeaashu/claude-code / consumeInvokingRequestId

Function consumeInvokingRequestId

src/utils/agentContext.ts:163–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 * marks a spawn/resume boundary.
162 */
163export function consumeInvokingRequestId():
164 | {
165 invokingRequestId: string
166 invocationKind: 'spawn' | 'resume' | undefined
167 }
168 | undefined {
169 const context = getAgentContext()
170 if (!context?.invokingRequestId || context.invocationEmitted) {
171 return undefined
172 }
173 context.invocationEmitted = true
174 return {
175 invokingRequestId: context.invokingRequestId,
176 invocationKind: context.invocationKind,
177 }
178}
179

Callers 2

logAPIErrorFunction · 0.85
logAPISuccessFunction · 0.85

Calls 1

getAgentContextFunction · 0.85

Tested by

no test coverage detected