# fix: preserve zero cache-token days in cost history \(\#157\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/5bdf98b9937d59b24d63193a90b1aa43a1557c15)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 5bdf98b9937d59b24d63193a90b1aa43a1557c15

Requested commit: 5bdf98b9937d59b24d63193a90b1aa43a1557c15

Commit: 5bdf98b9937d59b24d63193a90b1aa43a1557c15

Tree: 0690e3a901111113f5bb8f2e2c3aa9ee501d8d09

Author: Simone

Committer: GitHub

## Message

```
fix: preserve zero cache-token days in cost history (#157)

The daily record validity check inspected input and output token parts but omitted cache counters. Cache-only zero days were dropped or marked malformed, which could also restore older priced rows outside the selected range. Treat all normalized token parts consistently while preserving missing-cost and malformed-data handling.
```

## Parents

- [a8d35bab780df2ca41e85366ca6538c40cd9f0ed](https://git.cafe/lucenx/codexbar-plasma/commit/a8d35bab780df2ca41e85366ca6538c40cd9f0ed?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/5bdf98b9937d59b24d63193a90b1aa43a1557c15?format=markdown)
