codeburn/tests
iamtoruk 43bbb99a92 perf: paint the cold dashboard from the recent files, index the rest behind it
A cold start parsed the whole corpus before painting anything (~36s on a 21k
corpus) even though the default view only shows the last 7 days. A session log
is append-only, so its last event timestamp is <= its mtime: a file stamped
before the start of the displayed range provably holds nothing that range can
show. On a cold cache the interactive dashboard now parses only the files above
that floor, paints, and indexes the rest from the mounted UI.

- parser: `withColdFirstPaintFloor` scopes a parse to files that can hold
  in-range data (mtime >= rangeStart - 48h clock-skew margin), deferring only
  files with NO cache entry — nothing that has something to serve is held back,
  and network sources (synthetic now-stamped fingerprint) always load.
- A run that deferred anything is a partial hydration: it does not stamp the
  session cache complete and reports hydrationComplete false, so the daily
  backfill cannot finalize history off it and the next launch resumes cold.
  A floored run that deferred NOTHING keeps the normal stamps.
- The floor participates in the parse memo key, so a first-paint result can
  never be served to (or burst-reused by) an unfloored request.
- dashboard: cold + TTY + standard dated view only. The background fill is an
  ordinary unscoped background reload, so its cache writes and its refreshed
  panels are exactly what a full cold parse produces. While it runs, an
  "indexing history N/M files" banner states that the totals cover only what is
  indexed so far.

One-shot outputs (json/csv/markdown, report, sessions, models, serve/menubar/app
payloads) are non-TTY and never enter this path.

Fixes #1107
2026-08-23 01:37:15 -07:00
..
fixtures fix: bound the serve drain, reap orphans on Windows, and de-flake the grace test 2026-08-22 10:36:58 -07:00
providers Merge origin/main into feat/copilot-session-store 2026-08-22 09:36:51 -07:00
security
setup Merge origin/main into feat/copilot-session-store 2026-08-22 09:36:51 -07:00
sharing
act-journal.test.ts
act-model-defaults.test.ts fix(optimize): isolate sidechains from behavior 2026-08-14 02:51:54 +05:30
act-report.test.ts merge: main into connector guidance branch 2026-08-18 08:17:25 -07:00
act-undo.test.ts
antigravity-statusline.test.ts
audit-report.test.ts Merge origin/main into feat/copilot-session-store 2026-08-22 09:36:51 -07:00
bash-commands.test.ts perf(classifier): linear bash separator split 2026-08-16 18:31:41 -07:00
blob-to-text.test.ts
budget.test.ts
cache-dir.test.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
cache-directory-switch.test.ts fix(cache): version-suffix provider result caches 2026-08-22 01:36:15 +05:30
cache-persistence-coldstart.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
cache-refresh-lock-corrupt-body.test.ts
cache-refresh-lock-process.test.ts fix(cache): accept completed-by-other as the stale-lock loser 2026-08-21 21:59:54 +05:30
cache-refresh-lock.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
classifier.test.ts fix(insights): count read-shaped shell commands as reads, not as verification (#941) 2026-08-10 06:07:27 -07:00
cli-budget.test.ts
cli-codex-tps.test.ts
cli-date.test.ts
cli-deepseek-v4-pricing.test.ts
cli-devin-model-variants.test.ts
cli-durable-totals.test.ts test: fix three pre-existing suite failures (aged date, future today fixture, load starvation) 2026-08-04 11:37:40 +02:00
cli-emitters.test.ts test: file-level 30s timeout for the three spawn-heavy CLI suites 2026-08-11 00:55:07 -07:00
cli-export-date-range.test.ts
cli-json-daily.test.ts test: file-level 30s timeout for the three spawn-heavy CLI suites 2026-08-11 00:55:07 -07:00
cli-model-flat-rate.test.ts fix(models): classify real subscription SKUs and let --remove opt out built-ins 2026-08-21 16:45:24 +05:30
cli-model-savings.test.ts
cli-models-unpriced.test.ts fix(models): treat subscription SKUs as honestly $0 2026-08-20 01:35:39 +05:30
cli-plan.test.ts
cli-price-override.test.ts
cli-provider-validation.test.ts
cli-proxy-path.test.ts
cli-refresh-help.test.ts Stabilize TUI refresh, scrolling, responsive layout, and dashboard data density (#863) 2026-08-09 03:39:19 +03:00
cli-settings-json.test.ts
cli-status-menubar.test.ts
codex-cache-concurrent-load.test.ts perf: fan out the discovery sweep instead of walking it one syscall at a time 2026-08-22 15:52:47 -07:00
codex-cache-invalidation.test.ts fix(cache): version-suffix provider result caches 2026-08-22 01:36:15 +05:30
codex-credits.test.ts merge: rebase #1056 onto main with Codex v12 / daily v24 2026-08-22 02:35:51 +05:30
codex-pricing-1075-rehydrate.test.ts fix(codex): stop double-billing reasoning output, price cache writes at the explicit rate only 2026-08-21 11:50:23 -07:00
codex-pricing-1075.test.ts docs(pricing): bound the codex repricing drift in verify:upgrade, fix stale comments 2026-08-21 12:49:05 -07:00
codex-rich-capture.test.ts
codex-throughput.test.ts fix(codex): stop double-counting reasoning tokens in Tok/s throughput 2026-08-21 14:42:04 -07:00
compare-stats.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
content-utils.test.ts
context-budget-home.test.ts
context-tree-api-prefix.test.ts
context-tui-title.test.ts
cross-provider-pr-correlation.test.ts fix(pr-attribution): time-bound working-directory correlation 2026-08-10 14:13:57 -07:00
currency-rounding.test.ts
daily-cache-carry-forward.test.ts fix(copilot): re-derive migrated copilot day slices, count the compaction row's output 2026-08-22 02:26:35 -07:00
daily-cache-degraded-completeness.test.ts
daily-cache-tz-dedup.test.ts
daily-cache-version-rederivation.test.ts Merge origin/main, and act on vidoluco's real-Copilot findings 2026-08-21 02:14:14 -07:00
daily-cache.test.ts
dashboard-resize.test.ts fix(tui): coalesce resize bursts without dropping updates 2026-08-19 13:48:50 +05:30
dashboard.test.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
date-range-filter.test.ts
day-aggregator-savings.test.ts
day-aggregator.test.ts Merge origin/main into feat/copilot-session-store 2026-08-22 09:36:51 -07:00
defer-plans.test.ts
devices-json.test.ts
discovery-concurrency.test.ts perf: fan out the discovery sweep instead of walking it one syscall at a time 2026-08-22 15:52:47 -07:00
doctor.test.ts test(cache): make the round-2 review findings fail when broken 2026-08-05 05:58:17 +03:00
env-isolation-declarations.test.ts test: consume runtime CLEARED/REDIRECTED arrays in the isolation guard 2026-08-21 18:58:21 +05:30
export.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
fetch-utils.test.ts
flat-slice.test.ts fix(parser): flatten already-sliced previews and memoize canonical path walks 2026-08-16 01:49:10 -07:00
format-carried-cost-note.test.ts
format-mark-estimated.test.ts
format-status-bar.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
fs-utils.test.ts
granular-history.test.ts fix(web): count legend title uniqueness in code points 2026-08-21 21:59:13 +05:30
grok-parser-pipeline.test.ts test(grok): pin the unpriced-model branch instead of inheriting it from the snapshot 2026-08-18 10:26:06 -07:00
guard-hooks.test.ts
guard-install.test.ts
hermes-pr-links-pipeline.test.ts fix(hermes): memoize the origin lookup; cover PR links end to end 2026-08-19 11:31:40 -07:00
hydration-interrupt-convergence.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
ink-win.test.ts
kiro-cache-invalidation.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
kiro-projectpath.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
local-model-savings.test.ts
mcp-coverage.test.ts fix(optimize): preserve Claude copy and use provider display names 2026-08-20 00:37:41 +05:30
mcp-deferral.test.ts
mcp-redact.test.ts
mcp-server.test.ts
mcp-tables.test.ts fix(models): treat subscription SKUs as honestly $0 2026-08-20 01:35:39 +05:30
menubar-carried-headline.test.ts
menubar-installer-windows.test.ts menubar: install and launch the Windows tray app from codeburn menubar 2026-08-18 06:55:09 -07:00
menubar-installer.test.ts
menubar-json.test.ts payload: add-only stale marker for read-only stale menubar serves (#771) 2026-08-22 11:38:46 -07:00
menubar-report-parity.test.ts
menubar-savings.test.ts
minimax.test.ts
model-breakdown.test.ts
model-efficiency.test.ts
models-hoist.test.ts
models-report.test.ts Merge origin/main into feat/copilot-session-store 2026-08-22 09:36:51 -07:00
models.test.ts fix(models): price claude-haiku-4.5 copilot session-store rows (#1093) 2026-08-22 11:41:08 -07:00
optimize-apply.test.ts merge: main into connector guidance branch 2026-08-18 08:17:25 -07:00
optimize-fs.test.ts parser: keep promptSource on lines over 32 KB 2026-08-18 12:00:29 -07:00
optimize-sidechains.test.ts fix(optimize): isolate sidechains from behavior 2026-08-14 02:51:54 +05:30
optimize-zero-edit-savings.test.ts
optimize.test.ts fix(optimize): do not claim a session scan for non-Claude providers 2026-08-21 15:58:05 +05:30
otel-cache-aggregation.test.ts
overview.test.ts fix(models): treat subscription SKUs as honestly $0 2026-08-20 01:35:39 +05:30
parse-workers.test.ts fix(cache): version-suffix provider result caches 2026-08-22 01:36:15 +05:30
parser-advisor-usage.test.ts
parser-antigravity-timestamp.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
parser-cache-refresh-timeout.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
parser-classify-after-slice.test.ts perf(parser): classify only the turns that survive the date slice 2026-08-17 00:09:38 -07:00
parser-claude-cwd.test.ts
parser-compact-entry.test.ts
parser-estimated-cost.test.ts
parser-filter.test.ts
parser-gemini-cache.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
parser-hydration-lock.test.ts fix(cache): make the shard layout safe against a second live writer 2026-08-16 19:23:39 -07:00
parser-incremental-append.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
parser-large-json-scanner-parity.test.ts
parser-large-json-scanner.test.ts parser: keep promptSource on lines over 32 KB 2026-08-18 12:00:29 -07:00
parser-large-session.test.ts fix(optimize): isolate sidechains from behavior 2026-08-14 02:51:54 +05:30
parser-local-savings.test.ts
parser-mcp-inventory.test.ts
parser-number-helpers.test.ts
parser-progress-keepalive.test.ts fix: address adversarial review of the timeout watchdog (F1-F7) 2026-08-22 09:58:59 -07:00
parser-proxy-codex-only.test.ts
parser-proxy-merge.test.ts
parser-proxy-pricing.test.ts
parser-rich-capture.test.ts
parser-single-pass-scanner.test.ts
parser-skip-line.test.ts
parser-subagent-collection.test.ts
parser-subagent-range.test.ts fix(optimize): exclude sidechains from session heuristics (#974) 2026-08-12 20:59:12 +05:30
parser.test.ts Merge origin/main into feat/copilot-session-store 2026-08-22 09:36:51 -07:00
plan-budget-copy.test.ts fix(plans): say monthly budget, not calendar month, and fit 80 columns 2026-08-19 11:30:07 -07:00
plan-usage.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
plans.test.ts
pricing-fallback-data.test.ts
progressive-cold-start.test.ts perf: paint the cold dashboard from the recent files, index the rest behind it 2026-08-23 01:37:15 -07:00
project-filter-durable-totals.test.ts
provider-display-name.test.ts fix(optimize): preserve Claude copy and use provider display names 2026-08-20 00:37:41 +05:30
provider-env-declarations.test.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
provider-phase-partial-save.test.ts fix: thread partial-progress saves into non-Claude provider phases 2026-08-22 09:39:26 -07:00
provider-probe-roots-tier2.test.ts feat(doctor): probeRoots for six fixed-location providers (#899 Tier 2, batch 1) (#938) 2026-08-09 03:38:35 +03:00
provider-probe-roots.test.ts
provider-registry.test.ts feat: add DeepSeek Harness (dsh) provider 2026-08-16 16:10:08 +08:00
provider-turn-grouping.test.ts
quota.test.ts
result-cache-suffix.test.ts fix(cache): treat a present versioned result file as exclusive 2026-08-22 01:49:39 +05:30
scan-progress.test.ts
serve-stdio.test.ts fix: bound the serve drain, reap orphans on Windows, and de-flake the grace test 2026-08-22 10:36:58 -07:00
session-cache-rich-capture.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
session-cache-shards.test.ts Merge remote-tracking branch 'origin/main' into fix/scoped-save-republish 2026-08-18 12:48:02 -07:00
session-cache-v5-adoption.test.ts
session-cache.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
sessions-by-branch.test.ts
sessions-by-pr.test.ts
sessions-report.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
sessions-subagent-fold.test.ts
single-pass-parse.test.ts perf: collapse the dashboard's repeated parses and hoist the PR-correlation loops 2026-08-23 00:31:23 -07:00
spend-flow.test.ts test: file-level 30s timeout for the three spawn-heavy CLI suites 2026-08-11 00:55:07 -07:00
sqlite-readonly-parent.test.ts fix(sqlite): only reach for an immutable URI where node:sqlite honours one 2026-08-18 10:38:01 -07:00
sync-attribution-cli.test.ts
sync-attribution.test.ts docs(sync): upsert by traceId without overclaiming privacy 2026-08-21 22:50:08 +05:30
sync-e2e.test.ts
sync-headless-e2e.test.ts
sync-infra-e2e.test.ts
sync-ledger-otlp.test.ts fix(sync): drop cleartext ai.session_id from attribution spans 2026-08-21 22:48:03 +05:30
sync-push.test.ts fix(sync,parser): review B — symmetric shape freeze, honest settle, stable residual keys 2026-08-19 13:25:15 -07:00
sync.test.ts
token-estimate.test.ts
usage-aggregator-freshness.test.ts fix: capture hydration flag right after the primary parse, not at return 2026-08-22 11:56:03 -07:00
usage-aggregator-savings.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
usage-aggregator.test.ts payload: add-only stale marker for read-only stale menubar serves (#771) 2026-08-22 11:38:46 -07:00
web-dashboard.test.ts fix(dash): keep the disambiguator visible, make the bootstrap safe by construction 2026-08-18 05:49:16 +03:00
wheel-scroll.test.ts feat(tui): mouse-wheel scrolling for the dashboard viewport via SGR mouse reporting 2026-08-10 04:41:34 -07:00
workflow-insights.test.ts fix(models): treat subscription SKUs as honestly $0 2026-08-20 01:35:39 +05:30
workflow-panel.test.ts fix(tui): floor pricing coverage so 100% means genuinely complete 2026-08-10 04:46:39 -07:00
yield-overlap-attribution.test.ts
yield-repo-grouping.test.ts
yield.test.ts