opencode-grok-auth 0.2.5 (plugins 5bbdb826) stops telling a user to add
the account again when xAI answers 401 "Authentication required" on a
token Grok Build left as it was and that hasn't expired. That refusal
isn't xAI's verdict on the token (which reads "Invalid or expired
credentials (... upstream=...)"), and it passed by itself within minutes
in the report. The plugin now answers it as a 503 with Retry-After: 60
and X-Magpie-Sign-In: kept, so the gateway rests the account briefly and
fails over (failOther, as for any kept 401 or 503); a real verdict is
still 401 "sign in again". A 401's wait on `grok models` is capped at
15s (was the 30s exec timeout).
npm has 0.2.5: `npm view --prefer-online
@magpie-community/opencode-grok-auth time` gives 2026-11-07T01:58:19Z.
The publish run's npm job is red only for middleware-think-tags 0.1.2
(E404, not its trusted publisher); grok 0.2.5 published in it.
Run: go test ./internal/provider/ on mote, ok (125s); gofmt -l clean.
The plugin side ran its package tests (mote), the repo bun test (Linux
VM, 6571 pass) and check.mjs grok; its body has the hand-breaks.
Not tried: a real "Authentication required" 401 (could not provoke
one), a revoked real token, a Grok Build renewal slower than 15s.
Reported-by: zane668