Files
magpie/internal/plugin/testdata/fake
yetone dd70c5e6ae provider: ClinePass's Upstream tick pins GLM models to Z.ai too (sdytman on Discord)
sdytman (#feedback, 10-19) asked for GLM to have what DeepSeek has: with
Upstream ticked, a cline-pass/glm-* request goes only to Z.ai. ClinePin
now reads a maker table (deepseek -> deepseek, glm -> zai) and appends
providerOptions.gateway.only = ["zai"] for a GLM model, at the body's end
as before so the cached prefix is unchanged. cline-free/ models are never
pinned, other makers are unchanged, and a client's own providerOptions is
kept as sent. The tick stays one control; its label and hint now name
DeepSeek and GLM in en, zh, zh-TW, ja and de.

The slug: Cline routes through Vercel AI Gateway. Vercel's provider table
lists Z.ai as slug "zai" (name "Z.AI", website z.ai), and
ai-gateway.vercel.sh/v1/models/zai/glm-*/endpoints gives provider "zai".
sdytman called the upstream "z.ai", Z.ai's site and shown name; the
routing slug Vercel takes is "zai". Not tried with a real request: there is no
Cline account here, and both gateways answer 401 without a key.

The Cline plugin got the same change in
@magpie-community/opencode-cline-auth 0.1.9 (plugins ff13aac). There is
no cline mover, so no min to raise.

Run at 9b72add51 plus this change:
- gofmt -l: clean. go vet darwin, GOOS=linux -tags nogui, GOOS=windows: ok.
- go test -count=1 -timeout 45m ./...: every package ok except agent and
  gateway, both red from "no space left on device" (the disk filled
  during the run; 35 ENOSPC lines) and TestQueueRefusalIsInTheUsageLedger
  (#2541, already filed). Rerun with disk free: internal/agent ok; internal/gateway ran 45m
  at load ~270 with no failure (TestQueueRefusalIsInTheUsageLedger and
  both Cline pin tests passed) and timed out in
  TestPluginStreamLargeReplies; the 829 tests from that file on, run
  alone, ok (1318s).
- Broken by hand, each red: no glm entry (both gateway tests), cline-free
  pinned, every maker pinned to zai, the client's providerOptions written
  over (red only after adding the one-providerOptions-key check: gjson
  reads the first duplicate key, so the old check passed).
- GUI, chromium and webkit: clinepass-pin (red against origin/main's
  app.js), gui-de, gui-ja, gui-zh-tw, i18n-keys, add-sheet: 22/22.
2026-10-19 20:58:53 +08:00
..