Skip to content

v0.2.2

Choose a tag to compare

@Arindam200 Arindam200 released this 03 Apr 09:56

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 ?? 0 guards on token fields in model breakdown donut
  • Added null guards on tool_counts, languages, hourCounts across 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-useEffect in ThemeProvider, TopBar, and OverviewClient — state now initialized lazily
  • Moved SortHeader out of SessionTable render function
  • Fixed unescaped quote entities in CompactionCard
  • Fixed prefer-const in activity API route
  • Fixed empty interface in session detail page
  • Added eslint-disable for Date.now() purity warnings (valid use case)
  • Disabled no-require-imports for bin/cli.js (CommonJS CLI file)