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

Function isMinimalSession

src/commands/insights.ts:2975–2981  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

2973 // Filter out warmup/minimal sessions (matching Python's is_minimal)
2974 // A session is minimal if warmup_minimal is the ONLY goal category
2975 const isMinimalSession = (sessionId: string): boolean => {
2976 const sessionFacets = facets.get(sessionId)
2977 if (!sessionFacets) return false
2978 const cats = sessionFacets.goal_categories
2979 const catKeys = safeKeys(cats).filter(k => (cats[k] ?? 0) > 0)
2980 return catKeys.length === 1 && catKeys[0] === 'warmup_minimal'
2981 }
2982
2983 const substantiveSessions = substantiveMetas.filter(
2984 s => !isMinimalSession(s.session_id),

Callers 1

generateUsageReportFunction · 0.85

Calls 2

safeKeysFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected