Skip to content

core-extraction: port the #1078 codex pricing fixes (reasoning double-count + cache-write bucketing) #1083

Description

@iamtoruk

The feat/core-extraction branch needs #1078's fixes re-ported: pricing is centralized at packages/cli/src/pricing-pass.ts (~line 26: outputForCost = outputTokens + reasoningTokens, no provider carve-out) and packages/core's codex decode still computes totals with reasoning added. Port as a per-provider predicate (billableOutputTokens with the claude+codex inclusive set from main's src/models.ts) at the pricing-pass seam, plus the cache_write_input_tokens read + explicit-rate guard in the core codex decoder, plus the codex parse-version and cache bumps in the branch's own ladder (branch daily-cache is at 26). Without this the final branch→main merge would revert the fix.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions