agent, gui: an agent's advice after a change reads in the window's language (#1508, NovaTrailX)

A Chinese window said "ZCode 已接入 magpie. ZCode reads its providers at
start-up — restart ZCode …": the notice an agent gives after a change
(state.notice) was English text written in place in each agent's file, and
i18n.js had no entry for any of them.

What changed:
- internal/agent/notice.go: a notice is a template registered with
  newNotice ("Restart {agent} to …"), filled with say(kv...); Notices()
  lists every one. All the agents' notices (claude, codex daemon, zcode,
  agy, cursor-local, wsl, AstrBot's added today, …) are now such templates, the issue's list
  being a sample of them.
- i18n.js: every template has a zh, zh-TW, ja and de translation, and
  NOTICES lists them. tNotice() reads a notice of several joined: longest
  template first, a {slot} never runs over a sentence's end, and a notice
  with any part that has no template (a plugin's own) reads as given
  rather than half in each language. withNotice() joins the status line
  and the notice with 。 in zh/ja.
- app.js: the six places that showed state.notice use withNotice.

Tests:
- TestEveryNoticeIsTranslated: every Notices() template is in NOTICES and
  in each language table, with the same slots. Fails with the zh ZCode
  line deleted from i18n.js (tried).
- TestNoticesAreTemplates: an AST scan for English written in place as a
  Notice. Fails with zcode.go's literal put back (tried).
- tests/agent-notice-lang.test.cjs: every template, filled, alone and
  joined, plus a plugin's notice, and connecting ZCode as the reporter
  did; en, zh, zh-TW, ja, de at 1100 and 420px, Chromium and WebKit:
  22/22. Its zh subtests fail without the zh line.

Run: go test -tags nogui ./internal/agent ./internal/gui; gofmt -l;
GOOS=linux and GOOS=windows go vet -tags nogui ./internal/agent
./internal/gui; the full GUI suite (node --test, both engines, -concurrency 6,
machine load ~140): 5130/5195, 64 failing in 22 files. Rerun alone, 16
files pass; mobile-web, old-webkit, panel-usage and routing-context/
group/keys-fold fail the same on the base commit, b6a263b9.

go test -tags nogui -timeout 40m ./... on the rebased tree: every package
ok but internal/gateway, whose TestQueuedStreamKeptAliveForTheMinute hit
its 1.5s read deadline at a machine load of ~130; it passes -count=3 run
alone, and this change touches nothing it runs.
This commit is contained in:
yetone
2026-10-11 02:34:30 +08:00
parent c5f3588743
commit 20582866a5
43 changed files with 1062 additions and 95 deletions
+6 -1
View File
@@ -970,7 +970,7 @@ func gooseIn(at place, cfg string) *Agent {
// goose loads custom_providers when it starts
Notice: func() string {
if p, _ := gooseActive(path); p == gooseProviderID && Running(`Goose\.app/`, `(^|/)goose( |$)`) {
return "Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models."
return noticeGoose.String()
}
return ""
},
@@ -1256,3 +1256,8 @@ func crushAt(at place, path, data string) *Agent {
},
}
}
// what goose says after a change (notice.go)
var (
noticeGoose = newNotice("Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.")
)
+4 -1
View File
@@ -117,7 +117,7 @@ func agy(home string) *Agent {
if !usesMagpie(v) {
return ""
}
return "agy takes magpie's gateway and model only from how it is started — start it with " + AgyLaunch(v)
return noticeAgy.say("command", AgyLaunch(v))
},
Check: func() string {
v := get()
@@ -187,3 +187,6 @@ func agy(home string) *Agent {
}},
}
}
// what agy says after a change (notice.go)
var noticeAgy = newNotice("agy takes magpie's gateway and model only from how it is started — start it with {command}")
+8 -2
View File
@@ -108,9 +108,9 @@ func air(home, cfg string) *Agent {
return ""
}
if airOpenCode(home) == "" {
return "Air runs magpie's models through OpenCode's ACP server, and OpenCode isn't installed here: install OpenCode (npm i -g opencode-ai), then pick Magpie in a new Air task."
return noticeAir1.String()
}
return "In Air, start a new task and pick Magpie in its agent menu: magpie's models and routing groups are in its model menu."
return noticeAir2.String()
},
Check: func() string {
if !usesMagpie(model()) {
@@ -167,3 +167,9 @@ func air(home, cfg string) *Agent {
}},
}, path, ocPath)
}
// what air says after a change (notice.go)
var (
noticeAir1 = newNotice("Air runs magpie's models through OpenCode's ACP server, and OpenCode isn't installed here: install OpenCode (npm i -g opencode-ai), then pick Magpie in a new Air task.")
noticeAir2 = newNotice("In Air, start a new task and pick Magpie in its agent menu: magpie's models and routing groups are in its model menu.")
)
+6 -1
View File
@@ -203,7 +203,7 @@ func anteAt(at place) *Agent {
Bin: "ante", Dir: dir, Path: path,
Notice: func() string {
if Running(`(^|/)ante( |$)`) {
return "Ante reads its catalog at start-up — restart open ante sessions to use this."
return noticeAnte.String()
}
return ""
},
@@ -428,3 +428,8 @@ func anteEfforts(levels []string) []string {
}
return out
}
// what ante says after a change (notice.go)
var (
noticeAnte = newNotice("Ante reads its catalog at start-up — restart open ante sessions to use this.")
)
+4 -1
View File
@@ -246,7 +246,7 @@ func astrbotAt(at place) *Agent {
ID: "astrbot", Name: "AstrBot", Icon: "astrbot", Spelled: prefixed,
Bin: "astrbot", Dir: data, Path: path,
Notice: func() string {
return "AstrBot reads cmd_config.json at start-up and writes it back whole when its WebUI saves settings — restart AstrBot to use this, before saving anything in its WebUI."
return noticeAstrbot.String()
},
Joined: wired,
Unwire: func() error {
@@ -488,3 +488,6 @@ func astrbotModelJSON(m catalog.Model) map[string]any {
"max_context_tokens": m.Context,
}
}
// what astrbot says after a change (notice.go)
var noticeAstrbot = newNotice("AstrBot reads cmd_config.json at start-up and writes it back whole when its WebUI saves settings — restart AstrBot to use this, before saving anything in its WebUI.")
+6 -1
View File
@@ -129,7 +129,7 @@ func atomcodeIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)atomcode( |$)`) {
return "AtomCode reads its settings at start-up — restart open atomcode sessions to use this."
return noticeAtomcode.String()
}
return ""
},
@@ -460,3 +460,8 @@ func atomcodeSupportedEfforts(efforts []string) []string {
}
return out
}
// what atomcode says after a change (notice.go)
var (
noticeAtomcode = newNotice("AtomCode reads its settings at start-up — restart open atomcode sessions to use this.")
)
+10 -1
View File
@@ -1483,7 +1483,10 @@ func claudeIn(at place) *Agent {
if stale == "" || !claudeRunning() {
return ""
}
return "an open Claude Code session keeps the " + stale + " it started with — restart it to use this."
if stale == "ultracode" {
return noticeClaudeUltracode.String()
}
return noticeClaudeEffort.String()
},
}
return self
@@ -1920,3 +1923,9 @@ func claudeMain(path string) string {
m, _ = tierAt(provider.ClaudeRead(m))
return m
}
// what an open Claude Code session keeps (notice.go)
var (
noticeClaudeEffort = newNotice("an open Claude Code session keeps the effort it started with — restart it to use this.")
noticeClaudeUltracode = newNotice("an open Claude Code session keeps the ultracode it started with — restart it to use this.")
)
+8 -2
View File
@@ -120,9 +120,9 @@ func claudeDesktop(home string) *Agent {
},
Notice: func() string {
if desktopWiredAny(ps) {
return "Claude Desktop reads this at start-up — quit and reopen it to run on magpie (Code and Cowork, no Anthropic sign-in)."
return noticeClaudedesktop1.String()
}
return "Claude Desktop reads this at start-up — quit and reopen it to sign in with Anthropic again."
return noticeClaudedesktop2.String()
},
Check: func() string {
if !desktopWiredAny(ps) {
@@ -503,3 +503,9 @@ func desktopEmpty(b []byte) bool {
var m map[string]json.RawMessage
return json.Unmarshal(b, &m) == nil && len(m) == 0
}
// what claudedesktop says after a change (notice.go)
var (
noticeClaudedesktop1 = newNotice("Claude Desktop reads this at start-up — quit and reopen it to run on magpie (Code and Cowork, no Anthropic sign-in).")
noticeClaudedesktop2 = newNotice("Claude Desktop reads this at start-up — quit and reopen it to sign in with Anthropic again.")
)
+10 -3
View File
@@ -182,13 +182,13 @@ func clineIn(at place) *Agent {
Notice: func() string {
if runtime.GOOS == "windows" {
// Running can't tell the desktop app from the CLI there
return "Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension; Cline's desktop app keeps the model picked in its own composer — pick magpie's there."
return noticeCline1.String()
}
if Running(`Cline\.app/`, `(^|/)cline-app( |$)`) {
return "Cline's desktop app keeps the model and effort picked in its own composer — pick magpie's there; this sets Cline's CLI and VS Code extension."
return noticeCline2.String()
}
if Running(`(^|/)cline( |$)`) {
return "Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension."
return noticeCline3.String()
}
return ""
},
@@ -414,3 +414,10 @@ func clineWrite(path, empty string, kvs ...edit.KV) error {
}
return edit.SetJSON(path, kvs...)
}
// what cline says after a change (notice.go)
var (
noticeCline1 = newNotice("Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension; Cline's desktop app keeps the model picked in its own composer — pick magpie's there.")
noticeCline2 = newNotice("Cline's desktop app keeps the model and effort picked in its own composer — pick magpie's there; this sets Cline's CLI and VS Code extension.")
noticeCline3 = newNotice("Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.")
)
+6 -1
View File
@@ -58,7 +58,7 @@ func codebuddyIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)(codebuddy|cbc|codebuddy-code)( |$)`) {
return "CodeBuddy Code reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this."
return noticeCodebuddy.String()
}
return ""
},
@@ -97,3 +97,8 @@ func codebuddyIn(at place) *Agent {
}},
}
}
// what codebuddy says after a change (notice.go)
var (
noticeCodebuddy = newNotice("CodeBuddy Code reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.")
)
+9 -3
View File
@@ -25,7 +25,7 @@ import (
// codexRestartAll is what is said after a change while copies of Codex
// run that magpie leaves to the user.
const codexRestartAll = "Codex builds its model list at start-up — restart the Codex app, open codex sessions and the app-server they share (" + provider.CodexDaemonRestart + ") to see this."
var codexRestartAll = newNotice("Codex builds its model list at start-up — restart the Codex app, open codex sessions and the app-server they share ({command}) to see this.").say("command", provider.CodexDaemonRestart)
// keepCodexDaemon is provider.KeepCodexDaemonCurrent; a var so tests can
// see what is asked of it without a codex.
@@ -65,9 +65,9 @@ func codexDaemonNotice(path string) (string, bool) {
c := codexDaemonCheck(path)
switch {
case c.Restarted:
return "magpie restarted the app-server codex sessions share, which none was on, so new codex sessions have this; restart the Codex app, if it is open, to see it there.", true
return noticeCodexdaemon.String(), true
case c.Behind && c.Attached > 0:
return "Codex builds its model list at start-up, and the app-server open codex sessions share started before this: restart it (Restart on magpie's Agents page, or " + provider.CodexDaemonRestart + ") and the Codex app to see this.", true
return noticeCodexBehind.say("command", provider.CodexDaemonRestart), true
}
return "", false
}
@@ -120,3 +120,9 @@ func codexDaemonBehind() []StaleCopy {
}
return []StaleCopy{{Kind: "daemon", Since: c.Since}}
}
// what codexdaemon says after a change (notice.go)
var (
noticeCodexBehind = newNotice("Codex builds its model list at start-up, and the app-server open codex sessions share started before this: restart it (Restart on magpie's Agents page, or {command}) and the Codex app to see this.")
noticeCodexdaemon = newNotice("magpie restarted the app-server codex sessions share, which none was on, so new codex sessions have this; restart the Codex app, if it is open, to see it there.")
)
+2 -2
View File
@@ -29,8 +29,8 @@ func TestCodexAdviceNamesTheSharedAppServer(t *testing.T) {
t.Errorf("Codex's advice leaves out its app-server: %q", n)
}
for _, k := range wslKinds {
if k.id == "codex" && !strings.Contains(k.restart, provider.CodexDaemonRestart) {
t.Errorf("Codex in WSL's advice leaves out its app-server: %q", k.restart)
if n := k.restart.say("command", provider.CodexDaemonRestart); k.id == "codex" && !strings.Contains(n, provider.CodexDaemonRestart) {
t.Errorf("Codex in WSL's advice leaves out its app-server: %q", n)
}
}
// nothing running, nothing to restart
+8 -2
View File
@@ -46,9 +46,9 @@ func commandCodeIn(at place) *Agent {
return syncJSON(providers, "provider."+magpieID, theirsKept(providers, "provider."+magpieID, ccProviderJSON, "models"))
},
Notice: func() string {
notes := []string{"Command Code wants its own sign-in (cmd login) even for models through magpie."}
notes := []string{noticeCommandcode1.String()}
if Running(`(^|/)(cmd|cmdc|command-code|commandcode)( |$)`) {
notes = append(notes, "It reads its settings at start-up — restart open Command Code sessions to use this.")
notes = append(notes, noticeCommandcode2.String())
}
return strings.Join(notes, " ")
},
@@ -186,3 +186,9 @@ func ccEffortMap(path string) map[string]string {
}
return out
}
// what commandcode says after a change (notice.go)
var (
noticeCommandcode1 = newNotice("Command Code wants its own sign-in (cmd login) even for models through magpie.")
noticeCommandcode2 = newNotice("It reads its settings at start-up — restart open Command Code sessions to use this.")
)
+6 -1
View File
@@ -128,7 +128,7 @@ func copilotJetBrainsAt(path string, installed func() bool) *Agent {
if !wired() {
return ""
}
return "magpie's models are in Copilot Chat's model picker in your JetBrains IDE, under magpie, once the IDE restarts. They need Copilot signed in to GitHub on a plan with Bring Your Own Key: Copilot Free, Pro and Pro+ have it, Business and Enterprise when the organisation's policy allows it."
return noticeCopilotjetbrains.String()
},
Sync: func() error {
if !wired() {
@@ -244,3 +244,8 @@ func copilotJBModelsJSON(hidden map[string]bool) map[string]any {
}
return out
}
// what copilotjetbrains says after a change (notice.go)
var (
noticeCopilotjetbrains = newNotice("magpie's models are in Copilot Chat's model picker in your JetBrains IDE, under magpie, once the IDE restarts. They need Copilot signed in to GitHub on a plan with Bring Your Own Key: Copilot Free, Pro and Pro+ have it, Business and Enterprise when the organisation's policy allows it.")
)
+4 -1
View File
@@ -317,7 +317,7 @@ func cursorLocal() *Agent {
},
}},
Notice: func() string {
return cursorLocalName + " reads magpie's gateway from CURSOR_LOCAL_AGENT_BASE_URL and CURSOR_LOCAL_AGENT_API_KEY, now set for your user: quit it (the app, not only its window) and open it again, as it keeps the model list it was first given until it quits. A base URL or API key set in its Open configuration or a model's settings comes first, so leave both empty (or set the base URL to " + gateway.URL() + "/v1 and the key to " + gateway.TokenFor(CursorLocalID) + ")."
return noticeCursorLocal.say("agent", cursorLocalName, "url", gateway.URL()+"/v1", "key", gateway.TokenFor(CursorLocalID))
},
}
}
@@ -344,3 +344,6 @@ func cursorLocalEfforts() []Option {
}
return append([]Option{{Value: ""}}, static(levels...)...)
}
// what Cursor Private Inference says after a change (notice.go)
var noticeCursorLocal = newNotice("{agent} reads magpie's gateway from CURSOR_LOCAL_AGENT_BASE_URL and CURSOR_LOCAL_AGENT_API_KEY, now set for your user: quit it (the app, not only its window) and open it again, as it keeps the model list it was first given until it quits. A base URL or API key set in its Open configuration or a model's settings comes first, so leave both empty (or set the base URL to {url} and the key to {key}).")
+6 -1
View File
@@ -35,7 +35,7 @@ func devin(home, cfg string) *Agent {
Bin: "devin", Dir: dir, Path: path,
Notice: func() string {
if Running(`(^|/)devin( |$)`) {
return "Devin reads its model at start-up — restart open Devin sessions to use this."
return noticeDevin.String()
}
return ""
},
@@ -153,3 +153,8 @@ func devinOptions(cur string) []Option {
}
return out
}
// what devin says after a change (notice.go)
var (
noticeDevin = newNotice("Devin reads its model at start-up — restart open Devin sessions to use this.")
)
+6 -1
View File
@@ -219,7 +219,7 @@ func droidIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)droid( |$)`) {
return "Droid reads its settings at start-up — restart open droid sessions to use this."
return noticeDroid.String()
}
return ""
},
@@ -290,3 +290,8 @@ func droidIn(at place) *Agent {
}},
}
}
// what droid says after a change (notice.go)
var (
noticeDroid = newNotice("Droid reads its settings at start-up — restart open droid sessions to use this.")
)
+12 -4
View File
@@ -102,17 +102,17 @@ func dshAt(at place) *Agent {
var notes []string
if Running(`DeepSeek Harness\.app/`, `(^|/)dsh( |$)`) {
if len(dshProfiles(dir)) > 0 {
notes = append(notes, "New dsh sessions start on this; one already open keeps its model until you pick another in it. A dsh started with -p or in a terminal reads it at start-up.")
notes = append(notes, noticeDsh1.String())
} else {
notes = append(notes, "dsh reads its config at start-up — restart open dsh sessions to use this.")
notes = append(notes, noticeDsh2.String())
}
}
if dshSearchesHere(dir) && !gateway.CanSearch() {
notes = append(notes, "dsh's web search goes through magpie, which has nothing to search with yet: set up a provider that searches by itself (DeepSeek, Claude, Codex, …) or a search API under Settings › Web search.")
notes = append(notes, noticeDsh3.String())
}
// only before 0.1.5 does magpie go through llm-deepseek
if len(dshProfiles(dir)) == 0 && dshSettingsEndpoint(filepath.Join(dir, "settings.yaml")) {
notes = append(notes, "~/.dsh/settings.yaml sets its own DeepSeek endpoint or key, which dsh puts over magpie's; clear it in dsh's Models page to go through magpie.")
notes = append(notes, noticeDsh4.String())
}
return strings.Join(notes, " ")
},
@@ -1850,3 +1850,11 @@ func dshSettingsEndpoint(path string) bool {
}
return false
}
// what dsh says after a change (notice.go)
var (
noticeDsh1 = newNotice("New dsh sessions start on this; one already open keeps its model until you pick another in it. A dsh started with -p or in a terminal reads it at start-up.")
noticeDsh2 = newNotice("dsh reads its config at start-up — restart open dsh sessions to use this.")
noticeDsh3 = newNotice("dsh's web search goes through magpie, which has nothing to search with yet: set up a provider that searches by itself (DeepSeek, Claude, Codex, …) or a search API under Settings › Web search.")
noticeDsh4 = newNotice("~/.dsh/settings.yaml sets its own DeepSeek endpoint or key, which dsh puts over magpie's; clear it in dsh's Models page to go through magpie.")
)
+6 -1
View File
@@ -106,7 +106,7 @@ func empryoAt(at place) *Agent {
Bin: "empryo", Dir: dir, Path: path,
Notice: func() string {
if Running(`(^|/)empryo( |$)`) {
return "Empryo reads its config at start-up — restart open empryo sessions to use this."
return noticeEmpryo.String()
}
return ""
},
@@ -175,3 +175,8 @@ func empryoAt(at place) *Agent {
}},
}, path)
}
// what empryo says after a change (notice.go)
var (
noticeEmpryo = newNotice("Empryo reads its config at start-up — restart open empryo sessions to use this.")
)
+6 -1
View File
@@ -67,7 +67,7 @@ func fxIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)fx( |$)`) {
return "fx reads its settings at start-up — restart open fx sessions to use this."
return noticeFx.String()
}
return ""
},
@@ -178,3 +178,8 @@ func fxProviderAt(cur, v1 string) any {
"tool_choice_mode": "send", "model_metadata": ms,
}
}
// what fx says after a change (notice.go)
var (
noticeFx = newNotice("fx reads its settings at start-up — restart open fx sessions to use this.")
)
+6 -1
View File
@@ -207,7 +207,7 @@ func geminiIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)gemini( |$)`) {
return "Gemini CLI reads its settings at start-up — restart open gemini sessions to see this."
return noticeGemini.String()
}
return ""
},
@@ -271,3 +271,8 @@ func delModelName(path string) error {
}
return nil
}
// what gemini says after a change (notice.go)
var (
noticeGemini = newNotice("Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.")
)
+6 -1
View File
@@ -132,7 +132,7 @@ func grokIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)grok( |$)`) {
return "Grok Build reads its settings at start-up — restart open grok sessions to use this."
return noticeGrok.String()
}
return ""
},
@@ -284,3 +284,8 @@ func grokOwnOptions(dir, path, cur string) []Option {
}
return group("Grok Build", out)
}
// what grok says after a change (notice.go)
var (
noticeGrok = newNotice("Grok Build reads its settings at start-up — restart open grok sessions to use this.")
)
+6 -1
View File
@@ -70,7 +70,7 @@ func hermesIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)hermes( |$)`) {
return "Hermes reads its settings at start-up — restart open Hermes sessions to use this."
return noticeHermes.String()
}
return ""
},
@@ -172,3 +172,8 @@ func hermesProviderAt(gw string) hermesProviderEntry {
Headers: map[string]string{"User-Agent": "hermes-agent"}, Models: ms,
}
}
// what hermes says after a change (notice.go)
var (
noticeHermes = newNotice("Hermes reads its settings at start-up — restart open Hermes sessions to use this.")
)
+6 -1
View File
@@ -253,7 +253,7 @@ func kimiIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)kimi( |$)`, `(^|/)kimi-cli( |$)`) {
return "Kimi Code reads its settings at start-up — restart open kimi sessions to use this."
return noticeKimi.String()
}
return ""
},
@@ -367,3 +367,8 @@ func kimiModelTableForKey(path, key string) (map[string]string, error) {
}
return nil, nil
}
// what kimi says after a change (notice.go)
var (
noticeKimi = newNotice("Kimi Code reads its settings at start-up — restart open kimi sessions to use this.")
)
+6 -1
View File
@@ -120,7 +120,7 @@ func miniMaxAt(at place, dir string) *Agent {
},
Notice: func() string {
if Running(`(^|/)mcode( |$)`) {
return "MiniMax Code reads its settings at start-up — restart open mcode sessions to use this."
return noticeMinimax.String()
}
return ""
},
@@ -456,3 +456,8 @@ func miniMaxIcon(provider, model string) string {
}
return ""
}
// what minimax says after a change (notice.go)
var (
noticeMinimax = newNotice("MiniMax Code reads its settings at start-up — restart open mcode sessions to use this.")
)
+6 -1
View File
@@ -96,7 +96,7 @@ func morphIn(at place) *Agent {
Dir: dir, Path: path,
Notice: func() string {
if Running(`(^|/)morph( |$)`, `(^|/)mistermorph( |$)`) {
return "Mister Morph's Console uses this for new tasks; restart open morph chats to use it there."
return noticeMorph.String()
}
return ""
},
@@ -171,3 +171,8 @@ func morphIn(at place) *Agent {
}},
}
}
// what morph says after a change (notice.go)
var (
noticeMorph = newNotice("Mister Morph's Console uses this for new tasks; restart open morph chats to use it there.")
)
+6 -1
View File
@@ -82,7 +82,7 @@ func museAt(at place, cfg string) *Agent {
Bin: "muse", Dir: dir, Path: path,
Notice: func() string {
if Running(`(^|/)muse( |$)`) {
return "Muse Code reads its settings at start-up — restart open muse sessions to use this."
return noticeMuse.String()
}
return ""
},
@@ -167,3 +167,8 @@ func museIcon(id string) string {
}
return modelIcon("", id)
}
// what muse says after a change (notice.go)
var (
noticeMuse = newNotice("Muse Code reads its settings at start-up — restart open muse sessions to use this.")
)
+48
View File
@@ -0,0 +1,48 @@
package agent
import (
"slices"
"strings"
)
// notice is advice an agent gives after a change (Agent.Notice), as an
// English template whose {slots} hold only names, paths, versions and
// commands. Each one is made with newNotice, so Notices lists every one:
// the GUI shows a notice in the reader's language by matching the English
// it gets to these templates (NOTICES and tNotice in i18n.js), and
// TestEveryNoticeIsTranslated holds each to a translation in every
// language the GUI has (#1508). A notice of several sentences is notices
// joined with a space.
type notice string
var notices []notice
// newNotice is the template en, listed in Notices; called only to set a
// package var, never per call.
func newNotice(en string) notice {
n := notice(en)
notices = append(notices, n)
return n
}
// say is the notice with its slots filled: say("agent", "Codex", …).
func (n notice) say(kv ...string) string {
s := string(n)
for i := 0; i+1 < len(kv); i += 2 {
s = strings.ReplaceAll(s, "{"+kv[i]+"}", kv[i+1])
}
return s
}
// String is the notice as it reads with no slots to fill.
func (n notice) String() string { return string(n) }
// Notices are the templates of every notice magpie's own agents give.
func Notices() []string {
out := make([]string, 0, len(notices))
for _, n := range notices {
out = append(out, string(n))
}
slices.Sort(out)
return slices.Compact(out)
}
+162
View File
@@ -0,0 +1,162 @@
package agent
import (
"go/ast"
"go/parser"
"go/token"
"os"
"path/filepath"
"regexp"
"slices"
"strconv"
"strings"
"testing"
)
// i18nTables reads the GUI's i18n.js: each language's table, by its name,
// and the NOTICES list tNotice matches notices against.
func i18nTables(t *testing.T) (map[string]map[string]string, []string) {
t.Helper()
b, err := os.ReadFile(filepath.Join("..", "gui", "assets", "i18n.js"))
if err != nil {
t.Fatal(err)
}
src := string(b)
lang := regexp.MustCompile(`^ (\w+|"[\w-]+"): \{$`)
entry := regexp.MustCompile(`^ ("(?:[^"\\]|\\.)*"): ("(?:[^"\\]|\\.)*"),?$`)
unq := func(s string) string {
u, err := strconv.Unquote(s)
if err != nil {
t.Fatalf("%s: %v", s, err)
}
return u
}
tables := map[string]map[string]string{}
var cur map[string]string
inTables := false
for _, line := range strings.Split(src, "\n") {
switch {
case line == "const I18N = {":
inTables = true
case inTables && line == "};":
inTables = false
case inTables && lang.MatchString(line):
name := strings.Trim(lang.FindStringSubmatch(line)[1], `"`)
cur = map[string]string{}
tables[name] = cur
case inTables && cur != nil:
if m := entry.FindStringSubmatch(line); m != nil {
cur[unq(m[1])] = unq(m[2])
}
}
}
start := strings.Index(src, "\nconst NOTICES = [\n")
if start < 0 {
t.Fatal("i18n.js has no NOTICES list")
}
var list []string
for _, line := range strings.Split(src[start+len("\nconst NOTICES = [\n"):], "\n") {
if line == "];" {
break
}
list = append(list, unq(strings.TrimSuffix(strings.TrimSpace(line), ",")))
}
return tables, list
}
// Every notice an agent gives is in the GUI's NOTICES and has a
// translation in each language i18n.js has, with the same {slots}: a
// Chinese window showed ZCode's restart advice in English (#1508).
func TestEveryNoticeIsTranslated(t *testing.T) {
tables, list := i18nTables(t)
if len(tables) < 4 {
t.Fatalf("read %d language tables from i18n.js", len(tables))
}
ns := Notices()
if len(ns) < 60 {
t.Fatalf("only %d notices listed", len(ns))
}
slots := regexp.MustCompile(`\{\w+\}`)
marks := func(s string) []string {
m := slots.FindAllString(s, -1)
slices.Sort(m)
return slices.Compact(m)
}
for _, n := range ns {
if !slices.Contains(list, n) {
t.Errorf("not in i18n.js's NOTICES: %q", n)
}
for name, table := range tables {
tr, ok := table[n]
if !ok {
t.Errorf("%s has no translation of %q", name, n)
continue
}
if !slices.Equal(marks(tr), marks(n)) {
t.Errorf("%s's %q has slots %v, the English %v", name, tr, marks(tr), marks(n))
}
}
}
for _, n := range list {
if !slices.Contains(ns, n) {
t.Errorf("NOTICES lists %q, which no agent gives", n)
}
}
}
// A notice is written as a newNotice template, never as English in the
// code that gives it, so a new agent's advice can't miss the translation
// TestEveryNoticeIsTranslated asks for.
func TestNoticesAreTemplates(t *testing.T) {
files, _ := filepath.Glob("*.go")
prose := regexp.MustCompile(`[A-Za-z']+ [A-Za-z']+ [A-Za-z']+`)
fset := token.NewFileSet()
checked := 0
for _, name := range files {
if strings.HasSuffix(name, "_test.go") || name == "notice.go" {
continue
}
f, err := parser.ParseFile(fset, name, nil, 0)
if err != nil {
t.Fatal(err)
}
check := func(n ast.Node) {
checked++
ast.Inspect(n, func(n ast.Node) bool {
// newNotice is where a template is written
if c, ok := n.(*ast.CallExpr); ok {
if id, ok := c.Fun.(*ast.Ident); ok && id.Name == "newNotice" {
return false
}
}
if l, ok := n.(*ast.BasicLit); ok && l.Kind == token.STRING && prose.MatchString(l.Value) {
t.Errorf("%s: a notice written in place, not as a newNotice: %s", fset.Position(l.Pos()), l.Value)
}
return true
})
}
ast.Inspect(f, func(n ast.Node) bool {
switch n := n.(type) {
case *ast.KeyValueExpr:
if k, ok := n.Key.(*ast.Ident); ok && k.Name == "Notice" {
check(n.Value)
}
case *ast.AssignStmt:
for i, l := range n.Lhs {
if s, ok := l.(*ast.SelectorExpr); ok && s.Sel.Name == "Notice" && i < len(n.Rhs) {
check(n.Rhs[i])
}
}
case *ast.FuncDecl:
// the helpers a Notice says through
if strings.Contains(strings.ToLower(n.Name.Name), "notice") || n.Name.Name == "notMirrored" {
check(n)
}
}
return true
})
}
if checked < 40 {
t.Fatalf("checked only %d notices", checked)
}
}
+6 -1
View File
@@ -465,7 +465,7 @@ func ompAt(at place, dir string, entry func() ompProviderEntry) *Agent {
},
Notice: func() string {
if Running(`(^|/)omp( |$)`, `@oh-my-pi/pi-coding-agent`) {
return "omp reads its settings at start-up — restart open omp sessions to use this."
return noticeOmp.String()
}
return ""
},
@@ -698,3 +698,8 @@ func ompOwnOptions(modelsFile, cur string) []Option {
sort.SliceStable(out, func(i, j int) bool { return first[out[i].Group] < first[out[j].Group] })
return out
}
// what omp says after a change (notice.go)
var (
noticeOmp = newNotice("omp reads its settings at start-up — restart open omp sessions to use this.")
)
+8 -2
View File
@@ -191,12 +191,12 @@ func openChamber(home, cfg string) *Agent {
ps := s.projectModels()
for _, name := range slices.Sorted(maps.Keys(ps)) {
if m := ps[name]; !usesMagpie(m) {
notes = append(notes, fmt.Sprintf("OpenChamber's project %s has a default model of its own (%s), which it uses there instead.", name, m))
notes = append(notes, noticeOpenchamber1.say("project", name, "model", m))
}
}
}
if Running(`OpenChamber\.app/`, `(^|/)openchamber( |$)`) {
notes = append(notes, "OpenChamber takes the new model for new sessions; sessions already open keep theirs.")
notes = append(notes, noticeOpenchamber2.String())
}
return strings.Join(notes, " ")
},
@@ -249,3 +249,9 @@ func openChamber(home, cfg string) *Agent {
},
}
}
// what openchamber says after a change (notice.go)
var (
noticeOpenchamber1 = newNotice("OpenChamber's project {project} has a default model of its own ({model}), which it uses there instead.")
noticeOpenchamber2 = newNotice("OpenChamber takes the new model for new sessions; sessions already open keep theirs.")
)
+6 -1
View File
@@ -45,7 +45,7 @@ func pencil(home string) *Agent {
detect: func() bool { return isDir(dir) || pencilApp(home) },
Notice: func() string {
if runtime.GOOS == "windows" || Running(`Pencil\.app/`, `pen\.dev\.app/`, `(^|/)[Pp]encil( |$)`) {
return "Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker."
return noticePencil.String()
}
return ""
},
@@ -114,3 +114,8 @@ func pencilProviderJSON(gw string) map[string]any {
return map[string]any{"name": "magpie", "baseUrl": gw + "/v1", "api": "openai-completions",
"apiKey": gateway.TokenFor("pencil"), "models": ms}
}
// what pencil says after a change (notice.go)
var (
noticePencil = newNotice("Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.")
)
+4 -1
View File
@@ -124,7 +124,7 @@ func qoderAt(at place, b qoderBuild) *Agent {
},
Notice: func() string {
if Running(b.procs...) {
return b.name + " reads its settings as a session starts — open sessions keep the model they have; new ones use this."
return noticeQoder.say("agent", b.name)
}
return ""
},
@@ -299,3 +299,6 @@ func qoderProviderAt(agent, model, v1 string) map[string]any {
func qoderKeyed(key, agent string) bool {
return key == gateway.TokenFor(agent) || ourKey(key)
}
// what Qoder's builds say after a change (notice.go)
var noticeQoder = newNotice("{agent} reads its settings as a session starts — open sessions keep the model they have; new ones use this.")
+6 -1
View File
@@ -324,7 +324,7 @@ func qwenIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)qwen( |$)`) {
return "Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this."
return noticeQwen.String()
}
return ""
},
@@ -429,3 +429,8 @@ func qwenOwnOptions(path, cur string) []Option {
}
return group("Qwen Code", out)
}
// what qwen says after a change (notice.go)
var (
noticeQwen = newNotice("Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.")
)
+6 -1
View File
@@ -301,7 +301,7 @@ func reasonixIn(at place) *Agent {
Bin: "reasonix", Dir: dir, Path: path, UA: []string{"reasonix"},
detect: func() bool { return reasonixDetected(at.home) },
Notice: func() string {
return "Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan."
return noticeReasonix.String()
},
Check: func() string {
ref, on := strings.CutPrefix(model(), magpieID+"/")
@@ -672,3 +672,8 @@ func reasonixArray(values []string) edit.Raw {
}
return edit.Raw("[" + strings.Join(quoted, ", ") + "]")
}
// what reasonix says after a change (notice.go)
var (
noticeReasonix = newNotice("Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.")
)
+6 -1
View File
@@ -235,7 +235,7 @@ func snowIn(at place) *Agent {
},
Notice: func() string {
if Running(`(^|/)snow( |$)`) {
return "Snow CLI reads its profile at start-up — restart open snow sessions to use this."
return noticeSnow.String()
}
return ""
},
@@ -636,3 +636,8 @@ func snowOwnOptions(dir, cur string) []Option {
}
func jsonString(s string) string { b, _ := json.Marshal(s); return string(b) }
// what snow says after a change (notice.go)
var (
noticeSnow = newNotice("Snow CLI reads its profile at start-up — restart open snow sessions to use this.")
)
+14 -5
View File
@@ -224,7 +224,7 @@ func vscodeKindAt(k vscodeKind, dir string) *Agent {
if k.exts != "" {
return k.chat().notice(k.name)
}
return "magpie's models are in " + k.name + "'s Chat model picker, under magpie, in each of its profiles (VS Code 1.122 or later). If they don't show, run Developer: Reload Window in " + k.name + "."
return noticeVSCodeJoined.say("agent", k.name)
}
return ""
},
@@ -541,14 +541,14 @@ func vscodeChatInstalled(dir string) (at, version string, found bool) {
// notice is what a build without its own chat is told with magpie's group
// written: what its Copilot Chat needs to list it.
func (c vscodeChat) notice(name string) string {
setup := name + "'s Chat features must be enabled (chat.disableAIFeatures=false) and its product.json must include defaultChatAgent and trustedExtensionAuthAccess for GitHub.copilot-chat. Then run Developer: Reload Window in " + name + "."
setup := noticeVSCodeSetup.say("agent", name)
switch {
case c.none:
return "Install GitHub Copilot Chat in " + name + " to see magpie's models in its Chat. " + setup
return noticeVSCodeNoChat.say("agent", name) + " " + setup
case c.unsupported:
return name + "'s GitHub Copilot Chat " + c.version + " has neither a Custom Endpoint nor an OpenAI Compatible provider, so it can't list magpie's models."
return noticeVSCodeOld.say("agent", name, "version", c.version)
case c.vendor == vscodeOAI:
return "magpie's models are in " + name + "'s Chat model picker under magpie, from GitHub Copilot Chat " + c.version + "'s OpenAI Compatible provider, which it offers only while it is signed in to GitHub with a personal Copilot plan. " + setup
return noticeVSCodeOAI.say("agent", name, "version", c.version) + " " + setup
}
return setup
}
@@ -571,3 +571,12 @@ func vscodeNewer(a, b string) bool {
}
return false
}
// what VS Code and its forks say after a change (notice.go)
var (
noticeVSCodeJoined = newNotice("magpie's models are in {agent}'s Chat model picker, under magpie, in each of its profiles (VS Code 1.122 or later). If they don't show, run Developer: Reload Window in {agent}.")
noticeVSCodeSetup = newNotice("{agent}'s Chat features must be enabled (chat.disableAIFeatures=false) and its product.json must include defaultChatAgent and trustedExtensionAuthAccess for GitHub.copilot-chat. Then run Developer: Reload Window in {agent}.")
noticeVSCodeNoChat = newNotice("Install GitHub Copilot Chat in {agent} to see magpie's models in its Chat.")
noticeVSCodeOld = newNotice("{agent}'s GitHub Copilot Chat {version} has neither a Custom Endpoint nor an OpenAI Compatible provider, so it can't list magpie's models.")
noticeVSCodeOAI = newNotice("magpie's models are in {agent}'s Chat model picker under magpie, from GitHub Copilot Chat {version}'s OpenAI Compatible provider, which it offers only while it is signed in to GitHub with a personal Copilot plan.")
)
+43 -36
View File
@@ -207,12 +207,11 @@ func (d *distro) mirror(cfg string) {
// notMirrored is the notice of an agent in a distro not known to be in
// mirrored networking: what WSL said, or that only .wslconfig was read.
func (d distro) notMirrored(agent string) string {
why := "WSL " + d.Name + " is in " + d.Net + " networking, not mirrored"
n := noticeWSLNotMirrored
if d.Net == "" {
why = "magpie couldn't ask WSL " + d.Name + " its networking mode (it has no wslinfo) and %UserProfile%\\.wslconfig doesn't set it to mirrored"
n = noticeWSLNoMode
}
return why + ", so its " + agent + " was pointed at Windows (" + d.base() + ") rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. " +
"For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again."
return n.say("distro", d.Name, "net", d.Net, "agent", agent, "url", d.base())
}
// base is the gateway's URL from inside the distro.
@@ -242,7 +241,7 @@ type wslKind struct {
// for one that says nothing (a folder other tools keep too)
dir, bin string
in func(place) *Agent // the agent at a place, as on this machine
restart string // advice after a change, when mirrored; "" none
restart notice // advice after a change, when mirrored; "" none
// version: the probe asks the distro's own bin its version (--version),
// for an agent whose config depends on it
version bool
@@ -256,7 +255,7 @@ type wslKind struct {
var wslKinds = []wslKind{
{id: "codex", name: "Codex", dir: ".codex", bin: "codex", in: codexIn,
restart: "builds its model list at start-up — restart it, the app-server its sessions share (" + provider.CodexDaemonRestart + " there) and the Codex app's WSL connection to see this.",
restart: newNotice("{agent} in WSL {distro} builds its model list at start-up — restart it, the app-server its sessions share ({command} there) and the Codex app's WSL connection to see this."),
asleep: func(key string) func(map[string]string) []Option {
switch key {
case "model", "subagent":
@@ -325,15 +324,15 @@ var wslKinds = []wslKind{
// move them (OPENCODE_CONFIG_DIR, KIMI_CODE_HOME, HERMES_HOME, …)
// aren't read. Each one's restart advice is its own Notice's.
{id: "opencode", name: "OpenCode", dir: ".config/opencode", bin: "opencode", in: opencodeIn,
restart: "reads its config at start-up — restart open opencode sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this."),
asleep: wslOwnAsleep("opencode", "model", "small")},
{id: "mimocode", name: "MiMo Code", dir: ".config/mimocode", bin: "mimo", in: mimocodeIn,
restart: "reads its config at start-up — restart open mimo sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this."),
asleep: wslOwnAsleep("mimocode", "model", "small")},
// Kimi Code's ~/.kimi-code, or the old kimi-cli's ~/.kimi where that is
// all there is; a stopped distro's is looked at once it is started
{id: "kimi", name: "Kimi Code", dir: ".kimi-code", bin: "kimi", in: kimiIn,
restart: "reads its settings at start-up — restart open kimi sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open kimi sessions to use this."),
asleep: func(key string) func(map[string]string) []Option {
if key != "model" {
return nil
@@ -345,7 +344,7 @@ var wslKinds = []wslKind{
// Qwen Code's ~/.qwen, one settings.json of the same shape as this
// machine's; a stopped distro's is looked at once it is started
{id: "qwen", name: "Qwen Code", dir: ".qwen", bin: "qwen", in: qwenIn,
restart: "reads a session's model at start-up — start a new session, or /model anew, to use this.",
restart: newNotice("{agent} in WSL {distro} reads a session's model at start-up — start a new session, or /model anew, to use this."),
asleep: func(key string) func(map[string]string) []Option {
if key != "model" {
return nil
@@ -355,7 +354,7 @@ var wslKinds = []wslKind{
}
}},
{id: "omp", name: "omp", dir: ".omp", bin: "omp", in: ompIn, version: true,
restart: "reads its settings at start-up — restart open omp sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open omp sessions to use this."),
asleep: func(key string) func(map[string]string) []Option {
if key == "effort" {
return nil
@@ -365,18 +364,18 @@ var wslKinds = []wslKind{
}
}},
{id: "crush", name: "Crush", dir: ".config/crush", bin: "crush", in: crushIn,
restart: "reads its settings at start-up — restart open crush sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open crush sessions to use this."),
asleep: wslOwnAsleep("crush", "model", "small")},
{id: "hermes", name: "Hermes Agent", dir: ".hermes", bin: "hermes", in: hermesIn,
restart: "reads its settings at start-up — restart open Hermes sessions to use this."},
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open Hermes sessions to use this.")},
// no bin: morph is other tools' name too
{id: "morph", name: "Mister Morph", dir: ".morph", in: morphIn,
restart: "uses this for new tasks in its Console — restart open morph chats to use it there."},
restart: newNotice("{agent} in WSL {distro} uses this for new tasks in its Console — restart open morph chats to use it there.")},
// no bin: grok is also other tools' name, as on this machine
{id: "grok", name: "Grok Build", dir: ".grok", in: grokIn,
restart: "reads its settings at start-up — restart open grok sessions to use this."},
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open grok sessions to use this.")},
{id: "droid", name: "Droid", dir: ".factory", bin: "droid", in: droidIn,
restart: "reads its settings at start-up — restart open droid sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open droid sessions to use this."),
asleep: func(key string) func(map[string]string) []Option {
if key != "model" {
return nil
@@ -391,11 +390,11 @@ var wslKinds = []wslKind{
}},
// no bin: fx is also the JSON viewer's name
{id: "fx", name: "fx", dir: ".fx", in: fxIn,
restart: "reads its settings at start-up — restart open fx sessions to use this."},
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open fx sessions to use this.")},
{id: "commandcode", name: "Command Code", dir: ".commandcode", bin: "command-code", in: commandCodeIn,
restart: "wants its own sign-in there (cmd login) even for models through magpie, and reads its settings at start-up — restart open Command Code sessions to use this."},
restart: newNotice("{agent} in WSL {distro} wants its own sign-in there (cmd login) even for models through magpie, and reads its settings at start-up — restart open Command Code sessions to use this.")},
{id: "minimax-code", name: "MiniMax Code", dir: ".minimax", bin: "mcode", in: miniMaxIn,
restart: "reads its settings at start-up — restart open mcode sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open mcode sessions to use this."),
asleep: func(key string) func(map[string]string) []Option {
if key != "model" {
return nil
@@ -405,7 +404,7 @@ var wslKinds = []wslKind{
}
}},
{id: "dsh", name: "DeepSeek Harness", dir: ".dsh", bin: "dsh", in: dshIn,
restart: "reads its config at start-up — restart open dsh sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this."),
asleep: func(key string) func(map[string]string) []Option {
// the thinking levels hang on which patch lists there are, the
// distro's files: a dsh of today's (0.1.5 on) is taken
@@ -420,27 +419,27 @@ var wslKinds = []wslKind{
}
}},
{id: "empryo", name: "Empryo", dir: ".empryo", bin: "empryo", in: empryoIn,
restart: "reads its config at start-up — restart open empryo sessions to use this."},
restart: newNotice("{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.")},
// Ante ships macOS and Linux builds alone, and suggests WSL on Windows,
// so a Windows machine's Ante is usually this one
{id: "ante", name: "Ante", dir: ".ante", bin: "ante", in: anteIn,
restart: "reads its catalog at start-up — restart open ante sessions to use this."},
restart: newNotice("{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.")},
{id: "muse", name: "Muse Code", dir: ".config/muse", bin: "muse", in: museIn,
restart: "reads its settings at start-up — restart open muse sessions to use this."},
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open muse sessions to use this.")},
{id: "qoder", name: "Qoder", dir: ".qoder", bin: "qodercli", in: qoderIn,
restart: "reads its settings as a session starts — open sessions keep the model they have; new ones use this."},
restart: newNotice("{agent} in WSL {distro} reads its settings as a session starts — open sessions keep the model they have; new ones use this.")},
{id: "qoder-cn", name: "Qoder CN", dir: ".qoder-cn", bin: "qoderclicn", in: qoderCNIn,
restart: "reads its settings as a session starts — open sessions keep the model they have; new ones use this."},
restart: newNotice("{agent} in WSL {distro} reads its settings as a session starts — open sessions keep the model they have; new ones use this.")},
// lgtm on Discord: magpie didn't find a CodeBuddy Code installed in WSL
{id: "codebuddy", name: "CodeBuddy Code", dir: ".codebuddy", bin: "codebuddy", in: codebuddyIn,
restart: "reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this."},
restart: newNotice("{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.")},
// Cline's CLI, and its VS Code extension in a Remote - WSL window, which
// keep the same ~/.cline
{id: "cline", name: "Cline", dir: ".cline", bin: "cline", in: clineIn,
restart: "reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.",
restart: newNotice("{agent} in WSL {distro} reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension."),
asleep: wslOwnAsleep("cline", "model")},
{id: "atomcode", name: "AtomCode", dir: ".atomcode", bin: "atomcode", in: atomcodeIn,
restart: "reads its settings at start-up — restart open atomcode sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open atomcode sessions to use this."),
asleep: func(key string) func(map[string]string) []Option {
if key != "model" {
return nil
@@ -453,12 +452,12 @@ var wslKinds = []wslKind{
// Snow CLI's ~/.snow, its profiles the distro's own; a stopped
// distro's are looked at once it is started
{id: "snow", name: "Snow CLI", dir: ".snow", bin: "snow", in: snowIn,
restart: "reads its profile at start-up — restart open snow sessions to use this.",
restart: newNotice("{agent} in WSL {distro} reads its profile at start-up — restart open snow sessions to use this."),
asleep: wslOwnAsleep("snow", "model")},
// no dir: Antigravity keeps its folders in ~/.gemini too, so only the
// command says Gemini CLI is there
{id: "gemini", name: "Gemini CLI", bin: "gemini", in: geminiIn,
restart: "reads its settings at start-up — restart open gemini sessions to see this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — restart open gemini sessions to see this."),
asleep: func(key string) func(map[string]string) []Option {
if key != "provider" {
return nil
@@ -479,7 +478,7 @@ var wslKinds = []wslKind{
// Block's goose, by its folder alone: a goose command may be pressly's
// database migration tool
{id: "goose", name: "Goose", dir: ".config/goose", in: func(at place) *Agent { return gooseIn(at, filepath.Join(at.home, ".config")) },
restart: "loads its providers at start-up — restart open goose sessions to use magpie's models.",
restart: newNotice("{agent} in WSL {distro} loads its providers at start-up — restart open goose sessions to use magpie's models."),
asleep: wslOwnAsleep("goose", "model")},
// Reasonix's native CLI (1.39 on), by its command and the version it
// gives: the historical npm client is reasonix too, and ~/.reasonix is
@@ -489,7 +488,7 @@ var wslKinds = []wslKind{
v := d.Versions["reasonix"]
return strings.HasPrefix(v, "2.") || strings.HasPrefix(v, "1.39.")
},
restart: "reads its settings at start-up — start a new reasonix process to use this.",
restart: newNotice("{agent} in WSL {distro} reads its settings at start-up — start a new reasonix process to use this."),
asleep: func(key string) func(map[string]string) []Option {
switch key {
case "model", "planner":
@@ -608,13 +607,12 @@ func wslAgent(k wslKind, d distro) *Agent {
return d.notMirrored(k.name)
}
if d.noRelay {
return "WSL " + d.Name + " is in " + d.Net + " networking with localhostForwarding=false in %UserProfile%\\.wslconfig, so 127.0.0.1 there, where its " + k.name +
" was pointed, isn't relayed to Windows, where magpie listens. Remove localhostForwarding=false under [wsl2] (it is on by default) and run wsl --shutdown."
return noticeWSLNoRelay.say("distro", d.Name, "net", d.Net, "agent", k.name)
}
if k.restart == "" {
return ""
}
return k.name + " in WSL " + d.Name + " " + k.restart
return k.restart.say("agent", k.name, "distro", d.Name, "command", provider.CodexDaemonRestart)
}
if !d.Running {
return asleep(a, k, d)
@@ -696,7 +694,7 @@ func asleep(live *Agent, k wslKind, d distro) *Agent {
if started {
return live.Notice()
}
return "WSL " + d.Name + " isn't running: magpie shows what it last saw there, and starts it only to change something."
return noticeWSLAsleep.say("distro", d.Name)
}}
for _, lf := range live.Fields {
key := lf.Key
@@ -1302,3 +1300,12 @@ func wslSetting(cfg, key string) (val string, ok bool) {
}
return val, ok
}
// what an agent in WSL says after a change, besides its kind's restart
// (notice.go)
var (
noticeWSLNotMirrored = newNotice("WSL {distro} is in {net} networking, not mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.")
noticeWSLNoMode = newNotice("magpie couldn't ask WSL {distro} its networking mode (it has no wslinfo) and %UserProfile%\\.wslconfig doesn't set it to mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.")
noticeWSLNoRelay = newNotice("WSL {distro} is in {net} networking with localhostForwarding=false in %UserProfile%\\.wslconfig, so 127.0.0.1 there, where its {agent} was pointed, isn't relayed to Windows, where magpie listens. Remove localhostForwarding=false under [wsl2] (it is on by default) and run wsl --shutdown.")
noticeWSLAsleep = newNotice("WSL {distro} isn't running: magpie shows what it last saw there, and starts it only to change something.")
)
+6 -1
View File
@@ -67,7 +67,7 @@ func zcode(home string) *Agent {
Dir: dir, Path: path,
Notice: func() string {
if Running(`ZCode\.app/`, `(^|/)ZCode( |$)`) {
return "ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker."
return noticeZcode.String()
}
return ""
},
@@ -504,3 +504,8 @@ func zcodeNonNil(l []any) []any {
}
return l
}
// what zcode says after a change (notice.go)
var (
noticeZcode = newNotice("ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker.")
)
+6 -1
View File
@@ -58,7 +58,7 @@ func zedAtWith(dir, bin string, processes []string) *Agent {
UA: []string{"zed"},
Notice: func() string {
if usesMagpie(model()) && Running(processes...) {
return "Restart Zed if it still asks for an API key: magpie has configured its gateway credential in the system credential store."
return noticeZed.String()
}
return ""
},
@@ -240,3 +240,8 @@ func zedProviderJSON(path string) map[string]any {
}
return map[string]any{"api_url": gatewayV1(), "available_models": models}
}
// what zed says after a change (notice.go)
var (
noticeZed = newNotice("Restart Zed if it still asks for an API key: magpie has configured its gateway credential in the system credential store.")
)
+6 -6
View File
@@ -905,7 +905,7 @@ function connectSwitch(a) {
state = await api("agents/connect/" + a.id, {});
renderAgents();
const msg = connectedSaid(a, state.connected);
if (state.notice) status(`${msg}. ${t(state.notice)}`, "warn", 9000);
if (state.notice) status(withNotice(msg, state.notice), "warn", 9000);
else if (msg !== t("{agent} is connected to magpie", { agent: a.name })) status(msg, "ok", 7000);
else status(msg, "ok");
} catch (err) {
@@ -1619,7 +1619,7 @@ function askDisconnect(a) {
if (agentExpanded === a.id) agentExpanded = null;
renderAgents();
const msg = t(offline ? "Saved settings restored; magpie was removed from {agent}" : "{agent} no longer goes through magpie; its own settings are back", { agent: a.name });
if (state.notice) status(`${msg}. ${t(state.notice)}`, "warn", 9000);
if (state.notice) status(withNotice(msg, state.notice), "warn", 9000);
else status(msg, "ok");
} catch (err) {
go.disabled = false;
@@ -1657,7 +1657,7 @@ async function reapplyAgent(a, btn) {
renderAgents();
document.querySelector(`.agent[data-id="${CSS.escape(a.id)}"] .field`)?.classList.add("flash");
const msg = t("{agent} goes through magpie again", { agent: a.name });
if (state.notice) status(`${msg}. ${t(state.notice)}`, "warn", 9000);
if (state.notice) status(withNotice(msg, state.notice), "warn", 9000);
else status(msg, "ok");
} catch (e) {
btn?.classList.remove("busy");
@@ -3728,7 +3728,7 @@ function ultracodeToggle(a, f) {
state = await api("set", { agent: a.id, field: f.key, value: on ? "" : "on" });
renderAgents();
const msg = t("{agent} ultracode → {value}", { agent: a.name, value: t(on ? "off" : "on") });
if (state.notice) status(`${msg}. ${t(state.notice)}`, "warn", 9000);
if (state.notice) status(withNotice(msg, state.notice), "warn", 9000);
else status(msg, "ok");
} catch (e) { status(e.message, "err"); }
};
@@ -3995,7 +3995,7 @@ function effortSeg(a, f) {
// open Claude Code session keeps the level it started with.
function effortSaid(a, f, o) {
const msg = `${a.name} ${t(f.label)} → ${effortName(o)}`;
if (state.notice) status(`${msg}. ${t(state.notice)}`, "warn", 9000);
if (state.notice) status(withNotice(msg, state.notice), "warn", 9000);
else status(msg, "ok");
}
@@ -4582,7 +4582,7 @@ async function setPick(agent, field, value, opt) {
renderAgents();
flash();
const shown = opt?.label || value;
if (state.notice) status(`${agent.name} → ${shown}. ${t(state.notice)}`, "warn", 9000);
if (state.notice) status(withNotice(`${agent.name} → ${shown}`, state.notice), "warn", 9000);
else if (leaving && value === "") status(t(agent.id === "reasonix" ? "{agent} no longer goes through magpie; its own settings are back" : "{agent} no longer goes through magpie · on its own default", { agent: agent.name }), "ok", 6000);
else if (opt?.direct) status(`${agent.name} ${t(field.label)} → ${shown} · ${t("straight to {vendor}, not through magpie", { vendor: opt.direct })}`, "ok", 6000);
else status(`${agent.name} ${t(field.label)} → ${shown}`, "ok");
+444
View File
@@ -4120,6 +4120,84 @@ const I18N = {
"videos": "个视频",
"Video · 24 hours": "视频 · 24 小时",
"Video · 7 days": "视频 · 7 天",
// agents' advice after a change (NOTICES)
"Ante reads its catalog at start-up — restart open ante sessions to use this.": "Ante 启动时读取模型目录,需重启已打开的 ante 会话才会生效。",
"AtomCode reads its settings at start-up — restart open atomcode sessions to use this.": "AtomCode 启动时读取设置,需重启已打开的 atomcode 会话才会生效。",
"Claude Desktop reads this at start-up — quit and reopen it to run on magpie (Code and Cowork, no Anthropic sign-in).": "Claude Desktop 启动时读取这项设置,退出并重新打开后即走 magpie(Code 和 Cowork,无需登录 Anthropic)。",
"Claude Desktop reads this at start-up — quit and reopen it to sign in with Anthropic again.": "Claude Desktop 启动时读取这项设置,退出并重新打开后可重新用 Anthropic 登录。",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "Cline 在会话开始时读取供应商:已打开的会话保留原来的模型,新会话使用这项设置。VS Code 扩展需重新加载 VS Code 窗口。",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension; Cline's desktop app keeps the model picked in its own composer — pick magpie's there.": "Cline 在会话开始时读取供应商:已打开的会话保留原来的模型,新会话使用这项设置。VS Code 扩展需重新加载 VS Code 窗口;Cline 桌面应用沿用它自己输入框里选的模型,请在那里选 magpie 的模型。",
"Cline's desktop app keeps the model and effort picked in its own composer — pick magpie's there; this sets Cline's CLI and VS Code extension.": "Cline 桌面应用沿用它自己输入框里选的模型和思考强度,请在那里选 magpie 的模型;这里设置的是 Cline 的 CLI 和 VS Code 扩展。",
"CodeBuddy Code reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "CodeBuddy Code 在会话开始时读取模型,需重启已打开的 codebuddy 会话或在其中运行 /clear 才会生效。",
"Codex builds its model list at start-up — restart the Codex app, open codex sessions and the app-server they share ({command}) to see this.": "Codex 启动时生成模型列表,需重启 Codex 应用、已打开的 codex 会话以及它们共用的 app-server({command})才能看到。",
"Codex builds its model list at start-up, and the app-server open codex sessions share started before this: restart it (Restart on magpie's Agents page, or {command}) and the Codex app to see this.": "Codex 启动时生成模型列表,而已打开的 codex 会话共用的 app-server 在这次改动之前就已启动:需重启它(magpie Agent 页上的“重启”,或 {command})和 Codex 应用才能看到。",
"Command Code wants its own sign-in (cmd login) even for models through magpie.": "即使通过 magpie 使用模型,Command Code 也要求先完成它自己的登录(cmd login)。",
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin 启动时读取模型,需重启已打开的 Devin 会话才会生效。",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid 启动时读取设置,需重启已打开的 droid 会话才会生效。",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo 启动时读取配置,需重启已打开的 empryo 会话才会生效。",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI 启动时读取设置,需重启已打开的 gemini 会话才能看到。",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose 启动时加载供应商,需退出并重新打开 Goose(以及已打开的 goose 会话)才能使用 magpie 的模型。",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build 启动时读取设置,需重启已打开的 grok 会话才会生效。",
"Hermes reads its settings at start-up — restart open Hermes sessions to use this.": "Hermes 启动时读取设置,需重启已打开的 Hermes 会话才会生效。",
"Install GitHub Copilot Chat in {agent} to see magpie's models in its Chat.": "在 {agent} 中安装 GitHub Copilot Chat,才能在它的 Chat 里看到 magpie 的模型。",
"It reads its settings at start-up — restart open Command Code sessions to use this.": "它启动时读取设置,需重启已打开的 Command Code 会话才会生效。",
"Kimi Code reads its settings at start-up — restart open kimi sessions to use this.": "Kimi Code 启动时读取设置,需重启已打开的 kimi 会话才会生效。",
"MiniMax Code reads its settings at start-up — restart open mcode sessions to use this.": "MiniMax Code 启动时读取设置,需重启已打开的 mcode 会话才会生效。",
"Mister Morph's Console uses this for new tasks; restart open morph chats to use it there.": "Mister Morph 的 Console 会在新任务中使用这项设置;已打开的 morph 对话需重启才会生效。",
"Muse Code reads its settings at start-up — restart open muse sessions to use this.": "Muse Code 启动时读取设置,需重启已打开的 muse 会话才会生效。",
"New dsh sessions start on this; one already open keeps its model until you pick another in it. A dsh started with -p or in a terminal reads it at start-up.": "新的 dsh 会话会使用这项设置;已打开的会话保留原来的模型,直到你在其中另选一个。用 -p 或在终端里启动的 dsh 在启动时读取它。",
"OpenChamber takes the new model for new sessions; sessions already open keep theirs.": "OpenChamber 的新会话会使用新模型;已打开的会话保留原来的模型。",
"OpenChamber's project {project} has a default model of its own ({model}), which it uses there instead.": "OpenChamber 的项目 {project} 有自己的默认模型({model}),在该项目里会改用它。",
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil 启动时读取自定义模型,需重启 Pencil 才能在它的模型选择器中看到 magpie 的模型。",
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code 在会话启动时读取模型,需开启新会话或重新执行 /model 才会生效。",
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x 和原生 1.39.x/2.x CLI 在启动时读取全局设置,需启动新进程才会加载改动。项目或会话的模型可以覆盖 Executor 和 Plan。",
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI 启动时读取配置档,需重启已打开的 snow 会话才会生效。",
"WSL {distro} is in {net} networking with localhostForwarding=false in %UserProfile%\\.wslconfig, so 127.0.0.1 there, where its {agent} was pointed, isn't relayed to Windows, where magpie listens. Remove localhostForwarding=false under [wsl2] (it is on by default) and run wsl --shutdown.": "WSL {distro} 使用 {net} 网络模式,且 %UserProfile%\\.wslconfig 中设置了 localhostForwarding=false,因此其中 {agent} 指向的 127.0.0.1 不会转发到 magpie 所在的 Windows。请删除 [wsl2] 下的 localhostForwarding=false(默认开启),然后运行 wsl --shutdown。",
"WSL {distro} is in {net} networking, not mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "WSL {distro} 使用 {net} 网络模式而不是 mirrored,因此其中的 {agent} 指向 Windows({url})而不是 127.0.0.1;只有网关监听回环以外的地址、且 Windows 防火墙放行 WSL 时才能连通。若要使用 127.0.0.1,请在 %UserProfile%\\.wslconfig 的 [wsl2] 下设置 networkingMode=mirrored 并运行 wsl --shutdown,然后重新选择模型。",
"WSL {distro} isn't running: magpie shows what it last saw there, and starts it only to change something.": "WSL {distro} 未运行:magpie 显示的是上次看到的内容,只在需要修改时才启动它。",
"ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker.": "ZCode 启动时读取供应商,需重启 ZCode 才能在它的模型选择器中看到 magpie 的模型。",
"AstrBot reads cmd_config.json at start-up and writes it back whole when its WebUI saves settings — restart AstrBot to use this, before saving anything in its WebUI.": "AstrBot 启动时读取 cmd_config.json,并在其 WebUI 保存设置时整份写回——请重启 AstrBot 以使用此设置,且在此之前不要在其 WebUI 中保存任何内容。",
"agy takes magpie's gateway and model only from how it is started — start it with {command}": "agy 只从启动方式中获取 magpie 的网关和模型,请这样启动它:{command}",
"dsh reads its config at start-up — restart open dsh sessions to use this.": "dsh 启动时读取配置,需重启已打开的 dsh 会话才会生效。",
"dsh's web search goes through magpie, which has nothing to search with yet: set up a provider that searches by itself (DeepSeek, Claude, Codex, …) or a search API under Settings › Web search.": "dsh 的联网搜索经过 magpie,而 magpie 目前还没有可用的搜索方式:请添加一个自带搜索的供应商(DeepSeek、Claude、Codex 等),或在“设置 › 联网搜索”中配置搜索 API。",
"fx reads its settings at start-up — restart open fx sessions to use this.": "fx 启动时读取设置,需重启已打开的 fx 会话才会生效。",
"magpie couldn't ask WSL {distro} its networking mode (it has no wslinfo) and %UserProfile%\\.wslconfig doesn't set it to mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "magpie 无法获取 WSL {distro} 的网络模式(其中没有 wslinfo),且 %UserProfile%\\.wslconfig 未将其设为 mirrored,因此其中的 {agent} 指向 Windows({url})而不是 127.0.0.1;只有网关监听回环以外的地址、且 Windows 防火墙放行 WSL 时才能连通。若要使用 127.0.0.1,请在 %UserProfile%\\.wslconfig 的 [wsl2] 下设置 networkingMode=mirrored 并运行 wsl --shutdown,然后重新选择模型。",
"magpie restarted the app-server codex sessions share, which none was on, so new codex sessions have this; restart the Codex app, if it is open, to see it there.": "magpie 已重启 codex 会话共用的 app-server(当时没有会话连着它),新的 codex 会话已生效;如果 Codex 应用开着,需重启它才能看到。",
"magpie's models are in Copilot Chat's model picker in your JetBrains IDE, under magpie, once the IDE restarts. They need Copilot signed in to GitHub on a plan with Bring Your Own Key: Copilot Free, Pro and Pro+ have it, Business and Enterprise when the organisation's policy allows it.": "JetBrains IDE 重启后,magpie 的模型会出现在 Copilot Chat 模型选择器的 magpie 分组下。前提是 Copilot 已用支持 Bring Your Own Key 的方案登录 GitHub:Copilot Free、Pro 和 Pro+ 都支持,Business 和 Enterprise 需组织策略允许。",
"magpie's models are in {agent}'s Chat model picker under magpie, from GitHub Copilot Chat {version}'s OpenAI Compatible provider, which it offers only while it is signed in to GitHub with a personal Copilot plan.": "magpie 的模型在 {agent} Chat 模型选择器的 magpie 分组下,来自 GitHub Copilot Chat {version} 的 OpenAI Compatible 供应商;只有用个人 Copilot 方案登录 GitHub 时它才提供这个供应商。",
"magpie's models are in {agent}'s Chat model picker, under magpie, in each of its profiles (VS Code 1.122 or later). If they don't show, run Developer: Reload Window in {agent}.": "magpie 的模型在 {agent} 每个配置文件的 Chat 模型选择器中,位于 magpie 分组下(VS Code 1.122 或更新版本)。如果没有出现,请在 {agent} 中运行 Developer: Reload Window。",
"omp reads its settings at start-up — restart open omp sessions to use this.": "omp 启动时读取设置,需重启已打开的 omp 会话才会生效。",
"{agent} in WSL {distro} builds its model list at start-up — restart it, the app-server its sessions share ({command} there) and the Codex app's WSL connection to see this.": "WSL {distro} 中的 {agent} 启动时生成模型列表,需重启它、其会话共用的 app-server(在那里运行 {command})以及 Codex 应用的 WSL 连接才能看到。",
"{agent} in WSL {distro} loads its providers at start-up — restart open goose sessions to use magpie's models.": "WSL {distro} 中的 {agent} 启动时加载供应商,需重启已打开的 goose 会话才能使用 magpie 的模型。",
"{agent} in WSL {distro} reads a session's model at start-up — start a new session, or /model anew, to use this.": "WSL {distro} 中的 {agent} 在会话启动时读取模型,需开启新会话或重新执行 /model 才会生效。",
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取模型目录,需重启已打开的 ante 会话才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 dsh 会话才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 empryo 会话才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 mimo 会话才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 opencode 会话才会生效。",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "WSL {distro} 中的 {agent} 在会话开始时读取模型,需重启已打开的 codebuddy 会话或在其中运行 /clear 才会生效。",
"{agent} in WSL {distro} reads its profile at start-up — restart open snow sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置档,需重启已打开的 snow 会话才会生效。",
"{agent} in WSL {distro} reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "WSL {distro} 中的 {agent} 在会话开始时读取供应商:已打开的会话保留原来的模型,新会话使用这项设置。VS Code 扩展需重新加载 VS Code 窗口。",
"{agent} in WSL {distro} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "WSL {distro} 中的 {agent} 在会话开始时读取设置:已打开的会话保留原来的模型,新会话使用这项设置。",
"{agent} in WSL {distro} reads its settings at start-up — restart open Hermes sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 Hermes 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open atomcode sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 atomcode 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open crush sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 crush 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open droid sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 droid 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open fx sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 fx 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open gemini sessions to see this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 gemini 会话才能看到。",
"{agent} in WSL {distro} reads its settings at start-up — restart open grok sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 grok 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open kimi sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 kimi 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open mcode sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 mcode 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open muse sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 muse 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open omp sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需重启已打开的 omp 会话才会生效。",
"{agent} in WSL {distro} reads its settings at start-up — start a new reasonix process to use this.": "WSL {distro} 中的 {agent} 启动时读取设置,需启动新的 reasonix 进程才会生效。",
"{agent} in WSL {distro} uses this for new tasks in its Console — restart open morph chats to use it there.": "WSL {distro} 中的 {agent} 会在 Console 的新任务中使用这项设置;已打开的 morph 对话需重启才会生效。",
"{agent} in WSL {distro} wants its own sign-in there (cmd login) even for models through magpie, and reads its settings at start-up — restart open Command Code sessions to use this.": "即使通过 magpie 使用模型,WSL {distro} 中的 {agent} 也要求在那里完成它自己的登录(cmd login);它启动时读取设置,需重启已打开的 Command Code 会话才会生效。",
"{agent} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "{agent} 在会话开始时读取设置:已打开的会话保留原来的模型,新会话使用这项设置。",
"{agent} reads magpie's gateway from CURSOR_LOCAL_AGENT_BASE_URL and CURSOR_LOCAL_AGENT_API_KEY, now set for your user: quit it (the app, not only its window) and open it again, as it keeps the model list it was first given until it quits. A base URL or API key set in its Open configuration or a model's settings comes first, so leave both empty (or set the base URL to {url} and the key to {key}).": "{agent} 从 CURSOR_LOCAL_AGENT_BASE_URL 和 CURSOR_LOCAL_AGENT_API_KEY 读取 magpie 的网关,这两个变量现已为当前用户设置:请退出它(整个应用,不只是窗口)再重新打开,因为退出前它一直沿用最初拿到的模型列表。它的 Open configuration 或某个模型设置里填写的 Base URL 或 API Key 优先,所以请把两者留空(或把 Base URL 设为 {url}、Key 设为 {key})。",
"{agent}'s Chat features must be enabled (chat.disableAIFeatures=false) and its product.json must include defaultChatAgent and trustedExtensionAuthAccess for GitHub.copilot-chat. Then run Developer: Reload Window in {agent}.": "{agent} 需开启 Chat 功能(chat.disableAIFeatures=false),且它的 product.json 需为 GitHub.copilot-chat 包含 defaultChatAgent 和 trustedExtensionAuthAccess。然后在 {agent} 中运行 Developer: Reload Window。",
"{agent}'s GitHub Copilot Chat {version} has neither a Custom Endpoint nor an OpenAI Compatible provider, so it can't list magpie's models.": "{agent} 的 GitHub Copilot Chat {version} 既没有 Custom Endpoint 也没有 OpenAI Compatible 供应商,因此无法列出 magpie 的模型。",
"~/.dsh/settings.yaml sets its own DeepSeek endpoint or key, which dsh puts over magpie's; clear it in dsh's Models page to go through magpie.": "~/.dsh/settings.yaml 设置了自己的 DeepSeek 地址或 Key,dsh 会优先用它而不是 magpie 的;请在 dsh 的 Models 页面清除它,才能走 magpie。",
},
"zh-TW": {
"account": "帳號",
@@ -8221,6 +8299,84 @@ const I18N = {
"videos": "個影片",
"Video · 24 hours": "影片 · 24 小時",
"Video · 7 days": "影片 · 7 天",
// agents' advice after a change (NOTICES)
"Ante reads its catalog at start-up — restart open ante sessions to use this.": "Ante 啟動時讀取模型目錄,需重啟已打開的 ante 會話才會生效。",
"AtomCode reads its settings at start-up — restart open atomcode sessions to use this.": "AtomCode 啟動時讀取設定,需重啟已打開的 atomcode 會話才會生效。",
"Claude Desktop reads this at start-up — quit and reopen it to run on magpie (Code and Cowork, no Anthropic sign-in).": "Claude Desktop 啟動時讀取這項設定,退出並重新打開後即走 magpie(Code 和 Cowork,無需登入 Anthropic)。",
"Claude Desktop reads this at start-up — quit and reopen it to sign in with Anthropic again.": "Claude Desktop 啟動時讀取這項設定,退出並重新打開後可重新用 Anthropic 登入。",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "Cline 在會話開始時讀取供應商:已打開的會話保留原來的模型,新會話使用這項設定。VS Code 擴充功能需重新載入 VS Code 視窗。",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension; Cline's desktop app keeps the model picked in its own composer — pick magpie's there.": "Cline 在會話開始時讀取供應商:已打開的會話保留原來的模型,新會話使用這項設定。VS Code 擴充功能需重新載入 VS Code 視窗;Cline 桌面應用沿用它自己輸入框裡選的模型,請在那裡選 magpie 的模型。",
"Cline's desktop app keeps the model and effort picked in its own composer — pick magpie's there; this sets Cline's CLI and VS Code extension.": "Cline 桌面應用沿用它自己輸入框裡選的模型和思考強度,請在那裡選 magpie 的模型;這裡設定的是 Cline 的 CLI 和 VS Code 擴充功能。",
"CodeBuddy Code reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "CodeBuddy Code 在會話開始時讀取模型,需重啟已打開的 codebuddy 會話或在其中執行 /clear 才會生效。",
"Codex builds its model list at start-up — restart the Codex app, open codex sessions and the app-server they share ({command}) to see this.": "Codex 啟動時生成模型列表,需重啟 Codex 應用、已打開的 codex 會話以及它們共用的 app-server({command})才能看到。",
"Codex builds its model list at start-up, and the app-server open codex sessions share started before this: restart it (Restart on magpie's Agents page, or {command}) and the Codex app to see this.": "Codex 啟動時生成模型列表,而已打開的 codex 會話共用的 app-server 在這次改動之前就已啟動:需重啟它(magpie Agent 頁上的“重啟”,或 {command})和 Codex 應用才能看到。",
"Command Code wants its own sign-in (cmd login) even for models through magpie.": "即使通過 magpie 使用模型,Command Code 也要求先完成它自己的登入(cmd login)。",
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin 啟動時讀取模型,需重啟已打開的 Devin 會話才會生效。",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid 啟動時讀取設定,需重啟已打開的 droid 會話才會生效。",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo 啟動時讀取設定,需重啟已打開的 empryo 會話才會生效。",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI 啟動時讀取設定,需重啟已打開的 gemini 會話才能看到。",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose 啟動時載入供應商,需退出並重新打開 Goose(以及已打開的 goose 會話)才能使用 magpie 的模型。",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build 啟動時讀取設定,需重啟已打開的 grok 會話才會生效。",
"Hermes reads its settings at start-up — restart open Hermes sessions to use this.": "Hermes 啟動時讀取設定,需重啟已打開的 Hermes 會話才會生效。",
"Install GitHub Copilot Chat in {agent} to see magpie's models in its Chat.": "在 {agent} 中安裝 GitHub Copilot Chat,才能在它的 Chat 裡看到 magpie 的模型。",
"It reads its settings at start-up — restart open Command Code sessions to use this.": "它啟動時讀取設定,需重啟已打開的 Command Code 會話才會生效。",
"Kimi Code reads its settings at start-up — restart open kimi sessions to use this.": "Kimi Code 啟動時讀取設定,需重啟已打開的 kimi 會話才會生效。",
"MiniMax Code reads its settings at start-up — restart open mcode sessions to use this.": "MiniMax Code 啟動時讀取設定,需重啟已打開的 mcode 會話才會生效。",
"Mister Morph's Console uses this for new tasks; restart open morph chats to use it there.": "Mister Morph 的 Console 會在新任務中使用這項設定;已打開的 morph 對話需重啟才會生效。",
"Muse Code reads its settings at start-up — restart open muse sessions to use this.": "Muse Code 啟動時讀取設定,需重啟已打開的 muse 會話才會生效。",
"New dsh sessions start on this; one already open keeps its model until you pick another in it. A dsh started with -p or in a terminal reads it at start-up.": "新的 dsh 會話會使用這項設定;已打開的會話保留原來的模型,直到你在其中另選一個。用 -p 或在終端裡啟動的 dsh 在啟動時讀取它。",
"OpenChamber takes the new model for new sessions; sessions already open keep theirs.": "OpenChamber 的新會話會使用新模型;已打開的會話保留原來的模型。",
"OpenChamber's project {project} has a default model of its own ({model}), which it uses there instead.": "OpenChamber 的專案 {project} 有自己的預設模型({model}),在該專案裡會改用它。",
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil 啟動時讀取自訂模型,需重啟 Pencil 才能在它的模型選擇器中看到 magpie 的模型。",
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code 在會話啟動時讀取模型,需開啟新會話或重新執行 /model 才會生效。",
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x 和原生 1.39.x/2.x CLI 在啟動時讀取全域設定,需啟動新行程才會載入改動。專案或會話的模型可以覆蓋 Executor 和 Plan。",
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI 啟動時讀取設定檔,需重啟已打開的 snow 會話才會生效。",
"WSL {distro} is in {net} networking with localhostForwarding=false in %UserProfile%\\.wslconfig, so 127.0.0.1 there, where its {agent} was pointed, isn't relayed to Windows, where magpie listens. Remove localhostForwarding=false under [wsl2] (it is on by default) and run wsl --shutdown.": "WSL {distro} 使用 {net} 網路模式,且 %UserProfile%\\.wslconfig 中設定了 localhostForwarding=false,因此其中 {agent} 指向的 127.0.0.1 不會轉發到 magpie 所在的 Windows。請刪除 [wsl2] 下的 localhostForwarding=false(預設開啟),然後執行 wsl --shutdown。",
"WSL {distro} is in {net} networking, not mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "WSL {distro} 使用 {net} 網路模式而不是 mirrored,因此其中的 {agent} 指向 Windows({url})而不是 127.0.0.1;只有閘道監聽回環以外的位址、且 Windows 防火牆放行 WSL 時才能連通。若要使用 127.0.0.1,請在 %UserProfile%\\.wslconfig 的 [wsl2] 下設定 networkingMode=mirrored 並執行 wsl --shutdown,然後重新選擇模型。",
"WSL {distro} isn't running: magpie shows what it last saw there, and starts it only to change something.": "WSL {distro} 未執行:magpie 顯示的是上次看到的內容,只在需要修改時才啟動它。",
"ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker.": "ZCode 啟動時讀取供應商,需重啟 ZCode 才能在它的模型選擇器中看到 magpie 的模型。",
"AstrBot reads cmd_config.json at start-up and writes it back whole when its WebUI saves settings — restart AstrBot to use this, before saving anything in its WebUI.": "AstrBot 啟動時讀取 cmd_config.json,並在其 WebUI 儲存設定時整份寫回——請重啟 AstrBot 以使用此設定,且在此之前不要在其 WebUI 中儲存任何內容。",
"agy takes magpie's gateway and model only from how it is started — start it with {command}": "agy 只從啟動方式中取得 magpie 的閘道和模型,請這樣啟動它:{command}",
"dsh reads its config at start-up — restart open dsh sessions to use this.": "dsh 啟動時讀取設定,需重啟已打開的 dsh 會話才會生效。",
"dsh's web search goes through magpie, which has nothing to search with yet: set up a provider that searches by itself (DeepSeek, Claude, Codex, …) or a search API under Settings › Web search.": "dsh 的聯網搜尋經過 magpie,而 magpie 目前還沒有可用的搜尋方式:請新增一個自帶搜尋的供應商(DeepSeek、Claude、Codex 等),或在“設定 › 聯網搜尋”中設定搜尋 API。",
"fx reads its settings at start-up — restart open fx sessions to use this.": "fx 啟動時讀取設定,需重啟已打開的 fx 會話才會生效。",
"magpie couldn't ask WSL {distro} its networking mode (it has no wslinfo) and %UserProfile%\\.wslconfig doesn't set it to mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "magpie 無法取得 WSL {distro} 的網路模式(其中沒有 wslinfo),且 %UserProfile%\\.wslconfig 未將其設為 mirrored,因此其中的 {agent} 指向 Windows({url})而不是 127.0.0.1;只有閘道監聽回環以外的位址、且 Windows 防火牆放行 WSL 時才能連通。若要使用 127.0.0.1,請在 %UserProfile%\\.wslconfig 的 [wsl2] 下設定 networkingMode=mirrored 並執行 wsl --shutdown,然後重新選擇模型。",
"magpie restarted the app-server codex sessions share, which none was on, so new codex sessions have this; restart the Codex app, if it is open, to see it there.": "magpie 已重啟 codex 會話共用的 app-server(當時沒有會話連著它),新的 codex 會話已生效;如果 Codex 應用開著,需重啟它才能看到。",
"magpie's models are in Copilot Chat's model picker in your JetBrains IDE, under magpie, once the IDE restarts. They need Copilot signed in to GitHub on a plan with Bring Your Own Key: Copilot Free, Pro and Pro+ have it, Business and Enterprise when the organisation's policy allows it.": "JetBrains IDE 重啟後,magpie 的模型會出現在 Copilot Chat 模型選擇器的 magpie 分組下。前提是 Copilot 已用支援 Bring Your Own Key 的方案登入 GitHub:Copilot Free、Pro 和 Pro+ 都支援,Business 和 Enterprise 需組織策略允許。",
"magpie's models are in {agent}'s Chat model picker under magpie, from GitHub Copilot Chat {version}'s OpenAI Compatible provider, which it offers only while it is signed in to GitHub with a personal Copilot plan.": "magpie 的模型在 {agent} Chat 模型選擇器的 magpie 分組下,來自 GitHub Copilot Chat {version} 的 OpenAI Compatible 供應商;只有用個人 Copilot 方案登入 GitHub 時它才提供這個供應商。",
"magpie's models are in {agent}'s Chat model picker, under magpie, in each of its profiles (VS Code 1.122 or later). If they don't show, run Developer: Reload Window in {agent}.": "magpie 的模型在 {agent} 每個設定檔的 Chat 模型選擇器中,位於 magpie 分組下(VS Code 1.122 或更新版本)。如果沒有出現,請在 {agent} 中執行 Developer: Reload Window。",
"omp reads its settings at start-up — restart open omp sessions to use this.": "omp 啟動時讀取設定,需重啟已打開的 omp 會話才會生效。",
"{agent} in WSL {distro} builds its model list at start-up — restart it, the app-server its sessions share ({command} there) and the Codex app's WSL connection to see this.": "WSL {distro} 中的 {agent} 啟動時生成模型列表,需重啟它、其會話共用的 app-server(在那裡執行 {command})以及 Codex 應用的 WSL 連線才能看到。",
"{agent} in WSL {distro} loads its providers at start-up — restart open goose sessions to use magpie's models.": "WSL {distro} 中的 {agent} 啟動時載入供應商,需重啟已打開的 goose 會話才能使用 magpie 的模型。",
"{agent} in WSL {distro} reads a session's model at start-up — start a new session, or /model anew, to use this.": "WSL {distro} 中的 {agent} 在會話啟動時讀取模型,需開啟新會話或重新執行 /model 才會生效。",
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取模型目錄,需重啟已打開的 ante 會話才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 dsh 會話才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 empryo 會話才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 mimo 會話才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 opencode 會話才會生效。",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "WSL {distro} 中的 {agent} 在會話開始時讀取模型,需重啟已打開的 codebuddy 會話或在其中執行 /clear 才會生效。",
"{agent} in WSL {distro} reads its profile at start-up — restart open snow sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定檔,需重啟已打開的 snow 會話才會生效。",
"{agent} in WSL {distro} reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "WSL {distro} 中的 {agent} 在會話開始時讀取供應商:已打開的會話保留原來的模型,新會話使用這項設定。VS Code 擴充功能需重新載入 VS Code 視窗。",
"{agent} in WSL {distro} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "WSL {distro} 中的 {agent} 在會話開始時讀取設定:已打開的會話保留原來的模型,新會話使用這項設定。",
"{agent} in WSL {distro} reads its settings at start-up — restart open Hermes sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 Hermes 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open atomcode sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 atomcode 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open crush sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 crush 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open droid sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 droid 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open fx sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 fx 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open gemini sessions to see this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 gemini 會話才能看到。",
"{agent} in WSL {distro} reads its settings at start-up — restart open grok sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 grok 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open kimi sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 kimi 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open mcode sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 mcode 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open muse sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 muse 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — restart open omp sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 omp 會話才會生效。",
"{agent} in WSL {distro} reads its settings at start-up — start a new reasonix process to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需啟動新的 reasonix 行程才會生效。",
"{agent} in WSL {distro} uses this for new tasks in its Console — restart open morph chats to use it there.": "WSL {distro} 中的 {agent} 會在 Console 的新任務中使用這項設定;已打開的 morph 對話需重啟才會生效。",
"{agent} in WSL {distro} wants its own sign-in there (cmd login) even for models through magpie, and reads its settings at start-up — restart open Command Code sessions to use this.": "即使通過 magpie 使用模型,WSL {distro} 中的 {agent} 也要求在那裡完成它自己的登入(cmd login);它啟動時讀取設定,需重啟已打開的 Command Code 會話才會生效。",
"{agent} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "{agent} 在會話開始時讀取設定:已打開的會話保留原來的模型,新會話使用這項設定。",
"{agent} reads magpie's gateway from CURSOR_LOCAL_AGENT_BASE_URL and CURSOR_LOCAL_AGENT_API_KEY, now set for your user: quit it (the app, not only its window) and open it again, as it keeps the model list it was first given until it quits. A base URL or API key set in its Open configuration or a model's settings comes first, so leave both empty (or set the base URL to {url} and the key to {key}).": "{agent} 從 CURSOR_LOCAL_AGENT_BASE_URL 和 CURSOR_LOCAL_AGENT_API_KEY 讀取 magpie 的閘道,這兩個變數現已為目前使用者設定:請退出它(整個應用,不只是視窗)再重新打開,因為退出前它一直沿用最初拿到的模型列表。它的 Open configuration 或某個模型設定裡填寫的 Base URL 或 API Key 優先,所以請把兩者留空(或把 Base URL 設為 {url}、Key 設為 {key})。",
"{agent}'s Chat features must be enabled (chat.disableAIFeatures=false) and its product.json must include defaultChatAgent and trustedExtensionAuthAccess for GitHub.copilot-chat. Then run Developer: Reload Window in {agent}.": "{agent} 需開啟 Chat 功能(chat.disableAIFeatures=false),且它的 product.json 需為 GitHub.copilot-chat 包含 defaultChatAgent 和 trustedExtensionAuthAccess。然後在 {agent} 中執行 Developer: Reload Window。",
"{agent}'s GitHub Copilot Chat {version} has neither a Custom Endpoint nor an OpenAI Compatible provider, so it can't list magpie's models.": "{agent} 的 GitHub Copilot Chat {version} 既沒有 Custom Endpoint 也沒有 OpenAI Compatible 供應商,因此無法列出 magpie 的模型。",
"~/.dsh/settings.yaml sets its own DeepSeek endpoint or key, which dsh puts over magpie's; clear it in dsh's Models page to go through magpie.": "~/.dsh/settings.yaml 設定了自己的 DeepSeek 位址或 Key,dsh 會優先用它而不是 magpie 的;請在 dsh 的 Models 頁面清除它,才能走 magpie。",
},
ja: {
"account": "アカウント",
@@ -12324,6 +12480,84 @@ const I18N = {
"Saved middleware options will be removed. The plugin will run with no options.": "保存したミドルウェアのオプションが削除されます。プラグインはオプションなしで実行されます。",
"It will be removed from the library and the agents it was given to.": "ライブラリと使用中のエージェントから削除されます。",
"Main navigation": "メインナビゲーション",
// agents' advice after a change (NOTICES)
"Ante reads its catalog at start-up — restart open ante sessions to use this.": "Ante は起動時にカタログを読み込みます。反映するには開いている ante セッションを再起動してください。",
"AtomCode reads its settings at start-up — restart open atomcode sessions to use this.": "AtomCode は起動時に設定を読み込みます。反映するには開いている atomcode セッションを再起動してください。",
"Claude Desktop reads this at start-up — quit and reopen it to run on magpie (Code and Cowork, no Anthropic sign-in).": "Claude Desktop はこれを起動時に読み込みます。終了して開き直すと magpie で動きます(Code と Cowork、Anthropic へのサインイン不要)。",
"Claude Desktop reads this at start-up — quit and reopen it to sign in with Anthropic again.": "Claude Desktop はこれを起動時に読み込みます。終了して開き直すと再び Anthropic でサインインできます。",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "Cline はセッション開始時にプロバイダを読み込みます。開いているセッションは今のモデルのままで、新しいセッションからこれを使います。拡張機能には VS Code のウィンドウを再読み込みしてください。",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension; Cline's desktop app keeps the model picked in its own composer — pick magpie's there.": "Cline はセッション開始時にプロバイダを読み込みます。開いているセッションは今のモデルのままで、新しいセッションからこれを使います。拡張機能には VS Code のウィンドウを再読み込みしてください。Cline のデスクトップアプリは自身の入力欄で選んだモデルを使うため、そこで magpie のモデルを選んでください。",
"Cline's desktop app keeps the model and effort picked in its own composer — pick magpie's there; this sets Cline's CLI and VS Code extension.": "Cline のデスクトップアプリは自身の入力欄で選んだモデルと思考レベルを使うため、そこで magpie のモデルを選んでください。ここで設定するのは Cline の CLI と VS Code 拡張機能です。",
"CodeBuddy Code reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "CodeBuddy Code はセッション開始時にモデルを読み込みます。反映するには開いている codebuddy セッションを再起動するか、その中で /clear を実行してください。",
"Codex builds its model list at start-up — restart the Codex app, open codex sessions and the app-server they share ({command}) to see this.": "Codex は起動時にモデル一覧を作ります。反映するには Codex アプリ、開いている codex セッション、それらが共有する app-server({command})を再起動してください。",
"Codex builds its model list at start-up, and the app-server open codex sessions share started before this: restart it (Restart on magpie's Agents page, or {command}) and the Codex app to see this.": "Codex は起動時にモデル一覧を作り、開いている codex セッションが共有する app-server はこの変更より前に起動しています。反映するにはそれ(magpie のエージェントページの「再起動」、または {command})と Codex アプリを再起動してください。",
"Command Code wants its own sign-in (cmd login) even for models through magpie.": "Command Code は magpie 経由のモデルでも自身のサインイン(cmd login)が必要です。",
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin は起動時にモデルを読み込みます。反映するには開いている Devin セッションを再起動してください。",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid は起動時に設定を読み込みます。反映するには開いている droid セッションを再起動してください。",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo は起動時に設定を読み込みます。反映するには開いている empryo セッションを再起動してください。",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI は起動時に設定を読み込みます。反映するには開いている gemini セッションを再起動してください。",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose は起動時にプロバイダを読み込みます。magpie のモデルを使うには Goose(と開いている goose セッション)を終了して開き直してください。",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build は起動時に設定を読み込みます。反映するには開いている grok セッションを再起動してください。",
"Hermes reads its settings at start-up — restart open Hermes sessions to use this.": "Hermes は起動時に設定を読み込みます。反映するには開いている Hermes セッションを再起動してください。",
"Install GitHub Copilot Chat in {agent} to see magpie's models in its Chat.": "{agent} の Chat に magpie のモデルを表示するには、GitHub Copilot Chat をインストールしてください。",
"It reads its settings at start-up — restart open Command Code sessions to use this.": "起動時に設定を読み込むため、反映するには開いている Command Code セッションを再起動してください。",
"Kimi Code reads its settings at start-up — restart open kimi sessions to use this.": "Kimi Code は起動時に設定を読み込みます。反映するには開いている kimi セッションを再起動してください。",
"MiniMax Code reads its settings at start-up — restart open mcode sessions to use this.": "MiniMax Code は起動時に設定を読み込みます。反映するには開いている mcode セッションを再起動してください。",
"Mister Morph's Console uses this for new tasks; restart open morph chats to use it there.": "Mister Morph の Console は新しいタスクでこれを使います。開いている morph チャットに反映するには再起動してください。",
"Muse Code reads its settings at start-up — restart open muse sessions to use this.": "Muse Code は起動時に設定を読み込みます。反映するには開いている muse セッションを再起動してください。",
"New dsh sessions start on this; one already open keeps its model until you pick another in it. A dsh started with -p or in a terminal reads it at start-up.": "新しい dsh セッションはこれで始まります。開いているセッションは、その中で別のモデルを選ぶまで今のモデルのままです。-p 付きやターミナルで起動した dsh は起動時に読み込みます。",
"OpenChamber takes the new model for new sessions; sessions already open keep theirs.": "OpenChamber は新しいセッションで新しいモデルを使います。開いているセッションは今のモデルのままです。",
"OpenChamber's project {project} has a default model of its own ({model}), which it uses there instead.": "OpenChamber のプロジェクト {project} には独自のデフォルトモデル({model})があり、そこではそちらが使われます。",
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil は起動時にカスタムモデルを読み込みます。モデル選択に magpie のモデルを表示するには Pencil を再起動してください。",
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code はセッション開始時にモデルを読み込みます。反映するには新しいセッションを始めるか、もう一度 /model を実行してください。",
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x とネイティブの 1.39.x/2.x CLI は起動時にグローバル設定を読み込みます。変更を読み込むには新しいプロセスを起動してください。プロジェクトやセッションのモデルが Executor と Plan を上書きすることがあります。",
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI は起動時にプロファイルを読み込みます。反映するには開いている snow セッションを再起動してください。",
"WSL {distro} is in {net} networking with localhostForwarding=false in %UserProfile%\\.wslconfig, so 127.0.0.1 there, where its {agent} was pointed, isn't relayed to Windows, where magpie listens. Remove localhostForwarding=false under [wsl2] (it is on by default) and run wsl --shutdown.": "WSL {distro} は {net} ネットワークで、%UserProfile%\\.wslconfig に localhostForwarding=false があるため、{agent} の接続先である 127.0.0.1 は magpie が待ち受ける Windows に中継されません。[wsl2] の localhostForwarding=false を削除し(既定でオン)、wsl --shutdown を実行してください。",
"WSL {distro} is in {net} networking, not mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "WSL {distro} は mirrored ではなく {net} ネットワークのため、{agent} の接続先は 127.0.0.1 ではなく Windows({url})にしました。これはゲートウェイがループバック以外でも待ち受け、Windows のファイアウォールが WSL を通す間だけ応答します。127.0.0.1 にするには %UserProfile%\\.wslconfig の [wsl2] に networkingMode=mirrored を設定して wsl --shutdown を実行し、モデルを選び直してください。",
"WSL {distro} isn't running: magpie shows what it last saw there, and starts it only to change something.": "WSL {distro} は起動していません。magpie は最後に見た内容を表示し、変更するときだけ起動します。",
"ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker.": "ZCode は起動時にプロバイダを読み込みます。モデル選択に magpie のモデルを表示するには ZCode を再起動してください。",
"AstrBot reads cmd_config.json at start-up and writes it back whole when its WebUI saves settings — restart AstrBot to use this, before saving anything in its WebUI.": "AstrBot は起動時に cmd_config.json を読み込み、WebUI で設定を保存するとファイル全体を書き戻します。これを使うには、WebUI で何かを保存する前に AstrBot を再起動してください。",
"agy takes magpie's gateway and model only from how it is started — start it with {command}": "agy は magpie のゲートウェイとモデルを起動方法からしか受け取りません。次のように起動してください:{command}",
"dsh reads its config at start-up — restart open dsh sessions to use this.": "dsh は起動時に設定を読み込みます。反映するには開いている dsh セッションを再起動してください。",
"dsh's web search goes through magpie, which has nothing to search with yet: set up a provider that searches by itself (DeepSeek, Claude, Codex, …) or a search API under Settings › Web search.": "dsh のウェブ検索は magpie を経由しますが、magpie にはまだ検索手段がありません。自前で検索するプロバイダ(DeepSeek、Claude、Codex など)を追加するか、「設定 › ウェブ検索」で検索 API を設定してください。",
"fx reads its settings at start-up — restart open fx sessions to use this.": "fx は起動時に設定を読み込みます。反映するには開いている fx セッションを再起動してください。",
"magpie couldn't ask WSL {distro} its networking mode (it has no wslinfo) and %UserProfile%\\.wslconfig doesn't set it to mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "magpie は WSL {distro} のネットワークモードを取得できず(wslinfo がありません)、%UserProfile%\\.wslconfig でも mirrored に設定されていないため、{agent} の接続先は 127.0.0.1 ではなく Windows({url})にしました。これはゲートウェイがループバック以外でも待ち受け、Windows のファイアウォールが WSL を通す間だけ応答します。127.0.0.1 にするには %UserProfile%\\.wslconfig の [wsl2] に networkingMode=mirrored を設定して wsl --shutdown を実行し、モデルを選び直してください。",
"magpie restarted the app-server codex sessions share, which none was on, so new codex sessions have this; restart the Codex app, if it is open, to see it there.": "magpie は codex セッションが共有する app-server を再起動しました(接続中のセッションはありませんでした)。新しい codex セッションには反映されています。Codex アプリが開いている場合は、再起動すると反映されます。",
"magpie's models are in Copilot Chat's model picker in your JetBrains IDE, under magpie, once the IDE restarts. They need Copilot signed in to GitHub on a plan with Bring Your Own Key: Copilot Free, Pro and Pro+ have it, Business and Enterprise when the organisation's policy allows it.": "IDE を再起動すると、JetBrains IDE の Copilot Chat のモデル選択に magpie の下で magpie のモデルが表示されます。Copilot が Bring Your Own Key のあるプランで GitHub にサインインしている必要があります。Copilot Free、Pro、Pro+ にはあり、Business と Enterprise は組織のポリシーが許可している場合です。",
"magpie's models are in {agent}'s Chat model picker under magpie, from GitHub Copilot Chat {version}'s OpenAI Compatible provider, which it offers only while it is signed in to GitHub with a personal Copilot plan.": "magpie のモデルは {agent} の Chat のモデル選択の magpie の下にあり、GitHub Copilot Chat {version} の OpenAI Compatible プロバイダから来ています。このプロバイダは個人の Copilot プランで GitHub にサインインしている間だけ提供されます。",
"magpie's models are in {agent}'s Chat model picker, under magpie, in each of its profiles (VS Code 1.122 or later). If they don't show, run Developer: Reload Window in {agent}.": "magpie のモデルは {agent} の各プロファイルの Chat のモデル選択の magpie の下にあります(VS Code 1.122 以降)。表示されない場合は {agent} で Developer: Reload Window を実行してください。",
"omp reads its settings at start-up — restart open omp sessions to use this.": "omp は起動時に設定を読み込みます。反映するには開いている omp セッションを再起動してください。",
"{agent} in WSL {distro} builds its model list at start-up — restart it, the app-server its sessions share ({command} there) and the Codex app's WSL connection to see this.": "WSL {distro} の {agent} は起動時にモデル一覧を作ります。反映するにはそれ自体、セッションが共有する app-server(そこで {command})、Codex アプリの WSL 接続を再起動してください。",
"{agent} in WSL {distro} loads its providers at start-up — restart open goose sessions to use magpie's models.": "WSL {distro} の {agent} は起動時にプロバイダを読み込みます。magpie のモデルを使うには開いている goose セッションを再起動してください。",
"{agent} in WSL {distro} reads a session's model at start-up — start a new session, or /model anew, to use this.": "WSL {distro} の {agent} はセッション開始時にモデルを読み込みます。反映するには新しいセッションを始めるか、もう一度 /model を実行してください。",
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "WSL {distro} の {agent} は起動時にカタログを読み込みます。反映するには開いている ante セッションを再起動してください。",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている dsh セッションを再起動してください。",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている empryo セッションを再起動してください。",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている mimo セッションを再起動してください。",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている opencode セッションを再起動してください。",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "WSL {distro} の {agent} はセッション開始時にモデルを読み込みます。反映するには開いている codebuddy セッションを再起動するか、その中で /clear を実行してください。",
"{agent} in WSL {distro} reads its profile at start-up — restart open snow sessions to use this.": "WSL {distro} の {agent} は起動時にプロファイルを読み込みます。反映するには開いている snow セッションを再起動してください。",
"{agent} in WSL {distro} reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "WSL {distro} の {agent} はセッション開始時にプロバイダを読み込みます。開いているセッションは今のモデルのままで、新しいセッションからこれを使います。拡張機能には VS Code のウィンドウを再読み込みしてください。",
"{agent} in WSL {distro} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "WSL {distro} の {agent} はセッション開始時に設定を読み込みます。開いているセッションは今のモデルのままで、新しいセッションからこれを使います。",
"{agent} in WSL {distro} reads its settings at start-up — restart open Hermes sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている Hermes セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open atomcode sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている atomcode セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open crush sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている crush セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open droid sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている droid セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open fx sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている fx セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open gemini sessions to see this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている gemini セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open grok sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている grok セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open kimi sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている kimi セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open mcode sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている mcode セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open muse sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている muse セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — restart open omp sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている omp セッションを再起動してください。",
"{agent} in WSL {distro} reads its settings at start-up — start a new reasonix process to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには新しい reasonix プロセスを起動してください。",
"{agent} in WSL {distro} uses this for new tasks in its Console — restart open morph chats to use it there.": "WSL {distro} の {agent} は Console の新しいタスクでこれを使います。開いている morph チャットに反映するには再起動してください。",
"{agent} in WSL {distro} wants its own sign-in there (cmd login) even for models through magpie, and reads its settings at start-up — restart open Command Code sessions to use this.": "WSL {distro} の {agent} は magpie 経由のモデルでもそこで自身のサインイン(cmd login)が必要で、起動時に設定を読み込みます。反映するには開いている Command Code セッションを再起動してください。",
"{agent} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "{agent} はセッション開始時に設定を読み込みます。開いているセッションは今のモデルのままで、新しいセッションからこれを使います。",
"{agent} reads magpie's gateway from CURSOR_LOCAL_AGENT_BASE_URL and CURSOR_LOCAL_AGENT_API_KEY, now set for your user: quit it (the app, not only its window) and open it again, as it keeps the model list it was first given until it quits. A base URL or API key set in its Open configuration or a model's settings comes first, so leave both empty (or set the base URL to {url} and the key to {key}).": "{agent} は magpie のゲートウェイを CURSOR_LOCAL_AGENT_BASE_URL と CURSOR_LOCAL_AGENT_API_KEY から読み込みます。これらは今のユーザーに設定済みです。終了するまで最初に受け取ったモデル一覧を使い続けるため、(ウィンドウだけでなくアプリごと)終了して開き直してください。Open configuration やモデルの設定にある Base URL や API Key が優先されるので、どちらも空にしてください(または Base URL を {url}、Key を {key} に)。",
"{agent}'s Chat features must be enabled (chat.disableAIFeatures=false) and its product.json must include defaultChatAgent and trustedExtensionAuthAccess for GitHub.copilot-chat. Then run Developer: Reload Window in {agent}.": "{agent} の Chat 機能が有効(chat.disableAIFeatures=false)で、product.json に GitHub.copilot-chat 用の defaultChatAgent と trustedExtensionAuthAccess が含まれている必要があります。そのあと {agent} で Developer: Reload Window を実行してください。",
"{agent}'s GitHub Copilot Chat {version} has neither a Custom Endpoint nor an OpenAI Compatible provider, so it can't list magpie's models.": "{agent} の GitHub Copilot Chat {version} には Custom Endpoint も OpenAI Compatible プロバイダもないため、magpie のモデルを一覧に出せません。",
"~/.dsh/settings.yaml sets its own DeepSeek endpoint or key, which dsh puts over magpie's; clear it in dsh's Models page to go through magpie.": "~/.dsh/settings.yaml に独自の DeepSeek エンドポイントやキーがあり、dsh は magpie のものよりそちらを優先します。magpie を経由するには dsh の Models ページで消してください。",
},
de: {
"account": "Konto",
@@ -16427,9 +16661,175 @@ const I18N = {
"Saved middleware options will be removed. The plugin will run with no options.": "Die gespeicherten Middleware-Optionen werden entfernt. Das Plugin läuft ohne Optionen.",
"It will be removed from the library and the agents it was given to.": "Es wird aus der Bibliothek und den Agenten entfernt, denen es zugewiesen wurde.",
"Main navigation": "Hauptnavigation",
// agents' advice after a change (NOTICES)
"Ante reads its catalog at start-up — restart open ante sessions to use this.": "Ante liest seinen Katalog beim Start – offene ante-Sitzungen neu starten, damit es gilt.",
"AtomCode reads its settings at start-up — restart open atomcode sessions to use this.": "AtomCode liest seine Einstellungen beim Start – offene atomcode-Sitzungen neu starten, damit es gilt.",
"Claude Desktop reads this at start-up — quit and reopen it to run on magpie (Code and Cowork, no Anthropic sign-in).": "Claude Desktop liest das beim Start – beenden und neu öffnen, damit es über magpie läuft (Code und Cowork, ohne Anthropic-Anmeldung).",
"Claude Desktop reads this at start-up — quit and reopen it to sign in with Anthropic again.": "Claude Desktop liest das beim Start – beenden und neu öffnen, um sich wieder bei Anthropic anzumelden.",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "Cline liest seinen Anbieter beim Start einer Sitzung – offene Sitzungen behalten ihr Modell, neue nutzen dies. Für die Erweiterung das VS-Code-Fenster neu laden.",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension; Cline's desktop app keeps the model picked in its own composer — pick magpie's there.": "Cline liest seinen Anbieter beim Start einer Sitzung – offene Sitzungen behalten ihr Modell, neue nutzen dies. Für die Erweiterung das VS-Code-Fenster neu laden; die Desktop-App von Cline behält das in ihrem eigenen Eingabefeld gewählte Modell – dort eines von magpie wählen.",
"Cline's desktop app keeps the model and effort picked in its own composer — pick magpie's there; this sets Cline's CLI and VS Code extension.": "Die Desktop-App von Cline behält Modell und Denkstufe aus ihrem eigenen Eingabefeld – dort eines von magpie wählen; dies stellt Clines CLI und VS-Code-Erweiterung ein.",
"CodeBuddy Code reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "CodeBuddy Code liest sein Modell beim Start einer Sitzung – offene codebuddy-Sitzungen neu starten oder darin /clear ausführen, damit es gilt.",
"Codex builds its model list at start-up — restart the Codex app, open codex sessions and the app-server they share ({command}) to see this.": "Codex baut seine Modellliste beim Start – die Codex-App, offene codex-Sitzungen und ihren gemeinsamen App-Server ({command}) neu starten, um es zu sehen.",
"Codex builds its model list at start-up, and the app-server open codex sessions share started before this: restart it (Restart on magpie's Agents page, or {command}) and the Codex app to see this.": "Codex baut seine Modellliste beim Start, und der App-Server, den offene codex-Sitzungen teilen, lief schon vor dieser Änderung: ihn (Neu starten auf magpies Agenten-Seite oder {command}) und die Codex-App neu starten, um es zu sehen.",
"Command Code wants its own sign-in (cmd login) even for models through magpie.": "Command Code verlangt auch für Modelle über magpie eine eigene Anmeldung (cmd login).",
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin liest sein Modell beim Start – offene Devin-Sitzungen neu starten, damit es gilt.",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid liest seine Einstellungen beim Start – offene droid-Sitzungen neu starten, damit es gilt.",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo liest seine Konfiguration beim Start – offene empryo-Sitzungen neu starten, damit es gilt.",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI liest seine Einstellungen beim Start – offene gemini-Sitzungen neu starten, um es zu sehen.",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose lädt seine Anbieter beim Start – Goose (und offene goose-Sitzungen) beenden und neu öffnen, um magpies Modelle zu nutzen.",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build liest seine Einstellungen beim Start – offene grok-Sitzungen neu starten, damit es gilt.",
"Hermes reads its settings at start-up — restart open Hermes sessions to use this.": "Hermes liest seine Einstellungen beim Start – offene Hermes-Sitzungen neu starten, damit es gilt.",
"Install GitHub Copilot Chat in {agent} to see magpie's models in its Chat.": "GitHub Copilot Chat in {agent} installieren, um magpies Modelle in seinem Chat zu sehen.",
"It reads its settings at start-up — restart open Command Code sessions to use this.": "Es liest seine Einstellungen beim Start – offene Command-Code-Sitzungen neu starten, damit es gilt.",
"Kimi Code reads its settings at start-up — restart open kimi sessions to use this.": "Kimi Code liest seine Einstellungen beim Start – offene kimi-Sitzungen neu starten, damit es gilt.",
"MiniMax Code reads its settings at start-up — restart open mcode sessions to use this.": "MiniMax Code liest seine Einstellungen beim Start – offene mcode-Sitzungen neu starten, damit es gilt.",
"Mister Morph's Console uses this for new tasks; restart open morph chats to use it there.": "Die Console von Mister Morph nutzt dies für neue Aufgaben; offene morph-Chats neu starten, damit es dort gilt.",
"Muse Code reads its settings at start-up — restart open muse sessions to use this.": "Muse Code liest seine Einstellungen beim Start – offene muse-Sitzungen neu starten, damit es gilt.",
"New dsh sessions start on this; one already open keeps its model until you pick another in it. A dsh started with -p or in a terminal reads it at start-up.": "Neue dsh-Sitzungen starten damit; eine bereits offene behält ihr Modell, bis Sie darin ein anderes wählen. Ein mit -p oder im Terminal gestartetes dsh liest es beim Start.",
"OpenChamber takes the new model for new sessions; sessions already open keep theirs.": "OpenChamber nimmt das neue Modell für neue Sitzungen; bereits offene behalten ihres.",
"OpenChamber's project {project} has a default model of its own ({model}), which it uses there instead.": "Das OpenChamber-Projekt {project} hat ein eigenes Standardmodell ({model}), das dort stattdessen genutzt wird.",
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil liest seine eigenen Modelle beim Start – Pencil neu starten, um magpies Modelle in seiner Modellauswahl zu sehen.",
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code liest das Modell einer Sitzung beim Start – eine neue Sitzung beginnen oder /model erneut ausführen, damit es gilt.",
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x und die native 1.39.x/2.x-CLI lesen globale Einstellungen beim Start. Einen neuen Prozess starten, um Änderungen zu laden. Projekt- oder Sitzungsmodelle können Executor und Plan überschreiben.",
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI liest sein Profil beim Start – offene snow-Sitzungen neu starten, damit es gilt.",
"WSL {distro} is in {net} networking with localhostForwarding=false in %UserProfile%\\.wslconfig, so 127.0.0.1 there, where its {agent} was pointed, isn't relayed to Windows, where magpie listens. Remove localhostForwarding=false under [wsl2] (it is on by default) and run wsl --shutdown.": "WSL {distro} nutzt {net}-Netzwerk mit localhostForwarding=false in %UserProfile%\\.wslconfig, daher wird 127.0.0.1 dort, worauf sein {agent} zeigt, nicht an Windows weitergeleitet, wo magpie lauscht. localhostForwarding=false unter [wsl2] entfernen (standardmäßig an) und wsl --shutdown ausführen.",
"WSL {distro} is in {net} networking, not mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "WSL {distro} nutzt {net}-Netzwerk, nicht mirrored, daher zeigt sein {agent} auf Windows ({url}) statt auf 127.0.0.1; das antwortet nur, solange das Gateway über Loopback hinaus lauscht und die Windows-Firewall WSL durchlässt. Für 127.0.0.1 networkingMode=mirrored unter [wsl2] in %UserProfile%\\.wslconfig setzen, wsl --shutdown ausführen und das Modell erneut wählen.",
"WSL {distro} isn't running: magpie shows what it last saw there, and starts it only to change something.": "WSL {distro} läuft nicht: magpie zeigt, was es dort zuletzt gesehen hat, und startet es nur, um etwas zu ändern.",
"ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker.": "ZCode liest seine Anbieter beim Start – ZCode neu starten, um magpies Modelle in seiner Auswahl zu sehen.",
"AstrBot reads cmd_config.json at start-up and writes it back whole when its WebUI saves settings — restart AstrBot to use this, before saving anything in its WebUI.": "AstrBot liest cmd_config.json beim Start und schreibt sie ganz zurück, wenn seine WebUI Einstellungen speichert – AstrBot neu starten, um dies zu nutzen, bevor in seiner WebUI etwas gespeichert wird.",
"agy takes magpie's gateway and model only from how it is started — start it with {command}": "agy übernimmt magpies Gateway und Modell nur aus seinem Startbefehl – so starten: {command}",
"dsh reads its config at start-up — restart open dsh sessions to use this.": "dsh liest seine Konfiguration beim Start – offene dsh-Sitzungen neu starten, damit es gilt.",
"dsh's web search goes through magpie, which has nothing to search with yet: set up a provider that searches by itself (DeepSeek, Claude, Codex, …) or a search API under Settings › Web search.": "Die Websuche von dsh läuft über magpie, das noch nichts zum Suchen hat: einen Anbieter einrichten, der selbst sucht (DeepSeek, Claude, Codex, …), oder eine Such-API unter Einstellungen › Websuche.",
"fx reads its settings at start-up — restart open fx sessions to use this.": "fx liest seine Einstellungen beim Start – offene fx-Sitzungen neu starten, damit es gilt.",
"magpie couldn't ask WSL {distro} its networking mode (it has no wslinfo) and %UserProfile%\\.wslconfig doesn't set it to mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.": "magpie konnte WSL {distro} nicht nach seinem Netzwerkmodus fragen (es hat kein wslinfo), und %UserProfile%\\.wslconfig setzt ihn nicht auf mirrored, daher zeigt sein {agent} auf Windows ({url}) statt auf 127.0.0.1; das antwortet nur, solange das Gateway über Loopback hinaus lauscht und die Windows-Firewall WSL durchlässt. Für 127.0.0.1 networkingMode=mirrored unter [wsl2] in %UserProfile%\\.wslconfig setzen, wsl --shutdown ausführen und das Modell erneut wählen.",
"magpie restarted the app-server codex sessions share, which none was on, so new codex sessions have this; restart the Codex app, if it is open, to see it there.": "magpie hat den App-Server, den codex-Sitzungen teilen, neu gestartet (keine war verbunden), neue codex-Sitzungen haben es also; die Codex-App, falls offen, neu starten, um es dort zu sehen.",
"magpie's models are in Copilot Chat's model picker in your JetBrains IDE, under magpie, once the IDE restarts. They need Copilot signed in to GitHub on a plan with Bring Your Own Key: Copilot Free, Pro and Pro+ have it, Business and Enterprise when the organisation's policy allows it.": "Nach einem Neustart der IDE stehen magpies Modelle in der Modellauswahl von Copilot Chat in Ihrer JetBrains-IDE unter magpie. Dafür muss Copilot bei GitHub mit einem Plan mit Bring Your Own Key angemeldet sein: Copilot Free, Pro und Pro+ haben es, Business und Enterprise, wenn die Richtlinie der Organisation es erlaubt.",
"magpie's models are in {agent}'s Chat model picker under magpie, from GitHub Copilot Chat {version}'s OpenAI Compatible provider, which it offers only while it is signed in to GitHub with a personal Copilot plan.": "magpies Modelle stehen in der Chat-Modellauswahl von {agent} unter magpie, über den OpenAI-Compatible-Anbieter von GitHub Copilot Chat {version}, den es nur anbietet, solange es mit einem persönlichen Copilot-Plan bei GitHub angemeldet ist.",
"magpie's models are in {agent}'s Chat model picker, under magpie, in each of its profiles (VS Code 1.122 or later). If they don't show, run Developer: Reload Window in {agent}.": "magpies Modelle stehen in der Chat-Modellauswahl von {agent} unter magpie, in jedem seiner Profile (VS Code 1.122 oder neuer). Erscheinen sie nicht, in {agent} Developer: Reload Window ausführen.",
"omp reads its settings at start-up — restart open omp sessions to use this.": "omp liest seine Einstellungen beim Start – offene omp-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} builds its model list at start-up — restart it, the app-server its sessions share ({command} there) and the Codex app's WSL connection to see this.": "{agent} in WSL {distro} baut seine Modellliste beim Start – es, den App-Server seiner Sitzungen (dort {command}) und die WSL-Verbindung der Codex-App neu starten, um es zu sehen.",
"{agent} in WSL {distro} loads its providers at start-up — restart open goose sessions to use magpie's models.": "{agent} in WSL {distro} lädt seine Anbieter beim Start – offene goose-Sitzungen neu starten, um magpies Modelle zu nutzen.",
"{agent} in WSL {distro} reads a session's model at start-up — start a new session, or /model anew, to use this.": "{agent} in WSL {distro} liest das Modell einer Sitzung beim Start – eine neue Sitzung beginnen oder /model erneut ausführen, damit es gilt.",
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "{agent} in WSL {distro} liest seinen Katalog beim Start – offene ante-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene dsh-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene empryo-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene mimo-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene opencode-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "{agent} in WSL {distro} liest sein Modell beim Start einer Sitzung – offene codebuddy-Sitzungen neu starten oder darin /clear ausführen, damit es gilt.",
"{agent} in WSL {distro} reads its profile at start-up — restart open snow sessions to use this.": "{agent} in WSL {distro} liest sein Profil beim Start – offene snow-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.": "{agent} in WSL {distro} liest seinen Anbieter beim Start einer Sitzung – offene Sitzungen behalten ihr Modell, neue nutzen dies. Für die Erweiterung das VS-Code-Fenster neu laden.",
"{agent} in WSL {distro} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start einer Sitzung – offene Sitzungen behalten ihr Modell, neue nutzen dies.",
"{agent} in WSL {distro} reads its settings at start-up — restart open Hermes sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene Hermes-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open atomcode sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene atomcode-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open crush sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene crush-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open droid sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene droid-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open fx sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene fx-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open gemini sessions to see this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene gemini-Sitzungen neu starten, um es zu sehen.",
"{agent} in WSL {distro} reads its settings at start-up — restart open grok sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene grok-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open kimi sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene kimi-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open mcode sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene mcode-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open muse sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene muse-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — restart open omp sessions to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – offene omp-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its settings at start-up — start a new reasonix process to use this.": "{agent} in WSL {distro} liest seine Einstellungen beim Start – einen neuen reasonix-Prozess starten, damit es gilt.",
"{agent} in WSL {distro} uses this for new tasks in its Console — restart open morph chats to use it there.": "{agent} in WSL {distro} nutzt dies für neue Aufgaben in seiner Console – offene morph-Chats neu starten, damit es dort gilt.",
"{agent} in WSL {distro} wants its own sign-in there (cmd login) even for models through magpie, and reads its settings at start-up — restart open Command Code sessions to use this.": "{agent} in WSL {distro} verlangt dort auch für Modelle über magpie eine eigene Anmeldung (cmd login) und liest seine Einstellungen beim Start – offene Command-Code-Sitzungen neu starten, damit es gilt.",
"{agent} reads its settings as a session starts — open sessions keep the model they have; new ones use this.": "{agent} liest seine Einstellungen beim Start einer Sitzung – offene Sitzungen behalten ihr Modell, neue nutzen dies.",
"{agent} reads magpie's gateway from CURSOR_LOCAL_AGENT_BASE_URL and CURSOR_LOCAL_AGENT_API_KEY, now set for your user: quit it (the app, not only its window) and open it again, as it keeps the model list it was first given until it quits. A base URL or API key set in its Open configuration or a model's settings comes first, so leave both empty (or set the base URL to {url} and the key to {key}).": "{agent} liest magpies Gateway aus CURSOR_LOCAL_AGENT_BASE_URL und CURSOR_LOCAL_AGENT_API_KEY, die nun für Ihren Benutzer gesetzt sind: beenden (die App, nicht nur das Fenster) und neu öffnen, denn es behält die zuerst erhaltene Modellliste, bis es beendet wird. Eine Base URL oder ein API Key in seiner Open configuration oder den Einstellungen eines Modells geht vor, also beide leer lassen (oder die Base URL auf {url} und den Key auf {key} setzen).",
"{agent}'s Chat features must be enabled (chat.disableAIFeatures=false) and its product.json must include defaultChatAgent and trustedExtensionAuthAccess for GitHub.copilot-chat. Then run Developer: Reload Window in {agent}.": "Die Chat-Funktionen von {agent} müssen aktiviert sein (chat.disableAIFeatures=false), und seine product.json muss defaultChatAgent und trustedExtensionAuthAccess für GitHub.copilot-chat enthalten. Danach in {agent} Developer: Reload Window ausführen.",
"{agent}'s GitHub Copilot Chat {version} has neither a Custom Endpoint nor an OpenAI Compatible provider, so it can't list magpie's models.": "GitHub Copilot Chat {version} in {agent} hat weder einen Custom Endpoint noch einen OpenAI-Compatible-Anbieter und kann magpies Modelle daher nicht auflisten.",
"~/.dsh/settings.yaml sets its own DeepSeek endpoint or key, which dsh puts over magpie's; clear it in dsh's Models page to go through magpie.": "~/.dsh/settings.yaml setzt einen eigenen DeepSeek-Endpunkt oder Schlüssel, den dsh über den von magpie stellt; ihn auf der Models-Seite von dsh leeren, um über magpie zu gehen.",
},
};
// Every notice magpie's agents give after a change (Notices in
// internal/agent/notice.go), as tNotice matches them; each has its
// translation above. TestEveryNoticeIsTranslated keeps the two the same.
const NOTICES = [
"Air runs magpie's models through OpenCode's ACP server, and OpenCode isn't installed here: install OpenCode (npm i -g opencode-ai), then pick Magpie in a new Air task.",
"Ante reads its catalog at start-up — restart open ante sessions to use this.",
"AstrBot reads cmd_config.json at start-up and writes it back whole when its WebUI saves settings — restart AstrBot to use this, before saving anything in its WebUI.",
"AtomCode reads its settings at start-up — restart open atomcode sessions to use this.",
"Claude Desktop reads this at start-up — quit and reopen it to run on magpie (Code and Cowork, no Anthropic sign-in).",
"Claude Desktop reads this at start-up — quit and reopen it to sign in with Anthropic again.",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.",
"Cline reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension; Cline's desktop app keeps the model picked in its own composer — pick magpie's there.",
"Cline's desktop app keeps the model and effort picked in its own composer — pick magpie's there; this sets Cline's CLI and VS Code extension.",
"CodeBuddy Code reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.",
"Codex builds its model list at start-up — restart the Codex app, open codex sessions and the app-server they share ({command}) to see this.",
"Codex builds its model list at start-up, and the app-server open codex sessions share started before this: restart it (Restart on magpie's Agents page, or {command}) and the Codex app to see this.",
"Command Code wants its own sign-in (cmd login) even for models through magpie.",
"Devin reads its model at start-up — restart open Devin sessions to use this.",
"Droid reads its settings at start-up — restart open droid sessions to use this.",
"Empryo reads its config at start-up — restart open empryo sessions to use this.",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.",
"Hermes reads its settings at start-up — restart open Hermes sessions to use this.",
"In Air, start a new task and pick Magpie in its agent menu: magpie's models and routing groups are in its model menu.",
"Install GitHub Copilot Chat in {agent} to see magpie's models in its Chat.",
"It reads its settings at start-up — restart open Command Code sessions to use this.",
"Kimi Code reads its settings at start-up — restart open kimi sessions to use this.",
"MiniMax Code reads its settings at start-up — restart open mcode sessions to use this.",
"Mister Morph's Console uses this for new tasks; restart open morph chats to use it there.",
"Muse Code reads its settings at start-up — restart open muse sessions to use this.",
"New dsh sessions start on this; one already open keeps its model until you pick another in it. A dsh started with -p or in a terminal reads it at start-up.",
"OpenChamber takes the new model for new sessions; sessions already open keep theirs.",
"OpenChamber's project {project} has a default model of its own ({model}), which it uses there instead.",
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.",
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.",
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.",
"Restart Zed if it still asks for an API key: magpie has configured its gateway credential in the system credential store.",
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.",
"WSL {distro} is in {net} networking with localhostForwarding=false in %UserProfile%\\.wslconfig, so 127.0.0.1 there, where its {agent} was pointed, isn't relayed to Windows, where magpie listens. Remove localhostForwarding=false under [wsl2] (it is on by default) and run wsl --shutdown.",
"WSL {distro} is in {net} networking, not mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.",
"WSL {distro} isn't running: magpie shows what it last saw there, and starts it only to change something.",
"ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker.",
"agy takes magpie's gateway and model only from how it is started — start it with {command}",
"an open Claude Code session keeps the effort it started with — restart it to use this.",
"an open Claude Code session keeps the ultracode it started with — restart it to use this.",
"dsh reads its config at start-up — restart open dsh sessions to use this.",
"dsh's web search goes through magpie, which has nothing to search with yet: set up a provider that searches by itself (DeepSeek, Claude, Codex, …) or a search API under Settings › Web search.",
"fx reads its settings at start-up — restart open fx sessions to use this.",
"magpie couldn't ask WSL {distro} its networking mode (it has no wslinfo) and %UserProfile%\\.wslconfig doesn't set it to mirrored, so its {agent} was pointed at Windows ({url}) rather than 127.0.0.1; that answers only while the gateway listens beyond loopback and Windows' firewall lets WSL in. For 127.0.0.1, set networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig and run wsl --shutdown, then pick the model again.",
"magpie restarted the app-server codex sessions share, which none was on, so new codex sessions have this; restart the Codex app, if it is open, to see it there.",
"magpie's models are in Copilot Chat's model picker in your JetBrains IDE, under magpie, once the IDE restarts. They need Copilot signed in to GitHub on a plan with Bring Your Own Key: Copilot Free, Pro and Pro+ have it, Business and Enterprise when the organisation's policy allows it.",
"magpie's models are in {agent}'s Chat model picker under magpie, from GitHub Copilot Chat {version}'s OpenAI Compatible provider, which it offers only while it is signed in to GitHub with a personal Copilot plan.",
"magpie's models are in {agent}'s Chat model picker, under magpie, in each of its profiles (VS Code 1.122 or later). If they don't show, run Developer: Reload Window in {agent}.",
"omp reads its settings at start-up — restart open omp sessions to use this.",
"{agent} in WSL {distro} builds its model list at start-up — restart it, the app-server its sessions share ({command} there) and the Codex app's WSL connection to see this.",
"{agent} in WSL {distro} loads its providers at start-up — restart open goose sessions to use magpie's models.",
"{agent} in WSL {distro} reads a session's model at start-up — start a new session, or /model anew, to use this.",
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.",
"{agent} in WSL {distro} reads its profile at start-up — restart open snow sessions to use this.",
"{agent} in WSL {distro} reads its provider as a session starts — open sessions keep the model they have; new ones use this. Reload VS Code's window for its extension.",
"{agent} in WSL {distro} reads its settings as a session starts — open sessions keep the model they have; new ones use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open Hermes sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open atomcode sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open crush sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open droid sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open fx sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open gemini sessions to see this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open grok sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open kimi sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open mcode sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open muse sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — restart open omp sessions to use this.",
"{agent} in WSL {distro} reads its settings at start-up — start a new reasonix process to use this.",
"{agent} in WSL {distro} uses this for new tasks in its Console — restart open morph chats to use it there.",
"{agent} in WSL {distro} wants its own sign-in there (cmd login) even for models through magpie, and reads its settings at start-up — restart open Command Code sessions to use this.",
"{agent} reads its settings as a session starts — open sessions keep the model they have; new ones use this.",
"{agent} reads magpie's gateway from CURSOR_LOCAL_AGENT_BASE_URL and CURSOR_LOCAL_AGENT_API_KEY, now set for your user: quit it (the app, not only its window) and open it again, as it keeps the model list it was first given until it quits. A base URL or API key set in its Open configuration or a model's settings comes first, so leave both empty (or set the base URL to {url} and the key to {key}).",
"{agent}'s Chat features must be enabled (chat.disableAIFeatures=false) and its product.json must include defaultChatAgent and trustedExtensionAuthAccess for GitHub.copilot-chat. Then run Developer: Reload Window in {agent}.",
"{agent}'s GitHub Copilot Chat {version} has neither a Custom Endpoint nor an OpenAI Compatible provider, so it can't list magpie's models.",
"~/.dsh/settings.yaml sets its own DeepSeek endpoint or key, which dsh puts over magpie's; clear it in dsh's Models page to go through magpie.",
];
// The active language: a ?locale= URL parameter wins, then the saved
// preference, then the system.
let locale = "en";
@@ -16463,6 +16863,50 @@ function t(s, vars) {
return out;
}
// tNotice is an agent's advice after a change (state.notice) in the
// reader's language (#1508). magpie writes it from the templates in
// NOTICES, with names, paths and commands in their {slots}, and may join
// several with a space: each is matched back to its template, the longest
// first, and translated. One that doesn't match whole (a plugin's own
// advice) reads as given.
let noticeRes;
function tNotice(s) {
if (!s || !I18N[locale]) return s;
if (I18N[locale][s]) return I18N[locale][s];
noticeRes ??= NOTICES.map((en) => {
const parts = en.split(/\{(\w+)\}/), names = [];
let re = "";
parts.forEach((p, i) => {
if (i % 2 === 0) re += p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
// a slot never holds a sentence's end, so it can't take in the
// notice joined after it
else names.push(p), (re += i === parts.length - 2 && parts[i + 1] === "" ? "((?:(?!\\. ).)+)" : "((?:(?!\\. ).)+?)");
});
return { en, names, re: new RegExp("^" + re + "(?= |$)"), fixed: parts.filter((_, i) => i % 2 === 0).join("").length };
});
const out = [];
let rest = s;
while (rest) {
let hit = null;
for (const n of noticeRes) {
const m = n.re.exec(rest);
if (m && (!hit || m[0].length > hit.m[0].length || (m[0].length === hit.m[0].length && n.fixed > hit.n.fixed))) hit = { n, m };
}
if (!hit) return s;
const vars = {};
hit.n.names.forEach((k, i) => (vars[k] ??= hit.m[i + 1]));
out.push(t(hit.n.en, vars));
rest = rest.slice(hit.m[0].length).replace(/^ /, "");
}
return out.join(/^(zh|ja)/.test(locale) ? "" : " ");
}
// withNotice is a status line followed by the agent's advice, as the
// language ends a sentence.
function withNotice(msg, notice) {
return msg + (/^(zh|ja)/.test(locale) ? "。" : ". ") + tNotice(notice);
}
// Static text in index.html: elements marked data-t (text) or data-tt
// (title) keep their English in a data attribute and are re-rendered on a
// language change. A data-tt with a value is the title's English itself
@@ -0,0 +1,116 @@
// Run with Node's test runner and Playwright on the module path; see README.md.
// An agent's advice after a change (state.notice) reads in the window's
// language (#1508, NovaTrailX): a Chinese window said "ZCode 已接入
// magpie. ZCode reads its providers at start-up — …" in English. Every
// template in NOTICES, its slots filled, a notice of several joined, and
// one from a plugin (no template: as given), in every language, in Chromium
// and WebKit, at a wide and a narrow window. No backend: the API is faked.
const assert = require("node:assert/strict");
const fs = require("node:fs/promises");
const path = require("node:path");
const { test } = require("node:test");
const { chromium, webkit } = require("playwright");
const assets = path.resolve(__dirname, "../assets");
const ZCODE = "ZCode reads its providers at start-up — restart ZCode to see magpie's models in its picker.";
const models = [{ value: "magpie/deepseek/pro", label: "magpie/deepseek/pro", ref: "deepseek/pro" }];
const agent = (id, name) => ({
id, name, path: "/test/" + id, wired: true,
fields: [{ key: "model", label: "model", value: "magpie/deepseek/pro", options: models }],
});
const zcode = (on) => ({
id: "zcode", name: "ZCode", icon: "zcode", path: "/test/zcode", wired: on,
fields: [{ key: "model", label: "model", value: on ? "magpie/deepseek/pro" : "", options: models }],
});
function server(lang) {
let on = false;
const st = () => ({ agents: [agent("claude", "Claude Code"), agent("codex", "Codex"), zcode(on)], profiles: [], settings: { lang, theme: "light" } });
return async (route) => {
const url = new URL(route.request().url());
if (url.pathname === "/boot.js") return route.fulfill({ contentType: "text/javascript", body: `window.bootPrefs = {lang:"${lang}",theme:"light",web:true};` });
if (url.pathname === "/wails/runtime.js") return route.fulfill({ contentType: "text/javascript", body: "export const Window = {};" });
if (url.pathname === "/api/state") return route.fulfill({ json: st() });
if (url.pathname === "/api/agents/connect/zcode") {
on = true;
return route.fulfill({ json: { ...st(), connected: { how: "magpie" }, notice: ZCODE } });
}
if (url.pathname === "/api/usage/quotas") return route.fulfill({ json: [] });
if (url.pathname === "/api/groups") return route.fulfill({ json: { groups: [] } });
if (url.pathname === "/api/providers") return route.fulfill({ json: { providers: [], gateway: { running: true } } });
if (url.pathname.startsWith("/api/")) return route.fulfill({ json: {} });
const file = path.join(assets, url.pathname === "/" ? "index.html" : url.pathname);
const contentType = { ".html": "text/html", ".js": "text/javascript", ".css": "text/css", ".svg": "image/svg+xml", ".png": "image/png" }[path.extname(file)];
await route.fulfill({ body: await fs.readFile(file), contentType });
};
}
for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) {
test(engine + ": an agent's advice after a change reads in the window's language", async (t) => {
const browser = await (engine === "webkit" ? webkit.launch() : chromium.launch({ channel: "chromium" }));
const errors = [];
t.after(async () => {
if (errors.length) console.log(errors);
await browser.close();
});
for (const lang of ["en", "zh", "zh-TW", "ja", "de"]) {
for (const width of [1100, 420]) {
await t.test(`${lang} at ${width}px`, async () => {
const page = await (await browser.newContext({ viewport: { width, height: 900 } })).newPage();
page.setDefaultTimeout(5000);
page.on("pageerror", (e) => errors.push(e.message));
await page.route("**/*", server(lang));
await page.goto("http://magpie.test/");
await page.waitForFunction(() => typeof tNotice === "function" && typeof NOTICES === "object");
// every template, its slots filled, reads as its translation, alone
// and joined to the one before it
const bad = await page.evaluate((zc) => {
const fill = (en) => {
const vars = {};
for (const [, k] of en.matchAll(/\{(\w+)\}/g)) vars[k] = { agent: "Kimi Code", distro: "Ubuntu-24.04", net: "nat", url: "http://172.29.0.1:3425", command: "codex app-server daemon restart", version: "0.30.1", project: "/Users/me/my app", model: "openai/gpt-5", key: "magpie-cursor-local" }[k] ?? k;
return [en.replace(/\{(\w+)\}/g, (_, k) => vars[k]), t(en, vars)];
};
const sep = /^(zh|ja)/.test(locale) ? "" : " ";
const out = [];
NOTICES.forEach((en, i) => {
const [given, want] = fill(en);
if (tNotice(given) !== want) out.push({ given, got: tNotice(given), want });
if (locale !== "en" && want === given) out.push({ untranslated: en });
// one that ends in a command to run (agy's) has no full stop
// and is said last, so it is the second here
let [a, wa] = [given, want], [b, wb] = fill(NOTICES[(i + 1) % NOTICES.length]);
if (en.endsWith("}")) [a, wa, b, wb] = [b, wb, a, wa];
if (tNotice(a + " " + b) !== wa + sep + wb) out.push({ joined: a + " " + b, got: tNotice(a + " " + b) });
});
// a plugin's own advice has no template: it reads as given, and so
// does a notice joined to it, rather than half in each language
const own = "Restart Foo to see this.";
if (tNotice(own) !== own || tNotice(zc + " " + own) !== zc + " " + own) out.push({ own, got: tNotice(zc + " " + own) });
return out;
}, ZCODE).catch((e) => [String(e)]);
assert.deepEqual(bad, [], lang);
// and as the reporter saw it: connecting ZCode
await page.locator(".agent-more").click();
const sw = page.locator(`.row.agent[data-id="zcode"] .ag-conn`);
await sw.waitFor({ state: "visible" });
await sw.click();
// connected: the row is drawn anew, and may sit elsewhere in the
// list by then, so the switch's state is read, not its visibility
await page.waitForFunction(() => document.querySelector('.row.agent[data-id="zcode"] .ag-conn')?.getAttribute("aria-checked") === "true");
await page.waitForFunction(() => document.querySelector("#status")?.textContent.trim());
const said = (await page.locator("#status").textContent()).trim();
const want = await page.evaluate((z) => t(z), ZCODE);
assert.ok(said.endsWith(want), said);
assert.ok(said.startsWith(await page.evaluate(() => t("{agent} is connected to magpie", { agent: "ZCode" }))), said);
if (lang === "zh") assert.ok(said.endsWith("ZCode 启动时读取供应商,需重启 ZCode 才能在它的模型选择器中看到 magpie 的模型。"), said);
if (lang !== "en") assert.ok(!said.includes("reads its providers"), said);
const fits = await page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth);
assert.ok(fits, "the status runs past the window");
});
}
}
assert.deepEqual(errors, []);
});
}