Skip to content

Give each thread message 24px of room after it, and the panel's reply field the same - #6254

Merged
max-sixty merged 2 commits into
mainfrom
panel-thread-spacing
Nov 17, 2026
Merged

max-sixty merged 2 commits into
mainfrom
panel-thread-spacing

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Gives every thread message 24px of room after its last line, up from 16px, and in the floating panel stands the last message the same 24px above the reply field, up from 14px. A head sat 16px under the message above it and 4px over its own words, so in the panel it read nearly midway between the two; Max asked for more room there.

The gap between a transcript's items is now one token, --lf-msg-gap, which messages, checkpoints and the working step all take, so margin cards and primary readers get the same gap as the panel. The panel's thread view pads its transcript's foot to make up the gap over the field, and New reply's foot gives that padding back as before. A margin card's reply field keeps its 16px, since the comment box shares that room to keep a box and the card it becomes one height.

Two floating-panel tests that held the panel's last words "just above its padding" now hold them a message's gap above the field. Ran the focused panel and card tests (14 passed) and before/after stills of the panel thread, its working line and a margin card in Chromium and Firefox.

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

… field the same

A message's head sat 16px under the message above it and 4px over its own words, so
in the floating panel a head read nearly midway between the two, and the last
message stood 14px over the reply field. The user asked for more room there.

The gap between a transcript's items is now one token, `--lf-msg-gap` (24px), which
messages, checkpoints and the working step all take, in the panel, in margin cards
and in a primary reader alike. The panel's thread view pads its transcript's foot so
its last words stand that gap above the field, and New reply's foot gives the padding
back as before. A margin card's reply field keeps its 16px, which the comment box
shares to keep a box and the card it becomes one height.

Two tests that held the panel's last words "just above its padding" now hold them a
message's gap above the field.
@max-sixty
max-sixty merged commit 01bf742 into main Nov 17, 2026
5 checks passed
@max-sixty
max-sixty deleted the panel-thread-spacing branch November 17, 2026 07:18
leaf-agent added a commit that referenced this pull request Nov 17, 2026
…TML in two stale tests (#6285)

Two tests on `main` assert behavior that a merged change deliberately
reversed. Both fail every time on current `main` and pass with this
change (run locally on `origin/main` at `66b3883a4`). The same failures
are in [run
44038409739](https://github.com/max-sixty/leaf/actions/runs/44038409739).

-
`tests/browser/test_render_gate.py::test_the_state_wait_covers_a_status_that_moves_neither_log_nor_data`
asserted `"Ready"` in the leaf's `aria-label`. #6262 changed the resting
line to "Claude awaits", so the label now reads `Page menu · Claude
awaits`. The test now looks for `awaits`. It still checks the same
thing: the status the server holds is on screen once the state wait
ends.
-
`tests/browser/projection/test_thread_replies.py::test_a_reply_renders_its_markdown_and_a_suggestion_shows_its_characters`
waited 120 s for a paragraph containing the literal text `<lf-callout>`.
#6218 (bisected) made every agent message read as Markdown with HTML, so
that block now draws as an `lf-callout` element. The test now checks for
the drawn `lf-callout > div`. The fixture's `Vec<T>` moves into a code
span, because #6218 refuses a stray tag in an agent message. The
`"Vec<T>" in text` check still passes, now from the code span.

Behavior no longer asserted: raw tags in an agent's reply showing as
characters, which #6218 removed on purpose. User messages and
suggestions still show tags as words. The suggestion subtest is
unchanged.

The run's third new failure,
`test_a_drag_that_overshoots_the_layer_is_not_a_passage`, has a
different cause (bisected to #6254) and is tracked separately.

Refs #3985 — automated triage

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

Releasing a drag over the floating panel's thread quote stored
everything from the press to the page's end as the passage. The guard
that restores a drag's in-document range reads where the browser put the
selection's far end (`leftThePage`). Over the layer's quote, Chrome
leaves that end on the page's last words, which reads as still inside
the document. So the runaway range was both remembered as "what the drag
held" and kept at release. The press now records whether the hand last
moved over page words (`away`, set on `pointermove` with the same
`pageWords` reading the press begins with). The remembered range stops
growing once the hand leaves, and a release with the hand away restores
it. ⌘A still never reaches this path.

`test_a_drag_that_overshoots_the_layer_is_not_a_passage` fails on main
(4384 characters stored against 684 covered) and passes with this
change. #6254 did not cause the failure; its CSS moved the panel's quote
10px. Before that, the test's first leg already ended on the quote, so
its `covered` reading was itself the 4434-character runaway, and the
assertion passed without exercising the guard. With the panel's scroll
padding forced to 0, the drag covers 8 characters and the release now
restores exactly that passage.

The test still doesn't drag sideways: the root's `scroll-padding-bottom`
makes Chromium autoscroll the page during the drag, so the in-document
range it restores spans paragraphs 9–16. That cause is a tradeoff
against the panel's landing clearance, filed as #6287.

Ran the focused selection and drag tests in `test_render_anchors.py`,
`controls/test_covering.py`, `test_render_aim.py`,
`test_render_widgets.py`, `drafts/test_comment_targets.py`,
`controls/test_press_away.py`, `test_render_reactions.py` and
`test_render_formulas.py` (85 passed), plus `pnpm run test:runtime`
(1007 passed) and `pnpm run check`.

Closes #6286 — automated triage

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Nov 17, 2026
…sage at its last block (#6272)

Gives a thread one gap after a message's end, whatever follows it. The
reply box stood 10px under the last message in a page's seat, 16px in a
margin card and 24px to the row in the panel; each now takes
`--lf-msg-gap` (24px), so the box stands where the next message would.
`--lf-comment-foot-gap` goes, since the card's reply row and the comment
box that becomes the card reserve that gap together; the comment box
keeps 8px more invisible room under its field, which moves nothing
visible at rest.

A message that ended in a nested block, as an ask's options or a list's
last item, passed that block's bottom margin out past the message, so an
ask stood 14px further from the next message than a paragraph did. A
message now trims its last block's last part too.

The quote over a thread in the panel stays 4px closer to the first
message than messages stand to each other, as a title stands closer to
what it heads.

Follows #6254, which Max asked for; he asked for this review of the
spacing after it. Two tests' setups move off thresholds the taller reply
row crossed: the comment-box foot test's page widens its landing room so
its field still stands inside the panel's band (a control with the
padding drop disabled still fails it), and the card-growth test seats
its screenshot at the window's head, since a card grown to the window's
foot moves into the window's plane, reply box included, a jump the shift
watch reports and a longer answer shows on main too (#6278 tracks it).
Ran 68 card-reply tests, the seat and thread layout tests, the
send-placement and panel foot tests, and before/after stills of the
panel, cards, a seat and the comment box.

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent added a commit that referenced this pull request Nov 17, 2026
…w after #6254's wider gaps (#6307)

`reading-reply-below` needs the notes thread's last message to start
below the reading place and inside the 900px window, with the reply box
below the window. #6254 widened the gap after each thread message from
16px to 24px. Eight messages sit between the read paragraph and the end
of the thread, so that change moved the last message's top to 910px,
10px past the foot, and the case failed its own precondition (`{'above':
False, 'shown': True, 'below': False}`). The layout is doing what #6254
meant it to do, and the case doesn't check the gap. Only the setup
crossed a threshold.

The first two follow-up replies in the notes thread are now one line
each. The last message now starts at 868px in both Chromium and Firefox,
and `put_reading`'s check that the reply box is out of the viewport
still passes. That leaves 32px of slack. #6272, still open, changes
message ends again.

`reading-reply-below-{chromium,firefox}` fail on main and pass with this
change. All 20 cases at the `reading` place pass in both engines. The 2
xfails in that selection are the existing `diff-reading-deletions`
markers. No other place uses the notes thread.

Closes #6299 — automated triage

Co-authored-by: leaf-agent <[email protected]>
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