Bug Fixes
Runtime crash fixes
- Fixed
Cannot read properties of undefined (reading 'totalInputTokens')on the overview page when stats-cache is missing - Fixed
formatCost(undefined)crash on session detail page - Fixed
Object.values(undefined)crash on tools page (feature_adoption) - Fixed
Object.keys(d.costs)crash in cost-over-time chart when costs field is absent - Added
?? 0guards on token fields in model breakdown donut - Added null guards on
tool_counts,languages,hourCountsacross API routes and components
API error handling
- All SWR fetchers now throw on non-OK HTTP responses, so API errors surface in the error UI instead of crashing with missing fields
Lint (0 errors)
- Fixed
setState-in-useEffectinThemeProvider,TopBar, andOverviewClient— state now initialized lazily - Moved
SortHeaderout ofSessionTablerender function - Fixed unescaped quote entities in
CompactionCard - Fixed
prefer-constin activity API route - Fixed empty interface in session detail page
- Added
eslint-disableforDate.now()purity warnings (valid use case) - Disabled
no-require-importsforbin/cli.js(CommonJS CLI file)