GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(usage): price Cursor Claude model aliases by duncan-vc · Pull Request #13830 · pingdotgg/t3code

Conversation

@duncan-vc

@duncan-vc duncan-vc commented Sep 26, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Cursor reports Claude model IDs such as claude-4.5-sonnet and claude-4.6-opus-high-thinking. The rate table uses claude-sonnet-4-5 and claude-opus-4-6, so these records still show zero cache savings after #13731. When Cursor omits a cost, the same mismatch leaves the record unpriced.

Extend the existing Cursor rate-name helper to normalize version-first Claude names and strip recognized effort/thinking suffixes in either order. The reader keeps the original display model; provider-reported costs and exact-model custom prices retain their existing precedence. All clients receive the corrected server usage summary.

The version-first name is documented in Cursor's usage API examples, and the -high-thinking ordering is already present in this repo's Cursor provider fixtures. No existing open PR covers this normalization gap.

Validation:

  • The new pricing regression fails on current main with unpriced instead of modelPriced, then passes with the fix.
  • 46 focused tests passed across usage pricing, transcript readers, and aggregation, including preserved provider-reported costs and display model names.
  • Server typecheck, targeted lint, formatting, and git diff --check passed.
  • No browser or live-provider run; this is a server parsing/pricing change with no client UI edits.

Model: GPT-6. Harness: Codex.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected pricing for Cursor usage reported with version-first Claude model names, including reasoning and speed variants.
    • Preserved reported provider costs when available.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@duncan-vc
fix(usage): price Cursor Claude model aliases
3acfa41
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 26, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This server-side change alters production usage pricing and cache-savings calculations by normalizing additional Cursor Claude model aliases. Although the implementation is small and covered by focused tests, billing-related behavior requires human review.

Notes:

  • Diff unchanged. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 172ca919-6985-4bca-909d-38164a430354

📥 Commits

Reviewing files that changed from the base of the PR and between 95030dc and 3acfa41.

📒 Files selected for processing (3)
  • apps/server/src/usage/cursorUsageReader.ts
  • apps/server/src/usage/usagePricing.test.ts
  • apps/server/src/usage/usageTranscriptReader.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Cursor Claude model names now map to canonical rate-table keys after supported trailing modifiers are removed. Pricing and transcript tests cover version-first names and provider-reported costs.

Changes

Cursor Claude rate model normalization

Layer / File(s) Summary
Normalize Cursor model names and validate rate lookup
apps/server/src/usage/cursorUsageReader.ts, apps/server/src/usage/usagePricing.test.ts, apps/server/src/usage/usageTranscriptReader.test.ts
cursorRateModel strips supported trailing modifiers and maps version-first Claude names to family-first rate-table keys. Tests cover canonical pricing, cache savings, provider-reported cost precedence, and transcript model fields.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 3acfa

The Cursor Claude alias change has no identified issue that needs resolution before merge; normal checks still apply.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: pricing Cursor Claude model aliases.
Description check ✅ Passed The description explains what changed, why it changed, UI impact, and validation results. It omits the template's Checklist section, but the required information is otherwise mostly complete.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 1, 2026 — with ChatGPT Codex Connector
@maria-rcks

maria-rcks commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Hi! We are cleaning up open PRs, and this one appears to have been created with an older model (gpt-6). If this change is really important, we recommend rebuilding the PR with a newer model if possible.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks maria-rcks closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@duncan-vc @maria-rcks @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.