J408: D374 content-first swipes, modifier research #444
Open
opened 2026-11-09 06:29:09 +00:00 by kayg
·
10 comments
No Branch/Tag specified
main
j470b-server-mesh-rejoin
mesh-compat-382
j444b-d381-key-wins-flood
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#444
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
J408, D374 (A17): one-finger swipes are content-first, canvas moves on purpose.
Branch
swipe-content-first-d374, base origin/dev80a09ad02.Plan:
wheelevents, and measure in Playwright (Chromium, WebKit, Firefox). Findings table is posted here as a comment. The owner picks the modifier.Estimate: research 1 h, specs and code 2 h.
Part 1: modifier + wheel research (J408, D374)
Measured = my Playwright probe (
probe-wheel.mjs, raw resultwheel-chromium.json, in~/.cache/codex-scratch/j408/evidence/on the control host). Researched = web sources, not measured by me. Headless Playwright feeds synthetic wheel events to the page, so it cannot show browser chrome actions (page zoom, history navigation). Those rows are research only.wheelwith flag?shiftKeyset, cancelable,preventDefaultstops the native sideways scroll. Firefox: see the Alt row (the pref mechanism is the same).mousewheel.with_alt.action); Chrome and Edge: none foundaltKeyset, cancelable, native scroll unchanged). Firefox: researched only, I could not run it, so I don't know whetherpreventDefaultbeats its history action.Trackpad / Magic Mouse swipe vs mouse wheel (researched)
deltaMode0). A two-finger swipe has bothdeltaXanddeltaY, often fractional, at the display rate (~13–15 ms apart), then a momentum tail with the same sign and decaying deltas. The web has no momentum flag, so a tail is told apart by deltas that only fall.deltaMode1) or fixed pixel steps (Chromium: 100 or 120 per notch, measured as 120 here), and nodeltaX. Magic Mouse and trackpad are indistinguishable from each other in the browser, and deltas are only a guess for telling them from a wheel.deltaXevent is not claimed.overscroll-behavior-x: none|containstops it in Chromium and Firefox (the app already setsoverscroll-behavior: noneonhtml, body, #app); Safari may ignore the CSS, so a non-passivewheellistener that callspreventDefaultis the dependable fix. The canvas router now cancels every gesture it owns, content's swallowed end included.Recommendation (the owner picks; the constant is
CANVAS_WHEEL_MODIFIERincanvas-wheel-modifier.ts)Not measured
libgtk-4,libwebkitgtk-6.0,libevent, ...). Installing them is a host change, so I left it for the Maintainer. Playwright browsersfirefox-1572andwebkit-2388are downloaded in~/.cache/ms-playwrighton dev-02 and will run once those libraries exist.Sources: Chrome ctrl+wheel can be overridden, Firefox bug 814303 (macOS ctrl+wheel), Firefox bug 143038 (wheel + modifier), Mozilla Connect: Alt+scroll history, MDN WheelEvent, Trackpad vs Magic Mouse scroll, block the back/forward swipe.
Progress: red specs pushed (
7260f0620, branch swipe-content-first-d374). Router change, TASTE rows and the updated wheel-scroll spec are written locally, not yet run. Waiting on a dev-02 build slot (queue about 8 deep); next is the red run, then the touch finding, then green.Progress (head
271307c2b, branch swipe-content-first-d374 pushed). Research table is in the comment above.Red on the old router (log ~/j408-red3.log on dev-02, 1440x900): the sideways-swipe-over-docs-page spec and the modifier+wheel spec fail; green on the new router, with the updated wheel-scroll spec (7 passed, ~/j408-green3.log). One-finger touch: the sideways half already passed on the old code (no touch change needed); the 'past the end' half was a spec flaw (page is ~17,000 px), fixed in the last commit. Next: one slot run with the touch spec, the neighbouring canvas/clusters/settings specs and verify quick.
Finish (J408). Branch
swipe-content-first-d374, head3f71c5936(pushed, confirmed withgit ls-remote), base origin/dev80a09ad02.Commits: red specs + modifier constant; docs window id fix; router change; wheel-scroll spec update; TASTE rows; spec fixes; installGestures doc comment; sleep/doc comments.
Results (dev-02, production build, logs in
~on dev-02):j408-red3.log): sideways swipe over the docs page moved the canvas, and modifier+wheel did nothing. Both fail. Green on the new router (j408-green3.log): swipe + wheel-scroll specs 7 passed. Final HEAD run (j408-head.spec.log): swipe-content-first 4/4 and wheel-scroll pass (6 passed in that run).j408-wide.spec.log: 120 passed, 5 failed. The same 5 fail on unmodified origin/dev (j408-base.spec.log): clusters-swipes (2), clusters-swipes-both (2), clusters.spec.ts:512. Not caused by this change.scripts/verify quick: exit 0 (j408-quick2.log): scope guard, migration names, Nix vendoring, fmt, doc coverage, shape lints, doc comments on diff, fixed test waits, ui literals, tracer typecheck all PASS.verify fastnot run (the brief asked for quick).Open for the owner:
CANVAS_WHEEL_MODIFIERinapps/tracer/src/canvas/camera/canvas-wheel-modifier.ts, set to Shift for now (equals today's behaviour). Recommendation is in the research comment.wheel-scroll.spec.tswas already broken on origin/dev (it used window idd-keys, nowd-reference/keys). I fixed that in passing.Review of
swipe-content-first-d374at3f71c5936(base80a09ad02)Verdict: REQUEST CHANGES. The touch and sideways-swipe work is sound and I could not break it. Two behaviours still contradict the owner's quote or the content-first rule, and the research table has a wrong claim behind its macOS recommendation. No P1.
Method: production build on dev-02 through build-slot, worktrees
j444-head/j444-base(since removed). The author's specs and my own probe spec run on head (runA.log: 10 passed). I did not runverify fastorverify quick. Evidence is in~/.cache/codex-scratch/j444-review/evidence/on the control host:runA.log,runB.log,review-444.spec.tsandreview-444/*.json|png. The images below are in that folder.Your six checks
phone-touch.json,snapped-*keys).runA.log).overflow-x: clipandtouch-action: pan-y.CANVAS_WHEEL_MODIFIERincanvas-wheel-modifier.ts, and Shift is the default. Does Shift+wheel break horizontal scrolling inside content? Yes. Shift+wheel over aoverflow-x:autoblock with 2400 px of content left scrollLeft at 0, while a plain sideways swipe over the same block reached 710 (desktop-probes.json,shiftWheelagainsttrackpadSideways; screenshotdesktop-shift-wheel-over-wide-block.png). The canvas took the gesture and did nothing, because this page is the last window. It is not a regression: on base a Shift wheel was always the canvas's. The same applies to a widepreor.doc .tableand to the focused terminal's horizontal scroll.runB.logran the clusters-swipes (2), clusters-swipes-both (2) and clusters.spec.ts:512 specs on base80a09ad02and on head. Both runs give 5 failed and 2 passed, with identical errors: 3 vs 6 windows, 5 vs ≥8, and index 0 vs 1. The branch neither causes nor fixes them. I tested the merge base, not the newest origin/dev tip.Findings
P2-1: Shift as the canvas modifier takes horizontal scroll away from content.
routeWheelmakes the canvas the owner whenevercanvasModifierHeld(e), before it asks whether the content could scroll sideways (gestures.ts,routeWheel).canvasDeltasalso remaps the vertical wheel to sideways for Shift. So a mouse user can no longer scroll a wide table or code block with Shift+wheel, and the content-first rule is broken for exactly that user. Options, for the owner:scrollsSideways), with the canvas taking it at the content's end; orP2-2: a vertical wheel at a page's end still overflows to the neighbouring window.
routeWheel:else owner = scrolls(target, e.deltaY) ? "vertical" : "canvas". A fresh gesture at the end therefore becomes a canvas step. The TASTE row still documents it ("a fresh swipe at the end moves on to the neighbouring window"). Against the owner's words, "I don't [want] scrolls [to] overflow to the canvas once there's nothing to scroll in the content. canvas scrolling has to be intentional", this is an overflow and not intentional, so I judge it a violation. A step from over bare canvas, chrome or the modifier is fine.verticalAtEnd,verticalAtTop). The finding rests on the code and the TASTE text.P2-3: the research table is wrong about Firefox on macOS. The table says macOS Alt has "no default found in Chrome, Safari or Firefox" and recommends "macOS: Option". Firefox's
modules/libpref/init/all.jssetspref("mousewheel.with_alt.action", 2), and 2 is "Go back or go forward, in your history". The line is not inside a platform#if, so Firefox on a Mac also treats Option+wheel as history. WhetherpreventDefaultbeats that action is untested; the author said so for Windows and Linux only. The table's other claims I checked hold:mousewheel.with_meta.actionis 1, "Scrolling contents", the same as default. That matches "Cmd: no browser default".mousewheel.with_shift.actionis 4, a vertical wheel treated as horizontal scroll. That matches "Shift scrolls sideways".The Shift recommendation for Windows and Linux is fine on browser-conflict grounds, but the table never weighs P2-1. The per-OS Option recommendation needs correcting before the owner picks.
P3-1 (open point 3): a one-finger drag on bare canvas of a free canvas still pans. Measured: a drag of (-80, -60) on a bare point moved the world from translate3d(-3997px,-3576px) to (-4077px,-3636px) (
phone-touch.json,freeBareOneFingerMovedCanvas: true;phone-free-bare-after-drag.png). Nothing overflows here, since no content is involved, and a drag that starts on bare canvas is arguably deliberate. But D374 says "two fingers on touch", andgestures-free.on-demand.tspans on any non-interactive pointerdown. Ask the owner; do not decide it in the job.P3-2: a sideways swipe over scrollable content that cannot scroll that way is swallowed with no feedback. For example, a swipe over the docs page dies silently. That is the design, but it is easy to misread as a stuck canvas. A focused terminal always takes sideways swipes (
inScrollableContent), so over an active terminal only the pill, the gaps and a modifier reach the canvas.P3-3: the swipe-routing specs that already fail on dev were not touched. They cover the code this branch changed and cannot guard it. Open a follow-up issue.
P3-4: spec gaps.
swipe-content-first.spec.tshas no case for a sideways swipe or a Shift wheel over horizontally scrollable content, nor for one finger on a short window or on a free canvas. Myreview-444.spec.tsshows how.What I did not do
shiftKey, and Chromium did not turn it into deltaX.canvasDeltashandles both.Reviewed SHA:
3f71c5936. I did not merge, push or deploy.Research table, corrected (J408 round 2)
Round 1 said Option/Alt had "no default found" in Firefox on macOS. That was wrong: Firefox's
all.jssetsmousewheel.with_alt.action = 2(history back/forward) with no platform guard, so it applies on macOS too (J426's finding, accepted).Measured this round, Firefox 159 (Playwright build, Linux aarch64, headless) and Chromium, synthetic wheel events:
probe-ff.mjs, raw resultsj408-ff.jsonandj408-cr2.jsonin~/.cache/codex-scratch/j408/evidence/. Firefox ran once I launched it outside the nix dev shell (inside it the system libraries are not on the path). WebKit still cannot run (needslibgtk-4,libwebkitgtk-6.0, ...: a host change, not done). Each row was run with and withoutpreventDefault, for a vertical (0,120) and a sideways (120,0) wheel, on a page that was reached by a second navigation so that "back" is observable.preventDefaultpreventDefaultpreventDefaultpreventDefaultshiftKeyseenaltKey, cancelablectrlKeymetaKeyWhat this settles:
preventDefaulton a wheel event withaltKeydoes cancel Firefox's history navigation (measured on Linux; the same pref line is unguarded on macOS, but I could not run Firefox on a Mac). Every canvas-owned gesture is cancelled by the router, so Alt/Option needs no Firefox-only fallback key.Recommendation, re-derived: Option/Alt on every OS, for the reasons above (it has a browser action only in Firefox, and that action is cancellable; Shift conflicts with content's sideways scroll). That is what the owner chose in D377, and the code now uses it.
Still not measured: WebKit/Safari, a real Magic Mouse or trackpad, real macOS Firefox, zoom and text-size shortcuts (headless).
Round 2 progress (head
f62a848ff, pushed). Corrected Firefox table is above. Implemented D377: Alt modifier, Shift scrolls content, scrolling never overflows to the canvas, free-canvas one-finger pan pinned, '⌥ + scroll' / 'Alt + scroll' keyboard-help entry. Run 1 (dev-02): red on the old router for the Alt/Shift specs; green 128 passed, 5 failed (clusters-swipes x4 and clusters.spec:512: all fail on origin/dev too, filed as #474 and #472; my Docs-view attempt on the swipes specs did not fix them and was reverted). The Settings end-of-content spec passed on the old router (it could not tell), so I strengthened it; final red/green/quick run is queued (dev-02 queue ~9 deep).Round 2 finish. Branch swipe-content-first-d374, head
f62a848ff(pushed; git ls-remote confirms).Review of
swipe-content-first-d374atf62a848ff(round 2, base80a09ad02)Verdict: REQUEST CHANGES. D377 is implemented as written and I could not break the Alt, Shift, end-of-page or touch behaviour. Three things stop an approve: the real-PTY spec has not run (item 3), Firefox still navigates history on Alt+wheel over chrome outside the canvas viewport (P2-1), and
verify fastis red on the cargo-deny row (not this branch's fault, see item 6). No P1.Method: production build on dev-02 through build-slot (worktree
j444r2),verify faston compute01. Evidence is in~/.cache/codex-scratch/j444-r2-review/evidence/on the control host:review-444-r2.spec.ts,review-444-kb.spec.ts,probe-ff.mjs,probe-ff-app.mjs,j444r2-ff.json,j444r2-cr.json, andshots/*.png. My probe specs are not part of the branch.The six checks
1. D377 points, 1440×900 and 393×852: PASS (Chromium).
swipe-content-first(11),wheel-scroll(4) andsettings-rows-of-windows(28) specs plus my probes,47 passed (17.8m).desktop-before-alt.pnganddesktop-after-alt-vertical.png.oneFingerVerticalScrolledPage: true), and sideways and past-the-end drags left the canvas and stop index at 11. Two fingers moved 11 → 10 (phone-after-one-finger.png,phone-after-two-fingers.png). One finger on empty free canvas still pans (author spec 36, pass).2. Firefox Alt+wheel and history: the author's table holds, but the app has a gap (P2-1).
probe-ff.mjson dev-02 (Firefox 159, outside the nix shell, headless). Raw:j444r2-ff.json.preventDefault: history back, both axes (navigated: true).preventDefault: no navigation on either axis, event delivered withaltKey: true, cancelable.j444r2-cr.json): Alt scrolls normally withoutpreventDefault, nothing navigates.probe-ff-app.mjs):.cl-viewport?pre.canvas-preview)button.ui-pill.capsule)section.terminal-screen)So
preventDefaultworks where the router sees the event, and not elsewhere. See P2-1.3.
real/wheel-routing.spec.ts: NOT RUN. I queued it on compute01 (release musl binary from myverify fast,playwright.real.config.ts). It has been at "queue position 11" in build-slot since 17:35 CET and has not got a slot (load average ~34). I cannot report green or red. It is the only proof for a terminal's end-of-scrollback and for Alt over a terminal, so approval should wait for it. I will post the result here as soon as it has run.4. Labels.
Move the canvas with the wheel, keycapsAltandscrollon Linux (shots/desktop-keyboard-help.png). The unit test pins⌥ + scroll(Mac) andAlt + scroll(other). I could not render the Mac variant here.apps/tracer/src/canvas/mock/windows-proto/canvas.ts:250(Pan sideways,Shift+Scroll) and the header comment at line 10. It is the gated D162 canvas mockup (main.ts:514,canvasMode) with its own Shift pan handler, so it is not the product canvas. P3-1.Next window or column — Scroll(shortcuts.ts:61) is still in the help. After D377 a plain scroll over content does not go to the next window, so the row is misleading. P3-2.5. Regression risk: reaching the next window.
Ctrl+Shift+]andCtrl+Shift+[step one window (stop 11 → 10 → 9 → 10,kb.json).Ctrl+Shift+←/→jump to the window on the left or right (3 → 10 → 11, perdesktop.json; it moves across columns, not one stop). Alt+wheel: one stop per gesture. Both work.6.
scripts/verify faston compute01 (through build-slot, nix dev shell, HEADf62a848ffb): exit 1, cargo-deny only.error[vulnerability]: libsqlite3-sys via C SQLite CVE-2026-119375 … ID: RUSTSEC-2026-0459,advisories FAILED, bans ok, licenses ok, sources ok. The branch changes no Rust and noCargo.lock, so this is the known dev-wide advisory, not this branch.tracerbrowser rows arescripts/verify browser, notfast. I ran the three relevant spec files above instead (47 passed).Findings
P2-1: Alt+wheel over chrome outside the canvas viewport navigates history in Firefox. The wheel listener lives on
.cl-viewport(gestures.ts, threeviewport.addEventListener("wheel", …)), sopreventDefaultnever runs for an event over the top pill, the toolbar or the screen edge. Firefox's own Alt+wheel action then goes back (measured: 4 of 4 rows in the table above, both axes,probe-ff-app.mjs). D377 and the author's note say Alt is safe "because the router cancels every wheel gesture the canvas owns", but the router does not own the whole page. Effect: a Firefox user who turns the wheel with Alt held over the pill or the screen's edge loses the page; for a terminal app with live sessions that is a navigation away (a beforeunload prompt may or may not help). Fix: onewindow-levelwheellistener withpassive: falsethat callspreventDefaultone.altKey(the canvas keeps routing inside the viewport), plus a spec on Firefox or at least a unit test. Caveat: headless Firefox 159 on Linux; I did not run Firefox on a Mac, where the pref line is unguarded.P2-2 (gate):
real/wheel-routing.spec.tswas flipped to expect no hand-off and has still not run. The author says it needs the real server; I queued it (item 3) and will post the result. A red result is a finding by the brief, and nothing in this review replaces it.P3-1: stale Shift label in the gated canvas mockup (
windows-proto/canvas.ts:10,:250, "Pan sideways",Shift+Scroll). Only reachable withcanvasMode; update the words or note that the mockup keeps its own rule.P3-2: the help row
Next window or column — Scrollis now misleading (shortcuts.ts:61). Say where it works ("Scroll on empty canvas") or remove it now thatMove the canvas with the wheeland the keyboard rows exist.P3-3 (owner awareness): reaching the next window without Alt depends on bare canvas, which a docs or settings layout barely has (48% and 4% of the grid positions in my probe). Alt+wheel and
Ctrl+Shift+]work, so I do not call it a violation of D377.P3-4: spec gap.
swipe-content-first.spec.tsasserts "no step at the end of the page" on the last window of the Docs view, where a step would have no target (the author's spec 43, and my round 1 probe). It would pass on the old router too, which is why the author had to strengthen the Settings spec. A middle window (as in my probe) catches it. Move the end-of-page case onto a window with a neighbour.What I did not do
real/wheel-routing.spec.ts: not run, see item 3.Reviewed SHA:
f62a848ff. I did not merge, push or deploy. Test servers I started on dev-02 are stopped; the worktrees~/worktrees/j444r2on dev-02 and compute01 are still there for the real spec.Round 3 progress (head
785b57791, pushed). Implemented: window-level Alt guard (Firefox history), chrome-as-bare-canvas for sideways swipes (header, 16 px edge bands, peeking neighbours), help row reworded to 'Swipe on empty canvas', stale mockup Shift+Scroll entry removed, end-of-page spec moved to a middle window. J441's real-PTY run never actually ran: it failed at setup ('spawn .../target/x86_64-unknown-linux-musl/release/infraternal ENOENT', the target had been reaped; log ~/j444r2-real.log on compute01). I am running real/wheel-routing.spec.ts myself on dev-02 with an aarch64 server binary copied from j444's target (the web is this branch's build; the server only serves it). Queued in one slot job with red/green/quick (dev-02 queue pos 5).