An agent's model picker (Pi and every agent with own-provider groups)
lists the providers the agent is signed in to itself below magpie's
models. Their section header was only the vendor's name, e.g. "OPENCODE
GO", the same as the user's magpie provider of that name, so maxleebeta
read Pi's own OpenCode Go list as magpie ignoring the one model picked
for magpie's OpenCode Go.
A section of direct options (Option.Direct) not already named for the
agent now reads "OpenCode Go · Pi's own sign-in" ("OpenCode Go · Pi 自己的
登录"), in sentence case, faint like the header, no accent. Its key is
distinct, so magpie's and the agent's own groups of one vendor are two
headers. Claude Code's "Claude Code" groups (named for the agent)
are unchanged. New string in zh, zh-TW, ja, de.
Run (mote, playwright chromium + webkit):
- agent-own-direct.test.cjs, extended: headings are exactly
["OpenCode Go", "OpenCode Go · <own sign-in>"], the own one between
magpie's and Pi's models, no text-transform, same height as magpie's
header, no left border or background image; 20/20 (both engines x
en/zh/zh-TW/ja/de x 980/420). i18n-keys, claude-picker-fold,
claude-picker-magpie-first, rail-tip green.
- Broken by hand (chromium en 980): suffix never added -> red; header
key not distinct -> red (headings ["DeepSeek","OpenCode Go"]).
- Whole GUI suite on WSL magpie-desktop (mote was at load ~600):
19,997 tests, 538 fail across 125 files. Those 125 files rerun at
main f177c36a9 and at this head: 490 vs 481 fail, the same files; the
names differing either way are scattered timing tests (Routing rules,
thumbs, scroll) on a loaded Linux box, none in the picker. The
picker files that fail (zero-priced-free etc.) fail alike on main.
- go test ./internal/gui: TestCoreScriptBudget red on main too (#5139):
main 1,533,907, this head 1,533,906 (one byte less; comments trimmed,
no raise). TestMainWindowCorners/macOS_26_SDK red on main (#3949).
Not tried: the real app or a real Pi sign-in; Linux WebKitGTK and the
Windows webview.
maxleebeta in #feedback: Pi 1.5.0 connected to magpie; picking one of
Pi's own OpenCode Go models (opencode-go/<model>) turned 「接入」 off at
once, with nothing said, while magpie's models kept it on.
The cause: the pick writes defaultProvider opencode-go, so Pi asks
OpenCode Go itself and magpie is no longer in its config, and Wired()
is rightly false. What was missing is that the model said so. Options
from ownProvider (every ownOptions agent: Pi, OpenCode, Crush, Goose,
Cline, Hermes, Morph, OpenChamber, Qoder, StepCode, plugged agents, the
WSL twins) and ompOwnOptions carried no Direct, unlike Claude Code's
and Codex's own models. So the picker neither tagged them "direct, not
via magpie" nor asked before a pick took the agent off magpie. Each
now carries Direct = its vendor's name. The GUI already does the rest
(pathTag, the leave-ask, direct options listed after magpie's).
Tests:
- internal/agent TestOwnModelsSayTheyGoDirect: Pi, OpenCode, Crush and
omp, signed in to OpenCode Go, each give every opencode-go/ option
Direct "OpenCode Go"; magpie's options have none. Picking one writes
defaultProvider opencode-go.
- internal/gui/tests/agent-own-direct.test.cjs: the tags, magpie's
first, the ask (Cancel keeps 接入 on, nothing written), magpie's other
model not asked, confirmed → written and off. Run in chromium and
webkit × en/zh/zh-TW/ja/de × 980/420.
Run at this head (rebased on 2c2d2a5e5, mote):
- gofmt -l clean
- CGO_ENABLED=0 GOOS=linux go vet -tags nogui and GOOS=windows go vet
of ./internal/agent ./internal/gui: ok
- go test ./internal/agent (TestOwnModelsSayTheyGoDirect, Codex
Own/Pi/Omp/Crush/OpenCode runs): ok
- GUI agent-own-direct, agent-leave-magpie, agent-own-path,
agent-own-providers, claude-default-off, pi-default-note: 56/56
pass, both engines
Before the rebase (base 4cd01c964), go test of ./internal/agent and its
importers (backup, cli, davsync, gui, library, profile, stats, tui,
uninstall): all ok except internal/gui's
TestMainWindowCorners/macOS_26_SDK, which is #3949 (red on mote's
macOS 27). This change doesn't touch it.
Broken by hand:
- Without Direct in agents.go/omp.go, the Go test goes red for all
four agents.
- With `direct` stripped from the GUI fixture, the GUI test goes red.
Not tried: a real Pi 1.5.0 signed in to OpenCode Go.