Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueNo actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds Gemini and Claude family awareness to Antigravity quota ranking and generic OAuth failover. It scopes quota windows and cooldowns by requested model, forwards model data through server response paths, and adds focused tests and layout mappings. ChangesOAuth quota and failover
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant ResponsesCore
participant GenericOAuthFailover
participant QuotaRanking
participant HealthMap
ResponsesCore->>GenericOAuthFailover: pass Date.now() and route.modelId
GenericOAuthFailover->>QuotaRanking: classify family and rank eligible accounts
GenericOAuthFailover->>HealthMap: store or read family-scoped cooldown
GenericOAuthFailover-->>ResponsesCore: return account selection or rotation result
Merge Risk: ⚪ Minimal · up to No confirmed merge-blocking issue remains; the family-scoped quota and cooldown behavior is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 72.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 4 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This pull request was already a draft. Its draft status will be preserved after every issue above is resolved. |
리뷰 · 우선순위 62 / 80설명 이 PR은 변경의 핵심은 세 겹이다. (1) 현재 라인 16-40 (account-quota-rank.ts, PR head) - 라인 windowMatchesFamily - 라벨 첫 토큰만 경로 generic-account-failover.ts / noteGenericPoolSelection - 429·preferred 경로에는 family를 넣었지만, 경로 server/responses/core.ts - 호출 6곳 근처에 경로 tests/oauth/oauth-account-quota-rank.test.ts - Claude 429 후 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
60a349b to
884518f
Compare
Keep Claude exhaustion from starving Gemini selection, and cool 429s per model family so a Claude limit still leaves the account eligible for Gemini. Co-authored-by: agentHits <140916359+agentHits@users.noreply.github.com>
Classify only gemini-* model ids, keep family cooldown off the other family's ring, and pass the request model into round-robin admission.
884518f to
3defbd0
Compare
Summary
Make generic OAuth ranking and 429 cooldown model-family aware for
google-antigravity.Gemini requests use
Gem/Gem (Weekly)windows only. Claude requests useCla/Cla (Weekly). A spent Claude window no longer ranks the account as exhausted for Gemini, and a Claude 429 cools only the Claude family so the same account can still serve Gemini.Unknown labels and Gemma ids fall back to the current unranked ring. Codex and Anthropic paths are unchanged.
Refs #3375. Complements the GUI pool-settings panel; does not add a dedicated Antigravity router.
Verification
bun test tests/oauth/oauth-account-quota-rank.test.ts tests/oauth/generic-oauth-failover.test.ts tests/providers/kiro/kiro-pool-rank.test.ts tests/test-layout.test.ts tests/test-layout-tooling.test.ts tests/lab/core-lab-boundary.test.ts— 109 passedbun run typecheck— passedChecklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
Bug Fixes
Tests