v1.0.1 — fix silent failure on broken auto-update (issues #1, #2)
Bug-fix release driven by #1 and #2. Both triaged with the codex + gemini + grok multi-agent pipeline.
Fixed
- #1:
grok0.1.211 auto-update silently breaks all plugin calls.grokVersion()now distinguishes "exit 0 with empty output" from "couldn't run";cmdSetupsurfaces a 3-step recovery path (grok update→ roll back via~/.grok/downloads/→ reinstall). - #2:
companion.mjsswallowed underlying grok errors. NewdiagnoseEmptySpawnFailure()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 thatgrok -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 whengithub.com/xai-orgadds 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).