Repository navigation
Let the keyboard through a drawing's press claim, and leave a commented scroll box its tab stop - #962
Merged
Merged
Conversation
…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
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_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cionmainwas 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 —
compatibilityPressinskills/leaf/assets/runtime/composing/drawing.js, a document-capture listener thatpreventDefaults andstopImmediatePropagations — so a stroke lifting over a control does not press that control as well. The claim is lifted on a zero-delay timer scheduled atpointerup, 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+Enterin the composer the stroke had just opened reaches thetext.sendbinding, which calls the Send button's ownclick(); the claim ate it in the capture phase before any listener on the button ran. Send went on readingaria-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
claimPresslets a click carrying no click count through — "keyboard activation belongs to the control it is on" — and the selection guard inwidget-elements.jsspells the same test asev.detail === 0. Draw mode is the third such claim and had neither. So the reading moves to one name,pressIsKeyboardActivationinruntime/pointer.js, and all three press claims read it off that.A comment took a scrolling box's tab stop away
paintReachlends 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 forposition: fixedthe 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_standsread the status filter as a bareResolvedwhere #945 gave it a count. The assertions either side of it already readResolved (1); this one now readsResolved (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_pressholds 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_alonereads the same box with the note off and on. Without the fix the second reading istabindex="-1".uv run pytest testsis 1298 passed with five failures this sandbox produces on the unchanged tree —AF_UNIXand umask limits, intest_interact_layer.py,test_interact_session.pyandtest_website_server.py.npm run test:runtimeis 43 passed andpre-commitpasses on the changed files. Under--run-nightly,test_render_drawing.py,test_render_aim.pyandtest_render_pages.pyare 136 passed together,test_render_drafts.pyis 83 passed, and the three target cases pass on the current merge base. A pull request's owncireaches none of the nightly cases, so it says nothing about them.What this leaves on
mainMain 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-receiptreadings intest_render_startup.pyand the same element intest_render_anchors.py, which #933 removed in favour of the message workflow line, plustest_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.pyruns 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:text.sendbinding ransendBtnconnected, not disabled, the document's ownaria-disabledon SendfalsedispatchEvent(new MouseEvent('click'))reached itclaimDraftrefusedTwo 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 — apage.evaluateof the composer's state — made the run pass, which is the timer winning the race.