Skip to content

Let the keyboard through a drawing's press claim, and leave a commented scroll box its tab stop - #962

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-35777453725
Sep 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-35777453725

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

ci on main was red on e3cd596 with eleven nightly failures. Eight of them belong to open or merged repairs — #951, #954 and #955. This takes the other three, and two of them turn out to be runtime defects a reader meets rather than stale readings.

A keyboard press inside a stroke's claim was eaten

Draw mode holds a claim over every press on the page — compatibilityPress in skills/leaf/assets/runtime/composing/drawing.js, a document-capture listener that preventDefaults and stopImmediatePropagations — so a stroke lifting over a control does not press that control as well. The claim is lifted on a zero-delay timer scheduled at pointerup, so which press is still a race, and the reader loses it whenever the release's own work runs long.

The reader who loses it gets nothing and is told nothing. Ctrl+Enter in the composer the stroke had just opened reaches the text.send binding, which calls the Send button's own click(); the claim ate it in the capture phase before any listener on the button ran. Send went on reading aria-disabled="false", the drawing stayed pending, and no notice was written. Nothing retries, so the comment was simply lost until the reader pressed again.

The layer already states the rule this needs, twice: the aim's claimPress lets a click carrying no click count through — "keyboard activation belongs to the control it is on" — and the selection guard in widget-elements.js spells the same test as ev.detail === 0. Draw mode is the third such claim and had neither. So the reading moves to one name, pressIsKeyboardActivation in runtime/pointer.js, and all three press claims read it off that.

A comment took a scrolling box's tab stop away

paintReach lends a scroll box a keyboard stop unless the box already holds a control of its own — a board is reached through its grips and needs no stop over the whole thing. The anchor note is not such a control. It is the one thing the runtime hangs inside a block it does not own: a 1px transparent button that leaves the flow for position: fixed the moment it takes focus, so standing on it scrolls nothing.

#932 (aab2edc) moved that reading from the one sweep, which ran before any note existed, to every layout pass, which runs after. From then on a single comment on a flowchart wider than the window took away the keyboard's only route to the half hanging off its right edge. The reading now asks for the box's own controls and passes over the note.

The filter reading

test_the_thread_follows_the_decision_that_still_stands read the status filter as a bare Resolved where #945 gave it a count. The assertions either side of it already read Resolved (1); this one now reads Resolved (0), which is what the reject standing means — nothing filed away as answered.

Verification

Both runtime repairs are bug-backed by a new case in an existing file, each failing on main's runtime and passing on this branch:

  • test_render_drawing.py::test_a_keyboard_send_reaches_send_while_the_stroke_still_owes_its_press holds the release's macrotask rather than racing it, so the window the rule is about is stated rather than waited for. Without the fix: the page never sent the drawing the keyboard sent.
  • test_render_controls.py::test_a_comment_on_a_scrolling_box_leaves_its_tab_stop_alone reads the same box with the note off and on. Without the fix the second reading is tabindex="-1".

uv run pytest tests is 1298 passed with five failures this sandbox produces on the unchanged tree — AF_UNIX and umask limits, in test_interact_layer.py, test_interact_session.py and test_website_server.py. npm run test:runtime is 43 passed and pre-commit passes on the changed files. Under --run-nightly, test_render_drawing.py, test_render_aim.py and test_render_pages.py are 136 passed together, test_render_drafts.py is 83 passed, and the three target cases pass on the current merge base. A pull request's own ci reaches none of the nightly cases, so it says nothing about them.

What this leaves on main

Main has moved well past the run this is against, and its own complete suite on f4107f6 enumerates what is left once #951 lands: five stale .lf-receipt readings in test_render_startup.py and the same element in test_render_anchors.py, which #933 removed in favour of the message workflow line, plus test_render_widgets.py::test_notification_configuration_becomes_a_commentable_local_artifact. That sweep is in files this branch does not touch and #951 already names it.

How the drawing failure was isolated

It reproduces only when tests/test_render_drawing.py runs whole — three of four runs at -n0, never when the case runs alone — and it did not appear in the previous nightly, which is why it reads as noise until it is traced. The path, recorded from an instrumented run:

reading at the press value
text.send binding ran yes
sendBtn connected, not disabled, the document's own yes
aria-disabled on Send false
click reached a capture listener on the button itself no
a second dispatchEvent(new MouseEvent('click')) reached it no
claimDraft refused never called

Two dispatches at the button failing to reach a listener on the button places the block above it, in the capture phase, which is compatibilityPress. Instrumentation that added a round trip before the press — a page.evaluate of the composer's state — made the run pass, which is the timer winning the race.

…ed scroll box its tab stop

Three nightly cases from the red `ci` on e3cd596. Two are runtime defects
the reader meets, and one is a reading of a filter whose label moved.

Draw mode holds a claim over every press on the page while its stroke's
compatibility click is still owed, and lifts it on a zero-delay timer. A
keyboard activation landing inside that window was eaten with nothing said:
Ctrl+Enter on the composer the stroke had just opened sent nothing, Send
still reading enabled and the drawing still pending. Which press wins was a
race the reader loses whenever the release's own work runs long. The aim
already states the rule the claim needs — keyboard activation belongs to the
control it is on — and the selection guard states it a second time, so all
three now read it off one name in pointer.js.

The reach sweep lends a scroll box a tab stop unless it already holds a
control of its own. #932 moved that reading from the one sweep to every
layout pass, where the runtime's own anchor note is inside the block: a
1px transparent skip control that leaves the flow on focus, so standing on
it scrolls nothing. One comment on a flowchart wider than the window took
away the keyboard's only route to the half hanging off its right edge.

test_the_thread_follows_the_decision_that_still_stands read the status
filter as a bare "Resolved" where #945 gave it a count; the assertions
either side of it already read "Resolved (1)".
@max-sixty
max-sixty merged commit e84a03a into main Sep 23, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-35777453725 branch September 23, 2026 01:01
max-sixty added a commit that referenced this pull request Sep 23, 2026
The complete suite on #960's merge commit failed in 17 browser cases
while its four new inline-thread alignment cases passed. #951 and #962
subsequently repaired several unrelated failures. This PR updates the
remaining stale readings and completes the old receipt-to-workflow
selector cutover in export and browser guards.

The browser tests now read the exact message workflow's label and title,
the notification marker's detailed `aria-description`, and the visual
review's “Earlier data” label. The stale-work case names the current
message contract: both an old claim and one from an ended turn read
“Update stale” beside an independently live page claim.

A draft review found that standalone export still stripped
`.lf-receipt`, a class the runtime no longer emits. It now removes
`.lf-msg-sending` from document and shadow roots; print, reachability,
and widget gesture guards use the same current class. Dead receipt
styling and vacuous negative selectors are removed. A positive
inline-thread export test sees “Working” live, proves it absent in print
and the standalone copy, and fails when the old export selector is
restored. The same test compares computed workflow styling inside a
widget shadow tree and the thread panel. Their shared face now lives in
`shadow.css`, so both seats use the same muted label and separator.

Verification: all 17 node IDs from the failed merge run pass on this
branch; the startup file passes 97/97, widget and visual-review files
185/185, export file 59/59, and the targeted option/conversation cases
pass after updating the scoped-class vocabulary. The everyday suite
passes 1,323/1,323, runtime folds 47/47, and pre-commit passes. The
exact pre-#960 Linux control failed 18 cases; its failed-node set
contains all 17 from #960’s merge run, proving none of those failures
was introduced by the alignment fix. Final-head PR lint, test, and
automated review pass.

> _This was written by Codex on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants