Skip to content

Port 0.61.0 Grok reset coupons - #562

Open
Finesssee wants to merge 2 commits into
codex/port-0.61.0-inventoryfrom
codex/port-0.61.0-grok-coupons
Open

Finesssee wants to merge 2 commits into
codex/port-0.61.0-inventoryfrom
codex/port-0.61.0-grok-coupons

Conversation

@Finesssee

Copy link
Copy Markdown
Collaborator

Summary

  • Port upstream 0ead0d678 (0.61.0) Grok usage-limit reset coupons.
  • Query GetRemainingResets with the same successful bearer or exact-cookie principal used for billing.
  • Parse gRPC-web coupon records, discard blank or expired records, sort by expiry, and expose only count/title/next expiry through the transient inventory channel from Port 0.61.0 transient provider inventory plumbing #560.
  • Keep coupon token IDs private to the parser and keep secondary lookup failures best effort.

Dependency

This PR is intentionally based on codex/port-0.61.0-inventory and depends on PR #560. It should be reviewed after the shared carrier is accepted.

Validation

  • cargo test --manifest-path rust/Cargo.toml --lib providers::grok::billing::tests — 16 passed
  • cargo test --manifest-path rust/Cargo.toml --lib cli::usage::tests — 15 passed
  • cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings
  • cargo check --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml
  • cargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml commands::tests::provider_inventory_maps_to_the_bridge_without_token_ids — 1 passed
  • cargo fmt --all

Frontend tests were not run because apps/desktop-tauri/node_modules is absent; no dependency install or frontend build was started.

@coderabbitai

coderabbitai Bot commented Sep 19, 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: 772f0afb-fc4c-4c15-8733-d84215b1011f

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