Skip to content

fix(codex): show usage windows and subscription plan - #243

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/codex-usage-windows
Sep 26, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/codex-usage-windows

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Codex account cards read the current /wham/usage payload (rate_limit.primary_window / secondary_window) instead of the older rate_limits.primary shape, so the 5-hour and weekly windows show up instead of staying on "Getting quota…".
  • The plan_type from that response is stored with the quota snapshot and shown above the windows (Plus, Pro, Free, Team, and the other known tiers).
  • The previous window shape is still accepted.

Test plan

  • go test ./internal/providers/codex/ ./internal/runtime/ -count=1
  • cd frontend && npm run sync
  • Refresh a signed-in Codex account and confirm the plan name plus both usage windows appear

The usage probe now reads the current rate_limit windows, so account cards stop sitting on "getting quota" and show the subscription tier.
@caigee-cmd
caigee-cmd merged commit 34c91b8 into main Sep 26, 2026
6 checks passed
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.

1 participant