provider: Zed's plugin is 0.1.13 at least: a Gemini request's tool-calling mode goes in lowercase (#4657)

Zed's cloud refused every tool-bearing Gemini turn of the Zed plugin with
400 "unknown variant `AUTO`, expected one of `auto`, `any`, `none`"
(atticuskk). magpie-community/plugins f4e2ac3 (zed 0.1.13, co-authored
with ggbdpq, who found the cause) lowercases the mode in the plugin,
where the request is fitted to Zed's wire; the mover's min makes every
moved user's plugin that version.

Checked: npm view @magpie-community/opencode-zed-auth@0.1.13 version
--prefer-online -> 0.1.13. Plugin run (mote): bun test in packages/zed
54 pass; the lowercase line off -> 3 red. gofmt -l clean.
Not tried: a live request to cloud.zed.dev.
This commit is contained in:
yetone
2026-11-01 22:32:41 +08:00
parent 97e66bce26
commit df03aeb351
+1 -1
View File
@@ -13,7 +13,7 @@ import (
func init() {
movers["zed"] = &mover{
pkg: "@magpie-community/opencode-zed-auth",
min: "0.1.12", // a string message content goes to Zed as a text block, which Zed takes, not a string it refuses (Been on Discord); 0.1.11: a {role: "system"} message inside an Anthropic request goes to Zed as user text in place, not a role Zed refuses (Roy on Discord); 0.1.10: the organization with a plan is picked, and a 402 for the saved one moves the account (plugins#232); 0.1.9: a signed-in account whose model list was never read says why; 0.1.8: a free account's plan reads "No plan", as the built-in's; 0.1.6: a failure's status and its sign-in mark as the built-in's; a model token refused while listing marks the account
min: "0.1.13", // a Gemini request's tool-calling mode goes to Zed in lowercase, which Zed reads, not AUTO it refuses (atticuskk, #4657); 0.1.12: a string message content goes to Zed as a text block, which Zed takes, not a string it refuses (Been on Discord); 0.1.11: a {role: "system"} message inside an Anthropic request goes to Zed as user text in place, not a role Zed refuses (Roy on Discord); 0.1.10: the organization with a plan is picked, and a 402 for the saved one moves the account (plugins#232); 0.1.9: a signed-in account whose model list was never read says why; 0.1.8: a free account's plan reads "No plan", as the built-in's; 0.1.6: a failure's status and its sign-in mark as the built-in's; a model token refused while listing marks the account
agents: []string{"zed"},
out: func() ([]Moving, error) {
var out []Moving