Repository navigation
Land a sent comment once, on its thread, and write no fade on a new card - #6029
Merged
Merged
Conversation
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_
leaf-agent
approved these changes
Nov 15, 2026
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.
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: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.pyandtest_render_send_placement.pypass (72), as do the card scroll and transcript tests (41),pnpm run checkandpnpm 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.