Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe change restricts legacy ChangesProvider label normalization
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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. Automatic ready-for-review conversion failed; please mark the pull request ready manually if it is still a draft. |
리뷰 · 우선순위 24 / 80이 PR은 usage 쪽에서 쓰는 라인 - 메인테이너의 판단이 필요한 지점 과거 usage 로그에 너의 추천 방향은 맞고 범위도 작습니다. draft 체크리스트를 채운 뒤, 이 댓글은 grok-bot이 작성했습니다 |
A -main suffix was stripped from ANY provider name, so a configured provider like openrouter-main silently merged into openrouter in usage summaries and pricing fallback. Restrict the compatibility mapping to the known Codex provider labels (openai/chatgpt/openai-multi-main), matching codexAccountProviders.
49e82dc to
89a9272
Compare
|
Consolidated into #5556 as a single related-function aggregate. Source head: The complete provider-label change matches carried 0f0ef96 by stable patch ID, with author/date/provenance preserved. Configured providers ending in -main remain distinct while the recognized legacy Codex aliases retain their existing behavior. Its regressions are preserved in the registered provider-label sibling rather than exceeding the existing summary-file cap. Final latest-dev integration preserves the tested contribution files; full final suite, exact-head hosted CI and required review remain pending on the draft replacement. Closing this duplicate standalone review entry as part of the requested consolidation after verifying coverage. This is not a merge or release claim; remaining integration checks and reviews are tracked on the replacement. Original branches are retained. |
Summary
baseProviderLabelstripped a-mainsuffix from ANY provider name, so a configured provider likeopenrouter-mainorazure-mainsilently merged into the base provider's usage row and pricing fallback.-maincompatibility mapping is now restricted to the known Codex provider labels (openai-main,chatgpt-main,openai-multi-main), matching thecodexAccountProvidersidentity map. Configured providers whose names end in-mainstay distinct.Verification
bun test tests/usage/usage-provider-label.test.ts tests/usage/usage-summary.test.ts tests/usage/usage-cost.test.ts— 180 pass, 0 failbun x tsc --noEmit— cleanChecklist
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
-mainfor unrecognized providers, such as OpenRouter and Azure.-mainsuffixes remain separate from their base providers.