-
Notifications
You must be signed in to change notification settings - Fork 785
Codex provider fails to parse 'prolite' plan type #691
Copy link
Copy link
Open
Labels
acceptedConfirmed backlog item or verified open bugConfirmed backlog item or verified open bugarea:usage-accuracyUsage math, reset windows, plan parsing, cost/token accuracyUsage math, reset windows, plan parsing, cost/token accuracybugSomething isn't workingSomething isn't workingpriority:highHigh priority: confirmed serious bug or blockerHigh priority: confirmed serious bug or blockerprovider:codexIssue specific to Codex/OpenAIIssue specific to Codex/OpenAI
Metadata
Metadata
Assignees
Labels
acceptedConfirmed backlog item or verified open bugConfirmed backlog item or verified open bugarea:usage-accuracyUsage math, reset windows, plan parsing, cost/token accuracyUsage math, reset windows, plan parsing, cost/token accuracybugSomething isn't workingSomething isn't workingpriority:highHigh priority: confirmed serious bug or blockerHigh priority: confirmed serious bug or blockerprovider:codexIssue specific to Codex/OpenAIIssue specific to Codex/OpenAI
Description
Codex provider fails with a decode error when the OpenAI API returns
proliteas theplan_type. This is a new plan tier (Pro Lite) that is not yet included in the expected enum variants.Error
API Response (relevant fields)
{ "plan_type": "prolite", "rate_limit": { "allowed": true, "limit_reached": false, "primary_window": { "used_percent": 14, "limit_window_seconds": 18000 }, "secondary_window": { "used_percent": 19, "limit_window_seconds": 604800 } }, "additional_rate_limits": [ { "limit_name": "GPT-5.3-Codex-Spark", "metered_feature": "codex_bengalfox" } ] }The usage data is returned correctly — it's just the plan type enum that needs
proliteadded.Environment
Expected Behavior
CodexBar should recognize
proliteas a valid plan type and display usage data normally.