Files
magpie/internal
NineSu df29a511e6 gateway: Claude Desktop's model menu names a model as the agents' lists do, by the Provider in model names setting (#1746, marsxxl)
/v1/models for claude-desktop named every model by its own name alone,
with its provider's id in parentheses only where two read the same
(desktopNames, 03421f9f), so with the setting on Codex's list said
"Grok 4.7 @ 500k · Cursor" while Desktop's menu said "Grok 4.7 @ 500k",
and only same-name models got "(cursor)" (Gemini 3.8 Flash (cursor),
(antigravity)). The menu now names models as every agent's list does
(provider.Labels): on, the name with its provider's display name after
it; own, a name the user gave as they wrote it and a vendor's with its
provider's; off, plain names — and two of one name keep their provider's
so they stay apart, while where that still leaves two alike (one
provider's models named alike) the whole catalog id follows, for
Desktop's menu shows the name alone. 蓝猫's plain names (03421f9f) are
the setting's off; a user-given name that already says its provider is
left without it, as Label does everywhere.

Nothing changes for ids, routing, tiers, the 1M listing or the effort
picker. A model whose id reads as one of Desktop's own Claude models is
still renamed by Desktop's own catalog there ("Opus 5.5"), which no
gateway can reach; every other model's display_name is rendered, as the
reporter's "(cursor)" names show.

What was run: go test ./internal/gateway/ -count=1 (ok, 209s) with the
rewritten TestClaudeDesktopPickedModels and TestDesktopNames and the new
TestClaudeDesktopNamesFollowSuffixMode (on/own/off through /v1/models
with the claude-desktop key, red before the change); go test
./internal/provider/ ./internal/agent/ ./internal/codexcat/ -count=1
(ok); HOME=<temp> go test -tags nogui -count=1 ./... (ok, no FAIL);
gofmt -l clean; go vet on darwin, GOOS=linux and GOOS=windows. The
desktop GUI .cjs tests were not run (no playwright in this checkout):
they fake the backend and no GUI file changed. Not tried against a real
Claude Desktop: that it renders these display_name values is from the
reporter's screenshot, whose "(cursor)" names were this same field.
2026-10-13 05:48:39 +08:00
..
settings: keep awake can keep the display on too (#975, Hu9956: magpie's keep-awake held the system up, but the screen still went black and locked, and their agents record the screen to check their work, which a locked screen stops) — Settings › General's "Keep awake while agents work" row now has three segments, Off / On / Screen on too, saved as keepAwake and the new keepAwakeDisplay (default off, so On and every existing settings.json behave as before). awake.Keep takes a Level (Off, System, Display) in place of a bool; a level changed while held releases and takes the hold anew. On a Mac the display level runs caffeinate -i -d -w <pid> (pmset -g assertions on a caffeinate of the same flags shows PreventUserIdleDisplaySleep beside PreventUserIdleSystemSleep); on Windows SetThreadExecutionState gets ES_DISPLAY_REQUIRED too; on Linux logind's idle inhibitor (systemd-inhibit --what=idle:sleep, unchanged) is all there is, and whether the screen stays on is up to the desktop. keepAwakeDisplay is this computer's own (KeepOwn) and goes in prefsKeep, so another setting's save keeps it. The row's line says the display stays on when it's chosen; it keeps its English in data-en, so a language change re-translates it. zh/ja/de strings added. No TUI or CLI has keep-awake, so none changed. TestKeepDisplay (taken once, taken anew with the display, not again at the same level, back to System, released at Off), TestCaffeinateArgs, TestExecutionState (GOOS=windows test build) and TestKeepAwakeKeptAndOwn cover it; go test ./internal/awake ./internal/settings ./internal/gui ./internal/gateway pass, -race -count=5 on awake. keep-awake.test.cjs now runs en/zh/ja/de at 900px and 440px in Chromium and WebKit (display posts keepAwake+keepAwakeDisplay true, the line changes, another setting's save keeps it, segments fit the row, On and Off clear it, no click moves the page): 32/32 twice; gui-ja, gui-de, i18n-keys and click-scroll pass. go vet (darwin, windows, linux), darwin, linux (nogui) and windows builds pass. Not tried with an agent recording the screen; the reporter is asked to confirm.
2026-10-06 15:33:28 +08:00
…
…