Skip to content

Fix Gemini Plus plan display from loadCodeAssist paidTier#9

Closed
Yuxin-Qiao wants to merge 122 commits into
mainfrom
cursor/fix-gemini-plus-plan-display-bd02
Closed

Fix Gemini Plus plan display from loadCodeAssist paidTier#9
Yuxin-Qiao wants to merge 122 commits into
mainfrom
cursor/fix-gemini-plus-plan-display-bd02

Conversation

@Yuxin-Qiao

Copy link
Copy Markdown
Owner

Summary

Fixes steipete#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.name from the loadCodeAssist response when mapping the displayed plan for personal free-tier accounts.

Changes

  • Parse paidTier.name from loadCodeAssist in GeminiStatusProbe
  • Show the consumer subscription label (e.g. Plus, Ultra) instead of Free when present
  • Preserve existing mappings for Paid, Workspace, Free, Legacy, and blank plan states
  • Add fixture-backed regression test and update docs/gemini.md

Testing

  • Added detects consumer plus from free tier with paid tier name in GeminiStatusProbePlanTests
  • Existing free-tier/standard-tier/workspace plan tests remain unchanged

Could not run swift test locally in this cloud environment (Swift toolchain unavailable). CI should cover the focused Gemini plan tests.

Open in Web Open in Cursor 

joeVenner and others added 30 commits July 3, 2026 13:40
The Poe logo used a garbled SVG path (a self-intersecting scribble
inside a circle) instead of the actual Poe speech-bubble mark, and the
brand color was green (#26AD61) rather than Poe's official purple.

- Replace docs/logos/poe.svg with the correct Poe mark in #5D5CDE
- Apply the same path fix to the app resource ProviderIcon-poe.svg
- Update the Poe card --brand color in docs/index.html to #5D5CDE

#5D5CDE is Poe's official primary brand color ("Poe purple").

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Address PR feedback: the descriptor color drives progress bars, the
dashboard, charts, and switcher tabs, and the widget has its own Poe
color case — both still used the old green (#26AD61 normalized).

- PoeProviderDescriptor.branding.color -> 93/92/222 (#5D5CDE)
- CodexBarWidgetViews poe case -> same, matching sibling style

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…inite-cost

Reject nonfinite OpenAI cost values
Co-authored-by: Alberto Xosé Méndez Taboada <contacto@albertomendez.gal>
…-guard

Guard repository size and document history cleanup
fix: correct Poe provider logo and brand color
…e-reset

Prevent OpenCode reset timestamp overflow
* Add Russian localization

* feat: complete Russian localization

* test: account for Russian language label

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
* fix: make Gemini helper deadlines reliable

* ci: allow macOS shards to finish

* test: tighten Gemini helper timeout fix

* ci: preserve macOS test headroom

* fix: make Gemini helper waits deterministic

* fix: harden Gemini helper completion

* docs: clarify Gemini helper fix

* fix: make Gemini helper waits deterministic
joeVenner and others added 25 commits July 6, 2026 17:18
Reject non-finite, non-positive, and out-of-range numeric timestamps while preserving valid Unix seconds and milliseconds, including the exact cutoff.

Make fallback-time coverage deterministic and retain contributor changelog credit.

Co-authored-by: JoeVenner <ylafrimi@gmail.com>
Point Amp's Usage Dashboard action at the current usage route while leaving fetch, sign-in, and cookie URLs unchanged.

Add exact metadata regression coverage and contributor changelog credit.

Co-authored-by: Echo <github@3kh0.net>
Show every positive usage value below one percent as `<1%` before integer rounding, and lock both prefix-first and suffix-first localized formatting with focused regression coverage.

Co-authored-by: Yash Raj Pandey <yashpn62@gmail.com>
Roll yearless Claude quota reset dates into the next year when their current-year interpretation is already past, covering both minute-bearing and hour-only formats.

Co-authored-by: Yash Raj Pandey <yashpn62@gmail.com>
Preserve fractional Claude web session and weekly utilization by routing both fields through the established numeric parser, with regression coverage through the downstream session window.

Co-authored-by: Yash Raj Pandey <yashpn62@gmail.com>
Keep Gemini's Pro lane absent when no Pro quota is reported so menu-bar metric selection falls back to the real Flash usage, with direct resolver regression coverage.

Co-authored-by: Yash Raj Pandey <yashpn62@gmail.com>
Correct Devin's mixed-scale top-level percentage boundary so exact one means 1% while preserving fractional fallback quota-object semantics.

Co-authored-by: Lex <summarit2.5@gmail.com>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Update Kimi membership quota enrichment to the current endpoint, add the Code 7-day quota, harden ratio validation, and preserve compact widget fit.

Co-authored-by: skyzer <skyzer@gmail.com>
…teipete#1934)

* Fix Alibaba Token Plan for Model Studio region

The Token Plan provider was hardcoded to bailian.console.aliyun.com
(China mainland). International users are now on modelstudio.console.
alibabacloud.com, so their cookies never matched and usage never loaded.

Add AlibabaTokenPlanAPIRegion following the same pattern as the Coding
Plan provider, defaulting to International (modelstudio).

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: harden Alibaba Token Plan regions

---------

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
…#1931)

* Guide Gemini users to Antigravity on consumer-tier shutdown.

Detect Google's unsupported-client migration responses during quota,
loadCodeAssist, and token refresh so individual accounts see actionable
Antigravity setup guidance instead of generic auth failures.

Fixes steipete#1929

Co-authored-by: Cursor <cursoragent@cursor.com>

* Complete Gemini-to-Antigravity migration UX for consumer tiers.

Surface migration guidance at login, in not-logged-in and Antigravity setup
errors, and via a Settings action to enable Antigravity when Google returns
the unsupported-client shutdown signal.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Clarify gemini migration docs for signal-gated vs proactive copy.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Key Settings Antigravity action off typed deprecation state.

Replace user-facing error string matching with a Gemini refresh sentinel
set only when consumerTierDeprecated is observed.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: gate Gemini migration guidance

* test: clarify fake Gemini refresh token

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
* Add Antigravity pace

* Limit Antigravity session pace

* fix: preserve Antigravity icon semantics

---------

Co-authored-by: Zihaoqi <Zihao-Qi@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Adds responsive codexbar cards and brief views with bounded terminal rendering, correct reset semantics, partial-success handling, and focused regression coverage.

Co-authored-by: Donnie Fiander <44792682+DonnieFi@users.noreply.github.com>
…ete#1932)

* feat(claude): show Max usage multiplier (5x/20x) in plan label

Anthropic encodes the Max tier in the rate-limit tier string
(default_claude_max_5x / default_claude_max_20x), but the plan resolver
matched on "max" and dropped the multiplier, so every Max subscription
showed as plain "Max". Surface it as "Claude Max 5x" / "Claude Max 20x".

The multiplier is only appended when the tier string names the resolved
plan, so a mismatched subscription type never inherits a stray multiplier
and Pro/Team/Enterprise labels are unchanged.

* fix: tighten Claude multiplier labels

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
* Describe revoked Ollama API keys accurately

* Test Ollama revoked key guidance

* Document Ollama API key lifecycle

* Add screenshot proof

* chore: drop placeholder proof image

The committed proof image was a 1x1 placeholder, not real evidence.
Executable test output in the PR description replaces it.

* test: cover rejected Ollama key guidance

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
* Point Ollama login recovery to sign-in page

* Test Ollama sign-in recovery links

* Document current Ollama sign-in recovery

* fix: align Ollama session recovery guidance

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
…ipete#1968)

* feat: track live Codex and Claude agent sessions across Macs

Adds an Agent Sessions section to the menu: local sessions discovered via
process scan correlated with Codex rollout and Claude project JSONL metadata,
remote Macs discovered via Tailscale (plus manual SSH hosts) and fetched over
ssh with the bundled CLI. Click a session to focus its terminal window via
Accessibility. New 'codexbar sessions' CLI (table/JSON) and 'sessions focus'.
Design notes in docs/agent-sessions-design.md, user docs in docs/sessions.md.

* refactor: collapse sessions settings to a single toggle

Tailscale discovery now runs automatically whenever Agent Sessions is
enabled; drops the separate auto-discover toggle and its setting.
* Recognize Ollama WorkOS session cookies

* Test Ollama WorkOS cookie selection

* Document Ollama WorkOS cookie support

* Add screenshot proof

* chore: drop placeholder proof image

The committed proof image was a 1x1 placeholder, not real evidence.
Executable test output in the PR description replaces it.

* docs: note Ollama WorkOS sessions

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
* Detect Ollama WorkOS sign-in redirects

* Test Ollama WorkOS redirect detection

* Document Ollama WorkOS redirect handling

* Add screenshot proof

* chore: drop placeholder proof image

The committed proof image was a 1x1 placeholder, not real evidence.
Executable test output in the PR description replaces it.

* fix: detect WorkOS sign-in redirects across all WorkOS hosts

WorkOS AuthKit serves the hosted authorize flow from auth.workos.com (and
historically api.workos.com). Matching only api.workos.com misses the
canonical auth.workos.com redirect, so an expired session would fall through
to a parse failure instead of sign-in recovery. Match any *.workos.com host
carrying the /user_management/authorize path, and cover auth.workos.com plus a
non-WorkOS negative case in the test.

* fix(ollama): treat the WorkOS-hosted signin.ollama.com landing as expired

The real unauthenticated Ollama/WorkOS redirect chain (verified live)
terminates on a hosted sign-in page at signin.ollama.com with HTTP 200,
so the final-URL sign-in check previously fell through to a parseFailed
error. Classify any landing on signin.ollama.com as a sign-in redirect
so the fetcher surfaces invalidCredentials and CodexBar can advance to
the next cookie candidate / show sign-in guidance. Add a test case for
the signin.ollama.com terminal landing.

* fix: harden Ollama sign-in classification

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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>
@Yuxin-Qiao Yuxin-Qiao force-pushed the cursor/fix-gemini-plus-plan-display-bd02 branch from 5f089b3 to b8a40a1 Compare July 8, 2026 02:23
@Yuxin-Qiao

Copy link
Copy Markdown
Owner Author

Superseded by upstream PR: steipete#1980

@Yuxin-Qiao Yuxin-Qiao closed this Jul 8, 2026
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.

Gemini plan displayed incorrectly