provider: Zed's plugin is 0.1.14 at least: a Gemini model's efforts are keyed lowercase and its thinking level goes to Zed uppercase (plugins#215)

Zed's /models now lists a Gemini model's supported_effort_levels
uppercase (LOW/MEDIUM/HIGH), so the plugin keyed its variants LOW and
magpie's pi profile, which maps efforts by key, marked every thinking
level unsupported for zed/gemini-* (Yezike-yyy on plugins#215). And a
thinking level reached Zed lowercase, which its serde enum refuses:
400 "unknown variant `low`, expected one of `MINIMAL`, `LOW`,
`MEDIUM`, `HIGH`" (iron-water, plugins#215). zed 0.1.14
(magpie-community/plugins 3618bf9, from ump45nose's #587) keys the
variants lowercase whatever case /models uses and uppercases the level
only on the wire. The mover's min is raised to it, so keepMovedCurrent
updates every moved user.

npm view @magpie-community/opencode-zed-auth version --prefer-online:
0.1.14 at landing.

Run on mote at 59fdab0af (origin/main after rebase) plus this change: go test ./internal/provider/
-timeout 45m ok (104s); go vet ./... on darwin and GOOS=windows ok;
GOOS=linux go vet -tags nogui ./... ok (without nogui, Wails' cgo
Linux files don't build from macOS); gofmt -l clean.
Broken by hand: nothing here (a one-value change); the plugin's own
tests were broken by hand in 3618bf9.
Not tried: a real Zed account (none here) and a real move to 0.1.14.
This commit is contained in:
yetone
2026-11-01 23:55:43 +08:00
parent 59fdab0af7
commit ff65ebd142
+1 -1
View File
@@ -13,7 +13,7 @@ import (
func init() {
movers["zed"] = &mover{
pkg: "@magpie-community/opencode-zed-auth",
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
min: "0.1.14", // a Gemini model's effort variants are keyed lowercase whatever case Zed's /models lists them in, so pi's thinking levels match them, and its thinking level goes to Zed uppercase, which Zed reads, not "low" it refuses (Yezike-yyy, ump45nose, plugins#215); 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