MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getParentSessionId

Function getParentSessionId

src/utils/teammate.ts:34–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 * Priority: AsyncLocalStorage (in-process) > dynamicTeamContext (tmux teammates).
33 */
34export function getParentSessionId(): string | undefined {
35 const inProcessCtx = getTeammateContext()
36 if (inProcessCtx) return inProcessCtx.parentSessionId
37 return dynamicTeamContext?.parentSessionId
38}
39
40/**
41 * Dynamic team context for runtime team joining.

Callers 3

resumeAgentBackgroundFunction · 0.50
callFunction · 0.50
getCurrentAgentInfoFunction · 0.50

Calls 1

getTeammateContextFunction · 0.85

Tested by

no test coverage detected