Skip to content

fix(core): ignore malformed model costs - #43251

Merged
nexxeln merged 1 commit into
v2from
v2-cost-validation
Aug 18, 2026
Merged

fix(core): ignore malformed model costs#43251
nexxeln merged 1 commit into
v2from
v2-cost-validation

Conversation

@nexxeln

Copy link
Copy Markdown
Member

Summary

  • treat malformed or non-finite model cost fields as zero during V2 usage accounting
  • preserve valid pricing components and existing finite-price behavior
  • add a regression for provider-supplied object values

V2 counterpart to #43248. Related to #43098.

Testing

  • bun test test/session-runner.test.ts in packages/core (152 tests)
  • bun typecheck in packages/core
  • full workspace typecheck from the pre-push hook

@nexxeln
nexxeln merged commit 958308c into v2Aug 18, 2026
9 of 10 checks passed
@nexxeln
nexxeln deleted the v2-cost-validation branch August 18, 2026 14:29
Sign up for freeto 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

@nexxeln