provider: Grok's mover installs plugin 0.2.2, which asks for Grok Build's loop checks (#3594)
Grok Build sends x-grok-doom-loop-check: 1024 and x-grok-exact-repetition-check: 64 on every Responses request; the plugin sent neither, so cli-chat-proxy let a looping reply run (~4K tokens for an exact loop, to max output for a looser one). Plugin 0.2.2 (magpie-community/plugins 9608d03) sends them. npm has 0.2.2 (npm view --prefer-online --registry https://registry.npmjs.org/). Run: - gofmt -l internal/provider: clean; go vet ./internal/provider and go test -timeout 45m ./internal/provider on mote: ok. - Real account, sandbox magpie at origin/main with plugin 0.2.2's code: a "* " x3000 prompt over /v1/responses, /v1/chat/completions and /v1/messages each carried both headers upstream and stopped after ~1K tokens instead of ~4.3K. Not tried: a full go test ./... (a one-line min change); a mover run updating an installed 0.2.1 to 0.2.2 (keepMovedCurrent, unchanged).
This commit is contained in:
@@ -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.1", // 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)
|
||||
min: "0.2.2", // 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)
|
||||
agents: []string{"grok"},
|
||||
out: func() ([]Moving, error) {
|
||||
var out []Moving
|
||||
|
||||
Reference in New Issue
Block a user