Skip to content

fix(warp): price conversations from total_billed_cost_in_cents - #1787

Open
iamtoruk wants to merge 1 commit into
mainfrom
fix/warp-billed-cost
Open

iamtoruk wants to merge 1 commit into
mainfrom
fix/warp-billed-cost

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Summary

Testing / Verification

  • I have tested this locally against real data (not just unit tests)

  • npm test passes

  • npm run build succeeds

  • Not a UI change

  • New tests: billed only, provider only, both, charged plus billed. The billed-only case fails without the fix.

  • Local Warp history (3 conversations from March, no cost fields) exports byte-identical on main and this branch. It has no billed rows, so the new rung is covered by the tests and Warp's source, not live data.

  • The daily cache upgrades cleanly from a copy of a real cache, and the Warp slices are unchanged.

Warp 0.2026.10 removed total_provider_cost_in_cents and now persists
total_billed_cost_in_cents. Read it after total_charged_usage, as Warp
does, so conversations without streamed charges keep their billed dollars
instead of the credits estimate. Bump the warp parse version and
DAILY_CACHE_VERSION to 77.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant