Merge pull request #223 from yousiki/fix/claude-team-plan-detection

fix(quota): detect Claude Team organizations instead of marking Free
This commit is contained in:
Supra4E8C
2026-04-20 23:45:50 +08:00
committed by GitHub
5 changed files with 15 additions and 4 deletions
+7
View File
@@ -974,6 +974,13 @@ const resolveClaudePlanType = (profile: ClaudeProfileResponse | null): string |
const hasClaudePro = normalizeFlagValue(profile.account?.has_claude_pro);
if (hasClaudePro) return 'plan_pro';
const organizationType = normalizeStringValue(profile.organization?.organization_type)?.toLowerCase();
const subscriptionStatus = normalizeStringValue(profile.organization?.subscription_status)?.toLowerCase();
if (organizationType === 'claude_team' && subscriptionStatus === 'active') {
return 'plan_team';
}
if (hasClaudeMax === false && hasClaudePro === false) return 'plan_free';
return null;
+2 -1
View File
@@ -645,7 +645,8 @@
"plan_pro": "Pro",
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x"
"plan_max20": "Max 20x",
"plan_team": "Team"
},
"codex_quota": {
"title": "Codex Quota",
+2 -1
View File
@@ -642,7 +642,8 @@
"plan_pro": "Pro",
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x"
"plan_max20": "Max 20x",
"plan_team": "Team"
},
"codex_quota": {
"title": "Квота Codex",
+2 -1
View File
@@ -645,7 +645,8 @@
"plan_pro": "专业版",
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x"
"plan_max20": "Max 20x",
"plan_team": "团队版"
},
"codex_quota": {
"title": "Codex 额度",
+2 -1
View File
@@ -645,7 +645,8 @@
"plan_pro": "專業版",
"plan_max": "Max",
"plan_max5": "Max 5x",
"plan_max20": "Max 20x"
"plan_max20": "Max 20x",
"plan_team": "團隊版"
},
"codex_quota": {
"title": "Codex 配額",