Fix Gemini Plus plan display from loadCodeAssist paidTier#1980
Fix Gemini Plus plan display from loadCodeAssist paidTier#1980Yuxin-Qiao wants to merge 3 commits into
Conversation
Consumer Gemini accounts (Google AI Pro/Ultra) still report currentTier free-tier. Mirror Gemini CLI setup and prefer paidTier.name for the displayed plan so Plus subscribers are not labeled Free. Fixes steipete#1972 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Codex review: needs maintainer review before merge. Reviewed July 8, 2026, 1:44 AM ET / 05:44 UTC. Summary Reproducibility: no. high-confidence live reproduction for the exact original free-tier Plus payload was established in this review. Source inspection shows current main ignores Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the narrow paidTier-name mapping after ordinary maintainer review and CI, preserving the existing Free, Workspace, Paid, Legacy, and blank fallbacks. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction for the exact original free-tier Plus payload was established in this review. Source inspection shows current main ignores Is this the best way to solve the issue? Yes. Preferring Google’s AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aa401f1d8b74. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b8a40a1f93
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| case (.standard, _): | ||
| return "Paid" |
There was a problem hiding this comment.
Prefer paid tier names before generic standard labels
When loadCodeAssist returns currentTier.id == "standard-tier" together with paidTier.name—a shape used by Google One AI Pro responses—the new paid-tier parsing is still bypassed because this branch returns the generic "Paid" first. Gemini CLI’s setup path prefers loadRes.paidTier?.name ?? loadRes.currentTier.name, so these paid consumer accounts will continue to be mislabeled instead of showing the actual subscription name.
Useful? React with 👍 / 👎.
Live behavior proof (contributor account, redacted)Contributor has an active Google One AI Pro subscription. Captured from the contributor machine on 2026-07-08 (tokens/project IDs redacted).
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
Live proof after
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
Summary
Fixes #1972.
Google AI Pro/Ultra consumer accounts still report
loadCodeAssist.currentTier.id == free-tier, so CodexBar was labeling paid Gemini subscribers as Free.This mirrors Gemini CLI setup behavior and prefers
paidTier.namefrom theloadCodeAssistresponse when mapping the displayed plan for personalfree-tieraccounts.Changes
paidTier.namefromloadCodeAssistinGeminiStatusProbedocs/gemini.mdtype_body_lengthTesting
swift test --filter GeminiStatusProbePlanTests(9/9 passed)swiftlint --stricton changed filesswiftformaton changed filesMade with Cursor