Conversation
|
No 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 (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe transient retry policy now supports key-authenticated ChangesTransient retry policy
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The change narrowly expands transient retry eligibility for key-authenticated OpenAI Responses providers while retaining existing exclusions, with no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
리뷰 · 우선순위 72 / 80이 PR(#4800)은 Yum-wu가 올린 아주 좁은 retry 게이트 확장이다. 바꾸는 파일은 지금 고치는 한 줄이 핵심이다. 어댑터 조건을 현재 라인 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Summary
Extends the transient-5xx replay budget (
transientRetryOn5xx) to key-authopenai-responsespassthrough providers in addition toopenai-chat.Without this gate allowance,
transientRetryPolicyForreturnsnullforopenai-responsesproviders, causing fast transient 502/503 responses on the native/responsespassthrough lane (e.g.opencode-zen/go) to terminate the request on the very first send with an "interrupted with no error" experience on client side instead of using the configured send budget.Changes
src/providers/key-failover.ts: allowopenai-responsesintransientRetryPolicyForalongsideopenai-chat. Non-key auth modes (oauth, forward, local) and other generic adapters remain rejected fail-closed.tests/providers/upstream-transient-retry.test.ts: update qualification tests to assert thatopenai-responseswith key auth qualifies for transient 5xx retry while non-key auth and other adapters remain excluded.Verification
bun test tests/providers/upstream-transient-retry.test.ts: 18 pass / 0 fail (66 assertions passed).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