Support prolite plan type (#17419)

Addresses #17353

Problem: Codex rate-limit fetching failed when the backend returned the
new `prolite` subscription plan type.

Solution: Add `prolite` to the backend/account/auth plan mappings, keep
unknown WHAM plan values decodable, and regenerate app-server plan
schemas.
This commit is contained in:
Eric Traut authored and GitHub committed 2026-04-11 13:58:16 -07:00
1 parent 163ae7d3e6
commit 3b948d9dd8
17 files changed
+40 -4

No files matched your search

+1
View File
@@ -314,6 +314,7 @@ impl CodexAuth {
InternalKnownPlan::Go => AccountPlanType::Go,
InternalKnownPlan::Plus => AccountPlanType::Plus,
InternalKnownPlan::Pro => AccountPlanType::Pro,
InternalKnownPlan::ProLite => AccountPlanType::ProLite,
InternalKnownPlan::Team => AccountPlanType::Team,
InternalKnownPlan::SelfServeBusinessUsageBased => {
AccountPlanType::SelfServeBusinessUsageBased
+6
View File
@@ -153,4 +153,10 @@ fn workspace_account_detection_matches_workspace_plans() {
..IdTokenInfo::default()
};
assert_eq!(personal.is_workspace_account(), false);
let personal = IdTokenInfo {
chatgpt_plan_type: Some(PlanType::Known(KnownPlan::ProLite)),
..IdTokenInfo::default()
};
assert_eq!(personal.is_workspace_account(), false);
}