Repository navigation
fix(oauth): support Test Connection for xAI OAuth - #8862
Merged
diegosouzapw merged 2 commits intoJul 28, 2026
Merged
diegosouzapw merged 2 commits into
diegosouzapw merged 2 commits into
Conversation
Wire xai-oauth / xao into OAUTH_TEST_CONFIG with the shared api.x.ai chat probe so dashboard Test Connection no longer returns "Provider test not supported" on healthy accounts.
diegosouzapw
merged commit Jul 28, 2026
7f83b4b
into
cheaper-inference:release/v3.8.49
15 of 16 checks passed
diegosouzapw
added a commit
that referenced
this pull request
Jul 28, 2026
…redited) Second aggregation pass, for the PRs merged after the main reconciliation: #8860, #8861, #8862, #8863, #8865, #8866. The `### 📝 Maintenance` heading added to the living section in 26a7783 held — [3.8.47] stays at its 234 bullets instead of absorbing this cycle's maintenance entries. Credits attached where the fragment carried the number only in its filename: @HouMinXi (#8860, #8865), @artickc (#8863), @rafaeldrincon (#8866). #8862 already carried its own link and credit. [3.8.49]: 1172 -> 1178 bullets · contributors 155 -> 156 · 42 i18n mirrors synced.
Merged
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…8862) * fix(oauth): support Test Connection for xAI OAuth Wire xai-oauth / xao into OAUTH_TEST_CONFIG with the shared api.x.ai chat probe so dashboard Test Connection no longer returns "Provider test not supported" on healthy accounts. * chore(changelog): add changelog for xai-oauth test connection support --------- Co-authored-by: allanvb <allanvb@users.noreply.github.com>
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…redited) Second aggregation pass, for the PRs merged after the main reconciliation: cheaper-inference#8860, cheaper-inference#8861, cheaper-inference#8862, cheaper-inference#8863, cheaper-inference#8865, cheaper-inference#8866. The `### 📝 Maintenance` heading added to the living section in ae5bf9e held — [3.8.47] stays at its 234 bullets instead of absorbing this cycle's maintenance entries. Credits attached where the fragment carried the number only in its filename: @HouMinXi (cheaper-inference#8860, cheaper-inference#8865), @artickc (cheaper-inference#8863), @rafaeldrincon (cheaper-inference#8866). cheaper-inference#8862 already carried its own link and credit. [3.8.49]: 1172 -> 1178 bullets · contributors 155 -> 156 · 42 i18n mirrors synced.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes dashboard Test Connection for xAI OAuth (Grok) (
xai-oauth, aliasxao).Until now, testing an xAI OAuth connection always failed with "Provider test not supported" and could leave a healthy account marked as error. The OAuth connection id was never wired into the OAuth test table, even though the shared api.x.ai chat probe already existed for the apikey
xaientry.Test Connection now uses the same live probe the runtime chat path uses:
POST https://api.x.ai/v1/chat/completionswith the connection access token.Implementation
grok-4.3,max_tokens: 1,reasoning.effort: high) as a shared config.xai,xai-oauth, and aliasxao.xai-oauthfrom the fix(providers): devin-cli and agy missing from OAUTH_TEST_CONFIG — healthy accounts persisted as errored (same gap as #7610) #8408 grandfathered “no test config” list.Validation
node --import tsx/esm --test tests/unit/xai-oauth-test-supported.test.ts tests/unit/oauth-test-config-8408.test.ts tests/unit/grok-cli-oauth-test-supported-7610.test.ts(6 passed)npm run lintCoverage Notes
Change is small and lives in the OAuth Test Connection config plus unit coverage around
testOAuthConnection. Focused tests cover config presence, the unsupported-path regression forxai-oauth, and thexaoalias probe URL.Reviewer Notes
No migration, no feature flag.
Probe path matches registry/runtime:
xai-oauthinheritshttps://api.x.ai/v1/chat/completionsfrom the apikeyxaiprovider. Auth isAuthorization: Bearer *** same asXaiExecutor/BaseExecutor.buildHeaders`.xaois included because that public alias is used elsewhere in routing/usage; DB connections are normallyxai-oauth.Manual check: connect xAI OAuth -> Providers -> Test Connection. Expected: real auth result (ok / 401), not "Provider test not supported".