feat(claude-code-hooks): improve session handling and add tests

🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
YeonGyu-Kim
2026-03-31 17:33:29 -07:00
parent a720ef5334
commit 439c9a6499
7 changed files with 205 additions and 13 deletions
@@ -97,6 +97,10 @@ export function clearTranscriptCache(sessionId?: string): void {
}
}
export function hasTranscriptCacheEntry(sessionId: string): boolean {
return transcriptCache.has(sessionId)
}
function isCacheValid(entry: TranscriptCacheEntry): boolean {
return Date.now() - entry.createdAt < TRANSCRIPT_CACHE_TTL_MS
}