The owner, 11-09: "鸟要在卡片上面". Since 869c4d112 (v0.1.2135,
penershu on X) the sky was under the cards (z 0), so a magpie crossing
magpie's box vanished behind it. Putting it under was our choice, not the
reporter's: they asked that a bird not sit on the hub's address.
Fix:
- .rt-sky is z 2 again, over the cards.
- pose() still starts and ends each flight 6px clear of the cards, so a
dot held at its seat or waiting at magpie, and its bird, sit beside the
words (what penershu reported).
- via() no longer cuts across magpie's box: side to side it goes up the
side it came in, over the top a little above the edge and down the side
it leaves by; round a corner (the narrow stage: in at the side, out at
the bottom) it keeps by that corner. Other cases keep the old arc.
Run (mote-run, Playwright 1.62):
- routing-sky-under (rewritten: the sky is over every card; nothing at
rest, bird parts or dot, over a card's words; new: routing sends the
waiting request on and every frame through magpie's box is watched, its
dot and the bird's body off the hub's words), routing-held-dot,
routing-smart-intent: chromium + webkit x 5 langs x 4 widths, 100/100.
- Red on origin/main's routing.css: 40/40 ("the magpies fly over the
cards: [false,...]"). Red on origin/main's client.js (old via): dot and
body over "magpie", "127.0.0.1:3425" and the 智能 pill.
- via() uses the hub box layout() read with the wires; a fresh
getBoundingClientRect there looked like it raised WebKit's
ResizeObserver-loop red in routing-context-fold, but it stayed after.
- every routing*.test.cjs file (mote, load ~200, at 480f880e2 before the
hubBox change): 3 reds, none in the files touched here.
routing-credits webkit zh-TW 420 ("session-titles due to access control
checks", the #1350 class) and routing-flood webkit en ("32 magpies flew
at once") pass on WSL magpie-desktop alone. routing-context-fold webkit
"a request picked keeps the fold" is #5586 (ResizeObserver loop, red on
main before this; cause in #1542): alone on WSL it was red 3 of 18 runs
with this change and 0 of 8 on origin/main 81798f779, so this change
may make it more frequent. Numbers on #5586.
- At the pushed head (rebased on 6b0b7a96e; 54af4357c since touches no routing file), on WSL: sky-under + held-dot + smart-intent
100/100 (both engines).
Not fixed: the bird trails its dot by ~45px, so for a frame or two as it
leaves the box its tail brushes the end of "magpie" (or a wing the pill on
the narrow stage). The exit is on the box's edge; only moving the wires
would avoid it, and the test checks dot and body, not tail and wings.
Not tried: the real app (WKWebView, WebKitGTK).
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).
penershu on X (v0.1.2123): with two agents sending at once through
jd-auto-balanced, one magpie sat on the hub's "127.0.0.1:3425" with its
dot beside it, another on the group's split dot, and the row smart
routing picked ran "回答中… · 按意图“Design architecture…”" off the
right edge.
Cause:
- .rt-sky (birds and dots) was z-index 2, over the cards (z 1). Flights
cross the hub's box (via(), 520a2425f), so a bird crossed its words.
- Every wire ends at a card edge, so a held or waiting dot sat half on
the card.
- .rt-accts li's last column was auto with a nowrap em. The intent text
ec8fe29b8 added has any length, so it squeezed the name to 0 and pushed
the row past the stage card.
Fix: the sky goes under the cards (z 0); pose() starts and ends each
flight 6px clear of the cards at either end; the em column is
fit-content(60%) with ellipsis, and the full intent goes in the em's
title. The panel's small stage has no birds and was already under.
Run (mote-run, Playwright 1.62):
- new routing-sky-under.test.cjs: 3 agents at once (one waiting at
magpie), chromium + webkit x en/zh/zh-TW/ja/de x 1600/1100/560/390 =
40 tests. Checks nothing in the sky is drawn over a card's words
(elementFromPoint with a probe), every dot is whole beside its card,
the intent row stays inside its row and the stage card, keeps the
name >= 60px, is cut short, and has the whole intent in its title.
Together with routing-held-dot and routing-smart-intent: green.
- Red on origin/main's client.js + routing.css: 50/50 (sky over the
words, held dot on the card edge).
- Broken by hand: new JS with old CSS minus the em rule -> 1600 red
("name":0, the reporter's squeeze); old JS with new CSS -> dot test
red (dots over the rows and the hub).
- Screenshots looked at, old and new, both engines, zh 1600/560.
- Whole GUI suite: mote was held at load ~120 by three other sessions'
full suites for 2h, so it ran on WSL magpie-desktop instead
(node --test --test-concurrency=8 internal/gui/tests/*.test.cjs). At
push time, 4438 results were in with 95 not ok, none of them in a
routing file. They are in untouched pages (account limits, gateway
keys, Codex settings, agent-panel-name-width, click-scroll and
others), which reads as WSL load. The whole suite on mote was not run.
Not tried: the real app (WKWebView, WebKitGTK); a real decision model
and real concurrent requests; the full GUI suite on mote.
What changed: a request's dot, let go at the account that answers it, is
held there (`.pkt.held`) until the try ends. It was posed only while
flying, so any layout after it landed left it where the seat had been.
Picking Routing while a request is under way does exactly that: the
view's box is 0 wide while hidden, so byWidth marks it max560 and the
stage comes back stacked (accounts under magpie) for its first frames.
With reduced motion the flight is one frame, so the dot lands at the
stacked seat's edge; the stage then goes wide and the wires follow
(the stage's ResizeObserver runs layout()), but the dot doesn't. That
is ouchxp's screenshot: a dot at the left of the line under the stage,
and the seat's own dot plain. A window resized while a request waits
did the same with any motion setting.
Now play() records each held dot with its row (`holds`), and layout()
poses every held dot at the end of its row's wires again (holdAll),
so it follows the seat through the narrow-to-wide switch, resizes and
FLIP moves. holds is cleared with the play, and by stopPlays.
Not changed: byWidth still marks a hidden box narrow, so the stage is
stacked for a frame or two after the view is picked. Skipping a 0
width there also hides this case at wide windows, but not a resize or
a narrow window, so the fix is in the held dot.
Run (worktree on 5c82e6880, then rebased on 3869b0a27):
- new routing-held-dot.test.cjs: chromium and webkit, en zh zh-TW ja
de, 1100 and 560px, reduced motion: Agents first, the request under
way, Routing picked, the held dot at the seat's edge; then the window
resized to the other width and checked again. 20/20 pass. On the old
routing.js it fails in both engines (dot at x 267, seat at 607 after
the switch; and after the resize). With only the byWidth change and
not holds, it still fails, so the test guards holds.
- all routing-*.test.cjs and panel-routing, both engines: 715/719 on
5c82e6880; the 4 (routing-group-fold webkit en/ja/de,
routing-sessions webkit en) fail the same there without this change
and pass on origin/main 3869b0a27 (fixed by 94aa793db). Rerun on
3869b0a27 + this: 718/719; routing-steady webkit "requests coming in
leave the routing groups where they are" moved the editor 1.69px under
load. That is #1804: alone it passes 3/3 with and without this
change; 4 copies at once fail 4/8 on the old routing.js and 0/8 with
this change.
- Not tried in the real app window with a live request.