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 (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe Responses transport now preserves incoming ChangesResponses User-Agent forwarding
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The forwarding change covers caller identity and explicit provider overrides without an established production-impacting defect; it is suitable to merge under normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 4 files. (7 skipped: 7 unsupported.)
✨ 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. |
⏳ DRAFT
What to do
Review readiness checklist
2/4 boxes ticked. This PR stays in draft until every box above is ticked. |
|
@coderabbitai review |
fa3431e to
2d5cedb
Compare
리뷰 · 우선순위 52 / 80이 PR은 이슈 #4699를 고친다. Codex CLI가 OpenCodex를 거쳐 Responses 호환 게이트웨이(보고 사례는 Volcengine Ark)로 나갈 때, 같은 버그를 고치는 열린 PR이 이미 있다. #4702(Ingwannu)는 draft가 아니고, 베이스가 현재 테스트는 라인 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
✅ Action performedReview finished.
|
|
Closing as a duplicate of #4702, which is now merged into Both PRs preserve the caller's User-Agent through the Responses passthrough, and both change That second half is not rejected — it is unreviewed. If you want it, please open it as its own PR against If any part of this branch is later carried by a maintainer rather than reopened by you, the carrying commit must include a Thanks for the fix. |
Summary
Preserve the caller's User-Agent when forwarding Responses requests. Some Responses-compatible providers, including Volcengine Ark in the reported case, use this header to recognize Codex and select client-specific compatibility handling. Dropping it lets Bun's default identity reach the upstream, preventing that handling from being selected.
Closes #4699.
Changes
user-agentin the shared forwarding allowlist so client identity survives auth materialization and internal HTTP/WebSocket bridges.Compatibility
Requests without a caller User-Agent do not acquire a fabricated Codex identity. Explicit provider overrides, including empty values, remain authoritative. Credential selection, authorization precedence, and forwarding of other headers retain their existing behavior. No new configuration option is required.
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
New Features
User-Agentin API-key and forwarding modes.User-Agentheaders take precedence, regardless of capitalization.User-Agentretain the existing default behavior.Documentation
User-Agentforwarding, provider precedence, and related configuration behavior across Responses integrations and internal request paths.