Repository navigation
fix(xai): report a current Grok CLI version on the OAuth path #6341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,8 +28,8 @@ export function isXaiResponsesDestination(provider: Pick<OcxProviderConfig, "bas | |
| } | ||
|
|
||
| export const XAI_GROK_COMPATIBILITY = { | ||
| version: "0.2.93", | ||
| userAgent: "opencodex-grok/0.2.93", | ||
| version: "1.0.25", | ||
| userAgent: "opencodex-grok/1.0.25", | ||
|
Comment on lines
+31
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Update the owned structure documentation for this transport change. AGENTS.md reference: src/AGENTS.md:L11-L11 Useful? React with 👍 / 👎. |
||
| headers: { | ||
| clientIdentifier: "x-grok-client-identifier", | ||
| clientVersion: "x-grok-client-version", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a focused regression that independently asserts the reported version is at least the upstream-required
1.0.13floor (or pins the supported1.0.25profile). The existing assertions intests/providers/xai/xai-transport.test.tsand the quota tests derive their expectations fromXAI_GROK_CLIENT_VERSION, so they passed with0.2.93and still pass after this edit; reverting or downgrading the constant would therefore recreate the OAuth-wide HTTP 426 failure without making the suite red.AGENTS.md reference: AGENTS.md:L448-L452
Useful? React with 👍 / 👎.