pi-grok-cli icon indicating copy to clipboard operation
pi-grok-cli copied to clipboard

xAI now rejects requests with 426: hardcoded GROK_CLI_VERSION '0.2.91' is "outdated" (needs ≥ 1.0.13)

Open midorikawadaisuke4500 opened this issue 2 months ago • 1 comments

Versions: pi-grok-cli 0.9.2 (also 0.8.2), pi 0.99.2, macOS arm64. Installed grok CLI is 1.0.42.

What happens: Every request through the extension now fails at once. Our last success was 2026-09-30 14:31 UTC and the first failure 2026-09-30 22:26 UTC:

grok-cli API error (426): 426 "Your Grok CLI version (0.2.91) is outdated. Please update to version 1.0.13 or later via `grok update` or the installation documentation."

The same account works when we call grok -p (1.0.42) directly. Updating pi and the extension does not help.

Cause: src/provider/stream.ts:3 hardcodes export const GROK_CLI_VERSION = '0.2.91';. This value is sent as x-grok-client-version and in the User-Agent (stream.ts:8, stream.ts:26, and imagine/generate.ts:115). It is the same on main as of today.

Suggestion: Bump the constant to a current version. Or read the installed grok --version at startup and use the bundled value only as a fallback, so a future minimum-version bump does not break every user again.

midorikawadaisuke4500 avatar Oct 01 '26 00:10 midorikawadaisuke4500

Thanks for the report! The fix has landed in v0.9.3

kenryu42 avatar Oct 01 '26 03:10 kenryu42