codeburn/app/renderer/sections
iamtoruk 55bc53e6be fix(app): cold start survives, first-run shows per-provider progress
Root cause of the field-reported 45s timeout + perpetual slowness: on
a cold cache all six sections spawned different CLI subcommands at
once, each running its own full-history parse (~11-31s, ~3GB RSS),
contending past the 45s kill so the rebuilt cache never persisted and
every poll restarted from zero.

- the first overview fetch runs as a warmup: 10-minute timeout,
  re-arms until it succeeds, reverts to 45s after; section polls gate
  on that first resolution (usePolled gains enabled), so cold
  hydration happens exactly once
- warmup streams the CLI's progress protocol; the splash shows 'First
  run: indexing your usage history' with a per-provider ingest list
  (logo, live counts, check on done), static under reduced motion,
  generic fallback without events; warm launches unchanged
- overview spawns pass --no-timeline (desktop never renders it)

Measured on real data: cold 31s once (was: killed at 45s forever),
warm 2.6s. 295/295 app, 1797 root.
2026-07-16 10:51:18 -07:00
..
Compare.test.tsx fix(app): accuracy batch A — provider scoping, honest chart axes, range threading, stale-error banner 2026-07-16 01:14:41 -07:00
Compare.tsx fix(app): cold start survives, first-run shows per-provider progress 2026-07-16 10:51:18 -07:00
Models.test.tsx fix(app): models rows name their provider; picker shows all detected 2026-07-16 09:27:46 -07:00
Models.tsx fix(app): cold start survives, first-run shows per-provider progress 2026-07-16 10:51:18 -07:00
Optimize.test.tsx polish(app): shared empty states, type ladder, AA contrast, honest affordances, a11y semantics 2026-07-16 02:27:41 -07:00
Optimize.tsx fix(app): cold start survives, first-run shows per-provider progress 2026-07-16 10:51:18 -07:00
Overview.test.tsx feat(app): coaching signals card (menubar rule parity) 2026-07-16 03:30:51 -07:00
Overview.tsx fix(app): cold start survives, first-run shows per-provider progress 2026-07-16 10:51:18 -07:00
Plans.test.tsx fix(app): quota connects via macOS keychain + Connect affordance 2026-07-16 06:20:44 -07:00
Plans.tsx fix(app): cold start survives, first-run shows per-provider progress 2026-07-16 10:51:18 -07:00
Sessions.test.tsx feat(app): motion layer (gsap) — count-ups, chart grow-in, section fade, skeletons, toasts 2026-07-16 04:39:09 -07:00
Sessions.tsx fix(app): cold start survives, first-run shows per-provider progress 2026-07-16 10:51:18 -07:00
Settings.test.tsx fix(app): provider logos key on internal ids + monogram fallback 2026-07-16 09:27:46 -07:00
Settings.tsx fix(app): provider logos key on internal ids + monogram fallback 2026-07-16 09:27:46 -07:00
Spend.test.tsx feat(app): Sessions provider quick-filter + Spend project inline expand 2026-07-16 02:49:17 -07:00
Spend.tsx fix(app): cold start survives, first-run shows per-provider progress 2026-07-16 10:51:18 -07:00