mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
c899d7d836
The Details panel divided the raw count_tokens baseline by sent tokens (cache-blind), over-claiming "X% smaller" even when the cache-aware row showed a net loss — the two panels could flatly contradict each other. - dashboard.ts: feed baselineInputEff/actualInputEff/haveBaseline into ContextMapData (same weighted pair the recent row uses); push after the eff-tokens are computed so the breakdown matches. - fragments.ts: headline divides weighted baseline by weighted actual, says "bigger" on a net loss, with a clarifying sub-line; no savings claim when the baseline probe did not resolve. - +4 tests (context-map.test.ts) pinning headline direction to the row. 370 tests pass; typecheck + build clean.