Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.277 ·

Session resume now restores accumulated cost, tracked separately

Resuming a session now restores its previously accumulated cost as its own tracked value, separate from unknown-model-cost tracking

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaSessionswhat it touches
KindImprovementsin v2.1.277,
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 a restoredCostUsd value from that file instead of ignoring cost on resume.
  • The cost-tracking snapshot/restore mechanism now stores a distinct restoredCostUSD value alongside hasUnknownModelCost (previously both were packed into the same internal field), and reset() now explicitly zeroes the restored value.
  • The cost-tracking class gained a restoredCostUSD() accessor and internal counter, and the cost-state schema's totalCostUSD now 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.

Read from
Names in the bundlerestoredCostUsd

See this entry in the whole of v2.1.277 →