Repository navigation
Previews say only the keys that reach a control and take Escape first wherever they show; the shift watch credits a preview riding its target - #5638
Merged
Conversation
Two tests in test_key_scopes.py have failed on main since the preview owner landed. Both expected Escape to let go of a focused element, and on each element focus now shows a preview, which Escape puts away first. - test_a_layer_is_left_the_same_way_however_it_was_reached has failed since 4248d1f (#5614). Focusing the On me toggle or a margin marker shows the control's preview: focus a script or a walk places is a `move`, and preview.js shows a focus preview for a `move` the browser shows as `:focus-visible` (`onCurrentLocation` in preview.js). A standing preview is Escape's first step and the press does nothing else (keyboard/AGENTS.md, "Escape"), so focus stayed on the control where the test expected the page. - test_escape_passes_a_manual_popover_the_user_is_not_in has failed since 1d5249c (#5616), which made a link into the page preview the place it names. The fixture's `<a href="#para">` now shows that preview on focus, so the first Escape put the preview away and the link stayed focused. Both are behaviour #5614 chose: a preview standing over the page is Escape's first step (WCAG 1.4.13), and #5614 updated its own tests' Escape sequences the same way. So the tests change, not the code. Each now asserts that the preview stands, that the first Escape puts it away and leaves focus where it was, and that the second Escape takes the step the test protects: letting go of Leaf's own controls onto the page, and letting go of a link under a manual popover the user isn't in (#5582). tab_onto's docstring said a script's focus shows no preview. It shows one wherever the browser shows that focus, which these tests rely on, and the docstring now says so. > _This was written by Claude Code on behalf of max-sixty_
Three things #5614 (the preview owner) changed for users broke tests in main's push suite. Each is a gap between the rule #5614 wrote and the code that carries it, so the code changes and the tests that caught it stand as they were. - A thread card previewed its own name. preview.js counted every element wearing `data-lf-offer` as a control, but an empty `data-lf-offer` marks Leaf chrome that presses nothing (widget-elements.js, `PRESSABLE`). A thread card's accessible name is "Thread, " and its first words, which differ from its face, so a pointer resting anywhere in a card showed "Thread, Keep this review note…" over the words it repeats, and a `t` walk landing on a card already on the page showed the same preview, which took the Escape that lets go of the thread. `test_the_pr_walkthrough_exercises_an_inline_diff_thread` caught the walk. A control is now what `PRESSABLE` names, with buttons, links and summaries, so a card previews nothing of its own and a message keeps its age preview. `test_an_age_previews_its_clock_time_in_the_reader_s_zone` passed only through this: a pointer moved onto the words of the message the keyboard was on showed the card's name in place of the keyboard's clock time. A pointer there now reads nothing, so the keyboard's reading stands, which the test now asserts by its route. - A reaction's disclosure took one Escape more to fold. Enter on a reaction's glyph reveals its Undo and puts the user there with a `move`, which preview.js reads as the user's own move, so the Undo showed its preview and the first Escape only put that away. keyboard/AGENTS.md ("Escape") says focus a surface places as it opens costs no Escape. The disclosure now says it opened (`layerOpened`) before placing focus, as a layer does. `test_a_press_away_takes_back_a_reaction_s_offered_remove` and `test_a_token_press_marks_the_passage_and_its_revealed_remove_takes_it_back` caught it. - The command reference stopped running Resolve and Copy message. #5614 made `r` and Mod+C name the thread's Resolve and the message's Copy as their control, with no `run` of their own, so the key presses the control (bindings.js, `commandRun`). The reference decided which rows it can run by a second reading of a row that left that case out, so both rows became explanations. It now runs what the row's key runs, the control's press included. On the PR walkthrough exactly those two rows change. `test_the_reference_runs_available_commands_and_explains_the_rest` and `test_the_reference_keeps_local_search_state_on_one_lit_surface` caught it. held-news.js still said the notice's title carries each fact; its preview does now. > _This was written by Claude Code on behalf of max-sixty_
… away first These tests have failed on main since #5614 (the preview owner), each asserting behaviour #5614 replaced on purpose. Run singly, each passes at 62cb54f, the parent of #5614, and fails at 84d9186. The behaviour each protects stays asserted. - Leaf's own controls write no `title` on Leaf; their words are their preview. A held-news notice's whole label ("1 new reply · 1 message edited"), an All pages row's account, a diff row's cut path, an On me choice's words and the joined notice in Threads were read as a title, or as the accessible description a title gave. They are now read off the element's preview declaration (`expect_preview_words`) in test_thread_surfaces, test_summaries, test_render_read_state, test_agent_replies, test_render_application_boundary, test_status_and_news, test_render_controls, test_render_floating_panel, test_diffs and test_on_panel. A screen reader now hears a notice's label as its description while its preview stands on focus, not at rest. - Focus the user moves onto a control, by Tab, an arrow or a walk, shows its preview, and Escape's first step puts that away and does nothing else (keyboard/AGENTS.md, "Escape"). A script's `.focus()` stands in for such a move. Tests that expected one Escape to close the surface the control stands in now put the preview away first, with `put_preview_away`, a new helper in render_harness.py, and then assert the step they protect: test_live_samples, test_clusters, test_entries, test_render_reactions (three tests), test_rewrites, test_playgrounds and test_render_anchors. The sites #5614 and the key-scope commit wrote inline (test_command_routes, threads/test_navigation, test_key_scopes) use the helper too. test_playgrounds still fails, now on the step it protects: once the preview on the instruction's Copy is put away, the next Escape leaves the instruction popover open and only the one after closes it. That is a lost Escape for the user, not the test. Four journey tests, which run only nightly, read the same titles and descriptions: test_render_anchors, test_render_threads and test_website_server now pass; test_render_files passes the title step and fails earlier, where #5617 changed what an external file update does to the editor's gutter. A failure at line 743 of test_summaries.py, older than these PRs, hides the same notice description at line 769 in test_a_root_summary_keeps_thread_actions_outside_its_fold, which now reads the preview too. > _This was written by Claude Code on behalf of max-sixty_
…ncluded 6c78b62 made a control what `PRESSABLE` names, to stop a thread card previewing its own name. But `data-lf-offer` is a press marker, not a classification of controls: Leaf writes an empty one on its native ranges and selects too, as on thread cards. So the notification playground's slider stopped previewing "Concurrent release events", and the motion widget's Time slider and speed select stopped previewing at all. A control is now what `PRESSES` (control-selectors.js) names, the native and ARIA presses every gesture owner shares, ranges and selects among them, plus a custom control whose `data-lf-offer` names its press. A thread card, a message, a resolved group, a toolbar and status or layout chrome are none of these, so they still preview nothing of their own; a field the user types in previews nothing, as before; and an element's own `lfPreview` is read either way. On the two examples the previews match 84d9186 again in Chromium and Firefox. test_a_range_and_a_select_preview_their_names_and_a_thread_card_none holds both halves in both engines: under 6c78b62 the range shows no preview, and with the old `[data-lf-offer]` member back the `t` walk's landing on a thread card shows "Thread, Does the tray fit the north bracket?". test_an_age_previews_its_clock_time_in_the_reader_s_zone now also asserts that the keyboard's clock-time preview stays visible with its words while the pointer rests on the message: a hidden preview keeps its `data-lf-route`, so the route alone passed a preview that had gone. > _This was written by Claude Code on behalf of max-sixty_
…it from where the user is #5614 made a control's `aria-keyshortcuts` and its preview's key chips name every key any row binds to it, wherever the user stood. A screen reader announces the attribute with no context, so it promised keys that did nothing: an Inspect button inside a suggestion said `x y` while the user was on the suggestion, where only its digit `3` presses it, and it kept `x` after a nearer, unavailable declaration took `x` away (test_obligation_contextual_bindings_are_independent_of_widget_bindings). Every close control also said Escape, though Escape closes a surface only from inside it, and only once nothing inside it takes the step first. Both now come from one reading, the dispatcher's reachable bindings from where the user is (`availableCommandRoutes`), each under the control its row or route names (`reachingNow`, control-keys.js). The preview reads it as it shows; `paintCoreControls` writes the attribute each frame for the controls whose keys moved, and a reflection between frames reads the frame's keys rather than asking the dispatcher, which may be reading the register as it reflects. The command hints read the same reading for their faces, and their per-frame `aria-keyshortcuts` projection onto command buttons is gone, since the reading now covers every control. Exports paint the attribute too. Behaviour changes: - Resolve's preview and attribute say `r` only where `r` presses it, on the thread; with the caret in its reply, where `r` is typed, they say no key. - A focused control's own Enter and Space, the platform's press of any control of its kind, draw no chip; its attribute still names them. - A close control says Escape only where a row says Escape presses it, as the image viewer's does. The panel's, a margin card's and Page Map's close controls say no key; their Escape steps don't name the control, so the register can't say when Escape presses it. test_a_control_previews_its_word_and_every_key_that_presses_it asserted the old rule (a hover chip `r` with the caret in the reply); it now reads no key there and `r` once Escape leaves the reply for the thread. > _This was written by Claude Code on behalf of max-sixty_
With an auto popover open, a Tab onto a control in it shows the control's preview, and the first Escape puts the preview away. The next Escape did nothing, and only the third closed the popover (test_a_playground_opens_its_instruction_over_the_page, failing on main). While Escape has a step of Leaf's to take, the page holds a CloseWatcher (close-requests.js), which it reads in the repaint frame. A preview standing is such a step, so the frame after the Tab made a watcher above the popover's own. Putting the preview away asked for no frame, so the watcher stayed: the next Escape, which no Leaf row answered, went to it as a close request, its close found no step to take, and the popover's watcher heard nothing until the press after. Two changes close the gap. The preview asks for a frame whenever its Escape step comes or goes (`stepMoved`), as the register expects of any owner whose state moves a row's liveness, so a back gesture finds the watcher the frame after. And an Escape keydown reads the watcher again before anything hears the press, since a step can go between frames: two presses inside one frame, as a test's or a fast user's, still left the stale watcher, and the test failed one run in two with the frame alone. Letting the browser take the preview's Escape, the other fix tried, closed the panel's thread view under the preview, so the preview keeps its step. > _This was written by Claude Code on behalf of max-sixty_
…e chrome guard Since #5614, three tests that fold the floating panel with a focus preview on the Leaf button errored at teardown: the watch reported the preview's words moving without input as the Leaf button travelled with the fold. The preview is a popover shown with its target as `source` and placed by anchor positioning (`position-anchor: auto`, `calc(anchor(top) + var(--lf-preview-top))`), so the browser carries it exactly with the button. The watch credits a box with its anchor's scroll and its anchor's own animation only once it has proved the box anchored, and that proof failed three ways: - It found an anchor only by name. It now also finds a popover's implicit anchor, the `source` its `showPopover` or `togglePopover` call named, which no style or property shows afterwards. - It read an inset only with a pixel offset. It now also reads an offset from a custom property; a script changing that property moves the box by more than its anchor's travel, which stays reported. - It required every declaration that might be in force to be anchored, and the preview stands under the chrome guard's `all: revert-layer` (styles/chrome-guard.css) and its own base rule's `inset: auto`. The rollback branch now sets aside an `auto` where Typed OM says the inset isn't `auto`, as the first branch does. A patch in triage taught the watch the first two and passed its own tests, which had no guard; the rollback branch still read the base rule's `auto` and refused the proof. test_native_anchor_follows_owned_translation_but_not_an_independent_offset gains the preview's shape, a guarded popover on its implicit anchor carried by its source's translation, clean and with an independent margin that still reports; test_native_anchor_scroll_retains_local_motion_proof gains it carried by its anchor's scroll, clean and with its offset changed by script. Both clean cases fail on the watch before this change and on the triage patch alone. test_threads_holds_a_row_that_joins_or_moves_behind_a_notice still errors: there the preview's anchor, a Threads row, stays put, and the preview itself moves 330px to clear the notice that news draws under it. > _This was written by Claude Code on behalf of max-sixty_
…that opens it Review of 362e4de found that the watch's `showPopover` and `togglePopover` wrapper recorded the `source` of every call, including one made while the popover stood open, which the browser ignores. Shown with `source: A` and then asked again with `source: B`, a popover stays anchored to A, but the watch took B as its anchor. Moving B by 130 px then excused an independent 130 px move of the popover's control and text, which `main` reported. The wrapper now records the anchor only when the call actually opens the popover, and leaves the kept anchor alone when the call does nothing or throws. `test_native_anchor_follows_owned_translation_but_not_an_independent_offset` gains that case (`reshown`): it fails with the old wrapper, and the move is reported again. > _This was written by Claude Code on behalf of max-sixty_
…follows it at once Two gaps in the preview's Escape step, found in review of 68a6772. Inside a modal dialog, as the image viewer is, a preview of its Close lost its first Escape, which closed the viewer and the preview together, in Chromium and Firefox; `main` does the same. The preview shows inside the topmost modal, but its scope had no root, so it counted as rooted at the document, and the modal's floor (keyboard/dispatch.js, `stack`) dropped it from the stack. The scope is now rooted at the preview itself, so it stands wherever the preview shows. `test_a_preview_inside_a_modal_takes_escape_before_the_modal` fails in both engines without this. The close watcher that 68a6772 kept in step by re-reading it on every Escape keydown ran its window listener ahead of `back_gesture`'s blocker, so the back-gesture tests got that refresh from a keydown real Back never makes. The listener is gone. The preview reads the watcher again at once whenever its step comes or goes (`stepMoved`, now calling `paintCloseRequests` rather than asking for a frame), which holds for a key and for Back alike, and inside one frame. `test_a_back_gesture_after_a_preview_put_away_closes_the_popover_under_it` is the back gesture's form of the playground test. It and the playground test fail with `stepMoved` disabled, and pass with it. `test_the_register_is_the_only_way_a_key_enters_the_runtime` drops the listener it had gained. > _This was written by Claude Code on behalf of max-sixty_
In `test_threads_holds_a_row_that_joins_or_moves_behind_a_notice`, a focus preview stood over Threads when news drew the notice of a joined thread where it stood. Its room no longer held a line clear of controls, so it stood afresh and carried its words 330 px to the right with no input from the user, which the shift watch reported. browser/AGENTS.md, "The page holds still under the user's aim", is the written guarantee, so the decision in review was that a focus preview keeps its place. It takes no pointer, so the notice beneath stays clickable. A focus reading standing for the same target now stays where it stands, over the control, wherever its room still holds a line against the window and what it is about; it fits its words to the clear room where that holds a line, as before. A pointer's preview, which takes the pointer, still stands clear. The preview's header records the decision, and the AGENTS.md spec now says a preview covers no target beside it as it shows. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
previously approved these changes
Nov 7, 2026
…r rests on it Review of 4bbf83f found that a focus preview holding its place over a control that arrived beneath it left the control's label unreadable, in both engines. Pointing at the control didn't uncover it either: a focus preview stays as the pointer changes targets, and a plainly labelled button gives no preview of its own to take its place. A click still reached the button; `main` moved the preview clear of it. Pointing at the covered control is a new aim at it. The focus reading now gives way there: it stays where it stands but out of sight (`data-lf-yields`) while the pointer rests on a control its placement keeps clear of and its box covers, and it shows again in the same place once the pointer leaves that control. Hiding it, rather than standing it afresh clear of the control, moves nothing under a hover: an earlier try here moved the words 94 px and the shift watch reported it. While it is out of sight it is no step of Escape's. A pointer over something it doesn't cover leaves it standing. `test_a_focus_preview_gives_way_to_a_control_it_holds_over_while_pointed_at` fails in both engines without this and passes with it. The decision record in `preview.js`'s header says so. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
previously approved these changes
Nov 7, 2026
…e pointer rests on it" This reverts commit d5f79fe.
…er it" This reverts commit 4bbf83f.
…notice news draws under it With the hold-still and give-way rules reverted, a focus preview over a Threads row stands afresh clear of the notice that news of a resolved thread draws where it stood, as on `main`, moving its words 330 px, which the shift watch reports. That move is the preview's deliberate answer to content arriving where it stood. A notice arriving exactly under a preview is a rare path, which may move the preview rather than carry a mechanism of its own (SOUL.md, "Keep the foundation small and extensible"), and the mechanisms tried for it here grew a lifecycle of their own. `test_threads_holds_a_row_that_joins_or_moves_behind_a_notice` now asserts that the rows hold still behind that notice and that the preview stands clear of it. It consumes the preview's move by its preview nodes, as other tests consume a deliberate move, so the watch still reports any row that moves. The watch itself is unchanged. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 7, 2026
This was referenced Nov 7, 2026
Closed
leaf-agent
added a commit
that referenced
this pull request
Nov 8, 2026
…ne (#5696) This removes four pieces of code nothing reads and corrects comments, a test docstring, a note and an eval rubric that name things since renamed or removed. The one change that affects a result is the `shared-contribution-actions` rubric: it accepted `className`, an entry option the runtime has refused since #5329, and failed answers that use `action` or `voice`, which `ENTRY_OPTIONS` accepts. It now lists exactly the entry options, and a runtime test (`tests/runtime/contribution-entry-schema.test.mjs`) fails when the rubric's options, behaviors, tones, ranks or states differ from `CONTRIBUTION_ENTRY_SCHEMA`, which now also lists the entry options under `options`. Nothing else changes at runtime. Dead code: - `buttonReadings` / `buttonCommand` in `keyboard/scopes.js`. The map was still filled on every button reflection, but #5638 moved its two runtime readers (command hints and control keys) onto `reachingNow`. Five asserts in `tests/runtime/command-controls.test.mjs` read it. Each of those tests still asserts the button's `aria-disabled`, and where it presses the button, what the press runs. - `publishing()` on the application in `framework/application.js`, which has no caller. - A second `aria-label` write on the command reference's close control. `closeControl` already writes that label through `roleElement`. - `PredecessorReading.committed_active` in `validation/source_history.py`, which no reader uses. The local variable of that name still picks the predecessor. Stale references: - `undo.js` says a Resolve offers Undo, but since #5630 a Resolve offers Undo only when it leaves no thread open. - `traffic.js` says `sends` and `acked` count only `/api/event`, but they also count `/api/media` uploads. - `lf-call-diff.js` names `setChildren`; rows are placed with `setChildLists`. - `margin-layout.js` and `annotation-theme.css` name `seatRows`, which is now `seatRow`. - Three `chrome.css` comments name `foldOut` and `msgNode`, which no longer exist, or describe a rule that no longer follows them. - A `tests/browser/margin/test_entries.py` docstring names `syncInlineOffers`, which no longer exists. - `notes/feeds/README.md` linked the closed #4058 as open work. It now points at the `notes/threads.md` section that issue's closing comment named. Verified locally: - `pnpm run test:runtime`: 898 pass. The new test fails when `className` is put back in the rubric. - `tsc -p browser/types/tsconfig.json`. - `pnpm run check:browser` and `pnpm run test:browser`. - `tests/model/test_interact_document.py` and `test_interact_anchors.py`: 308 pass. - pre-commit on the changed files, including knip, eslint and dependency-cruiser. Found by the nightly survey and review of recent commits. Two findings are left out on purpose: - `data-lf-go-to-active` has lost its only stylesheet reader (#5637), but ten tests and `dev/leaf_dev/states.py` use it as the signal that the sequence is armed. - The developing-leaf glossary still names `seatRows`. It sits under `.claude/`, which needs the control-plane owner's approval. --------- Co-authored-by: leaf-agent <[email protected]>
This was referenced Nov 8, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 9, 2026
…reviews take Escape first inside modals (#5734) Three browser tests have failed on main since #5638. In each, a preview was still standing when the test pressed Escape, and #5638 deliberately made a standing preview take Escape's first step everywhere, inside a modal dialog included ("While a preview stands, Escape's first step puts it away"). The tests now let that step happen; the runtime is unchanged. - **`preview_parts`** (`tests/render_harness.py`) moved the pointer off its target and returned while the pointer's preview still stood for its 200 ms dwell. In the command reference, a modal, the next Escape put that preview away and left the dialog open. The helper now waits for the preview to go, which is what its docstring already promised ("the next reading is a new one"). This fixes `test_slash_finds_page_text_without_a_target_kind` and `test_tab_opens_the_comment_picker_with_individual_emoji_buttons`. - **`test_an_obligations_pick_stays_a_place_to_stand_after_the_answer`**: the focused pick now shows a focus preview naming its `1` key, since #5638 draws every key that reaches a control from where the user stands. At #5638's parent this preview said nothing and didn't show. The test now puts the preview away with `put_preview_away` and checks the pick keeps focus. It then asserts, as before, that the next Escape lets go onto the page. The user-facing behavior these tests protect is unchanged. Once no preview stands, Escape closes the command reference and lets go of an answered pick. Verification: all three failed on main `2f47830e4` and pass with this change. The other 20 tests that call `preview_parts`, including the journey `test_the_feature_gallery_exercises_its_core_journeys`, also pass. One of them, `test_z_names_what_it_takes_and_how_long_ago_in_a_fresh_tab`, errors at teardown with `unchanged write: hidden on div.lf-fp-quick` on main without this change too. That error is tracked in #4745. Closes #5703 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Nov 9, 2026
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.
This fixes the causes left on
mainafter #5614 and #5617 that #5629didn't cover, and two gaps review found in the preview's Escape step. The
file editor's gutter finding was not caused by #5617 (see Left open).
Keys a control says
#5614 made a control's
aria-keyshortcutsand its preview's key chipsname every key any row binds to it, wherever the user stood. A screen
reader announces the attribute with no context, so it promised keys that
did nothing. The Inspect button in
test_obligation_contextual_bindings_are_independent_of_widget_bindingssaid
x ywhile the user was on the suggestion, where only3pressesit, and kept
xafter a nearer, unavailable declaration took it.Both now come from one reading: the dispatcher's reachable bindings from
where the user is (
availableCommandRoutes), each under the control itsrow or route names (
reachingNow,keyboard/control-keys.js). Thepreview reads it as it shows.
paintCoreControlswrites the attributeeach frame for the controls whose keys moved. The command hints read the
same reading for their faces, and their separate per-frame
aria-keyshortcutsprojection is gone. Exports paint the attribute too.Behaviour changes against
main:ronly whererpresses it, on its thread. With thecaret in the reply, where
ris typed, it says no key.control of its kind, draw no chip. Its attribute still names them.
the image viewer's does. The floating panel's ✕, a margin card's and
Page Map's say no key, since their Escape steps don't name the control,
though Escape from inside those surfaces closes them. The panel field's
Close, added in Offer each moment's next press at the panel field's end #5630, keeps its own
esc.test_a_control_previews_its_word_and_every_key_that_presses_itassertedthe old rule (a hover chip
rwith the caret in the reply). It nowexpects no key there and
ronce Escape leaves the reply for the thread.The preview's Escape step
While a preview stands, Escape's first step puts it away. Three gaps
broke that.
Inside an open popover. In
test_a_playground_opens_its_instruction_over_the_page, after Tab showedCopy's preview inside the instruction popover, the first Escape put the
preview away, the second did nothing, and the third closed the
instruction. While Escape has a step of Leaf's to take, the page holds a
CloseWatcher (
keyboard/close-requests.js), which it reads in the repaintframe. A standing preview is such a step, so the frame after the Tab made
a watcher above the popover's own. Putting the preview away asked for no
frame, so the stale watcher took the next Escape's close request and
found nothing to do. The preview now reads the watcher again at once
whenever its step comes or goes (
stepMovedcallspaintCloseRequests).That holds for a key and for Back alike, even with two presses inside one
frame.
Back. An earlier version of this branch refreshed the watcher from an
Escape keydown listener, which ran ahead of
back_gesture's blocker, sothe back-gesture tests got a refresh real Back never makes. That listener
is gone.
test_a_back_gesture_after_a_preview_put_away_closes_the_popover_under_itis the back gesture's form of the playground test. It and the playground
test fail with
stepMoveddisabled, and pass with it.Inside a modal dialog. A preview of the image viewer's Close lost its
first Escape, which closed the viewer and the preview together, in
Chromium and Firefox;
maindoes the same. The preview shows inside thetopmost modal, but its scope had no root, so the modal's floor
(
keyboard/dispatch.js,stack) dropped it. The scope is now rooted atthe preview itself.
test_a_preview_inside_a_modal_takes_escape_before_the_modalfails in both engines without this.
Letting the browser take the preview's Escape, tried before, closed the
panel's thread view under the preview, so the preview keeps its step.
A preview standing clear of news drawn beneath it
In
test_threads_holds_a_row_that_joins_or_moves_behind_a_notice, thelanded row's focus preview stood where news then drew the notice of a
resolved thread, and the preview stood afresh clear of it, moving its
words 330 px, which the shift watch reported. That move is the preview's
deliberate answer to content arriving where it stood, as on
main: anotice arriving exactly under a preview is a rare path, which may move the
preview rather than carry a hold of its own (SOUL.md, "Keep the foundation
small and extensible"). The test now asserts that the rows hold still
behind the notice and that the preview stands clear of it, and consumes
that one move by its preview nodes, as other tests consume a deliberate
move; the watch itself is unchanged for everything else.
The shift watch and a preview riding its target
Three tests that fold the panel with a focus preview on the Leaf button
errored at teardown. The browser carries the preview exactly with the
button (
position-anchor: auto,showPopover({source})), but the watchcouldn't prove the preview anchored:
sourceof theshowPopoverortogglePopovercall that opened the popover, and onlythat call, since one made while the popover stands open leaves the
browser's anchor as it was;
from a custom property, and a script changing that property still
reports;
The preview stands under the chrome guard's
all: revert-layerand itsown
inset: auto, and the guard's rollback branch read thatautowithout asking Typed OM whether the inset is still
auto. This thirdgap is why the implicit-anchor patch from triage passed its own tests,
which had no guard, and left the finding in place.
The watch's anchor tests gain the preview's shape: a guarded popover on
its implicit anchor, carried by its source's translation and by its
source's scroll, clean and faulted, and one asked to show again with
another
sourcewhile open, whose independent move must still report.The clean cases fail on the old watch and on the triage patch alone, and
the re-shown case fails with a wrapper that records every call's source.
Left open
bring the close watcher up to date. With an
lf-draftin an autopopover, two quick Escapes swallow the second, on
maintoo. Thewatcher's sync belongs with any change to the step Escape has available,
as the preview's now is (
stepMoved).test_file_editor_saves_quietly_and_preserves_inflight_editsfails at line 142 intermittently, before A chart says the value under the pointer, focus or a held finger #5617 as well as after:
locally it reported the gutter in 2 of 4 runs at
ef6c01ed8thatreached that line, 0 of 2 at
84d918681, 1 of 4 onmainand 0 of 5on this branch. Right before the external write the gutter matches its
lines. The watch sees the two frames after it, where CodeMirror draws
the gutter rows 16 px tall beside 24 px lines before its measure
corrects them. So A chart says the value under the pointer, focus or a held finger #5617 has no hunk to bisect to, and the fix belongs
in how the editor applies an external update, or in what the watch
counts as content that update replaces.
test_tab_at_a_control_scrolled_away_goes_on_in_the_column_the_pointer_is_in[firefox_browser-input]fails intermittently on
mainas on this branch, run alone 1 time in 4on
mainand 1 in 3 here.Checks
pnpm run check, pre-commit on the changed files, and each changed ornearby browser test by node id in Chromium and Firefox where it runs in
both: every test asserting
aria-keyshortcuts, the preview's placement,focus, Escape, modal and back-gesture tests, the close-request tests, the
playground, the fold tests, the Threads test and the watch's anchor tests.