codeburn/tests
ozymandiashh 700e4d1a27
fix(pricing): carry long-context tier rates through bundling, applied where billing evidence exists (#1478)
* fix(pricing): carry long-context tier rates through bundling and price them where billing evidence exists

LiteLLM publishes *_above_<n>k_tokens rates for 418 models - OpenAI's
gpt-5.4/5.5/5.6 family above 272k, Anthropic above 200k, and 128k/256k/
512k tiers elsewhere - but the bundler flattened every entry to the
fixed five-slot tuple and calculateCost had no threshold dimension, so
a request past its threshold priced at the base rate forever (#1076).

The tuple gains an optional sixth slot {threshold, input, output,
cacheWrite, cacheRead}, the threshold parsed from the key suffix
because LiteLLM ships no numeric field (272k means 272,000; #1075
verified assuming 128k fabricates +64% spend). Old bundles parse
unchanged; CACHE_SCHEMA_VERSION moves to 5 (4 is taken on main by the
implicit cache-write billing) so a stale on-disk live-pricing cache
cannot reintroduce the old behavior; the live-fetch parser picks the
same tier up; service-tier _priority/_flex variants and the 1-hour
cache-write combination are not context thresholds and stay out.

A tier applies when the request's prompt tokens (input + cached input,
the existing grok-4.6 definition) reach the threshold, each published
rate replacing its base and omitted slots keeping the base.
Application is gated on billing evidence via TIERED_PRICING_PROVIDERS:
codex today, where the maintainer's corpus measurement shows the
surcharge passing through; a real Copilot session on gpt-5.6-terra
with ~6M-token prompts billed at the BASE rate, so Copilot keeps base
pricing until such evidence exists - applying it there would fabricate
spend, the exact class #1075 warned about. The audit report recomputes
through the same tier swap so recomputedTotalUSD keeps tracking
attributedCostUSD.

* fix(pricing): read tier rates only from the chosen threshold; e2e codex tier test

Repair pass from review: both tierOf implementations now collect rates
per threshold and read only from the largest one, so a hypothetical
two-tier entry can never mix the smaller tier's rates under the bigger
threshold; the bundler validates tier values exactly like the live
parser (finite, non-negative). A codex end-to-end test drives a real
rollout past gpt-5.5's 272k prompt threshold and asserts the tiered
arithmetic explicitly (a typo'd provider string in codex.ts would
leave the call at base rates and fail it), alongside the no-provider
base-rate control that keeps the real Copilot billing pin intact.
Comment fixes: the priceOverride wording, the grok pin's actual
resolution branch, and the threading note on TIERED_PRICING_PROVIDERS
for whoever adds the next provider.

* fix(pricing): recompute the audit tier per call and re-derive warm daily caches

Both review blockers:

- audit-report no longer feeds a bucket's SUMMED tokens into the
  per-call 272k threshold (a \,979 phantom gap on the reviewer's
  corpus, any tiered codex model clearing the threshold on the sum
  alone). The recompute accumulates per call, through the same tier
  swap calculateCost applies, with each call's own prompt total; a new
  fixture mixes one 300k call with 200 small ones whose sum blows past
  the threshold and pins that only the big call tiers. Web search
  stays on the base rates - it never participates in a tier.
- DAILY_CACHE_VERSION 33 -> 34 with MIN_SUPPORTED_VERSION raised to
  match, the cfdaa685 convention: a 33 file written under tierless
  pricing is below the floor, is not adopted as the finalized base,
  and its days re-derive off the warm session cache (\ of codex
  spend on the reviewer's corpus lives only in the daily cache). The
  migration tests pin the new floor contract: no version-diff repairs
  merge into a below-floor file, and the v30 adoption test tracks
  CURRENT.

Nits from review: the kimi precision tightening is reverted to (8, 5),
and the tieredCostsFor comment is rewrapped.

Measured on this machine's corpus, tier-only (branch vs the refresh
branch, same data): +\.43 lifetime codex - this corpus runs far
more sessions past 272k than the reviewer's 8-of-51,801 (+\.012964);
both numbers are real, the corpora differ.

* fix(pricing): preserve base alias selection when bundling context tiers

* fix(pricing): address the 28 Sep review - floor stays at 28, tier bills the implicit cache-write rate

Restore main's two carry-forward tests: with MIN_SUPPORTED_VERSION kept
at 28 (per the review's correction, warm caches re-derive identically
under 41/28, so raising the floor is unnecessary) a v33 file sits in
the adopt-with-repairs window again and main's expectations hold; the
tier's warm-cache coverage stays in daily-cache-version-rederivation.

The tier-omits-slot test bills an implicit cache-write at the input
rate of the costs object in effect (#1544), so the tiered expectation
is 1_000 * cacheWriteCostPerToken('gpt-5.5', tieredCosts).

Note on the Codex estimate path: an estimated prompt can cross a
long-context threshold and tier itself; measured corpora hold no
estimated calls that cross.

* fix(pricing): pin claude-opus-4 primary and keep carried fallback rows hygienic in the refreshed snapshot

The requested regeneration surfaced two upstream moves beside the tier
work. LiteLLM dropped `claude-opus-4`; a refresh carries dropped ids
into the fallback tier, but the Cursor-style alias `claude-4-opus`
resolves against primary rows, so the bare id fell to the snowflake
gateway row and under-priced by 3x. Pinned at Anthropic's list price
in MANUAL_ENTRIES so it stays primary. LiteLLM also repriced
grok-4.6's base input 2e-6 -> 1.25e-6 (tier rates unchanged); the
below-threshold literal follows. Both changes reproduce identically
with main's unchanged bundler on the same live responses.

Today's drops also exposed a gap in the #1483 carry-forward: primary
files legitimately hold @pin, date-suffixed and free-on-both rows, and
carrying those verbatim imports exactly what
tests/pricing-fallback-data.test.ts keeps out of the fallback file
(main's own next refresh fails those tests today). The carry now skips
@pin/date-suffixed keys (no query can arrive in those forms) and
free-on-both rows (an unpriced model falls to expected-free handling);
vendor-prefixed keys stay carriable since queries match them verbatim.

---------

Co-authored-by: Resham Joshi <65915470+iamtoruk@users.noreply.github.com>
2026-09-28 19:10:39 +02:00
..
fixtures fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
providers fix(pricing): carry long-context tier rates through bundling, applied where billing evidence exists (#1478) 2026-09-28 19:10:39 +02:00
security fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
setup Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02:00
sharing fix(sharing,mcp): drop or pseudonymize pull request rows in redacted payloads 2026-09-14 17:53:04 +03:00
act-journal.test.ts fix(guard): dedupe streaming message copies in the incremental cost fold 2026-07-03 12:32:46 +02:00
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 fix(act): support directory moves for archive actions 2026-07-03 10:14:48 +02:00
antigravity-statusline.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
audit-report.test.ts fix(pricing): carry long-context tier rates through bundling, applied where billing evidence exists (#1478) 2026-09-28 19:10:39 +02:00
bash-commands.test.ts perf(classifier): linear bash separator split 2026-08-16 18:31:41 -07:00
billable-output-1115.test.ts fix: uncap the Overview model table, billions token rung, unpriced calls dimming (#1443) 2026-09-17 13:53:10 +02:00
billing-route-filter.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
blob-to-text.test.ts Merge main into feat/multi-provider-plans, remove dead tautology 2026-05-16 10:42:03 -07:00
bounded-load-parse.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
branch-spend.test.ts Add spend-by-branch report (spend --format branch-json) 2026-09-12 13:09:00 -07:00
budget.test.ts feat(budget): spend budgets with overview display and scriptable --check (#562) 2026-07-16 11:10:16 -07:00
bundle-litellm.test.ts fix(pricing): carry long-context tier rates through bundling, applied where billing evidence exists (#1478) 2026-09-28 19:10:39 +02:00
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 feat(antigravity): parse tool calls, bash commands, MCP tools, and skills from SQLite steps table (#1456) 2026-09-17 09:14:17 +02:00
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 fix(cache): recover a corrupt session-refresh lock instead of freezing ingestion 2026-07-30 13:06:25 +05:30
cache-refresh-lock-process.test.ts fix(tui): clean cache locks on confirmed exit (#1165) 2026-08-28 15:06:07 -07:00
cache-refresh-lock-status-snapshot.test.ts fix: harden status snapshot invalidation and writes 2026-08-25 01:24:19 +03:00
cache-refresh-lock.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
cache-sweep.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02: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-billing-route-filters.test.ts fix(opencode): Vertex sessions no longer show $0 (#1552) 2026-09-25 00:01:02 +02:00
cli-budget.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
cli-cache-read-pipeline.test.ts test(cli): keep fresh cache-read seeds inside the current UTC day 2026-09-13 06:04:04 +03:00
cli-codex-tps.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-compare-cohort.test.ts Fix cohort accounting and exact project selection 2026-09-12 14:01:29 -07:00
cli-date.test.ts feat(cli): add lifetime period for CLI and dashboard (#753) 2026-07-20 05:24:33 -07:00
cli-deepseek-v4-pricing.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-devin-model-variants.test.ts devin: price sessions from tokens, drop the ACU rate (#1469) 2026-09-17 16:57:30 +02:00
cli-durable-totals.test.ts fix(aggregator): overlayProviderDaySlices overwrote settled cache days with shrunken parses 2026-09-02 07:32:02 -07:00
cli-emitters.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
cli-export-date-range.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-export-project-filter.test.ts fix(app): stop reporting an export that wrote nothing as a success 2026-09-12 05:38:52 -07:00
cli-json-daily.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02: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 test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-models-unpriced.test.ts fix: name the usage that prices at $0 instead of hiding it (#1491) 2026-09-18 16:48:26 -07:00
cli-node-env.test.ts fix(cli): default NODE_ENV to production so Ink's React build stops leaking user-timing entries. 2026-09-07 10:27:46 -03:00
cli-peak-hours.test.ts Track peak vs off-peak usage for first-party DeepSeek and Z.ai routes (#1561) 2026-09-28 18:48:38 +02:00
cli-plan.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-price-override.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-project-filter-commands.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
cli-provider-validation.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-proxy-path.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
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-route-surfaces.test.ts feat(models): carry the billing route on the call and key model rows on it (#1448) 2026-09-17 13:32:34 +02:00
cli-session-across-days.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
cli-settings-json.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cli-status-menubar.test.ts feat(gnome): show combined usage from paired devices (#1566) 2026-09-27 16:14:53 +02:00
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-cache-wsl-flush.test.ts windows: discover provider roots inside WSL distros (#1062) 2026-09-19 12:33:29 -07:00
codex-credits.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
codex-missing-cumulative.test.ts fix(codex): preserve distinct requests when cumulative usage is missing (#1264) 2026-09-16 10:50:25 +02:00
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-projects-index.test.ts perf: load only the session-cache members a date range can use (#1542) 2026-09-24 19:52:42 +02:00
codex-rich-capture.test.ts feat(capture): parse-time capture of branch, LOC deltas, interruptions, titles, PR links 2026-07-20 05:56:38 -07:00
codex-throughput.test.ts Preserve Codex work after fork replay (#1569) 2026-09-27 17:18:05 +02:00
compare-cohorts.test.ts Wire cohort samples to the real drill-through, scope and serve the new flags 2026-09-12 14:02:01 -07:00
compare-periods-cli.test.ts fix(compare-periods): real drill-through, project scope, clean date errors 2026-09-12 13:43:41 -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 fix(parser): tolerate string message content; isolate per-file parse failures (#441) (#450) 2026-06-06 04:01:12 +02:00
context-budget-home.test.ts fix(context-budget): stop double-counting home skills and CLAUDE.md 2026-08-04 06:32:58 +03:00
context-tree-api-prefix.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
context-tui-title.test.ts dashboard: Workflow panel, footer coaching notes, title-first context list 2026-07-20 22:26:50 +02:00
context-window.test.ts context: Fable and Mythos 5 report a 1M window (#1522) 2026-09-23 16:35:29 +02:00
copilot-aiu-serve.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
copilot-aiu.test.ts feat: Copilot AI Credit plan math from total_nano_aiu 2026-08-23 19:12:04 +05:30
cross-provider-pr-correlation.test.ts fix(pr-attribution): time-bound working-directory correlation 2026-08-10 14:13:57 -07:00
cross-provider-project-merge.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
currency-rounding.test.ts fix(currency): resolve RON symbol to "lei" across all surfaces 2026-07-06 03:43:03 +03:00
cursor-import.test.ts feat(cursor): import Cursor's usage CSV to replace local estimates (#1558) 2026-09-25 05:27:57 +02:00
daily-cache-carry-forward.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
daily-cache-degraded-completeness.test.ts fix(daily-cache): ranged parses never write days outside their range 2026-08-24 07:28:43 -07:00
daily-cache-tz-dedup.test.ts fix(daily-cache): surgical tz-migration de-dup for carried days (#770) 2026-08-04 04:11:30 +03:00
daily-cache-version-rederivation.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
daily-cache.test.ts fix: four provider parsing and pricing attribution bugs (#1489) 2026-09-18 15:15:10 -07:00
dashboard-custom-range-provider.test.ts perf(tui): show cached periods before refreshing sources (#1159) 2026-08-28 13:21:47 -07:00
dashboard-exit.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
dashboard-period-truth.test.ts perf(tui): show cached periods before refreshing sources (#1159) 2026-08-28 13:21:47 -07:00
dashboard-process-exit.test.ts test: stop the dashboard Ctrl-C test timing out (#1477) 2026-09-18 00:12:42 -07:00
dashboard-progressive-startup.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
dashboard-resize.test.ts fix(tui): clear stale panels on settled resize (#1156) 2026-08-28 13:21:03 -07:00
dashboard.test.ts dashboard: fold instead of spread when measuring column widths (#1460) 2026-09-16 18:52:02 +02:00
date-range-filter.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
day-aggregator-savings.test.ts feat(models): carry the billing route on the call and key model rows on it (#1448) 2026-09-17 13:32:34 +02:00
day-aggregator.test.ts desktop: token breakdown popover behind dollar amounts (#1472) 2026-09-18 00:03:37 -07:00
default-today-period.test.ts feat: open the interactive dashboard on today, falling back to 7 days when today is empty 2026-08-23 02:39:41 -07:00
defer-plans.test.ts feat(act): defer-* plan kinds for native deferral config (part 2 of #614) (#631) 2026-07-16 19:01:54 -07:00
devices-json.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
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 fix(dsh): count every dropped session toward doctor 2026-09-12 03:48:52 -07:00
dsh-cache-invalidation.test.ts Fix interleaved DSH accounting and preserve inclusive output 2026-09-11 21:12:15 +08:00
durable-publish-guard.test.ts fix: never hold back a save for any durable-source provider (#1514) 2026-09-21 00:38:33 +02:00
durable-underread-reconcile.test.ts fix(daily-cache): keep the reconcile from rewriting a day's carried mark 2026-09-12 04:58:13 -07: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 fix: four cost accuracy bugs in export and pricing (#1544) 2026-09-24 15:55:23 +02:00
fetch-utils.test.ts fix(network): add timeouts to critical-path fetches (#445) (#448) 2026-06-06 03:25:36 +02:00
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 fix(dashboard): label the day-count denominator, explain durable carry-forward 2026-07-29 23:02:05 +05:30
format-mark-estimated.test.ts fix(report): surface estimated costs distinctly (#688) 2026-07-16 10:46:21 -07:00
format-status-bar.test.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
format-tokens.test.ts fix: uncap the Overview model table, billions token rung, unpriced calls dimming (#1443) 2026-09-17 13:53:10 +02:00
fs-utils.test.ts Raise streaming session cap to 4GB so large Codex sessions are counted (#569) 2026-06-26 01:16:56 +02:00
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 fix: keep macOS and Linux path behaviour exact in guard flags and Hermes 2026-09-02 15:11:01 -07:00
guard-install.test.ts fix(guard): dedupe streaming message copies in the incremental cost fold 2026-07-03 12:32:46 +02:00
hermes-cost-fallback.test.ts harden provider period and cache contracts 2026-09-02 16:18:05 +05:30
hermes-pr-links-pipeline.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
hermes-session-ledger.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
hydration-interrupt-convergence.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
incremental-sweep.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
ink-win.test.ts fix(ink-win): strip synchronized-update escapes instead of exact-matching them 2026-08-04 03:06:47 +03:00
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 fix(kiro): emit workingDirectory so sync attribution can resolve the repo 2026-09-10 17:39:37 +00:00
launcher-homes.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
live-sessions.test.ts feat(dock): one Claude ring per config directory, with its own sessions and today (#1570) 2026-09-28 19:06:53 +02:00
local-model-savings.test.ts feat(cli): track local-model cost savings against a paid baseline (#421) 2026-06-01 11:06:39 +03:00
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 feat(act): defer-* plan kinds for native deferral config (part 2 of #614) (#631) 2026-07-16 19:01:54 -07:00
mcp-redact.test.ts fix(sharing,mcp): drop or pseudonymize pull request rows in redacted payloads 2026-09-14 17:53:04 +03:00
mcp-server.test.ts feat(mcp): get_usage + get_savings tools with annotations, schemas, coalescing 2026-06-02 02:16:10 -07:00
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 test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
menubar-history-project-filter.test.ts fix(usage-aggregator): slice the 365-day history by the project filter 2026-09-12 05:50:40 -07:00
menubar-installer-windows.test.ts fix(windows): Store installs get no GitHub update offer, and codeburn menubar opens the Store copy by its app id (#1520) (#1549) 2026-09-24 19:51:04 +02:00
menubar-installer.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
menubar-json.test.ts fix: uncap the Overview model table, billions token rung, unpriced calls dimming (#1443) 2026-09-17 13:53:10 +02:00
menubar-legacy-decode.test.ts fix(menubar): older menubar apps load again, and in-app Update restarts the app (#1548) 2026-09-24 20:07:25 +02:00
menubar-model-tokens.test.ts fix: uncap the Overview model table, billions token rung, unpriced calls dimming (#1443) 2026-09-17 13:53:10 +02:00
menubar-project-identity.test.ts test(cli): keep fresh cache-read seeds inside the current UTC day 2026-09-13 06:04:04 +03:00
menubar-provider-alias-contract.test.ts test(menubar): pin every ProviderFilter case to a real CLI provider id 2026-09-02 07:55:54 -07:00
menubar-relaunch.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
menubar-report-parity.test.ts test(menubar): ignore idleSeconds in the payload parity check 2026-09-02 23:18:34 -07:00
menubar-savings.test.ts kimicode: discover desktop-runtime sessions and fix menubar visibility 2026-07-23 21:31:25 +02:00
minimax.test.ts chore(pricing): refresh LiteLLM snapshot; MiniMax-M3 standard tier 2026-07-02 06:17:01 +02:00
model-breakdown.test.ts models: resolve Fireworks-hosted models to friendly display names (#787) 2026-07-20 14:22:12 -07:00
model-display-consistency-1530.test.ts fix(models): name dot-form Claude minors and future GPT ids consistently (#1531) 2026-09-28 18:48:21 +02:00
model-efficiency.test.ts 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
model-routes.test.ts fix(opencode): Vertex sessions no longer show $0 (#1552) 2026-09-25 00:01:02 +02:00
model-rows-reconcile.test.ts fix: model tables sum to the headline above them (#1468) 2026-09-17 15:54:14 +02:00
models-hoist.test.ts Merge main into feat/multi-provider-plans, remove dead tautology 2026-05-16 10:42:03 -07:00
models-report.test.ts Track peak vs off-peak usage for first-party DeepSeek and Z.ai routes (#1561) 2026-09-28 18:48:38 +02:00
models.test.ts fix(pricing): carry long-context tier rates through bundling, applied where billing evidence exists (#1478) 2026-09-28 19:10:39 +02:00
mouse-tracking.test.ts fix: mouse tracking off by default so text selection works, m toggles it (#1562) 2026-09-25 20:17:07 +02:00
opencode-route-cache-invalidation.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
opencode-vertex-cost-cache.test.ts fix(opencode): Vertex sessions no longer show $0 (#1552) 2026-09-25 00:01:02 +02:00
optimize-apply.test.ts optimize: flag sessions with a low prompt cache hit rate (#1536) 2026-09-24 02:54:50 +02:00
optimize-fs.test.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
optimize-scan-memo.test.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02: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: bound zero-edit low-worth savings estimate to a recovery fraction (#640) (#691) 2026-07-16 11:09:44 -07:00
optimize.test.ts optimize: flag sessions with a low prompt cache hit rate (#1536) 2026-09-24 02:54:50 +02:00
otel-cache-aggregation.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
overview.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
parse-workers.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
parser-advisor-usage.test.ts feat(claude): account for /advisor escalations under the advisor model (#659) 2026-07-16 07:42:49 -07:00
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 test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
parser-compact-entry.test.ts sessions: attribute PR spend per turn instead of per session (#790) 2026-07-20 20:44:29 -07:00
parser-estimated-cost.test.ts fix(report): surface estimated costs distinctly (#688) 2026-07-16 10:46:21 -07:00
parser-filter.test.ts fix(cli): expand a leading ~ in a project pattern 2026-09-11 17:29:55 +02:00
parser-gemini-cache.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
parser-hydration-lock.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -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: dedupe the twin string/Buffer large-JSONL scanners (#698) 2026-07-16 12:23:06 -07:00
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-lineage-capture.test.ts feat(parser): capture provider-recorded session lineage (CB-1 slice 1) (#1140) 2026-08-25 05:31:44 -07:00
parser-local-savings.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
parser-mcp-inventory.test.ts feat(optimize): MCP tool coverage detector with cache-aware costing 2026-05-05 04:13:04 +03:00
parser-number-helpers.test.ts feat: add devin provider (#444) 2026-06-09 21:58:31 +02:00
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 fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
parser-proxy-merge.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
parser-proxy-pricing.test.ts test: fix the five environment-sensitive failures the first ubuntu run exposed 2026-08-04 03:38:18 +03:00
parser-rich-capture.test.ts sessions: fold subagent runs into PR attribution (#791) 2026-07-20 20:47:23 -07:00
parser-single-pass-scanner.test.ts perf(parser): single-pass field extraction in the large-line JSONL scanner 2026-07-18 17:23:34 -07:00
parser-skip-line.test.ts Merge main into feat/multi-provider-plans, remove dead tautology 2026-05-16 10:42:03 -07:00
parser-subagent-collection.test.ts feat(report): Claude-scoped agent-type breakdown 2026-06-10 11:45:28 +02:00
parser-subagent-range.test.ts fix(optimize): exclude sidechains from session heuristics (#974) 2026-08-12 20:59:12 +05:30
parser.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
peak-hours.test.ts Track peak vs off-peak usage for first-party DeepSeek and Z.ai routes (#1561) 2026-09-28 18:48:38 +02:00
perf-harness-phase0.test.ts test(perf): add Phase 0 wait-path harness and pin main baselines 2026-08-29 23:45:46 +05:30
period-diff-boundary-parse.test.ts Compare periods: lead sentence, three tiles, day bars, top movers (#1446) 2026-09-15 23:12:12 +02:00
period-diff.test.ts Fix period comparison identities, daily deltas and detail cache 2026-09-12 13:43:24 -07:00
phantom-spend-guard.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
pi-project-cwd-identity.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
pi-two-roots-same-basename.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
plan-budget-copy.test.ts fix(plan): move the Copilot credits bar onto the estimate and print whole credits (#1199) 2026-08-31 03:10:29 -07:00
plan-usage.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
plans.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
plugin-exporter.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
plugin-signing.test.ts fix(plugins): codepoint-ordered signature canonicalization; sign fails loudly on unreadable files 2026-08-28 05:52:36 -07:00
plugin-socket.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
plugin-tar-security.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
pricing-fallback-data.test.ts feat(pricing): automatic gap-fill from models.dev and OpenRouter (#457) 2026-06-09 21:17:23 +02:00
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 fix(cli): anchor an absolute-path project pattern to a segment boundary 2026-09-11 16:12:21 +02:00
project-identity-residuals.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
project-key-cwd-preserve-1260.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
project-match-parity.test.ts test(app): move the project-match parity test to the CLI suite 2026-09-12 05:38:52 -07:00
project-path-posix-case.test.ts fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
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 Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02: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 chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
provider-probe-roots.test.ts fix(cursor-agent): read CLI sessions that exist only in ~/.cursor/chats store.db (#986) (#1556) 2026-09-25 05:16:29 +02:00
provider-registry.test.ts chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
provider-turn-grouping.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
quota-claude-wsl.test.ts fix(windows): read the Claude quota credential from running WSL distros (#1061) (#1554) 2026-09-25 01:35:41 +02:00
quota-clinepass.test.ts feat(cli): live ClinePass quota in codeburn quota 2026-09-01 17:01:33 -07:00
quota-codex-banked-resets.test.ts feat(quota): show Codex limit resets in the Plan tab, hover card and CLI 2026-09-12 14:37:24 -07:00
quota-codex-refresh.test.ts fix(windows): make the cross-process lock test poll, not spin, so it passes on Windows 2026-09-03 11:28:01 -07:00
quota-copilot-ghe.test.ts fix(quota): reject a Copilot host carrying a URL delimiter 2026-09-12 06:14:26 -07:00
quota-copilot-windows.test.ts fix(cli): read the Copilot plugin token from %LOCALAPPDATA% on Windows 2026-09-01 16:52:44 -07:00
quota-cursor.test.ts fix(cursor): connect Enterprise team seats on the team on-demand meter (#1553) 2026-09-25 01:33:41 +02:00
quota-grok.test.ts test(quota): write credential fixtures with private permissions 2026-09-02 14:28:08 -07:00
quota-grokbot.test.ts Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02:00
quota-providers.test.ts feat(dock): one Claude ring per config directory, with its own sessions and today (#1570) 2026-09-28 19:06:53 +02:00
quota-zai.test.ts test(quota): write credential fixtures with private permissions 2026-09-02 14:28:08 -07:00
quota-zcode.test.ts feat(quota): add ZCode (z.ai coding plan) live quota provider (#1347) 2026-09-18 18:11:08 -07:00
quota.test.ts prerelease: quota NaN guard, 10-year daily retention, test date bomb (#764) 2026-07-20 07:37:56 -07:00
release-build-contract.test.ts fix release build hermeticity 2026-09-02 16:17:28 +05:30
report-parse-count.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
reported-cost-cache.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
result-cache-suffix.test.ts fix(cache): treat a present versioned result file as exclusive 2026-08-22 01:49:39 +05:30
retired-providers.test.ts chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
save-cache-yields.test.ts fix(tui): keep the dashboard responsive during the cold-start fill and exit on Ctrl+C (#1142) 2026-08-25 06:08:39 -07:00
scan-progress.test.ts fix(parser): keep scan-progress out of the interactive dashboard and compare TUIs 2026-07-10 00:50:35 +02:00
scoped-run-completeness.test.ts fix(cache): record session-cache completeness per provider 2026-09-12 04:00:40 -07:00
serve-progressive-hydration.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
serve-resident-release.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
serve-stdio.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
session-cache-bounded-load.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
session-cache-day-pieces.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02: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 perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
session-cache-status-snapshot.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
session-cache-v5-adoption.test.ts sessions: fold subagent runs into PR attribution (#791) 2026-07-20 20:47:23 -07:00
session-cache.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
session-contributions.test.ts Fix drill-through provider, day and model attribution 2026-09-12 12:22:19 -07:00
session-count-label.test.ts fix(menubar): older menubar apps load again, and in-app Update restarts the app (#1548) 2026-09-24 20:07:25 +02:00
session-period-count.test.ts fix(usage): preserve project identity and qualify incomplete session counts 2026-09-07 22:02:54 +05:30
sessions-by-branch.test.ts payload: spend by pull request and by branch; desktop Pull requests tab (#788) 2026-07-20 14:36:53 -07:00
sessions-by-pr.test.ts sessions: correlate cross-provider work with pull requests (#792) 2026-07-21 11:50:11 +02:00
sessions-report.test.ts chore: keep real people and machines out of a public repository 2026-09-03 12:38:11 -07:00
sessions-subagent-fold.test.ts sessions: fold subagent runs into PR attribution (#791) 2026-07-20 20:47:23 -07:00
single-pass-parse.test.ts fix(cache): record session-cache completeness per provider 2026-09-12 04:00:40 -07:00
spend-flow.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
sqlite-readonly-parent.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
sqlite-tcc-preflight.test.ts fix: stop a Full Disk Access blocked Warp read from freezing serve, and harden the Grok Bot quota reader (#1487) 2026-09-18 15:23:22 -07:00
streak.test.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
surface-hydration.test.ts fix: emit hydration only while incomplete so warm serve stays byte-identical to one-shots 2026-08-23 05:33:37 -07:00
sync-attribution-cli.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
sync-attribution.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
sync-cb3-wire.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
sync-consent.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
sync-e2e.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
sync-headless-e2e.test.ts fix(sync): address PR review — https enforcement, keychain test isolation, golden ID pins 2026-07-13 16:45:39 +00:00
sync-infra-e2e.test.ts test(sync): unit, mock-IdP e2e, and developer-only integration tests 2026-07-12 16:05:34 +00:00
sync-ledger-otlp.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
sync-project-provenance.test.ts fix(sync): trust only proven outbound project metadata 2026-08-24 16:05:35 +05:30
sync-push.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
sync-wire-privacy.test.ts fix(sync): address project privacy review 2026-08-24 20:09:27 +05:30
sync.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
telemetry-snapshot.test.ts 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
token-estimate.test.ts Extract shared token estimation helper, migrate all CHARS_PER_TOKEN sites (#644) (#677) 2026-07-16 11:58:22 -07:00
usage-aggregator-billable-output.test.ts fix(report): bill remaining displayed output per call 2026-08-23 18:18:57 +05:30
usage-aggregator-freshness.test.ts feat: surface-wide progressive hydration via an explicit payload marker 2026-08-23 04:49:58 -07:00
usage-aggregator-provider-scope.test.ts fix(dock): scope the glance Today row to the hovered provider 2026-09-03 08:32:20 -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 Merge origin/main into cache-read and quota pace 2026-09-12 20:27:33 +03:00
user-timing-guard.test.tsx fix(cli): default NODE_ENV to production so Ink's React build stops leaking user-timing entries. 2026-09-07 10:27:46 -03:00
vercel-gateway-excluded-totals.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
warp-billing-cost-cache.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
web-dashboard.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07: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
work-units.test.ts feat(sessions): deterministic work-unit resolver and sessions --by-work-unit (CB-2 slice 1) (#1145) 2026-08-25 09:30:05 -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
wsl-cache-durable.test.ts windows: discover provider roots inside WSL distros (#1062) 2026-09-19 12:33:29 -07:00
wsl-cache-eviction-codex.test.ts windows: discover provider roots inside WSL distros (#1062) 2026-09-19 12:33:29 -07:00
wsl-cache-eviction.test.ts windows: discover provider roots inside WSL distros (#1062) 2026-09-19 12:33:29 -07:00
wsl-discovery.test.ts windows: discover provider roots inside WSL distros (#1062) 2026-09-19 12:33:29 -07:00
wsl-spawn.test.ts windows: discover provider roots inside WSL distros (#1062) 2026-09-19 12:33:29 -07:00
yield-branch-rescue.test.ts fix(yield): rescue sessions whose branch shipped past the session's window (#1476) 2026-09-18 17:10:27 -07:00
yield-overlap-attribution.test.ts fix(cli): judge a pattern against the day cache, and never on screen 2026-09-11 17:29:55 +02:00
yield-repo-grouping.test.ts fix(cli): judge a pattern against the day cache, and never on screen 2026-09-11 17:29:55 +02:00
yield.test.ts yield: single-owner commit attribution, ambiguous bucket, heuristic caveat (#692) 2026-07-16 13:09:26 -07:00