Skip to content

Move the margin card onto box-motion, the floating boxes' one motion - #4174

Merged
max-sixty merged 21 commits into
mainfrom
animation-survey
Oct 26, 2026
Merged

max-sixty merged 21 commits into
mainfrom
animation-survey

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

When the user sent a reply from a margin thread card, the card grew to its new height in one frame. A prototype then scrolled the transcript on its own clock. The user saw the result jump to the new turn's name and then slide its words, and asked for one canonical animation, done well. The card now follows every change of its layout through box-motion.js, as the floating panel already did. On a send, the card's outline, its head row and every turn slide up together on one 300 ms tween, and the new turn comes up from the foot. At t=0 the picture equals the one from before the send, checked frame by frame in Chromium and Firefox.

What changed

  • The card's surface (thread-preview.js, annotation-chrome.css): the preview is now a non-painting root that keeps its placement, region cut and fades. Its face, .lf-margin-preview-card, is the motion root. A ground layer inside the preview draws the ring, fill and --raise-3 shadow, which box-motion cuts to the outline, so page scroll and the region cut carry it with the card. The drag grip stands beside the face, so no motion clip covers it.
  • box-motion.js, shared by both boxes:
    • Gesture clock: one clock for both boxes, moved out of the panel (theirs). A box's stream() makes the current gesture its send.
    • Reading frame: readings are taken in the box's own plane (held, rebase), so a page scroll, a drag or a re-placement doesn't count as a layout change.
    • The stream: it carries every child of a scroller, each read at its layout position. Sticky descendants animate their inset against the carry, so layout sticks each head exactly where a scroll that far back would.
    • Nothing chases the ride: while content rides, scrollLimit reads the scroller's end from its layout (contentRides in scrolling.js) and overflow-anchor is held off. The card's end-keepers and Firefox's scroll anchoring used to chase the moving content and cancel the ride. That Firefox bug also broke the panel's send stream on main, and this fixes it.
    • Shrinking parts: a part that shrinks while its far edge stays put travels by that edge, so the emptied field after a multi-line send stays at its foot, in the panel too. A wheel or touch during a send ends the send's claim on the scroll.
  • The card's ring room: in Chromium, words scrolled under a stuck name showed in the ring room above it. The card's fade layer now papers that room once the transcript has scrolled.
  • Removed: the reply-landing prototype is gone. The panel's tween tokens become --lf-motion-box-*, set on both boxes.

Tests

New tests, each confirmed to fail without its fix:

  • test_a_send_from_a_full_card_rides_its_turns_and_names_up and test_a_card_send_moves_the_card_as_one_stream: the card's outline, head row, turns and stuck names are where they stood at t=0, then ride one shared distance.
  • test_a_send_into_a_full_thread_view_starts_where_the_view_stood: a multi-line reply into a capped panel view, which drew turns 21 px off before the double-carry fix.
  • test_a_press_on_a_moving_card_reaches_what_it_aims_at: a press during the motion reaches its target instead of starting a drag.
  • test_news_during_a_card_s_ride_lands_at_its_end: news arriving mid-ride still lands at the transcript's end.

Five existing tests that read geometry right after a card gesture now wait for the motion to end, or use reduced motion where only the end state matters.

Known gaps

  • The wheel-during-send abort has no test.
  • In Chromium, head annotations with view-timeline exits show their end state during a ride.
  • The card Send opens still grows out of the comment box with its own CSS animation (growOut). It could become a box-motion reading.

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

max-sixty and others added 21 commits October 25, 2026 09:01
A reply sent in the panel's thread used to land where the previous message
stood while that message reappeared behind the thread's name, because
box-motion shows a resized scroller's content where its new scroll puts
it. thread/sent-ride.js reads each message's place and the field's before
the send draws, and once the panel has landed the view plays a translation
from there to rest, on the panel's own tween. Margin cards are left out:
their sticky message heads would ride down over their own words.

Prototype for the animation survey, not for landing:
test_one_field_starts_a_thread_takes_its_reply_and_settles_it fails, as
the shift watch throws on an animation whose message node is detached
mid-ride. The intended build is a box-motion rule rather than a second
mechanism.

Also corrects notifications.js, which said a passing notice fades.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A send now tells box-motion it begins, before it draws ("send" from
theirs(), read with stream()). Until the send's rendering settles, a
scroller's content is carried from where it stood at the send, its scroll
included, so the new turn comes up at the scroller's foot while every turn
above rides with the thread's name; and a part new to the box, such as the
view a page comment opens, rises with the box's top edge out of its old
outline instead of fading in place. The panel takes its full tween for a
send. This replaces the per-message thread/sent-ride.js prototype, which
moved the new turn faster than the rest and left the header behind.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A decided block suggestion and a resolved inline thread now fold away in
Firefox (and any engine without intrinsic-size interpolation) instead of
retiring in one frame. foldBlock keeps Chromium on calc-size(); elsewhere it
starts the effect at `auto`, reads that height, and restarts the keyframes
from it in pixels before the next frame. Firefox also cannot animate
`display` (bug 1834877), so an already-retired suggestion slot is drawn by an
inline `display` the effect's end or cancellation removes.

Firefox has no near plan for calc-size()/interpolate-size (bugs 1896734 and
1945962 unassigned, no committed release as of 2026-10-25); the note in
browser-support.md records the evidence and what to recheck. lf-draft's return
from its editor still needs calc-size(), since its end height is only known
after the close lays out.

The suggestion fold test and the inline retirement test now run in Firefox as
well as Chromium; both Firefox cases fail on the previous foldBlock.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A thread message that leaves while drawn, which in practice is a reply the
log refuses, used to vanish in one frame. It now folds away with
`foldBlock` (`--lf-motion-fold`), as a resolved inline thread does, in every
reader of a whole thread: margin card, page thread and the floating panel's
thread view (transcript.js). The message leaves the transcript at once: the
folding node is inert and gives up `data-message`, `data-event` and
`data-attempt` until it is removed. Reduced motion, first presentation and
engines without calc-size interpolation (Firefox, WebKit) keep the
immediate removal through motion.js.

A card holds a refused turn's room for its reply box (reply-continuity.js).
Measured once at presentation, that hold saw the folding message still at
full size, so the margin card shrank 53px through the fold and its head
moved down, and a page thread's reply box moved up. The spacer now follows
the fold frame by frame and ends at the same room as before; the words a
refusal hands back grow the reply box only into room the fold has given
back. The panel's own hold after a refusal (`holdRefused`) needed no change:
its head and field stay put while the turn folds inside the held view.

The panel's send landing counts drawn messages by `data-message`, so a
folding node no longer counts as one.

`z` cannot take back a prose reply (the append door refuses `said-message`),
so a refusal is the case this reaches; a reaction a user takes back draws
as a strip, not a transcript message.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json
Holds the panel's motion at its first frame and checks that the thread's
name and every turn start the same distance below their rest, both when a
page comment opens the view and when a reply grows it. Fails without the
stream (the view opens in place).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…d out

Prototype for the motion proposals. Surfaces that opened or closed in one
frame now fade, opacity only, in the disclosure time
(`--lf-motion-disclosure`, 120 ms); nothing moves and each is pressable
from its first frame.

- The leaf's menu already faded in; on close it now keeps its last rows,
  inert and passing presses through, while `playMotion` fades it out
  (`menuFade`, floating-panel.js). A menu reopened mid-fade draws afresh.
- Page Map and the command reference fade in with `@starting-style` and
  out by transitioning `display` and `overlay` (allow-discrete), taking
  no presses while closed. Their column direction moves to the base rule
  so a closing sheet keeps its layout after `[open]`/`.open` goes.
- A margin card opened from its pin or row fades in when its first
  placement lands and out where it stood: `close` keeps the placement
  until the opacity transition ends, then stops the driver and hides. A
  card Send opened still grows out of its comment box instead.

Test changes: the words watch counts a field inside a closed dialog as
put away, since the dialog closes semantically at the press while its
pixels fade; the small-screen Page Map test reads contrast after the
opening fade ends.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Prototype for the motion proposals. When an agent's revision installs
while the page is open, each block it changed takes the paint-only tint
a newly arrived message gets (`backgroundFlash` over `flashDuration()`,
1200 ms). Which blocks changed is the comparison's own reading:
`blocksNewSince` is the self-comparison generalized to any source, asked
of the source the revision replaced, so new and rewritten leaf blocks
tint and nothing moves.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…flash

lf-tabs tinted a tab a walk revealed for 650 ms while Leaf's own arrival
tint lasts --lf-motion-flash (1200 ms); it now asks flashDuration(), which
widget-api exports and module-scroll-and-motion.md documents. Corner marks
fade in the disclosure time instead of a literal 120 ms. The
.lf-msg.flash rule, its keyframes and openPageThread's flash option
outlived the classic Threads panel that applied them (#3100); nothing
added the class since, so they go, and the motion-inputs test no longer
reads a CSS consumer of the flash token. Durations used once with their
own reason, such as the comment box's 240 ms growth and the busy dim's
delay, stay literal.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
#	dist/kernel/runtime/widget-api.js
A send from a margin card grew the card to its new height in one frame. The
card now follows every change of its layout through box-motion.js, as the
floating panel does: a send slides the card's outline, its head row and every
turn up as one stream while the new turn comes up from the foot; typing grows
the outline under a still field; news moves nothing the reader reads.

The card paints nothing itself. Its face (.lf-margin-preview-card) holds the
thread with a transparent border and its own paper at rest, and a surface
inside the card (.lf-margin-preview-ground) draws the ring, fill and
--raise-3 drop shadow, cut to the outline by box-motion. Inside the card, the
page's scroll carries the surface and the region cut clips it. The thread's
focus ring moved onto the face; box-motion draws a box's own ring on the
surface while it moves.

box-motion gains what the card needs, all shared with the panel:

- One gesture clock for every box (`theirs`), moved out of the panel; a box's
  `stream()` makes the gesture under way its send.
- Readings are taken in the box's plane: kept readings move with the edges
  that hold the root (`held`, floating.js `heldEdges`), so a page scroll, a
  drag or a re-placement moves nothing, and a card held by its foot that grows
  at its top reads as growing.
- A send's stream carries every child of a scroller, not only its first, and
  is read by a child's drawn top. A sticky box inside rides by animating its
  inset against the carry on the same tween, so layout sticks it where a
  scroll that far back would, and heads hand over as the content passes.
- While the content rides, the scroller's end stays at its layout's
  (scrolling.js `holdScrollHeight`, read by `scrollLimit` and `scrollToEnd`):
  the browser counts the translated content in scrollHeight, and the card's
  end-keepers chased it, cancelling the ride. Scroll anchoring is held off on
  the scroller meanwhile: Firefox anchored to the drawn child and scrolled
  the ride away, which also broke the panel's send stream in Firefox.
- A scroll the send makes is read again, since a capped scroller changes no
  part's size; a ride under way continues through any later reading, news
  included.
- A part a carried part holds grows from where that carry draws it, not
  from its layout box; the card's transcript showed blank at t=0 without it.
- The tween tokens are --lf-motion-box-ease/-resize on both boxes;
  --raise-3-drop/-blur are registered like --raise-2's.

The uncommitted prototype in reply-landing.js, which scrolled the
transcript to its end on its own rAF clock after the card had grown, is gone.

Tests: test_a_card_send_moves_the_card_as_one_stream holds the card's
outline, head row and turns at one shared offset at t=0 (fails with the
card's follower disabled). Tests that read geometry right after a card's
gesture now wait for its motion to end or ask for reduced motion, and the
face carries the ring, paper and border they read.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A multi-line send emptied the reply field, whose top moved down while its
foot stayed: box-motion carried every part that changed size by its start
corner, so the field showed at its old top and slid 21px down to its foot,
in the margin card and the floating panel alike. A part that shrank on an
axis while its far edge stayed now travels by that edge, since no cut can
draw a part larger than it stands; carried parts record which edges carry
them, so their children subtract the right offset. Growth keeps the start
corner, which keeps typed words in place.

The card's transcript keeps focus-ring room above its first head, and in
Chromium a head sticks below that padding, so words scrolled past a stuck
name showed above it, in base too. The fade the card already paints under
the stuck name now also covers that room with paper once anything is
scrolled away (`--lf-thread-fade-band`, from the transcript's top padding),
leaving the name's own band clear: a message riding a send is a stacking
context, which would put the name under the layer. At the top the room is
uncovered, so a message's ring still has it. Rejected: sticking heads on
the scroller's edge (`--lf-top-start`), which lifts a stuck name off the
line the card's actions stand on and lays its ground over the ring of the
message beneath it.

test_the_thread_card_opens_on_its_latest_message_under_its_own_name now
holds the fade's paper to the scroller's edge and its fade to the stuck
name's lower edge.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
A review of the margin card's move onto box-motion found these, each
reproduced first:

- A press on a moving card started a drag. The card's grip stood under the
  motion's root, so a change of the card's size cut it, and the cut's
  clip-path replaced the grip's own even-odd clip that leaves its middle open
  to presses: for the tween's 300ms a press anywhere on the card hit the grip.
  The card's face is now the motion's root, and the grip stands beside it;
  boxMotion's contract says the root holds only what moves with the box.
- A send into a scroller whose holder was already carried counted that carry
  twice: the child's box read after the holder's carry began includes it,
  and `move` subtracts it again. A two-line reply into the panel's capped
  thread view drew every turn 21px off at its first frame. The ride now reads
  the child where layout stands it.
- A ride's held scroll height went stale when content arrived inside a
  capped scroller mid-ride, so a landing at the end then fell short and was
  never redone. scrolling.js now reads a riding box's height from its
  layout on every ask (`contentRides`), from where its children stand.
- The card's face clips with `overflow: clip`, as the panel's card does, so
  the motion letting carried parts stand past its edge toggles no scroll
  container.
- A wheel or a finger in a riding scroller ends the send's claim on its
  scroll, so the content follows the user's scroll rather than easing to it.

Tests that fail on the previous commit and pass now:
test_a_press_on_a_moving_card_reaches_what_it_aims_at,
test_a_send_into_a_full_thread_view_starts_where_the_view_stood,
test_news_during_a_card_s_ride_lands_at_its_end, and
test_a_send_from_a_full_card_rides_its_turns_and_names_up, which also fails
with the card's `sending` unwired (the fitting-card test passed without it,
since its transcript doesn't scroll).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json
#	dist/kernel/runtime/bundle-annotation-overlay.js
#	dist/kernel/runtime/bundle-comment-placement.js
# Conflicts:
#	dist/kernel/kernel.json
@max-sixty
max-sixty merged commit da40e4e into main Oct 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the animation-survey branch October 26, 2026 03:08
max-sixty added a commit that referenced this pull request Oct 26, 2026
Firefox sticks a box in a subgrid scroller at the scroller's edge,
ignoring its padding (Playwright Firefox 155 and desktop Firefox 158;
Chromium and WebKit honour it). The margin card's transcript is such a
scroller, with its focus-ring room as top padding, so in Firefox a stuck
message head stood 6px above the ✓/✕ row and words scrolled under it
showed over Resolve. In Chromium the head stood on the line, but the
same room above it showed a line of words across the card once scrolled.

The room is now where the heads' slot starts (`--lf-top-start`), held
open by an empty row before the first message, and heads stick at the
slot (`--lf-top`), so no engine reads the padding. The two readers that
took the padding for where heads stick, the card's fade
(`paintContinuation`) and `showReturnTurn`, read the slot through a new
`geometry.slotTop`. Once anything is scrolled away, the stuck head and
the actions each paint paper over the room above their own track
(`--lf-thread-room-cover`); at rest the room stays clear for focus
rings. The head's cover is a shadow, since the head clips what it holds
and anchors its Edit control at its middle; under forced colours, which
drop shadows, the head opts its own ground and shadow out and paints
them in `Canvas`.

This replaces the fade-band cover #4174 added (`--lf-thread-fade-band`),
which painted the room from the card's fade layer and returns that layer
to the plain fade below the stuck name: the cover now belongs to what
stands on the line, so it needs no clear gap over a riding name, and it
stays while focus is in the transcript, where the fade layer hides.

`test_words_scrolled_past_a_card_head_show_nowhere_above_it` scrolls a
card in Chromium and Firefox, with and without forced colours, and holds
the stuck head to the actions' line and the room above it to a clean
band; it fails on `main` in each engine.
`test_the_thread_card_opens_on_its_latest_message_under_its_own_name`
reads the stuck line from the slot rather than the padding, and again
holds the fade's top to the stuck name's lower edge.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 26, 2026
#4174 moved the margin thread's outline from the preview's placement
root to `.lf-margin-preview-card`. The keyboard-focus test still read
the root, so it reported `none` even though the face drew the ring.

Read the card face for the pointer, keyboard and reply-field paint
assertions. This preserves the existing checks of actual ring paint and
clipping through `rings_drawn` and `ring_faults`; it changes no runtime
behavior and keeps #4174's shared motion design.

Verified on current main: the named test fails before this change with
`none` versus `solid`, and passes after it, including the remaining
reply-field assertions (`uv run pytest
tests/browser/navigation/test_threads.py::test_an_inline_thread_rings_its_card_for_keyboard_focus
-q -n0`).

Closes #4181 — automated triage

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 26, 2026
The shift watch mistook an idle card's progress-to-answer replacement
for an uncredited shift. #4174 removed the margin card's hidden scroll
container when moving its face onto shared box motion; the watch still
required a scroll container around the transcript, although the floating
card continued to own its reply row.

Append growth now recognizes a fixed or absolutely positioned runtime
container as that boundary. It retains the existing checks for unchanged
earlier messages, measured tail growth, stationary container edges and
exact movement of following controls. This changes test instrumentation
only; the card's layout and motion remain unchanged.

The reported non-streamed case reproduced the exact 11px finding on
main. A new clipped-container regression also fails before the
correction. Both idle-card variants and the focused append-watch checks
pass (36 cases), including the new control that still reports extra
movement inside a clipped container.

Closes #4190 — automated triage

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 27, 2026
Opening or closing progress messages in a margin card now keeps the
disclosure stationary throughout the resize animation. Growing parts
cancel inherited translation through the existing carry helper,
preserving the transcript's send stream without traversing its contents.
This repairs the motion regression after #4174.

The expanded regression also exposed stale message ages in an open card.
Mechanical annotation refreshes now run through the existing presenter,
and opening a card requests that refresh, so newly visible messages
contribute their clock dependencies. Ages continue updating while the
user drafts a reply; disclosure motion and held news retain their
existing behavior.

Validation: the pointer regression reproduced the stale-age failure
before this repair and passed afterward. The pointer and keyboard
disclosure cases and the card-news case passed together. `pnpm run
check` passed, including all 682 runtime tests, and the browser kernel
was rebuilt. A served startup comparison with the preceding PR head used
35 requests in both arms and added 203 JavaScript bytes before first
server-state presentation.

Closes #4235 — automated triage

---------

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

Deleting a line in the floating panel's field or a margin card's reply
field, with lines after the caret, drew those lines a line higher for a
frame and then glided them back down, at full speed in Chromium and
Firefox. `box-motion.js` carried all of an editor's words by the field's
start edge. That suits the words before the removed line, which ride the
box's top edge down, but not the words after it, which layout leaves
where the box's foot holds them.

Now the editor marks the first line whose words all come after the
change (`data-lf-after`, a CodeMirror line decoration in
`field-editor.js`). While a key's removal travels, box-motion draws that
line and those below it by the field's end edge rather than its start
(`--lf-field-after`). The words before the line ride the top edge as
#4326 made them, and the words after it stand.

| Before (main) | After |
|---|---|
| <img
src="https://gist.githubusercontent.com/max-sixty/010731132b38024be413752a36544215/raw/75a4ad802c02ef8698b5ce3934c82ecd04c44858/before-main-firefox.gif"
width="420"> | <img
src="https://gist.githubusercontent.com/max-sixty/010731132b38024be413752a36544215/raw/75a4ad802c02ef8698b5ce3934c82ecd04c44858/after-fix-firefox.gif"
width="420"> |
| <img
src="https://gist.githubusercontent.com/max-sixty/010731132b38024be413752a36544215/raw/75a4ad802c02ef8698b5ce3934c82ecd04c44858/before-main-frames.png"
width="420"> | <img
src="https://gist.githubusercontent.com/max-sixty/010731132b38024be413752a36544215/raw/75a4ad802c02ef8698b5ce3934c82ecd04c44858/after-fix-frames.png"
width="420"> |

Firefox at half speed: two rounds of Shift+Enter then Backspace, with
the caret at the end of the second line. Each frame grid is eight
consecutive frames around one Backspace, read down the left column and
then the right. Chromium moves the same way; the test below reads the
same positions in both engines. Playwright's Firefox video now and then
drops the whole panel for a frame, in both arms, so the grids show a
Backspace without such a frame.

**What to weigh**

- **One edge never fit both sides.** `git log -L` on the carry shows the
edge flipping: #4174 carried a shrinking field's words by the edge that
stayed, which made the words before a removed line jump, and #4326 went
back to the start edge, which turns the words after it back. Splitting
the carry at the change replaces the single edge rather than adding a
case beside it.
- **Two readers see lines drawn off their place.** The Send corner
(`#cornerTaken`) takes each line's own carry back off, so it reads the
words where layout puts them. The editor's reveal (`editor-view.js`) now
gives the editor's own box a share of the caret's travel only where that
box is a scroll container. A text field's isn't, and a line drawn below
it made the reveal write a scroll there that moved nothing.
- **The comment box beside a passage keeps its instant move.** It stands
on its top, so its foot rises when a line goes. Drawing the words after
the line below its box would need its overflow held open, which laid a
one-line field's caret out below its box. There the words after the line
move up once, in the frame the key lands, as on main.
- **Only a removal travels.** A key that adds words takes no tween
(`box-motion.js`; the user asked for typing to grow the box as a
textarea's grows), so a line Shift+Enter adds among the words leaves the
words after it standing while the rest take their places in one frame.
The split carry is a removal's alone, and measured growth needs none.
- **One gap left, one-way:** in a field at its cap scrolled away from
its end, the words after the line move up at once by what was hidden
below (under a line), rather than glide.

Not in this change: Shift+Enter that takes a field to its cap turns the
words after the new line back by the overflow (2 px in the panel, 17 to
18 px in the card and the comment box at 1440×900). The field draws them
a frame before its scroll takes them back up, so it isn't the carry.
Main does the same, in all three boxes.

**Evidence**

- `test_a_line_removed_among_the_words_moves_only_what_layout_moved`
(new, beside the property test) adds and takes away a line with two
lines after it, three ways in each floating box, in both engines:
Backspace at the end of a line, at the start of the next one, and, in
the panel, in a field at its cap scrolled to its end. It records the
Shift+Enter that adds the line as well as the Backspace (all but the one
that takes the panel's field to its cap, above). It checks that every
part moves one way, and, holding each removal's first frame, that no
word in the panel or the card jumps. On main the panel and the card fail
in both engines. Reverting only the line-start mark fails them again,
restoring the old measure of the extra carry fails the panel's capped
case, and letting a typing change that grows the box tween fails the
panel and the card on the Shift+Enter, their words after the new line
drawn a line low and gliding back.
- On CI's macOS runner, the new test, recording the Shift+Enter too,
passed [48 of 48 as 8 copies across 4
workers](https://github.com/max-sixty/leaf/actions/runs/44469911946) and
[36 of 36 as 6 copies on one worker under load
4](https://github.com/max-sixty/leaf/actions/runs/44468180188). One
[earlier parallel
run](https://github.com/max-sixty/leaf/actions/runs/44468177400) passed
47 of 48: one Firefox copy timed out clicking the card's margin marker
to open it, before any key was pressed. The property test [timed
out](https://github.com/max-sixty/leaf/actions/runs/44459119589) there
on this branch alone, which is the macOS hang #6450 fixes, still on
main; with #6450 merged in, it passed [8 of 8 in
Firefox](https://github.com/max-sixty/leaf/actions/runs/44463254061) and
[8 of 8 in
Chromium](https://github.com/max-sixty/leaf/actions/runs/44463258546).
- Locally, these pass: the property test, the Send-corner journeys,
`test_lines_removed_below_the_field_s_cap_leave_the_rest_in_place`,
`test_a_line_the_field_gives_up_rides_the_box_s_top_edge`, the
card-reply growth tests, the editor reveal tests (file-editor page
navigation, a long rewrite's caret, a new line past the field's height),
`pnpm run test:runtime` and `pnpm run check`.

Found while settling why #6450's floating-box test failed on Linux. An
independent review pass found the line-start and capped-field cases,
both fixed here.

> _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