Skip to content

Land a sent comment once, on its thread, and write no fade on a new card - #6029

Merged
max-sixty merged 2 commits into
mainfrom
fix-mac-only-tests
Nov 15, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix-mac-only-tests

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Sending a comment from the comment box landed the user twice. The draft's settlement took the box down and let the user go onto the page, which measures the page's reading place: the first read after a change lays out every text run on the page (reading-place.js, runsIn). The send then moved them on to the thread it opened (landSent). Now the settlement takes the bar down without landing (surface.js, takeDownFab), and the send lets the user go from the bar only where it landed them nowhere and they still stand in it, as when a later gesture took over before the thread showed. Separately, a new thread card no longer writes its fade lengths, which inherit through the card, so writing them restyled every element in it; at zero they stay unset.

The comment send against main, leaf-dev bench asks --input comment --sizes 64,256,1024 --rounds 3 --base, interleaved, lowest of 3:

Sections Message drawn (ms) Server's reading shown (ms) Main-thread CPU (ms)
8 50 → 43 96 → 89 70 → 66
64 55 → 45 97 → 90 76 → 67
256 61 → 53 111 → 96 93 → 85
1,024 118 → 85 199 → 165 192 → 163

Where to look: the send's landing order in selection.js (send, settleComposer). Focus now stays in the hidden box until the thread takes it, within the same task.

Still over budget: at 1,024 sections the server's reading still shows at 165 ms against root AGENTS.md's 100. A profile puts the rest in steps that each read the whole page on every send: the margin's annotation paint (38 ms, of which the inventory's collection of every record is 15), the margin's row pass (20), the key hints each frame repaints (13), adopting the reading (12) and the Tab stop (6).

The send and landing tests in drafts/test_sending.py, drafts/test_composer.py and test_render_send_placement.py pass (72), as do the card scroll and transcript tests (41), pnpm run check and pnpm run test:runtime (978). max-sixty asked for this after the nightly benchmark flagged the comment send over its budget; they haven't read it yet.

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

Sending a comment from the comment box landed the user twice. The draft's
settlement took the box down and let the user go onto the page, which reads
the page's reading place: the first read after a change lays out every text
run on the page (reading-place.js, `runsIn`), 18 ms of the send's task at
1,024 sections in a profile. The send then landed them on the thread it
opened (`landSent`). Now the settlement takes the bar down without landing
(surface.js, `takeDownFab`), and the send lets the user go from the bar
only where it landed them nowhere and they still stand in it, as when a
later gesture took over before the thread showed.

The thread card's fade lengths inherit through the card, so writing them
restyled the card's every element. A card nothing has scrolled, as a new
one is, now leaves them unset, which the fade reads as zero; a new card
writes nothing.

`uv run leaf-dev bench asks --input comment --sizes 64,256,1024 --rounds 3
--base`, interleaved, lowest of 3, load average 12 to 25:

| Sections | Painted, main → branch (ms) | Shown | CPU |
| ---: | --- | --- | --- |
| 8 | 50.2 → 43.2 | 96.4 → 88.8 | 70.3 → 66.4 |
| 64 | 55.0 → 44.9 | 97.0 → 89.9 | 75.7 → 67.4 |
| 256 | 61.1 → 53.4 | 110.5 → 96.1 | 92.7 → 84.9 |
| 1,024 | 118.2 → 85.4 | 199.0 → 165.0 | 191.5 → 163.4 |

The server's reading of a send still shows past 100 ms at 1,024 sections.
A profile there puts what remains in the margin's annotation paint
(`paintAnnotations`, 38 ms: the inventory's collection of every record, 15,
each marker's position down the page, 7, and its name, 4), the margin's
row pass (`layoutMarginRows`, 20), the key hints each pass repaints (13),
the Tab stop (`syncRoving`, 6) and adopting the reading (12), each of
which reads the whole page.

The send and landing tests in drafts/test_sending.py, drafts/test_composer.py
and test_render_send_placement.py pass (72), as do the card scroll and
transcript tests (41), `pnpm run check` and `pnpm run test:runtime` (978).

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit b8fce15 into main Nov 15, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix-mac-only-tests branch November 15, 2026 18:00
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