Repository navigation
Give every empty comment box its word, in one dim face, and stop margin layout failing in Firefox 159 - #5448
Merged
Merged
Conversation
… read their range Firefox 159.0 builds a `ViewTimeline` but throws NotSupportedError on reading its `startOffset` or `endOffset`. `stuckShift` read one on every sticky box a pin's seat passed, so each margin layout pass on a page with a pin threw, and the page reported the failure to the user. It now asks for an offset once, and where that throws it reads a sticky box where it is drawn, as it already did in a Firefox with no `ViewTimeline`.
… the caret in The user compared rules for what an empty box says and chose this one. The panel's key at rest now stands with Comment, after the agent's status, as Reply's does in a thread, since it was the one key in a box without a word (composing/input.js, `enters`). The panel's Reply reads dim, as a card's does, in place of the ink it wore 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 naming where the words go; a resolved thread still says Reply to reopen. `test_c_enters_a_seated_reply_without_revealing_the_thread_heading` stood its thread wholly below the window, where `c` writes in the panel since #5428, so it now keeps the thread in view with its reply below.
A Resolve's Undo stands in the empty field's place, and Comment and its key beside it offered a second press and took its room.
leaf-agent
approved these changes
Nov 5, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 6, 2026
…ent… c stands (#5613) After a Resolve, the panel's field now says *Resolved "…"* as its words and *Undo* `z` at its right end, in the same dim italic and key badge as *Comment…* `c`. The rule behind it: a box's right side holds the shortcut that matters most right now. Before this change, the notice drew *Resolved "…" · Undo z* over the field's start on a line of its own, and Undo was the only press in the row with a face of its own: inked and semibold. - **The box owns its end press.** `enters` (`browser/runtime/composing/input.js`) can return a `BoxPress`, `{word, keys, run}`, in place of a string. The box renders it into a new `end` slot of `leaf-text` (`text-field.js`), at the placeholder's far end, and takes the press itself. Only the placeholder's words are hidden from assistive technology, so a screen reader finds the press as a button named Undo. The press is visible exactly when the field's words are, it follows the field's text direction, and the words shorten before it. While the slot holds a press, the field raises the placeholder over the empty line so the press gets the pointer, and a press on it never focuses the field. The element is built by the inline role, and its `data-lf-hint` variant gives it the empty field's face, without the hover wash (`control-faces.js`, `controls.css`). - **The panel hands the notice's press to the field.** `fieldReading` (`floating-panel.js`) returns it as `offer`. The page box and the thread reply box both pass it to `enters`. The overlay button, its anchor positioning and `rowNotice`'s passing branch are deleted, so the row's notice is now only the chip for an older version. - **Errors wait while a notice's press stands.** An error the field would say counts as unsaid until the notice passes, so it waits in the menu's Errors list with the leaf's dot instead of going unshown. - **Keys:** `z` stays the keyboard route. The press has no tab stop, since the first Tab retired the notice before it could reach the old button. Touch screens show *Undo* alone, as every box shows no keys there. Tests: the Undo notice tests read the field's words and its end, and read the press from Chromium's accessibility tree (`accessible_node` in `tests/render_harness.py`), since Playwright's role locator misses `aria-hidden` on a shadow ancestor of slotted content. `test_resolving`'s way-back route now clicks the field's press. The narrow-box test now checks that the seat's longer label shortens at phone width, because the panel's *Comment…* fits there with both keys since #5448. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Nov 7, 2026
Closed
Native-input delivery test fails on main since #5448: the panel's key part moves without input
#5642
Closed
leaf-agent
added a commit
that referenced
this pull request
Nov 7, 2026
…#5551, #5552 and #5566 chose (#5685) Ten of #5658's nightly journey cases still expected behavior that a recent change replaced on purpose. This PR updates those tests to what each change intended. One example page also changes: the feature gallery had lost a face that the server would draw. Each case was bisected locally to the first commit where it fails and checked against that commit's parent, which passes. Each fails on main `02a1e05cb` and passes on this branch. | Case | Since | What changed | | --- | --- | --- | | `test_render_widgets.py::test_notification_configuration_becomes_a_commentable_local_artifact` | #5508 | Every playground choice now has its own id. The receipt's comment anchors on the Banner choice that holds it (`format-banner`), not on `notification-simulator`. | | `test_render_gate.py::test_every_table_the_theme_sets_honestly_passes_the_gate` | #5566 | The fixture's available `<figure>` holds a question whose words start at the figure's edge, and #5566's new `words-off-column` advice flags exactly that. The journey checks tables, so it now leaves that question out. The browser test that measures the question's table inside the figure keeps it. | | `test_render_margin.py::test_margin_card_holds_its_top_as_a_turn_arrives_and_as_a_reply_wraps` | #5537 | Beside its passage, a card now holds its reply's foot while the user writes in it. The test now steps onto the thread with Escape before reading, as #5537's own tests do. It checks that each wrap, a long draft and the answer after a send grow the card upward. It is renamed `…holds_its_top_while_read_and_its_reply_while_written`. | | `test_thread_response_continuity.py::…keep_the_first_line[margin-delete-desktop]` | #5537 | Same rule: Backspace in a margin card's reply keeps the reply's foot still, so the margin case reads the foot. The seat cases are unchanged. | | `navigation/test_key_surfaces.py::test_user_news_interrupts_and_then_restores_background_news` | #5448 | The panel's key now stands with Comment after the field's words, so a notice reads `Agent replied — open Threads · Comment… c`. | | `test_page_holds_still.py::…[message-reply-below-chromium]`, `[…-firefox]` | #5551 | A thread's reply box under the floating panel now counts as unseen. A clicked message therefore stays still as an answer joins below it, the strict xfail passed, and its entries leave `MOVES_ON_MAIN`. | | `test_render_navigation.py::test_the_feature_gallery_exercises_its_core_journeys` | #5552 | `progressFace` reads a workflow's `at_work`, which the server stamps on every served workflow. The gallery's margin atlas builds its sample workflows from a stage alone, so its Working samples had lost the working face. The sample now carries `at_work` as the server would stamp it (`examples/developer/feature-gallery.page/widgets/lf-margin-entry-gallery.js`). | The other #5658 cases are handled elsewhere. #5684 (merged) fixed the fixture-resource case. A separate PR widens `--wide` for #5611's diff gutter. The `message-edit-above` cases of `test_page_holds_still.py` come from a runtime regression in #5551, which has its own cause issue. Refs #5658 — automated triage --------- Co-authored-by: leaf-agent <[email protected]>
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]>
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.
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.
entersincomposing/input.jsdraws it in a part of its own, so the box's words never move between parts as focus comes and goes.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
ViewTimelinebut throws NotSupportedError reading itsstartOffsetorendOffset. Since #5211,stuckShiftread 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 noViewTimeline. I reproduced the throw and checked the detection in the installed Firefox 159, headless; Playwright's Firefox 157 has noViewTimeline, so no test can reach it.test_c_enters_a_seated_reply_without_revealing_the_thread_headingstood its thread wholly below the window, wherechas written in the panel since #5428. It now keeps the thread in view with its reply below. #5428's CI passed without catching that.