Repository navigation
v1.10.90 — Pre-AIC billing panel (premium requests, not credits, for pre-June ranges)
Fixes a real regression: the AIC section was rendering credit-based promo, budget, and overage cards for pre-AIC ranges (April / May 2026), contradicting the "Premium Requests" hero card. Users looking at May saw an invented ~$2,600 overage against a 3,000-credit budget that did not exist yet.
Fixed
Re-audit of billing-era display. For any range whose end date is before 2026-06-01 the AIC section now respects the historical billing model.
Added
- Premium Request Billing panel at the top of the AIC section for pre-AIC ranges.
- Used-vs-included bar against the plan's
includedPremiumRequestsallowance (300 Business, 1000 Enterprise, 1500 Pro+, 3000 Max). - Overage card at the historical rate of
\.04per premium request over the allowance.
- Used-vs-included bar against the plan's
- Section title switches to "Billing Detail (Pre-AIC · Premium Requests + AIC Reconstruction)".
- Model table below is now clearly labelled "AI Credits by Model (rate-table reconstruction)" so the AIC numbers are not mistaken for the invoice.
AICDashboardData.includedPremiumRequestsplumbed fromPLAN_SPECSthroughbuildDashboardData()to the webview so the panel reads the actual plan allowance instead of hardcoding.
Suppressed for pre-AIC ranges
PROMOtag on the section title- Credit budget bar (
x / 3000 credits used) - Dollar overage cards (
Overage (with promo)/Overage (without promo)/Promo Savings)
Verified
tests/audit-billing-era-split.jsconfirms every era renders the right headline: May → "Premium Requests" hero + premium-request panel; July → "AI Credits Spent" hero + credit budget bar; August → same as July (current cycle, live projections).- Existing tests still pass: webview parses (1 inline script, 84275 chars), historical credits populate for both pre-AIC months, per-model splits populate correctly.