From 72f2deebee170828b14ab8a1b5f8c60a648bd48c Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 11 Nov 2026 03:20:10 +0800 Subject: [PATCH] provider: raise Grok's plugin min to 0.2.7, speech to text through xAI's /v1/stt (CoderCCz on X) opencode-grok-auth 0.2.7 (npm, confirmed with npm view --prefer-online) sends /v1/audio/transcriptions to api.x.ai/v1/stt, the route Grok Build's voice dictation uses, so a moved user gets it through keepMovedCurrent. Images already reach Grok: a real 64x64 PNG through the plugin's fetch answered "Red", and the models declare image input. Run: gofmt -l clean; go vet darwin, linux nogui, windows on internal/provider; go test -run TestMovedBuiltins|Mover|Grok on internal/provider; the plugin's own bun suite (112 pass) in the plugins repo with a real ~/.grok sign-in transcribing a wav. Broke by hand: the plugin's transcription branch removed, 4 of its 5 new tests red. Not tried: a built magpie gateway end to end; the full suite before the tag (started after). --- internal/provider/migrate_side.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_side.go b/internal/provider/migrate_side.go index ed71d8d20..480045bfc 100644 --- a/internal/provider/migrate_side.go +++ b/internal/provider/migrate_side.go @@ -97,7 +97,7 @@ func init() { // names, as the built-in does: the homes stay where they are. movers["grok"] = &mover{ pkg: "@magpie-community/opencode-grok-auth", - min: "0.2.6", // a Responses stream cut before its first byte is asked again, up to three times, and a retry's 429 or 401 comes back as itself; a later cut is passed on to its end for magpie to close as a whole response.failed, with no frame of the plugin's own, and an upstream response.failed or error goes as it came (plugins#852); a 401 that isn't Grok judging the token ("Authentication required", not "Invalid or expired credentials"), on a token Grok Build left as it was and not past its end, is a 503 with Retry-After that keeps the sign-in, not "add the account in magpie again", and a 401's wait on Grok Build's renewal is capped at 15s (plugins#818); the sign-in page opens once, where Grok Build opened it and magpie again (andyfmyth on X); a Go key the Provider API refuses is taken as Go's and asked at /alpha/generate (#969); a failure's status and its sign-in mark as the built-in's; grok-4.7's reasoning levels; the sign-in renewed ahead of time through auth.refresh; a 429 shows a spent Rate limit window until it lifts; a login with no link says why; a tool whose parameters are a root union goes as a plain object (#1271); a plain Codex agent_message (a subagent's task or reply) goes as the user's message, not refused with 422 "unknown item type", a sealed one as it came (plugins#61); a model Grok lists at two windows is offered at each, grok-4.7@500k sent with x-grok-context-window (plugins#83); a window offered without a k (grok-4.7@131072) goes as that window, not as a model named so (#1679); a sign-in without Grok Build names GROK_BIN_DIR (#2223); a sign-in with no email (an X account) is kept by its xAI user id, GROK_AUTH_PATH no longer takes it elsewhere, and a login that leaves none says where it looked; a tool_choice with no tools beside it, which magpie hands the plugin as "none" when a client turned tools off (#3110), is left out before Grok; a 401 renews once through Grok Build and retries, a renewal that leaves the same token says Grok Build couldn't renew it, not that the sign-in expired, and a half-written auth.json is read again (plugins#324); a Responses request asks for Grok Build's loop checks (x-grok-doom-loop-check 1024, x-grok-exact-repetition-check 64), so a reply that repeats itself is stopped after ~1K tokens instead of running to max output (#3594); Codex's include loses output.encrypted_content, which Grok refused with 400 "Argument not supported" (plugins#524); a tool_choice object of a type Grok's backend doesn't take, which magpie hands the plugin to read so it adds no x_search over an allowed_tools (#3153), is left out before Grok + min: "0.2.7", // /v1/audio/transcriptions goes to xAI's /v1/stt, the speech to text Grok Build's voice dictation uses, signed with the account's sign-in (CoderCCz on X); a Responses stream cut before its first byte is asked again, up to three times, and a retry's 429 or 401 comes back as itself; a later cut is passed on to its end for magpie to close as a whole response.failed, with no frame of the plugin's own, and an upstream response.failed or error goes as it came (plugins#852); a 401 that isn't Grok judging the token ("Authentication required", not "Invalid or expired credentials"), on a token Grok Build left as it was and not past its end, is a 503 with Retry-After that keeps the sign-in, not "add the account in magpie again", and a 401's wait on Grok Build's renewal is capped at 15s (plugins#818); the sign-in page opens once, where Grok Build opened it and magpie again (andyfmyth on X); a Go key the Provider API refuses is taken as Go's and asked at /alpha/generate (#969); a failure's status and its sign-in mark as the built-in's; grok-4.7's reasoning levels; the sign-in renewed ahead of time through auth.refresh; a 429 shows a spent Rate limit window until it lifts; a login with no link says why; a tool whose parameters are a root union goes as a plain object (#1271); a plain Codex agent_message (a subagent's task or reply) goes as the user's message, not refused with 422 "unknown item type", a sealed one as it came (plugins#61); a model Grok lists at two windows is offered at each, grok-4.7@500k sent with x-grok-context-window (plugins#83); a window offered without a k (grok-4.7@131072) goes as that window, not as a model named so (#1679); a sign-in without Grok Build names GROK_BIN_DIR (#2223); a sign-in with no email (an X account) is kept by its xAI user id, GROK_AUTH_PATH no longer takes it elsewhere, and a login that leaves none says where it looked; a tool_choice with no tools beside it, which magpie hands the plugin as "none" when a client turned tools off (#3110), is left out before Grok; a 401 renews once through Grok Build and retries, a renewal that leaves the same token says Grok Build couldn't renew it, not that the sign-in expired, and a half-written auth.json is read again (plugins#324); a Responses request asks for Grok Build's loop checks (x-grok-doom-loop-check 1024, x-grok-exact-repetition-check 64), so a reply that repeats itself is stopped after ~1K tokens instead of running to max output (#3594); Codex's include loses output.encrypted_content, which Grok refused with 400 "Argument not supported" (plugins#524); a tool_choice object of a type Grok's backend doesn't take, which magpie hands the plugin to read so it adds no x_search over an allowed_tools (#3153), is left out before Grok agents: []string{"grok"}, out: func() ([]Moving, error) { var out []Moving