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).
szoxidy turned off exa-2 for every agent and found no way to take that one
server out of the Library: a server's (and a hook's) only single Remove was
at the foot of the editor its row opens, while a skill's row has a trash
button. Clicking the server's status opens its tool list, not the editor, so
the turned-off server looked stuck, with only Select and Remove all offered.
Each server row and hook row now has the skill row's trash button (shown on
hover, titled Remove). Its click opens no editor; it asks first in the page,
titled with the one it takes ("Remove the MCP server exa-2?" /
"删除 MCP 服务器 exa-2?", "Remove the hook fmt?"), and says what goes with
it, as library.RemoveServer/RemoveHook do: out of the library and out of the
agents named (or "no agent has it" for one turned off everywhere), out of the
projects magpie placed it in, its sign-in forgotten, and the agents' own
servers left as they are. Remove posts servers/remove (hooks/remove) with
its name, the same change the editor's button makes. While Select is on the
row shows no trash (the bar's Remove is the one), so a picking row keeps the
room it had. New strings in zh, zh-TW, ja and de.
Run:
- new internal/gui/tests/library-row-remove.test.cjs: 22/22 (Chromium and
WebKit, 1100px and 420px, en/zh/zh-TW/ja/de): exa-2 turned off and exa
given to two agents, in a project and signed in; Cancel posts nothing; the
sheet's title and lines in each language; no sideways overflow, no click
scrolls; a hook removed from its row.
- Broken by hand: with origin/main's library/client.js the new test fails
11/11 in Chromium ("exa-2's row has no Remove").
- The first version also put the trash on rows while picking: WebKit en
library-servers-bulk went red ("lib-select moved on the screen from 289 to
307"; it passes on origin/main's client.js), fixed by leaving the trash off
a picking row; that test then 5/5 WebKit.
- Related, both engines, with the new test (19 files, --test-concurrency=2):
317/317: library-servers-bulk, -hooks, -pick-remove, -mcp-tools,
-mcp-health, -mcp-tool-switch, -row-open-scroll, -chip-fan, -mcp-unshown,
-items, -all, -toggle-status, -null-agents, -gone-agents, -zed-mcp,
-mcp-copy-config, -env-refs, i18n-keys.
- Not tried in the real app (fake API only); no Go changed, so no go vet.
Full suite: not run (focused GUI tests only)