xAI now rejects requests with 426: hardcoded GROK_CLI_VERSION '0.2.91' is "outdated" (needs ≥ 1.0.13)
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.
Thanks for the report! The fix has landed in v0.9.3