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).
In a provider's list of several keys, a resting key's row held the
"resting · back at …" note on the same line as its switch, name, value,
weight, protocol, Remove and Make first. At 1100px the row ran past the
editor's edge and Remove and Make first could not be clicked, in German
already before 9ac763d2c and in every language once its Try now joined
the note.
- app.js: the note and Try now go in a .key-rest-line appended after the
row's controls; the row is marked .resting.
- app.css: a resting row wraps, and its rest line takes the full width
under the key's own line, lined up with the name; the note ellipsizes
before Try now does.
Run: rest-try-now.test.cjs now hovers the key's row and asserts Remove
and Make first are hit by elementFromPoint at their centres, in
en/zh/zh-TW/ja/de, chromium and webkit, 1100 and 420px: 40/40 at this
commit; on the old app.js/app.css 30/40, the 10 reds being every
language and engine at 1100px.
A key resting after a 429 with a long Retry-After (a relay's 3600s) came
back only by waiting or a restart, though relays often recover in a
minute or two. The Routing page offered the lift (/api/gateway/unrest,
which already takes any rest key) only to verify and restricted rests.
- routing.js: every resting row with a rest key gets the button: "Try
now" for quota, rate, retry-after and backoff rests, the old wording for
verify and restricted. A lifted rest is remembered by key and the time
it was lifted (liftedAt), so the history re-render, which reuses the
try's rest, doesn't show it again; a newer rest still shows.
- app.js: "Try now" beside the "resting · back at …" note in a
provider's key list, posting the key's own rest key; not hover-only.
- i18n: the three new strings in zh, zh-TW, ja and de.
- gateway-routing.md: any rest can be lifted; only the rest ends, the
backoff count stays.
Run: rest-try-now.test.cjs (new: Routing row with the issue's zx
retry-after rest, key list row; en/zh/zh-TW/ja/de, chromium and webkit,
1100 and 420px; asserts the post, the note gone, no sideways scroll,
reached by wheel, the click doesn't scroll) 40/40, red on the old
app.js/routing.js. 71 key*/routing*/rest* GUI files at concurrency 6:
826/831; the 5 reds (key-balance-card, routing-group-fold) pass alone
and are timing under load (routing-group-fold fixed in the next commit).
go test ./internal/gui passes.