mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-22 06:54:26 +00:00
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. |
||
|---|---|---|
| .. | ||
| usePolled.test.ts | ||
| usePolled.ts | ||