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 (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change makes effort-row alias recognition case-insensitive and adds coverage for mixed-case aliases across Responses, Chat Completions, and Claude Messages routing. ChangesEffort alias resolution
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Mixed-case effort aliases retain their configured provider routing across supported request formats. The change is ready to merge. 🚥 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. This pull request is already Ready for Review. |
Motivation
The effort-row parser runs before normal model routing and used case-sensitive membership checks. A configured alias like
Sensitive--highrequested assensitive--highwas not recognized as a known id, so it was parsed as a synthetic effort row and misrouted — potentially off the configured provider, which is a credential-isolation boundary, not just a 404.Description
isKnownIdnow also matches the lowercase form, andknownEffortRowIdsregisters each alias together with its lowercase form — the same case-insensitive contract ordinary alias routing already uses.Tests
bun test tests/providers/cursor/cursor-effort-rows.test.ts— covers a mixed-case configured alias requested in lowercase staying on its configured provider.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