Skip to content

feat: show five-hour and Spark quota windows - #5

Closed
cb8010d6 wants to merge 2 commits into
Wangnov:mainfrom
cb8010d6:codex/show-quota-windows
Closed

cb8010d6 wants to merge 2 commits into
Wangnov:mainfrom
cb8010d6:codex/show-quota-windows

Conversation

@cb8010d6

@cb8010d6 cb8010d6 commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Show separate official quota cards for the ordinary weekly and 5-hour windows, plus GPT-5.3-Codex-Spark Weekly and Spark 5-hour windows.
  • Parse both Spark windows from the existing WHAM additional_rate_limits response and preserve them in compact local reports.
  • Exclude an ordinary Codex sub-day primary_window from the generic short quota so Spark 5-hour data cannot be displayed in the ordinary 5-hour card.
  • Keep the existing Credits/Tokens analytics and clarify that USD values are a local planning estimate, not an official Pro exchange rate or invoice amount.
  • Show an unavailable state when OpenAI does not return a given quota window.

Why

The current ChatGPT Codex usage page can expose multiple quota windows for Pro accounts. The Meter view needs to keep ordinary Codex and Spark windows separate, especially when both payloads contain a sub-day window.

Validation

  • node --check passed for all JavaScript files.
  • manifest.json parses successfully and remains at 0.2.19; the maintainer can choose the release version.
  • A redacted WHAM fixture confirms ordinary sub-day primary is excluded and Spark weekly/5-hour windows are emitted separately.
  • git diff --check passed.
  • No credentials, cookies, bearer tokens, HAR files, or account data are included.

@Wangnov

Wangnov commented Oct 23, 2026

Copy link
Copy Markdown
Owner

逐项核对后,#6 包含本 PR 的全部提交,并补了普通 Codex 5 小时窗口恢复、按实际时长选择卡片及 Spark 隔离的修正(最新 a8b5a61)。本 PR 单独的实现会过滤普通 primary 5 小时窗口,已用合成输入复现。为避免重复合并旧实现,关闭本 PR,功能继续在 #6 处理。

这不代表当前主线已经完成全部 Spark / 5 小时卡片;#6 仍需适配主线 0.3.2 的新版路由与界面,审核意见已记录。

@Wangnov Wangnov closed this Oct 23, 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.

2 participants