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).
Library's and Plugins' sticky tab strip (.lib-head) and Providers' sticky
Add bar (#view-providers .after-list) reached over the view's side padding
by a negative margin (-12px, -16px in the window, the view's padding in
the narrow browser page), so their boxes ran 12-16px past the view's
content end edge. macOS 15's WebKit (Safari 18) takes a flex scroller's
scrollable width as the furthest in-flow child's right edge plus
max(0, margin-end), then adds the padding-end (RenderBlock::computeOverflow's
includePaddingEnd, before WebKit 290159@main / bug 218579, which shipped in
macOS 26): the negative margin is left out, the page is 12px (Providers) or
16px (Library, Plugins) wider than the view, and with classic scrollbars a
draggable horizontal bar shows. That is the reporter's three pages and only
those, at every text size and width. Chromium and macOS 26's WebKit count
the margin, so neither scrolls.
The strips' boxes now keep to the content box; a ::before paints the
frosted strip / the fade over the padding (--bleed-l/-r), the hairline
moves to it, and the pre-color-mix fallback too. Looks the same
(before/after screenshots, light, window and browser page).
New internal/gui/tests/view-no-sideways.test.cjs visits every page, en/zh/
ja/de, the window (body.mac) at 560 (windowMinW) and 1000px and the browser
page at 360/440/1000px, Chromium with its scrollbars shown and WebKit, and
checks both macOS 15 WebKit's sum, worked out from the layout, and the
engine's own scrollWidth. Red before: 40 of 40 cases in each engine, on
providers (12px, div.after-list), library and plugins (12/16px,
div.lib-head) and no other page. Green after, 42/42.
Also run, BROWSER=chromium and BROWSER=webkit (712 of 714 pass; the 2 are
library-servers-bulk in Chromium, the same 2px flake on the old assets, #1322):
click-scroll, gui-ja,
gui-de, add-button, deprecated-subscriptions, plugin-market,
provider-discovery, every library-*, plugin-* and provider(s)-* test.
GOOS=linux and GOOS=windows go vet -tags nogui ./internal/gui pass.
Not tried in a real macOS 15 WKWebView: this Mac runs macOS 26, whose
WebKit has the fix; the rule was read from WebKit's source at 2025-01.