MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getSessionEndHookTimeoutMs

Function getSessionEndHookTimeoutMs

source code/utils/hooks.ts:178–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 */
177const SESSION_END_HOOK_TIMEOUT_MS_DEFAULT = 1500
178export function getSessionEndHookTimeoutMs(): number {
179 const raw = process.env.CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS
180 const parsed = raw ? parseInt(raw, 10) : NaN
181 return Number.isFinite(parsed) && parsed > 0
182 ? parsed
183 : SESSION_END_HOOK_TIMEOUT_MS_DEFAULT
184}
185
186function executeInBackground({
187 processId,

Callers 3

gracefulShutdownFunction · 0.85
clearConversationFunction · 0.85
REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected