Skip to content

v1.0.1 — fix silent failure on broken auto-update (issues #1, #2)

Choose a tag to compare

@taibaran taibaran released this 16 May 08:45

Bug-fix release driven by #1 and #2. Both triaged with the codex + gemini + grok multi-agent pipeline.

Fixed

  • #1: grok 0.1.211 auto-update silently breaks all plugin calls. grokVersion() now distinguishes "exit 0 with empty output" from "couldn't run"; cmdSetup surfaces a 3-step recovery path (grok update → roll back via ~/.grok/downloads/ → reinstall).
  • #2: companion.mjs swallowed underlying grok errors. New diagnoseEmptySpawnFailure() helper prints the exit code + shell-quoted argv + recovery hints whenever the spawned grok exits with both stdout AND stderr empty. Called from all 3 subprocess paths (runHeadlessGrok, cmdImagine, runJob).

Deferred (with reason)

  • #3 (--init-image) and #4 (--aspect-ratio): verified locally that grok -p "/imagine-video --help" is consumed as a literal video prompt by the builtin slash command — the CLI's slash-command parser doesn't see flags. Will revisit when github.com/xai-org adds CLI-level support. See issue comments for details.

Tests

8 new behavioral tests via fake-grok stubs. 347 tests total (342 passing + 5 integration skipped).