From ff65ebd1425b4bf189cea00a77ef8e9a262d1e23 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 1 Nov 2026 23:51:41 +0800 Subject: [PATCH] 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. --- internal/provider/migrate_zed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_zed.go b/internal/provider/migrate_zed.go index 9231f437e..04d137f39 100644 --- a/internal/provider/migrate_zed.go +++ b/internal/provider/migrate_zed.go @@ -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