fangleeway on Discord: taking Claude Code off magpie said, in the English
window, "「接入」 goes off, and Claude Code is listed under Not set up". An
English reader has no 「接入」 to look for. English is the key of every
string, so every language that lacks a word shows the English one too.
Every English string with Chinese in it, now in English:
- leaving magpie (both forms): "The switch that connects it to magpie
goes off ..." (the switch has no visible label in English, only the
aria-label "Connect {agent} to magpie"); ja and de say the same, zh and
zh-TW keep 「接入」, which is their label.
- the check-in rows and the Check in now title: "as pressing 签到 in X"
becomes "the same as checking in from X itself" / "Check in now for the
accounts not checked in today".
- ZCode's site picker and hint: "BigModel (智谱)" and "bigmodel.cn for
智谱" say Zhipu; zh/zh-TW/ja keep their own 智谱/智譜.
Placeholders are unchanged in every language. ZCode's site buttons were
also how its plugin's way for a site was found (the label "BigModel
(智谱)" inside "ZCode: BigModel (智谱) GLM Coding Plan"), so a site now
carries the plugin's word apart from the label it shows: [id, label,
host, word]. Without that, the BigModel button would sign in on Z.ai and
both site ways would show again under the sites (zcode-site-layout went
12 of 12 red that way before the word was added).
Kept on purpose, listed with why in the guard: the font preview's
"Aa 0123 · 中文", the "万 / 亿" units option, and the three masking rules
that name the words they look for (护照, 生日, 序列号).
Guard: tests/i18n-en-no-cjk.test.cjs (no browser) fails on CJK text in
any English key of i18n.js or a plugin's i18n.js, in NOTICES, in a t()
literal in app.js or a plugin's script, or in index.html's data-t text.
Broken by hand: the old 「接入」 string put back in i18n.js and app.js, and
工作 in index.html's data-t: the guard names each (3 of 4 tests red);
the site's plugin word removed: zcode-site-layout red.
Run (mote, at the pushed head of this commit and the two after it,
bae625cdf on origin/main 8a8079680):
- node --test redact-words-import, i18n-en-no-cjk, zcode-site,
zcode-site-layout, plugin-moved-signin, plugin-other-ways, zhipu-team,
gui-de, gui-ja, gui-zh-tw, i18n-keys, agent-leave-magpie,
agent-own-direct, checkin-now-account, checkin-account, plugin-checkin,
usage-checkin: 215 of 215 ok.
- go test ./internal/gui/...: ok but TestMainWindowCorners/macOS_26_SDK,
red the same at origin/main 8a8079680 (#3949, macOS 27 on mote);
TestCoreScriptBudget ok.
- The whole GUI suite was not run before the push: both test boxes were
running other sessions' GUI suites (one suite a machine). It runs after
the tag; reds are filed.
- Rebased on origin/main d02b8a000 (agent-own-direct, app.js, i18n.js
changed there) and run again at the pushed tree: TestCoreScriptBudget,
i18n-en-no-cjk, i18n-keys, gui-de, gui-ja, gui-zh-tw and
agent-own-direct, 37 of 37 ok.
app.js is 82 bytes under origin/main's: the new words and the site's
plugin word are paid for by two comments cut; no budget raised.
Not tried: the real Wails window, a real ZCode BigModel sign-in through
the plugin. The plugin's own method label still says "BigModel (智谱)";
it is the plugin's text (magpie-community/plugins, zcode) and the site
buttons hide it.
claude-switch-only set page.setDefaultTimeout(5000) and then called
page.goto with no timeout of its own, so Playwright held the first load
of app.js, i18n.js and the plugins to the 5s bar meant for clicks. On a
busy box (a whole-suite run at load 130-160) that load took longer and
goto timed out. The same pattern is in 988 GUI test files (1174 pages):
every one of them now also sets setDefaultNavigationTimeout(60000) on
the same page, right after its default, so goto, reload and waitForURL
wait on the load itself with room, while clicks and waits keep their
short bar. group-from-model-add's own 20s navigation bar is raised to the
same minute. claude-switch-only also gives its first provider row (drawn
from the page's first reads) a minute before clicking it.
nav-timeout.test.cjs (no browser) reads every GUI test file and names
each page given a default under a minute without a navigation timeout of
at least a minute, so a new file can't bring the pattern back.
What was run (WSL magpie-desktop, Playwright 1.62.0, load 70-260 from
other sessions):
- node --check on every file in internal/gui/tests: all parse.
- nav-timeout.test.cjs against origin/main's test files: red (names the
1174 pages); against this tree: its only reds were my own probe copies
of the old files, since removed.
- By hand: claude-switch-only with app.js served 7s late (a busy box's
first load), --test-name-pattern "1100 en": origin/main's file 4 of 4
red with "page.goto: Timeout 5000ms exceeded"; this file 4 of 4 green.
- claude-switch-only.test.cjs, both engines, en/zh/ja/de, 1100 and 420:
32 of 32. group-from-model-add, usage-access-key-card and i18n-keys:
green. agent-plugin-agents: Chromium green; WebKit's de 420 subtest red
on a 5s waitForFunction at line 115 (a wait after load, not the
navigation), at load ~230.
Not tried: the whole GUI suite (about 1000 files; the change is one
mechanical line per page), Windows or mote (mote's browsers, #4125).