v0.1.10 - Fix quota window detection
中文
此版本修复了 Codex 临时移除 5 小时使用限制后,周限额被错误显示为 5 小时限额、周限额本身显示为 -- 的问题。
修复内容
- 根据接口返回的
windowDurationMins识别额度窗口:300 分钟对应 5 小时额度,10080 分钟对应周额度。 - 当接口仅返回一个 7 天
primary窗口时,将其正确显示为周限额,并将当前不存在的 5 小时额度显示为--。 - 当 5 小时限额恢复且接口再次返回双窗口时,可以自动恢复 5 小时和周限额的正确映射。
- 对没有窗口时长字段的旧 session 和日志数据继续保留
primary/secondary位置兼容。
验证
- 43 项 Python 测试全部通过。
- GitHub Actions Windows Release 构建、C++ JSON 解析 smoke、打包和资产上传全部通过。
- 已使用真实
account/rateLimits/read返回验证单周窗口场景。
English
This release fixes weekly Codex quota data being mislabeled as the 5-hour quota after the 5-hour usage limit was temporarily removed.
Fixed
- Classify quota windows from
windowDurationMins: 300 minutes for the 5-hour quota and 10080 minutes for the weekly quota. - Correctly map a lone 7-day
primarywindow to the weekly quota while showing the unavailable 5-hour quota as--. - Automatically restore the traditional 5-hour and weekly mapping when the dual-window response returns.
- Preserve positional compatibility for older session and log records without window-duration metadata.
Validation
- All 43 Python tests passed.
- GitHub Actions passed the Windows Release build, C++ JSON parser smoke test, packaging, and asset upload.
- Verified against a live single-weekly-window
account/rateLimits/readresponse.
Installation
Download CodexUsage-TrafficMonitor-x64.zip, close TrafficMonitor, and replace CodexUsage.dll plus the bundled scripts directory under the TrafficMonitor plugins directory. Keep the existing plugins\CodexUsage runtime configuration directory unchanged, then restart TrafficMonitor.