Group of 3 You'll notice
No documentation found
Resuming a session now restores its previously accumulated cost as its own tracked value, separate from unknown-model-cost tracking
What
- When resuming a session with a
history_file, the resume path now reads and restores arestoredCostUsdvalue from that file instead of ignoring cost on resume. - The cost-tracking snapshot/restore mechanism now stores a distinct
restoredCostUSDvalue alongsidehasUnknownModelCost(previously both were packed into the same internal field), andreset()now explicitly zeroes the restored value. - The cost-tracking class gained a
restoredCostUSD()accessor and internal counter, and the cost-state schema'stotalCostUSDnow has a floor instead of being unconstrained.
Why
Restoring accumulated cost correctly when resuming a session keeps the cost totals shown to the user accurate across resumes, instead of resetting or being conflated with the separate tracking of cost from an unknown model.
Names in the bundlerestoredCostUsd