fix(FN-4389): complete missing token usage parity and dashboard split

Fusion-Task-Id: FN-4389
Fusion-Task-Lineage: 366f9d57-c476-448f-96c0-6e753fc8b090
This commit is contained in:
Fusion
2026-05-13 21:58:51 -07:00
committed by gsxdsm
parent 4e6440a126
commit 7490c3bd0c
8 changed files with 92 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
---
"@runfusion/fusion": patch
---
Canonicalize task token usage semantics across heartbeat and executor paths by treating `cachedTokens` as cache-read only, storing cache writes in new `cacheWriteTokens`, and preserving raw `inputTokens`.
Dashboard token stats now render separate `Cache read` and `Cache write` values.
Historical rows created before this fix may still contain mixed cache-read+cache-write values inside `cachedTokens`; existing data is not backfilled.