mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
22d89ee37d
b9418bfrepriced cr>0-but-no-prior turns warm in dashboard.ts (update + replay) but left the identical gate in sessions.ts unfixed — so the Sessions panel still fabricated inflated savings after a restart/eviction or on the first tracked turn (a cr>0 turn priced cold bills the text counterfactual a 1.25x create on a prefix we KNOW was cached). Mirror the dashboard fix so "honest cache math" holds on every panel. - sessions.ts: warm follows the observed read (cr>0) alone; with no fresh prior, assume the cacheable prefix was fully reused (prevCacheable = cacheable) rather than mispricing a known-warm read. - sessions.test.ts: the "real prefix compression" case had cr=100 on its first turn (observably warm) yet asserted the cold-priced 22490 fabrication; corrected to the honest 1790 (warm) + 95 = 1885. Now a regression guard for this fix. - dashboard.ts: drop the stale "no per-session state" replay comment — replay now mirrors update()'s per-session warmth. Found by adversarial review ofb9418bf. 462 tests pass; tsc clean.