Skip to content

Show where c goes before the press, and stop it following focus out of sight - #5428

Merged
max-sixty merged 3 commits into
mainfrom
c-key-affordance
Nov 5, 2026
Merged

max-sixty merged 3 commits into
mainfrom
c-key-affordance

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Before this, nothing on screen said whether c would open the panel's field or a box somewhere else, and c could follow focus the reader couldn't see. The user compared independent settings on a playground and chose this combination; it replaces the row's quiet rest since 13 October.

  • The panel's row wears the key at the field's end in every reading while c enters the field. It loses the key when c goes elsewhere. floating-panel.css stops hiding the badge the field already drew; the face is Reply's.
  • The box rests beside the target c would open it on. restFab in composing/surface.js stands the real bar in its placement with a field-shaped face, .lf-fab-rest, so the press moves nothing. fabAnchor stays null while it rests, so it defers no revision, takes no Escape step, closes no thread card and builds no editor. A press on it opens the field.
  • c no longer follows focus scrolled out of sight. focusedPlace reads focusScrolledAway, the rule dispatch.js already applies to that control's own keys. From a stop scrolled away, c enters the panel's field where the page stands rather than taking the reader back (772 px in the fixture, 1949 px at the median in the user's logs). A scroll's end now repaints from user-place.js while focus is on a control, which replaces paintedAway in keyboard/command-hints.js.

The box rests only in the room beside its target. Without room there, as on a workspace page or in a window under about 1340 px, it waits for the press: on data-explorer it otherwise landed on the preset just pressed, and the next press there opened it (browser/AGENTS.md, "Controls stay where the user aims"). So those windows show no hint for a target, only the row's key while c enters the row. The user's cost table accepted a box over words in a narrow margin, so this is narrower than what they accepted, and I'd revisit it if they want the hint there.

Costs the user accepted: a box in the margin at each stop of a walk, Tab, or press that leaves focus on a control; and a bare key that says nothing until you know it, including beside a status naming a stop.

Checked in Firefox on base and head through seven states (reading, selected words, an On me stop, a press in a question, a pressed tab, scrolled away, a thread in the panel), with the open field's box matching the resting box to the pixel in each state that rests. tests/browser/navigation/test_commenting.py holds the behaviours.

This was written by Claude Code on behalf of max-sixty

…f sight

Nothing on screen said whether c would open the panel's field or a box elsewhere, and
c could follow focus the reader couldn't see. The user compared independent settings on
a playground and chose this combination.

The panel's row wears the key at the field's end while c enters its field, and loses it
when c goes elsewhere. This replaces the row's quiet rest, which the user chose on 13
October.

The box rests beside the target c would open it on: the real bar in its placement, with
a field-shaped face (`.lf-fab-rest`), so the press moves nothing. No anchor stands behind
it, so it defers no revision, takes no Escape step, closes no thread card and builds no
editor. It stands only in the room beside its target, since elsewhere it lay on the
page's own controls, the one just pressed among them.

c no longer follows focus scrolled out of sight, as that control's own keys already
don't: from a stop scrolled away it enters the panel's field where the page stands. A
scroll's end repaints from user-place.js while focus is on a control, which replaces
`paintedAway` in keyboard/command-hints.js.
leaf-agent
leaf-agent previously approved these changes Nov 5, 2026
…he press

A move from one target to another let go of the withheld mark and set it again in the
same repaint, a write that changed nothing. Only the box going away lets go of it now.

The empty field's ink stands on the box's words rather than on the press, whose face is
its role's alone.
@max-sixty
max-sixty merged commit b0aaf90 into main Nov 5, 2026
4 checks passed
@max-sixty
max-sixty deleted the c-key-affordance branch November 5, 2026 08:18
max-sixty added a commit that referenced this pull request Nov 5, 2026
…in layout failing in Firefox 159 (#5448)

The user compared rules for what an empty comment box says, on a
playground set against today's boxes, and chose this one. Every box now
says its word, Reply or Comment, in one dim face, and keeps it with the
caret in.

- **The panel's key at rest stands with Comment**, after the agent's
status, as Reply's does in a thread. It was the one key in a box without
a word, and a reviewer reading the captures took it for the inbox's
shortcut. `enters` in `composing/input.js` draws it in a part of its
own, so the box's words never move between parts as focus comes and
goes.
- **The panel's Reply reads dim**, as a card's does. It had been inked
since 27 October to stand apart from the agent's words.
- **With the caret in, the panel says Comment or Reply**, as every other
box keeps its word, in place of *Comment on the page* and *Reply in this
thread*. A resolved thread still says *Reply to reopen*. Accessible
names still say where the words go.

While a notice offering a press stands in the row, such as a Resolve's
Undo, that press stands alone, with no word or key beside it.

It also carries a fix for a failure the user hit in Firefox 159.0. That
release builds a `ViewTimeline` but throws NotSupportedError reading its
`startOffset` or `endOffset`. Since #5211, `stuckShift` read one for
every sticky box a margin pin's seat passed, so each margin layout pass
whose pin passed a sticky box threw, and the page reported it to the
user. It now asks for an offset once and, where that throws, reads a
sticky box where it is drawn, as it already did in Firefox with no
`ViewTimeline`. I reproduced the throw and checked the detection in the
installed Firefox 159, headless; Playwright's Firefox 157 has no
`ViewTimeline`, so no test can reach it.

`test_c_enters_a_seated_reply_without_revealing_the_thread_heading`
stood its thread wholly below the window, where `c` has written in the
panel since #5428. It now keeps the thread in view with its reply below.
#5428's CI passed without catching that.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty added a commit that referenced this pull request Nov 5, 2026
…one rule (#5468)

The last step of the cutover to one way to know what's on screen. The
user's decision (2026-11-04): a key pressed while the focused place is
off screen lets go of it first, and every key then acts from what the
user sees. Accepted: after such a key, scrolling back doesn't bring the
place's keys back until the user clicks or Tabs there, and Tab goes on
from what they're reading.

The rule is that focus is where the user is while they see it, else what
is on screen.

- **`focusPlace` (`user-place.js`) answers whether focus is where the
user is.** It is while any of focus, or the box it stands at
(`standsAt`: a thread's reply box, a shelf proxy's block), is in front
of them, or while a running motion carries them to it: a glide, or a
finite animation that moves a box holding it, as a board card's slide. A
control in a stuck box counts unless something inside that box clips it
away or it stands beside the window, and a row scrolled out of a chrome
list counts while the list shows. It replaces `focusedInView` and
`focusScrolledAway` with its settle flag.
- **`keyboard/controller.js` lets go** (`letGo`, not Escape's release,
so a card open beside the control stays open) before any other keydown
listener of Leaf's reads the key. Escape, a key typed into a text field
and a lone modifier keep the control; Tab types nothing, so it lets go
of a field too. The key then stops at the document, so a listener on the
control or a widget around it doesn't hear it, and Leaf's own command
for it runs from there. A script's own listener on the document or
window hears that one key only in capture; `module-input.md` says so.
Chromium applies a radio's, slider's or select's own keys at the control
the key was aimed at after focus moves, so those are withheld in every
engine, and that one press scrolls nothing (`notes/browser-support.md`).
- **`reading-place.js` `pageReadingBlock` is what the user reads
otherwise:** the block across their column (`readingBlock` now takes the
pointer's or focus's column, as `capturePlace` does), else, on a screen
with no text block, what stands at the reading line, so a walk and a
let-go start there rather than at the page's top. A key at focus the
user can't see names no place (`declareFocusPlace`), so the pointer's
column stays theirs for the let-go.
- **Readers outside a key read the same rule:** `capturePlace`,
`readerColumn` and three readers in `version.js` ask `focusPlace` (a
stuck focus still names no reading place); `focusedPlace` in
`composing/surface.js` does, for where `c` goes (#5428), with
`user-place.js` still repainting at a scroll's end while focus is on a
control; a let-go of something the user can't see leaves no walk origin
(`current-target.js`); a tally's Next counts from the block read in its
region.

Deleted: the dispatcher's scope filter (#5192), the command hints'
scrolled-away repaint, `focusScrolledAway`'s settle flag,
`focusedInView`, and the dispatcher's dependency-cruiser closure entries
they needed.

Measured on a shot's view radios on `release-notes`, scrolled 1,100px
past the shot, both engines: Space stayed on the radio and paged nothing
on `main`, and now pages on. ArrowRight changed the view out of sight
and moved the page 363px on `main`, and now changes nothing and moves
nothing.

Fixed where the let-go exposed them:

- `reading-regions.js`: focus on the body named the page as the region
the user reads since #5228, so `u` and `d` after a let-go, or after a
click on a pane's words, scrolled the page instead of the region last
acted in.
- `off-flow.js`: Tab reaching a card the page carried away brings the
card back, since Firefox can't reveal a control in a fixed box and the
next key would let go.
- `heading-links.js` reads the current location once the script ends, so
a let-go's passing focus on a heading writes nothing.
- `focus.js` `letGo` blurs what held focus after its landing, since
inside a modal dialog the page is inert and takes no focus.

Behavior changes, by test:

- `test_r_leaves_a_thread_the_user_scrolled_away_from`: `r` away now
takes focus out of the card, which stays open; back in view the open
card is the conversation the page shows, so `r` resolves it.
- `test_digits_leave_an_obligation_the_user_scrolled_away_from`: back in
view the digits stay gone and `2` chooses nothing until `m` and Tab
return to the ask.
- `test_a_thread_walk_card_leaves_and_returns_with_its_anchor`: `c`
after the `g` that let go of the card opens the page's field, not the
card's reply; a click on the card's words and `c` reach the reply, and
Tab from it still brings the card back.
- `test_c_travels_to_an_item_its_own_scroller_has_taken_away`, renamed
`test_c_leaves_an_item_its_own_scroller_has_taken_away`: `c` at a card a
board carried away opens the page's field and leaves the board where it
was scrolled; the sliver case focuses the card, which shows, rather than
its cut-off link.
-
`test_a_crowded_outline_keeps_the_reading_position_when_it_fits_again`:
Tab from a contents link scrolled out of its outline goes on from what
the user reads, so the test scrolls back to the link first.
-
`test_vertical_landing_crosses_a_quarter_turn_without_changing_horizontal_reading`:
`g z` with focus off screen aligns what the user reads, so the start
case lands the target through `scrollIntoView` as the nearest case does.
-
`test_restore_selection_failed_datum_hydration_leaves_history_untouched`:
the page's field wears `c` once the key let go of the line scrolled
away.
-
`test_sample_file_editor_resize_keeps_classic_scrollbars_inside_its_document`:
F2 pressed with the editor scrolled out of its sample lets go of the
editor, and the sample's own listener now captures to hear that key.
- `test_merge_film_inspection_has_touch_and_keyboard_routes`: the step
pressing `i` on Next after scrolling it away is gone, since that key now
lets go.
- Setup only, focus now where the user sees it: the scroller-edge ring
test (a taller window, focus by `focus()`), the seated-reply `c` test (a
longer thread), the staged-controls test (summary clear of the panel)
and the native-row test (an owner with a box).
- Runtime: `unseen-focus.test.mjs` mounts the keyboard and checks the
let-go, what hears its key, the arrow withheld at an unseen radio,
Escape's step and a field's Enter; `user-place.test.mjs` checks
`focusPlace` (a stuck heading now counts; a running slide carries, and
an endless animation, a fade, a paused slide and a pseudo-element's
slide don't); `dom.mjs` drops `inView`.
- Added, both engines:
`test_a_key_at_a_control_scrolled_away_acts_from_what_the_user_reads`
(Enter, an arrow, End at a select, Space, and Tab from a link and a text
field),
`test_a_key_at_a_control_out_of_sight_in_a_fixed_box_lets_go_of_it` (a
fixed box's scroller, beside a narrower window, inside a modal),
`test_tab_at_a_control_scrolled_away_goes_on_in_the_column_the_pointer_is_in`
(from a button and a field) and
`test_tab_reaching_a_card_the_page_carried_away_brings_it_back`.
- `test_motion_preference_changes_are_heard_without_reloading` failed
about one run in five: a glide shares a frame the page already asked for
(`rendering.js`), so with one pending when the test replaced
`requestAnimationFrame` it recorded nothing. It now waits for the page
to render first, and passed 14 of 14.

Left as `main` has it: a same-origin Leaf frame scrolled entirely off
the outer page still takes its keys, since a frame reads only its own
viewport. A control in a stuck box is on screen, so a key acts there:
after pressing a depth on a sticky `lf-dial` and reading on, Space stays
with the radio, as focus on any sticky toolbar's button does in a
browser.

Two independent reviews ran; each case they confirmed against `main`
that this change moved, or that departed from the decision, is fixed
here with a test.

Runtime +284 −157, net +127, against the prototype's +43: the fixes
above and the header prose that records them. Tests +429 −94.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty added a commit that referenced this pull request Nov 5, 2026
… focusInPage one home (#5425)

A key pressed with focus on the body, which is where focus stands after
a click on words or a wheel, no longer records a place for the page.
That place outranked the one the reader made in a pane, so a window
narrowed afterwards left them at the top of the page rather than on the
paragraph they had read. Recording it on every keydown also cost 303.8
ms per key on a workspace of 801 panes.

Refs #4062. That issue's fresh-load gap, where the keys move nothing
before the user acts in any pane, stays open here; choosing a pane for
the user is proposed separately in #5456.

## Cause

#5228 widened `pageDocument()` from `main` to `body`, so
`inPage(document.body)` became true. The browser gives the body focus
whenever focus stands on nothing. Three readers asked whether focus
stands in the page, and each then answered yes. #5468 fixed two of them,
`userReadingRegion` and `pageReadingRegion`, with a local `focusInPage`
in `reading-regions.js`, and fixed
`test_motion_preference_changes_are_heard_without_reloading` too. The
third, `recordCurrentLocation` in `version.js`, still reads `inPage` on
`main`.

## Change

`focusInPage` moves to `passages.js`, beside `inPage`, and all three
readers import it: one home for the question, with #5468's wording.
`browser/AGENTS.md`, "One answer for each question", names it.

## Evidence

A wheel in a pane, a key, then a window narrowed to 520 px, in Chromium:
on the parent of #5228 and on this branch the page returns to the
paragraph the reader had reached (`scrollTop` 941). With `inPage` back
in the recorder it stays at 0.

Keydown dispatch for a key pressed with focus on the body, on a
workspace of N panes, in ms. The `main` figures are one run at
22accdd, and this branch's the range over three rounds before the
merge:

| Panes | `main` | This branch | Only the recorder back on `inPage` |
| ----- | ------ | ----------- | ---------------------------------- |
| 51    | 2.7    | 0.4 to 0.8  | 2.6                                |
| 201   | 21.6   | 1.0 to 1.3  | 23.8                               |
| 801   | 303.8  | 1.4 to 1.9  | 310.1                              |

On `main`, four times the panes cost 8 to 14 times as much per key,
which root `AGENTS.md`, "Responsiveness", rules out. The last column
shows that the recorder alone holds that cost. I measured `k` and `j`;
the recorder runs on every keydown, so I expect the same of other keys,
but did not measure them.

## What I ran

On the merge with b5f5c5d:

-
`test_a_key_pressed_with_nothing_focused_keeps_the_place_read_in_a_pane`
passes here, and fails on `main`'s runtime with `assert 0 > 0`.
-
`test_a_wheel_or_a_press_on_words_gives_a_pane_the_reading_keys_and_the_walk`
passes here and on `main`'s runtime. #5468 fixed the readers it holds,
so it now guards them.
- `test_motion_preference_changes_are_heard_without_reloading` passes.
Before the merge, the 46 tests by node id that press a reading key, read
the region answer or restore a place all passed at two workers.
- `pnpm run test:runtime` (815 passed) and `pnpm run check:browser`.


`test_a_click_on_a_panes_words_makes_it_the_subject_of_every_scroll_key`
fails here and on `main`'s runtime alike: the resting "Comment on pane ·
Left reading" button that #5428 added covers `#right-start`, so the
click never lands.

I did not run WebKit, or `leaf page check --render` over the corpus. The
change adds no work on the startup path.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 5, 2026
…t stand beside (#5512)

On a workspace with two panes side by side, a click on the left pane's
words shows the resting comment box (#5428) over the right pane's first
line. The next click there opens the box instead of reaching the page.
This keeps the box off any target with no margin beside it, as #5428
described: "Without room there, as on a workspace page or in a window
under about 1340 px, it waits for the press".

**Cause.** The placement
(`browser/runtime/annotation-overlay/composing/floating-response.js`)
withholds the resting box only when its seat is above or below the
target. Clicking the pane's words focuses its scroller, so `c` names the
whole pane. The seat on the right has 600 px of room, but that room is
the neighbouring pane, not a margin: a workspace keeps no rail, and a
pane isn't in the column the rail lies beside (`margin-layout.js`).

**Change.** The resting box also waits for `c` when the rail doesn't
stand beside its target. That fact now has one home,
`railStandsBeside(target)` in `margin-layout.js`, which `marginSpot`
reads too; the box no longer infers it from `place.margin`, which can be
a shown row's rectangle wherever the rail stands. Pressing `c` still
opens the comment box. The module header now says so.

**How #5228 relates.** The box came after #5228. #5475 bisected the
panes test to #5228, which first broke it at `userReadingRegion()`;
#5425 fixed that, and the click then hit this box.

**Tests.**
`tests/browser/navigation/test_panes.py::test_a_click_on_a_panes_words_makes_it_the_subject_of_every_scroll_key`
failed on main and passes with the change. The new
`test_the_box_waits_for_the_press_beside_a_pane_the_rail_does_not_stand_by`
covers an empty pane and a pane already showing another comment's pin.
The resting-box tests in `tests/browser/navigation/test_commenting.py`
pass, including
`test_the_box_waits_for_the_press_with_no_room_beside_its_target`.

Refs #5475 — automated triage

---------

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 7, 2026
…pe or press (#5661)

#5428 rests the empty comment box beside the target `c` would open it
on, whenever focus is on a target the user can see. Four tests ran a
gesture that leaves focus on such a target and then expected
`.lf-fab-bar` hidden. What they protect is that no comment field stays
open, and the resting box is #5428's intended result, so they now check
`.lf-fab-bar:not([data-lf-rest])`. Their other assertions are unchanged.

- `test_a_reaction_returns_focus_to_the_visual_target[keyboard]` and
`[aim]`: a reaction returns focus to the diagram part, and the box rests
beside it.
-
`test_a_declared_visual_part_can_raise_the_same_bar_from_the_keyboard`:
Escape hands focus back to the part.
- `test_an_aim_at_a_seam_promises_the_element_its_press_takes` ("within
a pixel of the seam"): Escape returns focus to the aimed item.
-
`test_a_picture_in_a_control_stays_the_controls_and_any_other_takes_a_comment`:
a press on a button icon or a slider's picture leaves focus on that
control. CI on main has failed it with the same "visible" message since
run 42264154777, and it passes locally both before and after this
change.

The first three fail on main `ec2799b1d` and pass on this branch, run
singly with `--run-main`.

Refs #5641 — automated triage

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 7, 2026
…ept alive (#5660)

After a revision removes the markup a page was served with, four
references kept it in memory for the rest of the session. Each now lets
go, and the three
`test_a_revision_releases_the_served_markup_it_removes` cases, which
fail on main `ec2799b1d`, pass. Nothing a user sees changes.

I found each one by taking a heap snapshot after the test's forced GC
and following the retainer path to `#served-link`. Fixing one exposed
the next.

- **The box at rest, #5428.** #5428 stands the comment box beside a
focused control, so its placement now watches that control. Two holds in
the placement were already there, and they kept the control after the
watch stopped:
- `floating-response.js` cached its observation modes the first time
`watchFabPosition(target, …)` ran. Those closures were built inside that
call, so they kept its `target` alive. A helper now builds them outside
that scope, which is how `arrivals.js` already builds its owner watch.
- `stop()` in `floating.js` didn't reset `stand`, which was still the
last anchored writer, and that writer closes over its anchor element.
`stop()` now resets `stand` to `placedAt`.
- **The "Nothing waiting on me" notice, #5597.** In the test, the
revision empties On me. A background notice then waits behind the user's
focus. Its `format` closure was built inside `receiveState`, whose scope
also holds the activation and the outgoing authored document.
`newsFormat` now builds it outside that scope. It reads the same
`presentedNews` object as before.
- **Previews.** `preview.js` kept the last preview's source (`anchored`)
and its placement (`placed`) after the preview hid. `anchored` is now a
`WeakRef`, because the Firefox re-show workaround compares against it
after a hide. `hide()` sets `placed` to null, since it's only read while
a preview stands for the same target.

Bisect evidence: at `b0aaf9038` the test passes with `restFab` removed
from the repaint and fails with it, and the two placement fixes alone
make it pass there. With `restFab` disabled, `git bisect run` over
`b0aaf9038..ec2799b` lands on #5597 (`7d6565b14`).

This settles the served-markup group of #5641. The other groups there
(the bar visible where tests expect it hidden, the resting box moving
without input, clicks the resting box intercepts, and the other
consumers) are untouched.

<details><summary>Checks run</summary>

-
`tests/browser/projection/test_revision_patches.py::test_a_revision_releases_the_served_markup_it_removes`
(all three cases, `--run-main`): fail on main, pass on this branch. At
`b0aaf9038`, the two placement fixes alone make them pass.
- Preview tests about standing, placement, side, growth, links into the
page, put-away, resize and new aims (`controls/test_previews.py -k …`),
`test_a_press_on_the_box_at_rest_opens_it_beside_its_target`,
`test_a_walk_with_nothing_to_step_through_says_so`: 48 passed.
- Commenting, On me and semantic-news selections: pass.
- `pnpm run test:runtime` (896 pass), `pnpm run check`, and `pre-commit
run --files` on the four files: pass.

</details>

Refs #5641 — automated triage

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 7, 2026
#5428 stands the empty comment box beside the target `c` would open it
on, and its placement header says the box stands only in "the margin
its rail stands in". The code withheld it only above or below the
target and beside a target the rail doesn't stand by (#5512), so a box
seated left of its target, or right of a target that ends short of the
column's edge, stood on the page's own words and controls. Beside an
On me stop inside a tab panel it covered the panel's "Second" tab; beside
an inline suggestion it covered a draft's Edit control; beside a widget
whose value shortened, the solve slid it across the column with no input.

The box now rests only on the rail's side and only where its target
reaches the column's edge (`railEdge` in margin-layout.js, which
`marginSpot` reads too). Elsewhere it waits for `c`, as #5428 already
has it do with no room beside the target; `c` still opens the box there.

Tests that fail on main and pass with this:
- test_a_tally_counts_its_regions_obligations_and_walks_them
- test_g_hints_press_each_visible_page_map_margin_entry
- test_widget_controller_owns_presentation_across_values_and_lifetimes
  [light], [shadow-host], [shadow-child]
- test_page_owned_registry_and_widget_use_the_captured_public_api
- test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place
- test_a_reaction_returns_focus_to_the_visual_target[keyboard], [aim]
- test_a_declared_visual_part_can_raise_the_same_bar_from_the_keyboard
- test_an_aim_at_a_seam_promises_the_element_its_press_takes

Refs #5641
leaf-agent added a commit that referenced this pull request Nov 7, 2026
…umn (#5662)

The resting comment box from #5428 could stand over the page's own words
and controls, which its placement header rules out: the box "stands only
in the room beside what it is about, the margin its rail stands in". The
code withheld it only above or below its target and beside a target the
rail doesn't stand by (#5512). A box seated on the target's left, or
right of a target that ends short of the column's edge, still stood over
the column.

It now rests only on the rail's side, and only where its target reaches
the column's edge. `railEdge()` in `margin-layout.js` gives that edge,
and `marginSpot` now reads it too. Anywhere else the box waits for `c`,
as #5428 already has it do where there's no room beside the target. `c`
still opens the box in every case.

**What changes on screen.** Focus on a target that ends short of the
column's right edge no longer shows the empty box. That covers an inline
link or suggestion, a diagram part, a widget's control, and a question
inside a tab panel. Beside a paragraph, a question or another block that
reaches the edge, the box still rests in the margin.
`tests/browser/navigation/test_commenting.py`, which holds #5428's
behaviours, passes unchanged.

| | Before | After |
|---|---|---|
| On me stop in a side-list tab panel |
![before](https://github.com/user-attachments/assets/3c4afe80-8462-486d-8e24-3931a2dbd4d2)
|
![after](https://github.com/user-attachments/assets/18c420f5-2d8a-4938-a039-51fbe69163f1)
|
| Inline suggestion beside a draft |
![before](https://github.com/user-attachments/assets/3a2e1a28-2d43-472b-8a2e-232397b39588)
|
![after](https://github.com/user-attachments/assets/a03330de-b979-4eb7-8e99-64dafa9e3eec)
|

In the first, the box covers the "Second" tab the user presses next. In
the second, it covers the draft's Edit control.

**Tests from #5641 that fail on main `ec2799b1d` and pass on this
branch** (`--run-main`, run singly):

- `test_a_tally_counts_its_regions_obligations_and_walks_them`: the box
intercepted the tab click.
- `test_g_hints_press_each_visible_page_map_margin_entry`: the box
intercepted the draft's Edit.
-
`test_widget_controller_owns_presentation_across_values_and_lifetimes[light]`,
`[shadow-host]`, `[shadow-child]` and
`test_page_owned_registry_and_widget_use_the_captured_public_api`: when
the widget's value got shorter, a new placement moved the box 29 px with
no input. It no longer rests beside that widget.
- `test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place`
- `test_a_reaction_returns_focus_to_the_visual_target[keyboard]`,
`[aim]`,
`test_a_declared_visual_part_can_raise_the_same_bar_from_the_keyboard`,
`test_an_aim_at_a_seam_promises_the_element_its_press_takes` and
`test_a_picture_in_a_control_stays_the_controls_and_any_other_takes_a_comment`:
#5661 loosened these to accept a resting bar. The box no longer rests
beside a diagram part, an aimed item or a button icon, so the second
commit restores their original assertion that the bar is hidden, and
they pass with it.

<details><summary>Other checks</summary>

- The resting-box and pane tests in `test_commenting.py` and
`test_panes.py` (`-k "rest or box or waits or c_ or press"`): 27 passed.
- `pnpm run test:runtime` (896 pass), `pnpm run check`, and `pre-commit
run --files` on both files: pass.

</details>

Refs #5641 — automated triage

---------

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Nov 16, 2026
Two tests have failed on main since #5428 put a resting comment box
beside a focused target. Max decided both questions #5663 put to him,
and both answers leave the product as it is:

- **The box keeps its field's text cursor.**
`test_a_control_a_widget_built_is_told_from_a_label_it_wrote` holds that
every live press shows the hand. The resting box (`.lf-fab-rest`) is a
press that stands in for the field it opens, so the test now leaves it
out.
- **The box may cover a margin entry.** Beside one-line rows the box
rests level with the next row's margin entry and takes the pointer
there.
`test_margin_entry_tone_stays_distinct_from_control_and_agent_state` now
releases focus before hovering each entry. Its fixture receipt also
gains the `at_work` field that #5552's `progressFace` reads.

No product change. Both cases pass locally.

Closes #5663

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent added a commit that referenced this pull request Nov 17, 2026
…ival test (#6228)

`test_an_arrival_the_opening_view_will_cover_puts_it_away` errored at
teardown because the test itself moved the panel with no input. It
called `focusDestination(#foot, 'step')` from a script to stand in for a
Tab press. Putting Threads away widens the row's field by 54 px. Since
#5428/#5448 the field's end carries *Comment… c*, so the shift watch saw
that hint and its key move, with nothing to credit:
`span.lf-compose-placeholder-enters moved without input by (-54, 0)px`.
In a real session a Tab press causes that move, so the watch credits it
to the key. The test now presses a real Tab from a button, `#before`,
toward `#foot`.

`#before` sits behind a 450 px spacer, above where the Threads view
comes to rest. A key pressed on a stop the user can't see lets go of it
first (`keyboard/controller.js`, `letsGo`). So when `#before` sat right
above the foot, under the view's landed box, a slow CPU left focus on
`#before` and the Tab never reached `#foot`.

What the test protects is unchanged. Threads is still opening when Tab
lands: one view stands and its slowed 3 s motions are still running.
With the panel's close-on-step (`floating-panel.js`, `standsOver(node,
landedBox(node))`) removed, the test fails.

Verification: on main `397534cd7` the test errors at teardown. At this
head it passes at `--cpu-throttle` 1, 8 and 20. The control
(close-on-step removed) fails at rates 1 and 8.

The other test #5642 named, the native-input delivery test, was fixed by
#6153.

Closes #5642 — automated triage

---------

Co-authored-by: leaf-agent <[email protected]>
max-sixty pushed a commit that referenced this pull request Nov 18, 2026
…iage workers (#5700)

When the push and schedule `ci` reports on `main` (#3985, #4225) are
diagnosed together, their workers now divide the failures instead of
each bisecting the same tests. The push report owns any failure a push
run also shows. The schedule report covers only what pushes don't run
(`journeys`, `nightly` tests, `test-macos`) and links the push report's
causes for the rest. The change is one paragraph in `running-tend`'s **A
red `ci` on main is live**.

A scheduled run includes every test a push runs (`ci.yaml`'s header), so
the two reports' failures overlap almost entirely. The daily sweep's
recovery dispatches both reports in one triage batch, and they run in
parallel. Nothing in the bundled triage reference or this overlay
divides the shared failures between them. The bundled ownership recheck
before filing catches only part of it: the bisect work is spent long
before a session files anything.

Changes to agent instructions wait for the control-plane owner. #5197
also edits this file, in a different section (**Weekly: test tier
budgets**), and the two don't conflict.

<details><summary>Evidence</summary>

- **Triage batch 42353712556 (2026-11-07).** Its #3985 job ran 193 min
and its #4225 job ran 196 min, almost all of it local `--run-main`
reruns and `git bisect` runs.
- #4225 found #5591's breakage and opened #5631 at 08:51. #3985 had
checked for owners only once, at 08:06, so at 10:31 it filed #5639 for
the same cause, which #5631 then closed.
- Both jobs tested #5428 against its parent (09:19 and 10:34), and both
bisected #5410's test (#4225 at 09:20–09:35, #3985 again before filing
#5643 at 11:01).
- #4225 noticed its sibling only at 11:05 ("A concurrent #3985 session
is filing the same causes right now"). It then waited about 12 min on
that job's filings, and its confirmed attributions "matched theirs".
That is roughly 60–90 min of browser-suite work that produced no new
owner.
- **Triage batch 41591090041 (2026-11-03).** The same pair ran in
parallel and filed three duplicate cause pairs (#5166/#5167,
#5168/#5170, #5153/#5154), which the sessions consolidated within
minutes.
- Both occurrences are recorded in the review-runs tracker #5067.

</details>

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Nov 23, 2026
… momentum (#6892)

The comment box beside a tall focused element now follows a scroll on
every frame, a trackpad's momentum included. It waits at the window's
top while the element scrolls past, goes in the frame focus leaves
sight, and comes back in the frame the element does. Before, the resting
box rode the element's top off the window, and on the way back it stayed
hidden until the scroll stopped, for about 2.7 s with the element in
view in Firefox.

Nobody chose the wait. #1705 put the open box on CSS anchors, so no
scroll solved it again. #5242 left the page plane that way with a TODO,
and #5428 made the resting box ride the same way. After that, only the
scroll-end repaint that #5192 added in `user-place.js` moved it.
`focusPlace` has since read where glides land, so that repaint protected
nothing.

- `floating.js` solves a box again on each scroll around the element it
watches. A solve beside the words writes nothing, and a box held in by
the window's edge stands fixed. Each surface's `autoUpdate` takes
`ancestorScroll: false`, so each scroll solves the box once.
- `geometry.js` `whenChanges` reports each frame `focusPlace` flips,
replacing the scroll-end repaint. `whenNone` now wraps it.
- The open or resting box writes its width only up to the card's
measure. A sideways scroll under it no longer rewrites `--lf-float-w` on
every step.

**Behavior changes to weigh.** Where `c` goes now updates during a
scroll. The resting box goes as focus leaves sight, though its placement
could keep it on screen a little longer. On a page where On Me lists
anything, the panel's row shows Next On Me instead of `c`, so after the
box goes nothing shows where `c` goes. `field-readings.js` records that
choice.

**Evidence** (Firefox, the `css-theme-structure` page, 1440×900): the
resting box showed on exactly the frames where focus was in sight, 1013
of 1013; on the base, 360 frames owed a box and showed none. The open
box held on 1030 of 1030 frames, keeping its typed words and focus. In
Chromium, script time over a 160-frame smooth scroll was 11.5 ms against
11.3 ms on the parent commit.

Max asked for this in a comment on a Leaf page, and a fresh-context
agent reviewed it over three rounds.
`test_the_box_beside_a_tall_target_waits_at_the_window_s_top_through_a_scroll`
fails on the base in Chromium and Firefox, and
`floating-placement.test.mjs` covers the scroll listeners.

> _This was written by Claude Code 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