Skip to content

Port v0.57.0: normalize reserve telemetry pricing alias - #490

Open
Finesssee wants to merge 1 commit into
port/micro-0.57.0-opencodex-numericfrom
port/micro-0.57.0-reserve-pricing
Open

Port v0.57.0: normalize reserve telemetry pricing alias#490
Finesssee wants to merge 1 commit into
port/micro-0.57.0-opencodex-numericfrom
port/micro-0.57.0-reserve-pricing

Conversation

@Finesssee

Copy link
Copy Markdown
Collaborator

What this ports

Ports upstream commit 57ddfdbf70f2de23c1b5bd8fdb3c660944a22b4a from steipete/CodexBar for the reserve telemetry pricing alias.

The local Rust equivalent normalizes the exact gpt-reserve alias to gpt-5.6-luna, including trimmed, provider-qualified, and case-insensitive input forms. The shared normalizer is used by both fresh usage and cached pricing paths.

Scope

Changed files:

  • rust/src/core/cost_pricing.rs
  • rust/src/core/cost_pricing_tests.rs

The port intentionally excludes upstream Swift generated pricing, parser/cache, UI, documentation, and changelog surfaces that do not map to this local Rust implementation.

This PR is stacked after the numeric parsing lane in PR #489:

  • Base: port/micro-0.57.0-opencodex-numeric
  • Head: port/micro-0.57.0-reserve-pricing

Validation

  • cargo fmt --all -- --check — passed
  • git diff --check — passed
  • Focused Rust test attempted: core::cost_pricing::tests::gpt_reserve_alias_uses_luna_pricing
  • Focused test was blocked before test execution by the local linker environment: Rust resolved link.exe to Git usr/bin/link.exe, which rejected MSVC linker arguments with link: extra operand.

Oracle reviewed the implementation and approved staging, commit, push, and this stacked PR. The PR remains open for review; no merge is requested by this porting step.

@coderabbitai

coderabbitai Bot commented Sep 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: b4b7252f-c560-4d31-9be1-1d5dd7d51cf0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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