Repository navigation
fix(usage): ignore invalid Codex quota windows - #1913
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughCodex usage parsing now ignores windows with missing, non-finite, or non-positive durations. Tests cover valid zero-percent windows, malformed headers and payloads, and preservation of the previous snapshot when response headers contain no valid window. ChangesCodex usage window validation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to Invalid Codex quota durations are ignored, and incomplete responses preserve the last valid snapshot. No material merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Linked issue
Fixes #1911
PR type
Summary
0mwindow.Changes
lib/shell-usage.tstests/shell-usage.test.tstests/gentle-shell.test.tsafter_provider_responsefrom no data through valid weekly quota and later incomplete headers.docs/gentle-shell.mdVerification
node --experimental-strip-types --test tests/shell-usage.test.ts tests/shell-bar.test.ts tests/gentle-shell.test.ts: 357 passed.git diff --check: passed.Contributor checklist
type:bug.Shellcheck and changed-skill execution are not applicable: no shell scripts or skills changed.
Summary by CodeRabbit