fix(runtime): keep newly released Grok models on xAI OAuth discovery - #3118
Conversation
|
Warning Review limit reached
Next review available in: 43 minutes Limit details: You’ve used all 3 included reviews currently available under your plan. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
Included review availability: Your plan includes up to 3 reviews per rolling hour; 1 remains after this review. 📝 WalkthroughSummaryThis PR fixes xAI OAuth model discovery. It removes the local The change extends the existing server discovery path. It does not create a parallel discovery path. The change is the smallest coherent solution. It removes one filter and keeps the existing fallback behavior. The unused Validation
Review-relevant risksThe change affects user-visible xAI OAuth model listings. The server now controls which discovered models appear instead of the local snapshot allowlist. Any material change to user-visible behavior requires independent human review under repository policy. No public contract, security, licensing, release, or governance effect was identified in the current diff. Required-check status remains unverified without direct check evidence. The person performing the merge must review the final diff. A maintainer makes the final determination. WalkthroughThe xAI OAuth provider no longer filters discovered models against fallback models. The model-fetcher tests remove an unused import. ChangesxAI OAuth model discovery
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The change allows newly released xAI OAuth models to appear without relying on the bundled snapshot, with regression coverage for the affected discovery path; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
xai-oauth model fetch used filter: fallback-models, so ids absent from the bundled snapshot were dropped. Trust the server listing like xai API-key connections. fallbackModels remain the bootstrap fallback. Fixes apache#3116 Generated-by: Grok
After removing the fallback-models filter, xai-oauth uses the same unfiltered protocol discovery path already covered by the provider contract matrix. Do not pin grok-4.6 as a snapshot fact. Generated-by: Grok
apache#2688 imported Plan Mode locale types from the removed @maka/core root barrel. Other locale catalogs already use @maka/core/ui-locale and @maka/core/plan. The root import breaks desktop main typecheck and cascades through every PR that merges with main. Generated-by: Grok
28cb281 to
3553263
Compare
|
The red CI after the last test-only commit was not that change. Rebased onto |
|
Fast path self-merge: low impact, easy to reverse — a runtime model-discovery change with all required checks passing (typecheck, test_workspaces, test_runtime_host, e2e, test, storybook, windows_recovery). The P2 review comment (drop the grok-4.6 snapshot case) was resolved by the author, and the human contributor @yuhan reviewed the final diff and chose the fast path. |
Summary
xai-oauthmodel discovery usedfilter: 'fallback-models', so/v1/modelsids were dropped unless they were already in the bundled models.dev snapshot. That snapshot currently tops out atgrok-4.5, so SuperGrok / X Premium connections hidegrok-4.6even though the account can use it. ThexaiAPI-key path has no such filter.This PR removes the local whitelist on
xai-oauth.fallbackModelsstill bootstrap the connection before the first successful fetch. Discovery stays on the same unfiltered OpenAI-protocol path already covered byprovider-contract-matrix.grok-4.6remains the reproduction on #3116, not a snapshot-pinned test fact.Fixes #3116
Verification
npx biome checkon the changed files — cleannpm --workspace @maka/core run typecheck— cleannpm --workspace @maka/runtime run typecheck— cleanpackages/runtimemodel-fetcher— 11/11provider-contract-matrixdiscovery includesxai-oauthand still passesNot run: live xAI OAuth fetch against a SuperGrok account
AI use
Select exactly one:
Tool(s) and scope:
Grok authored the filter removal and this PR description.
Checklist
Does this PR entail a change in behavior?