fix(codex): deduplicate equivalent quota reset timestamps - #3607
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughQuota auto-refresh now normalizes reset markers expressed in seconds or milliseconds. Due checks and persistence comparisons use canonical values. Integration tests cover deduplication, configuration reloads, process restarts, unit changes, and failed marker-write retries. ChangesQuota auto-refresh
Estimated code review effort: 3 (Moderate) | ~20 minutes ✨ Finishing Touches📝 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 |
|
✅ Deterministic PR hygiene checks passed. |
Summary
Fixes the CodeRabbit-reported duplicate quota warmup after #3588: equivalent epoch seconds and milliseconds now compare as the same reset boundary. Reuses the existing reset-time normalizer, stores new markers in milliseconds, and accepts legacy second-based markers.
Verification
Checklist
Summary by CodeRabbit
Bug Fixes
Tests