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.