Repository navigation
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a localized server-side fix that makes the existing Claude usage mapper consume all supported unified windows while preserving legacy precedence and sparse ID-based merging. The accompanying changes are tests only, with no schema, configuration, deployment, security, or billing impact. You can add or adjust custom eligibility rules. Learn more. |
Dismissing prior approval to re-evaluate dc1d8f3
|
Taking over this one as maintainer for batch claude-04. I will preserve your commits, move the focused mapper fix onto current main, trim the regression coverage, and run independent reviews before pushing. Thanks for tracing the unified-window stream payload and top-level precedence. |
# Conflicts: # apps/server/src/provider/claudeUsageLimits.ts
Dismissing prior approval to re-evaluate 5e7d4ba
Claude can stream session and weekly usage together in
rate_limit_info.unifiedWindowswithout naming a top-level window. T3 Code dropped those events, leaving usage stale until the next probe.The mapper now reads every supported nested window and merges the legacy top-level window last, preserving its precedence. It reuses the overage bucket name established by the probe and ignores malformed or unsupported entries. The fix follows the module relocation on current main; no wire or client changes are needed.
Verification on head
5e7d4ba029f1738b8e38310d44ce2f946a64fa86:nice -n 10, Vitest--maxWorkers=2.These are synthetic mapper fixtures following the serializer shape identified by the contributor and independently confirmed in the installed Claude CLI 2.1.303, plus static inspection of the adapter-to-snapshot update path. No live Claude usage event, browser, or device was exercised. macOS, Windows, iOS, Android, and Electron desktop were not verified live; screenshots do not establish this server-side mapping behavior.
Thanks @nightyard for tracing the unified-window payload and precedence in #14441. Original commits are preserved, with main merged in. The production approach was retained after a fresh implementation assessment; redundant test structure and the stale module header were removed.
Implementation: GPT-6.1 Sol; tests: GPT-6 Astra; independent reviews: Claude Opus 5.5 and GPT-6 Sol. Harnesses: Codex and Claude Code through T3 Code.