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).
A plugin's page (Plugins › Discover) opens with a skeleton for its
README, and when the README came in the dialog took its new height in
one frame. Now detail()'s fill() measures the dialog, puts the README
in, re-centres it (holdModal), and animates height and top together
from the old box to the new on SPRING, the curve the dialog opened on
(570ms, 1.5% over), clipped while it grows; the README fades in over
it. Height and top move on one curve, so the dialog keeps the middle
in every frame. The same for the error note when npm or GitHub
doesn't answer. Reduced motion: no animation, as before.
Budget: the core 1,530,050 -> 1,530,631, the 581 bytes of fill(), the
Plugins page's own, no room added.
Run at this head (rebased on 9277c2567):
- modal-centred-late.test.cjs, a new test sampling every frame from
the README's arrival: heights in between the two and centred within
2px in each frame, at 820px and 560px (README taller than the
window), Chromium and WebKit: 12/12. With the plugin GUI files
(plugin-market, -github, -local, -git, -folder-path, -own-icon,
-card-update): 80/80 at 9dc7d6eb8, before the rebase onto two
commits that touch Codex's card and the masking page only.
- go test -run Budget ./internal/gui ok; gofmt -l clean.
- Frames seeked to 0/80/160/280/570ms and looked at.
Broken by hand: fill() returning before the animation turns the new
test red in both sizes ("grew over frames: [674,674,674,674]").
Not run: the whole GUI suite and go test ./... (only plugins.js and a
test changed); not tried in the real app on WebKitGTK or Windows.
The owner (10-24): a plugin's page opened low, not in the middle. It
opens short, with a skeleton, and its README comes after; holdModal held
the top the skeleton had put it at, so the dialog grew down to the
window's foot and sat low.
Until the reader's first press or key in it, holdModal now keeps the
dialog centred over what it holds, measured by its layout height
(content that comes during the open's morph was read under its scale).
From the first pointerdown or keydown it holds its place as before, so
what is under the pointer doesn't move.
Run (darwin, chromium and webkit, logs kept whole):
- modal-centred-late (new): 6/6 ok, 3 runs in a row; on the old app.js
red at "centred after the README came" (bottom gap 0, top 181.5).
- The 112 GUI files that use #modal: started, not finished at the push;
the owner asked to release without waiting. Reds it finds get their
own commits.
TestCoreScriptBudget: main was already 208 bytes over the core budget
(f5b1d36ff's refresh and ce5b23cdb's spinner, each checked alone); with
this change's ~1.1KB both budgets are raised to the exact sizes, with no
room added. go test ./internal/gui -run Budget: ok.
Not tried: the real Wails app; Windows and Linux webviews.