Repository navigation
Use native details for thread accordion - #905
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
Two of the behaviours this hands to the browser don't survive the handover, and both of the tests that were relaxed in the same diff are the ones that would have caught them. I reproduced each against this branch.
Closed thread titles leave the tab order. ThreadView keeps this.node.tabIndex = -1 on the card so card.focus() can land on it — but the card is now a <details>, and an explicit tabindex on a details takes over its summary's tab stop. On the 32-thread panel fixture, Tab from the open card's last control skips the next six titles, lands on two run headings and leaves the list after 7 stops out of 39 reachable controls; only the open card's own title is reachable. Removing the attribute from the live cards restores the full 39-stop walk, so the mechanism is the attribute, not the disclosure.
That is what forced test_no_focus_mark_the_panel_draws_on_a_walk_down_its_list_is_cut_or_covered from stops == tabbable down to stops > 1, and it leaves runtime/keyboard/CLAUDE.md's new sentence — "Native focus order moves from a title through its open conversation" — false for every closed title, with the Arrow/Home/End routes that used to carry them gone. The card is holding two jobs a <details> cannot hold at once: the programmatic focus target the landing code and the tests address, and the native disclosure whose summary owns the tab stop. Separating them — a .lf-thread focus box keeping tabindex="-1" with the <details name="threads"> inside it — leaves both working. Whatever the shape, the exact-count assertion should come back, counted with the closed-disclosure predicate this PR already wrote in reachability.js.
A resolving card empties itself in the frame of the press. settleThread's optimistic landing focuses the neighbouring card; its focusin calls revealNavigation, which sets open = true; the exclusive name="threads" group then closes the card that is folding. Read at the fold's first held frame, going.open is false and the ✓ the reader just pressed reports checkVisibility({checkOpacity: true}) === false — so the fold plays 181px of blank space under a summary row rather than the box the reader pressed in.
That is the contract chrome.css states beside .lf-going ("the clip the fold needs and the outcome said in paint"), it is the assertion deleted from test_a_resolved_thread_gives_its_room_back_as_motion, and it is what the PR body records as no longer promising "that the Resolve outcome stays visible through the middle of that fold". The old controller said it explicitly (selected: folding ? view.expanded : …) and nothing replaces it: a card on its way out has no way to decline the browser's exclusivity. Taking it out of the group where folding is already decided restores it — suggestion inline; with that one line, the deleted assertion passes again and all 97 cases in tests/test_render_conversations.py are green.
How each reading was taken
Everything below ran on this branch's merge ref with the tree otherwise unmodified.
Tab order — inside test_no_focus_mark_…, after the existing t/T walk, printing document.activeElement after each Tab:
kept as-is: SUMMARY(open) → BLOCKQUOTE.lf-quote → .lf-resolve → TEXTAREA → .lf-thread-send
→ BUTTON.lf-group → BUTTON.lf-group → (focus outside .lf-threads) 7 stops
after removeAttribute('tabindex') on every .lf-thread:
SUMMARY(open) → …4 controls… → SUMMARY → SUMMARY → … all 32 titles 39 stops
The list held 32 cards, 1 open, 0 hidden; 39 elements passed tabIndex >= 0 && checkVisibility(), and the closed-disclosure predicate from reachability.js admits the same 39, so the exact count is still the right assertion.
Fold — reinstating the deleted block in test_a_resolved_thread_gives_its_room_back_as_motion fails with the outcome at 232–260 against a clip of 191–226; probing the same frame reports {open: false, oVisible: false} for the card and its .lf-resolve. Adding view.node.name = folding ? "" : "threads"; above the touched line in thread-list-view.js passes that block and test_a_folding_thread_keeps_the_card_under_the_pointer_put, and a full uv run pytest tests/test_render_conversations.py run is 97 passed.
Not a finding: the premise assertion dropped from test_a_render_arriving_mid_fold_keeps_the_place_the_fold_is_holding fails now because the pointer lands in the 16px margin between the preceding card and the fold rather than on a card — the contract the test names still holds. It is worth re-aiming rather than leaving the docstring describing a mechanism nothing demonstrates.
| export function clippedControls() { | ||
| const out = []; | ||
| for (const el of document.querySelectorAll("[data-lf-offer]")) { | ||
| // Chromium reports descendants of a closed details as visible even though only its |
There was a problem hiding this comment.
Chromium reports the opposite: a control inside a closed <details> fails checkVisibility({checkOpacity: true}), which is exactly the call on the line below, so that test already skips them. What the new clause actually changes is the closed outlet <details data-lf-offer> element itself, which is reachable through its own summary. Worth either dropping the clause or restating what it is for, so the next reader does not take the browser claim at face value.
leaf-agent
left a comment
There was a problem hiding this comment.
The three findings from the last round are fixed, and I reproduced each fix on this head: the Tab walk covers every control the list holds again under the restored exact-count assertion, and the name handoff keeps the Resolve outcome painted through the fold. Two things stand in front of an approval.
t / T onto a widget-outlet thread leaves the reader where they were. focusThread takes :scope > summary whenever one exists, but an outlet card's only summary is .lf-conversation-summary, which carries hidden until the thread resolves — so .focus() on it does nothing, and the tabindex="-1" details root it replaced is never reached. Measured on lf-diff's outlet with the panel closed: document.activeElement is BODY before the press and BODY after it, against a card reading {open: true, summaryHidden: true}. Every route that asks for focus: "thread" while Threads is shut goes through this — the walk in navigation.js, g onto an inline thread, the accessible comment note. Suggestion inline; with it test_the_pr_walkthrough_exercises_an_inline_diff_thread passes again.
What produced it is worth a second line. The constructor branch that chooses details vs div, and name vs tabIndex, already knows where each surface's focus stop is; focusThread re-derives that from the DOM rather than being told, and gets one of the three surfaces wrong. A renderedness test is the small repair, and having ThreadView state the node it hands focus to is what stops the two readings disagreeing again.
28 nightly cases across five files still expect the card root to hold the focus. The branch migrated tests/test_render_conversations.py and no other file, and nightly is skipped on a pull request — so test is green here while main's run would not be. Each of the 28 passes on the merge base b7bd0215 and fails on 537b248b, same command, same machine.
Most are the swap this PR already made twenty-odd times in test_render_conversations.py — > .lf-thread-summary, or the new focus_panel_thread helper. A handful instead call card.focus() and then press a control inside the card, and those time out rather than mis-assert: a panel card has no tab stop, so the focus never lands and nothing opens the disclosure. test_a_key_on_screen_is_a_key_that_works is the clearest of them. I'm happy to push that migration as a commit if you'd rather not walk it by hand.
The 28 cases, and how they were read
uv run pytest <files> -q -n 4 -p no:randomly, run on this branch's merge ref and again in a worktree at the merge base, same selection both times.
tests/test_render_navigation.py, whole file: 21 failed / 128 passed here, and all 21 green at the base.
test_a_comments_quoted_passage_is_in_the_keyboard_journey
test_a_key_on_screen_is_a_key_that_works
test_a_label_press_keeps_the_controls_keyboard_standing
test_a_layer_is_left_the_same_way_however_it_was_reached
test_a_panel_only_thread_walk_opens_and_leaves_one_surface
test_c_in_a_thread_reaches_that_threads_own_box
test_entering_a_covering_workspace_dismisses_an_existing_popover
test_focus_paint_releases_every_text_box_crossed_before_a_frame
test_global_destinations_switch_from_a_covering_workspace
test_holding_a_key_repeats_only_where_the_press_is_a_walk
test_r_resolves_a_thread_from_wherever_the_reader_stands_in_it
test_r_resolves_the_focused_thread_while_x_is_unbound
test_reference_accepts_native_popover_dismissal_across_modal_entry
test_the_ask_walk_measures_from_chrome_only_where_the_chrome_holds_an_ask
test_the_g_chord_reaches_named_surfaces_and_visible_targets
test_the_pointer_over_a_comment_lights_the_passage_it_is_about
test_the_pr_walkthrough_exercises_an_inline_diff_thread
test_the_reference_runs_available_commands_and_explains_the_rest
test_the_thread_walk_stays_inline_until_threads_is_opened
test_the_way_out_of_a_thread_walk_is_as_deep_as_the_way_in
test_what_the_reader_put_on_after_the_panel_comes_off_before_it
-k thread over test_render_aim.py test_render_margin.py test_render_projection.py test_render_controls.py test_render_anchors.py: 9 failed here, 2 at the base. The seven this branch owns —
tests/test_render_anchors.py::test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline[dark]
tests/test_render_anchors.py::test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline[light]
tests/test_render_controls.py::test_covering_threads_keeps_the_reader_and_their_work_inside
tests/test_render_margin.py::test_a_marker_pressed_with_threads_open_is_left_by_its_thread
tests/test_render_margin.py::test_a_thread_can_be_answered_in_the_margin_without_opening_threads[1440]
tests/test_render_margin.py::test_a_thread_can_be_answered_in_the_margin_without_opening_threads[1920]
tests/test_render_projection.py::test_a_thread_question_asks_until_answered
— and the two that are red at the base as well, so not this branch's:
tests/test_render_margin.py::test_a_forced_inline_thread_keeps_its_control_inside_the_margin_budget
tests/test_render_margin.py::test_a_thread_beside_its_cluster_takes_the_room_to_the_visible_edge
That second selection is -k thread rather than the five files whole, so 28 is a floor.
The outlet reading, taken inside test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline by printing the focus path either side of the t press:
before=['BODY.'] after=['BODY.']
card={'open': True, 'summaryHidden': True, 'summary': 'lf-conversation-summary lf-ui'}
With the inline suggestion applied that test gets past the press and stops at its next line, expect(panel_thread).to_be_focused(), which is one of the 28; test_the_pr_walkthrough_exercises_an_inline_diff_thread passes outright.
leaf-agent
left a comment
There was a problem hiding this comment.
The 28 nightly cases are migrated and green and the t/T route onto an outlet thread lands again; I reproduced both. A defect I had not reached before is in the way of an approval, and it is what the two box-sizing lines this diff adds are each half of.
The chrome layer's box-sizing reset stops at ::details-content, so every descendant of a panel card is now content-box. chrome.css states the layer's reset as .lf-ui { box-sizing: border-box; } plus .lf-ui *, .lf-ui *::before, .lf-ui *::after { box-sizing: inherit; }. box-sizing does not inherit on its own, so that inherit has to run through every box between the .lf-ui dialog and the widget. A panel card is a <details> now, and Chromium puts ::details-content between it and its slotted children; .lf-ui * does not match a pseudo-element, so that box takes the UA's content-box and everything below it inherits that. Measured on the same fixture either side of the merge base: .lf-msg, lf-ask, lf-options and lf-options-done all read border-box at b7bd0215 and content-box here.
Where it shows: the option rows of a thread Ask go from 383px to 433px — 49px past a group whose lf-options rule carries overflow-x: hidden, so they are clipped. That is the failure theme.css's own note beside the row rule already names ("a row running past its group still clips"). The box-sizing: border-box added to .lf-thread-summary and to .lf-done are two visible symptoms of this break rather than the break, and every other box inside a card is left flipped.
The repair is the reset's missing companion, beside the existing pair in chrome.css:
.lf-ui *::details-content { box-sizing: inherit; }With that one line the chain reads border-box again, the rows return to 383px, and tests/test_render_conversations.py with tests/test_render_gate.py is 211 passed. Happy to push it as a commit if you'd rather not hand-place it. Worth knowing it also reaches the outlet card, which has been a <details> since before this branch — so the break existed on one surface already, and what this change does is take it to every thread in the panel.
The assertion that would have caught it is the one this diff rewrote. test_a_thread_question_asks_until_answered read stretched: Math.abs(a.width - b.width) < 1 — the Done press as wide as the option row above it — and now reads fills: Math.abs(owner.width - b.width) < 1, the press against its own parent. The old reading holds at the merge base, where row, press and lf-options-done all measure 383px; it fails here only because the rows overflow, and the replacement passes with them clipped. Suggestion inline; with the companion rule above, stretched is true again and gap is still 0.
Separately, for the description rather than the diff: the "UX changes" list credits this branch with "opening the modal Command Reference dismisses the Versions auto-popover through the browser's native top-layer rules". That behaviour is already on main — test_the_versions_menu_suspends_the_pages_own_keys fails at b7bd0215 on its old expect(menu).to_be_visible(), with none of this branch's code present. The test repair in b3a8c7e6 is welcome and fixes a red nightly case, but the squash message shouldn't claim the behaviour.
How each reading was taken
Everything below ran on this branch's merge ref, and again in a worktree at the merge base b7bd0215, with the tree otherwise unmodified.
The chain, read from .lf-done upward inside the panel on REPLY_HOST_PAGE + THREAD_ASKS, after opening the #tq-set card:
base this branch
button.lf-btn.lf-done.lf-ui border-box border-box (the declaration this PR adds)
lf-options-done.lf-ui border-box content-box
lf-options border-box content-box
div.lf-reading-content border-box content-box
lf-ask.lf-reading border-box content-box
div.lf-msg-body border-box content-box
div.lf-msg.agent border-box content-box
details/div .lf-thread-compact border-box border-box
dialog.lf-ui.lf-thread-panel border-box border-box
The widths inside #tq-set, group at 385px on both:
base this branch with the companion rule
lf-option#tq-logs 383 433 383
lf-option#tq-metrics 383 433 383
lf-options-done 383 383 383
433 against a group whose right edge is at 1183 puts each row's right edge at 1232, inside overflow-x: hidden.
Every token the row rule reads is identical on both sides — --lf-row-gap: 8px, --lf-pick-col: 17px, padding-inline-start: 50px, border-spacing: 8px 0px, computed width: 383px, display: table. What differs is the inherited box-sizing, which turns the 50px inline padding from inside the row's 383px into 50px outside it.
Suite readings, all on this branch's merge ref:
tests/test_render_navigation.pywhole file,-q -n 4 -p no:randomly: 149 passed. The same command atb7bd0215is also 149 passed. (A first run here reportedtest_generated_hints_follow_the_page_while_it_movesandtest_inflight_native_paging_hides_hints_until_the_scene_settlesfailing; neither reproduced on a second run of the identical command, and both pass alone. Not this branch's.)tests/test_render_aim.py tests/test_render_margin.py tests/test_render_projection.py tests/test_render_controls.py tests/test_render_anchors.py -k thread: 50 passed, 2 failed. The two aretest_a_forced_inline_thread_keeps_its_control_inside_the_margin_budgetandtest_a_thread_beside_its_cluster_takes_the_room_to_the_visible_edge, red at the merge base as well and under repair in #903 and #910.- With
.lf-ui *::details-content { box-sizing: inherit; }applied:tests/test_render_conversations.py tests/test_render_gate.py -q -n 4 -p no:randomlyis 211 passed, and the#tq-setreading is{lastRow: 383, done: 383, owner: 383, gap: 0, stretched: true, fills: true}.
Not a finding, recorded so the next reader does not re-derive it: focusThread's :scope > summary:not([hidden]) is correct for all three surfaces — the panel's .lf-thread-summary is always rendered, the outlet's .lf-conversation-summary carries ?hidden=${!model.resolved}, and the margin/inline div has no summary at all. And the manual scroll compensation the old #select did is genuinely replaced by the browser's own anchoring: pressing a title twelve cards down while an early card is open leaves the pressed row at the same 484.5px.
leaf-agent
left a comment
There was a problem hiding this comment.
6c852536 turns the gate green — at 0f1e1d38 the everyday suite was red on tests/test_chrome_contracts.py::test_a_thread_keeps_submit_in_its_field_and_resolve_with_its_metadata, all four parameters, assert 16 == 0 against the card's own scrollWidth - clientWidth, and the restored declaration is 4 passed. The earlier round's findings are fixed too and I resolved those threads.
What stands in front of an approval is why that declaration was needed at all, because the branch now carries two of them for one rule.
.lf-ui *, .lf-ui *::before, .lf-ui *::after { box-sizing: inherit; } only reaches a box through an unbroken chain of boxes, and a <details> inserts two that the chain has to cross: ::details-content around the slotted content, and the summary's own slot in the details' UA shadow tree. The first is selectable — that is the companion this branch added last commit — and nothing selects the second, which is why .lf-thread-summary needs border-box spelled on itself. Both declarations exist to say border-box inside a layer whose root already says border-box, and the next <details> the chrome grows starts this over: the symptom arrives as a geometry assertion several boxes away from the rule that produced it, which is how this one arrived.
The layer can state the value instead of threading it through boxes it does not own. Suggestion inline: one line, and both patches stop carrying the reset — ::details-content needs no companion and .lf-thread-summary's own declaration becomes redundant (worth deleting in the same change; I left it out of the suggestion so applying that alone is still correct). Happy to push it if you'd rather not hand-place it.
How the readings were taken
Everything ran on this branch's merge ref, and again in a worktree at b3a8c7e6, with the tree otherwise unmodified.
uv run pytest tests/test_chrome_contracts.py::test_a_thread_keeps_submit_in_its_field_and_resolve_with_its_metadata -q -n0 -p no:randomly
b3a8c7e6 4 passed
0f1e1d38 4 failed assert 16 == 0 (short["overflow"])
6c852536 4 passed
The chain read from the open panel card at 0f1e1d38, which is what the 16px was:
SUMMARY.lf-thread-summary content-box 417
DETAILS.lf-thread-compact lf-thread border-box 403
LEAF-THREAD-LIST.lf-threads border-box 419
DIV.lf-threads-frame border-box 419
DIALOG.lf-ui lf-thread-panel border-box 420
thread.scrollWidth 417, thread.clientWidth 401 -> 16 = the summary's 8px + 8px
summary.matches('.lf-ui *') true
no box-sizing declared for it in the tree (no `content-box` anywhere in the CSS)
a fresh <div> appended to the same <details> border-box
getComputedStyle(thread, '::details-content') border-box
The summary matches the reset and reads content-box under a <details> that reads border-box, so what inherit resolves against there is not the <details>.
With .lf-ui * stating border-box and the ::details-content line dropped, in place of both patches: tests/test_chrome_contracts.py tests/test_render_conversations.py tests/test_render_gate.py plus test_a_thread_question_asks_until_answered, 398 passed. Two cases in test_interact_layer.py, which I ran alongside them, fail for reasons outside the tree: this runner restores instruction files from an older base, so its scripts/CLAUDE.md is missing the agentic-mermaid row that both main and the merge ref carry, and the umask case reads the sandbox's own umask.
…ancestry # Conflicts: # tests/test_render_anchors.py
Opening a thread in the Threads panel can scroll the thread you opened off the top of the list. Press a title, the named `<details>` group closes the card that was open, and if that card is above the press every title below it comes up by its whole open height — the pressed one among them. From the first visible row of a scrolled panel the title lands above the scrollport and the panel answers the press with the middle of a message and no title over it. The list already holds one card's viewport position through every reflow its renders drive (`takeScrollHold`/`finishScrollHold`, leading with the card under the pointer and then the card holding focus). #905 made native disclosure a third producer of that same reflow — the only one the browser performs without a render — and it took no hold, so what held the place was Chromium's own scroll anchoring, which keeps whichever node it picked rather than the one the reader acted on. The first commit adds the hold to that third reflow and states in the module header and the ownership row in `skills/leaf/assets/CLAUDE.md` that the hold belongs to the reflow rather than to a call site, so a fourth producer is not missed the same way. `toggle` arrives with the reflow already in the geometry, so the hold is taken on the way down — in a capture-phase listener on the list, while the summary's activation is still a pending default action — and corrected on the frame that paints it. That makes the hold the later of two writers inside a single press, and the second commit settles the order between them. The press also lands the thread out from under the pinned run heading at `pointerup`, and `land` already states which wins — "the landing is a correction under the gesture, and whatever the gesture then asks for is later and wins" — but a `scrollTop` write **cancels** a smooth scroll rather than composing with it, so the animated landing was dropped rather than superseded and the title stayed exactly where the heading was covering it. The press's correction is therefore instant, which is also what lets the hold take its reference from where the landing put the title rather than from the band it was still leaving. The `focusin` landing has no successor inside its own gesture and keeps the shared behavior. <details><summary>The disclosure jump, measured before and after</summary> Ten placements on a 22-thread panel at 1440×900, varying which card was open, where the list was scrolled, and which visible closed title was pressed. `moved` is the pressed title's viewport travel; `visible` is whether it was still in the list's scrollport afterwards. | open card | scrollTop | pressed | base `moved` | base `visible` | candidate `moved` | | --- | --- | --- | --- | --- | --- | | 0 | 260 | 1st visible | −181px | **no** | +4px | | 0 | 260 | 3rd visible | 0 | yes | 0 | | 0 | 260 | 6th visible | 0 | yes | 0 | | 0 | 0 | 4th visible | −186px | yes | −186px (list at its top; no room above to give) | | 5 | 0 | 1st visible | 0 | yes | 0 | | 5 | 400 | 1st visible | −186px | **no** | 0 | | 5 | 400 | 3rd visible | −186px | yes | 0 | | 12 | 600 | 1st visible | +11px | yes | +11px | | 12 | 600 | 4th visible | −186px | yes | 0 | | 18 | 900 | 1st visible | +31px | yes | +31px | The rows that do not reach 0 are the ones the scrollport has no room for: the list standing at `scrollTop` 0 or at its maximum cannot give back the room that closed. The base's compensation is Chromium's anchoring, which lands on the pressed title only when it happened to pick it or a node below it. </details> ## Verification Two browser cases in `tests/test_render_conversations.py`, each reproduced against the merge base before it was written: - `test_opening_a_thread_leaves_its_title_where_the_reader_pressed_it` presses with a real pointer, asserts the closing card was above the press and gave back real room, and asserts the title stands where it was pressed and inside the scrollport. On the merge base: `carried its title from 485.5px to 338.5px, 147px of room having closed above it`. - `test_a_press_that_opens_a_thread_lands_it_and_holds_it_at_once` buries a closed title a few pixels under a pinned run heading with motion left at its default, presses it, and asserts both rules at once — the title comes out from under the heading and does not travel up past where the landing put it. With only the first commit: `the press opened the thread but left its title under the heading: Shipping offline editing covers it down to 5px in`. The existing `test_a_comment_the_pointer_lands_on_comes_out_from_under_the_run_heading` does not see that case: it builds its context with `reduced_motion="reduce"`, so the landing is already instant, and it presses a card's body, which opens nothing. `tests/test_render_conversations.py` and `tests/test_render_navigation.py` together (248), `npm run test:runtime` (33), `uv run pytest tests` (1231 passed) and `pre-commit` on the changed files all pass on this branch. The five everyday-suite failures on this CI host — the four `AF_UNIX`-dependent cases in `test_interact_session.py`/`test_website_server.py` and `test_staged_writes_honor_umask_without_copying_a_replaced_symlink_mode` — fail identically on the merge base here; the hosted runner is the control. Found by the weekly `/ui-sweep`. The second commit answers the review on the first; of the two candidates it raised, this is the one `land`'s own stated order and the Motion rule in `skills/leaf/assets/CLAUDE.md` point at, and it keeps the landing rule inside `landing.js` rather than putting a second copy of it beside the hold. --------- Co-authored-by: leaf-agent <[email protected]>
…s, banner shelf, and gallery layout (#930) `ci` on `main` is red: the [scheduled complete suite on 4ffc2bd](https://github.com/max-sixty/leaf/actions/runs/35718248873) reported nineteen failures. Fourteen of those node ids, across twelve nightly browser cases, read chrome shapes that three of the morning's merges moved, and this updates those readings. A fifteenth case, which that run did not reach, broke on the merge after it. The remaining five are #917's, already open against #905's native `<details>`; nothing here touches them, so `main` needs both to come back green. No runtime code changes. ## What moved, and what each test reads now **#921 (4ffc2bd) gave the thread panel two selection levels.** Escape from a selected thread now returns to whole-panel selection, and the press after that closes the panel. Nine node ids across four files walked out of Threads in two presses and asserted the panel gone on the second. Each now states the level it gained — `.lf-threads` holds the selection — before the press that closes the panel, which is the shape #921 gave the tests it could see in `test_render_navigation.py`. The intermediate `expect` is also the arrangement: it settles the release before the next Escape rather than firing two presses into one turn. **#918 (a45144d) made the thread lifecycle filters a `wa-radio` group.** Three tests read the standing choice off `aria-pressed`, which a radio does not wear; they now use `to_be_checked()`, the reading the everyday-gate tests #918 updated already use. The same change also made the group exclusive, so re-pressing the standing member no longer widens the list — `test_an_ok_on_the_agents_latest_reply_takes_the_thread_out_of_waiting` pressed "On you" a second time to get every thread back and now chooses the group's open member instead. That second fault was behind the first: the test stops at the `aria-pressed` read, so the run never reached it. **#923 (c6c9cb3) added touch-only selection controls to the banner shelf and renamed the `s` command.** `commentSelection` and `cancelSelection` rank after `threads`, and `select-element` is `alwaysFolded`, so two tests counting the shelf's markup — the last child of `.lf-banner-actions`, the number of children in `.lf-banner-menu` — were reading inventory where they meant what the reader meets. Both now read what stands: the last *visible* control in the row, and, for the door, what is behind it once it is opened. A third read the reference's wording for `target.chooser.open`, a string `test_render_semantic_selection.py` also reads; this reads the reference row by its command id instead, so the words are stated in one place rather than two. Both cases are nightly, so nothing holds that string before `main` either way — #923 updated the one and not the other, which is the whole fault. **#924 (ff34b91) grew the feature gallery between a case's scroll target and its subject.** `test_g_hints_reach_a_late_visible_action_only_location` scrolled to `#bg-quoted-and-visual` and asked for the go-to chip belonging to `#bg-shot`'s margin entry; the new `#bg-live-practice` section sits between the two, so that scroll now leaves the entry about 1,200px below the scrollport and the hint layer is right not to draw a chip for it. The case reached that state because its guard was `to_be_visible`, which says a control is laid out rather than that a reader can see it. It now scrolls to the location's own anchor and reads `to_be_in_viewport`, so the premise it states is the one the hint layer acts on. Checked alone at both commits: green on 4ffc2bd, red on `ff34b919`. ## Why these are updates rather than a fix under them Each failure is a nightly test hand-reading a shape the runtime or the corpus owns, changed by a pull request whose own gate could not reach it: `ci` runs the complete suite on `main` and on the schedule, never on a pull request, because it holds a runner for over an hour on a shared pool — a trade-off `ci.yaml` states, with `main`'s own run and `tend-ci-fix` as the designed repair step. So the level above these tests is working as intended, and the durable improvement available inside them is to read a declaration instead of an incidental shape. Every fault here but the Escape depth moves that way: a radio's checked-ness and its exclusivity, a command id, and — twice — the run that stands rather than the shelf's markup. The Escape-depth nine have nothing more declarative to read — the press count *is* the behaviour — and each states the unwind because the assertion around it is about where focus lands and what stays open, so they keep their own narration. The gallery case is the same move at the arrangement end: it now states the premise the hint layer actually reads, so corpus content growing under it fails loudly rather than quietly changing what the case is about. That leaves the seam #917 named for the thread card exactly as reachable as it found it: the panel's chrome has no single place a change to it can find its readers. ## Verification All fourteen failed in the scheduled run on 4ffc2bd, and each passes on this branch under `uv run pytest --run-nightly -n0` on this CI host. The fifteenth was found by running the six changed files whole: `test_render_aim.py`, `test_render_anchors.py`, `test_render_controls.py`, `test_render_margin.py`, `test_render_navigation.py` and `test_render_reactions.py` are 574 cases under `--run-nightly -n2`, and the only two failures were `test_g_hints_reach_a_late_visible_action_only_location`, now fixed here, and `test_a_thread_at_rest_shows_only_the_marks_that_stand_in_it`, which is #917's. `pre-commit` passes on the changed files. Besides the gallery case above, two cases have their arrangement changed rather than only their assertions, so those three are the ones worth a second look: `test_the_responsive_action_row_keeps_primary_actions_in_reach` opens the overflow door to read what stands behind it and closes it again, because the shelf freezes its partition while the door is open and the test registers another control straight after; and `test_covering_threads_keeps_the_reader_and_their_work_inside` reads the document's scroll position after the thread releases to the panel rather than before, the release being the press that no longer closes the sheet. A pull request runs the everyday gate, which reaches none of these files, so `ci` here says nothing about them; `main`'s own complete suite on the merge is the first run that reads them. --------- Co-authored-by: leaf-agent <[email protected]>
Summary
<details>/<summary>elementsopenstate, Tab order, and Enter/Space activationaria-expanded, repaint-only selection state, focusable card roots, and the root-focus reveal listenerUX changes
t/Topens a thread and lands its native summary;creaches its reply fieldValidation
pre-commit run --all-filesnpm run test:runtime(33 passed)main)