Files
magpie/internal
yetone be5e8f29f1 dsh: its own models are the two it ships, deepseek-flash named DeepSeek-V4.1-Flash (Kylin_Cloud on X)
Kylin_Cloud (X, 11-06, v0.1.2606): DeepSeek Harness's direct models in
magpie listed deepseek-v4-flash, which dsh doesn't have, and showed
deepseek-flash as "DeepSeek-V41-Flash"; dsh's built-ins are only
DeepSeek-V4.1-Flash and DeepSeek-V4-Pro.

Cause: dshModels is a table copied by hand from dsh 0.1.5 (4091b9dfd),
not generated from models.dev and not a label prettifier. dsh's own
table is @deepseek-ai/dsh-llm-deepseek's DEFAULT_MODELS; packed from npm:
  0.1.0-rc.8, 0.1.2-rc.1  deepseek-v4-flash, deepseek-v4-pro (+ vision-exp)
  0.1.5-rc.3              deepseek-flash "DeepSeek-V41-Flash", v4-flash, v4-pro
  0.1.6-alpha.2..0.2.0    deepseek-flash "DeepSeek-V41-Flash", deepseek-v4-pro
  0.2.1-rc.5, 0.2.2-rc.1  deepseek-flash "DeepSeek-V4.1-Flash", deepseek-v4-pro
The installed dsh here (0.2.1-rc.2) has the same two. So "V41" was dsh's
own name from 0.1.5 to 0.2.0, kept after dsh renamed it, and
deepseek-v4-flash left dsh in 0.1.6 while magpie kept offering it.
No other code makes a label from "4.1": V41 is in dsh.go alone.

Now dshModels is dsh's two, named as dsh 0.2.1 on names them. The WSL
(stopped distro) picker reads the same table.

A profile already starting on deepseek-v4-flash: magpie reads it as it is
and doesn't rewrite settings.yaml or the patch list; it is no longer
offered in the list. Since dsh 0.1.6 dsh itself refuses it
(dsh-api-session-controller requireModel: "Select an available model
before sending a message.", it checks listModels, i.e. DEFAULT_MODELS),
so that start was already broken in dsh before this change; picking
either model in magpie or in dsh fixes it.

Siblings pinning the old three: internal/gui's TestAgentOwnModelsHidden
(red under the full suite with the new table, now dsh's two) and the GUI
fixture agent-models-own.test.cjs, which also had made-up labels.

Run (mote, rebased on origin/main f47390bf3):
- TestDshOwnModelsAreDshs: red on the old table (lists deepseek-v4-flash,
  "DeepSeek-V41-Flash"), and red again with only the label fixed (still
  lists deepseek-v4-flash); green with the change.
- go test ./internal/agent: ok.
- node --test agent-models-own.test.cjs (chromium + webkit, en/zh/de/ja,
  narrow and wide): 16/16 ok. i18n-keys: "a plugin's words are its own"
  red, the same three words already filed (#5327, #5332, #5426, #5482),
  not touched by this change.
- go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet
  ./..., GOOS=linux/windows go build: ok. gofmt -l: nothing.
- go test -timeout 45m ./... (shared lock): every package ok but gui and
  provider. gui: TestAgentOwnModelsHidden (fixed above), and
  TestMainWindowCorners (#3949) and TestPanelHiddenByWailsMarksPageOutOfSight
  (#5322), both filed; provider: TestRenewLoginsKeepsClaudeReading (#5481,
  filed). After the fix go test ./internal/gui: only TestMainWindowCorners
  (#3949) red.

Not tried: a real dsh session started on deepseek-v4-flash (the refusal
above is read from dsh's source); dsh before 0.1.5 (it had no
deepseek-flash; every dsh on npm since 0.1.6 has it); Windows/WSL run.

At the pushed head (rebased on b020ae102, which touches gateway, provider
and agent's Claude Desktop only): go vet ./internal/agent ./internal/gui,
go test ./internal/agent -run Dsh and ./internal/gui -run
TestAgentOwnModels: ok.
2026-11-06 16:51:15 +08:00
..
…
…
…
…
…
…