Skip to content

Keep the user in the box on Send, scroll bounded blocks instead of the page, and widen samples to their data-width - #1364

Merged
max-sixty merged 15 commits into
mainfrom
thread-focus-scroll
Sep 27, 2026
Merged

max-sixty merged 15 commits into
mainfrom
thread-focus-scroll

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Three follow-ups to #1303: two of the open focus/scroll gaps it left, and one layout bug found while presenting them.

A pressed Send leaves the user in the box

Clicking a box's Send left focus on the button, so the next letters the user typed ran page keys (an "ok" hid every mark and closed the margin card) instead of reaching the box. Pressing Send is now the send key pressed from the box, on every surface wireInput wires (margin card, thread panel, general box, seat Send and Send & pause, widget comment boxes):

  • A pointer press never takes focus (mousedown default prevented), so the box keeps it throughout.
  • A keyboard press on a focused Send returns the user to the box before submitting, so what the send does next starts from where Enter starts it. A seat that gives its box up still hands the user to the new thread's reply, and a first anchored comment still lands on the thread it starts (Keep message submission out of the next text box #961).
  • While an input method holds unfinished words, the press takes focus as before, since leaving the box is what finishes them; otherwise the unfinished words went out and the input method's commit wrote them back into the emptied box.

sendLanding (thread/reply-landing.js) no longer takes the button: its "focus is on the box or its Send" guard is always true now, and box.js's Send vs Send & pause branch is gone.

Tests: test_a_pressed_send_leaves_the_user_in_the_box (six surfaces × pointer/keyboard, the composer by pointer only since its Tab walks response options), 8 of whose cases fail on main; test_a_pointer_send_finishes_the_words_an_input_method_holds, which drives a composition through CDP and fails without the composition guard. Tests that expected Send focused after a click now expect the box.

Bounded blocks are reading regions

A block bounded with data-bound/x-bound scrolls on its own but registered no reading region, so every "which box scrolls this node" question answered with the page. A talk seat's first send in a bounded lf-command scrolled the page 117px and the second carried the block off screen; thread travel and the Ask walk into a bounded log moved the page.

bounds.js now holds every [data-lf-bound] block as a region while it stands in the page, whoever painted the bound (delivery for page content since #1325, markDeclared for message markup). A named block in the page's own document is lf-region:<id>:bound, so a revision finds its place again; an anonymous one, or one in a message's frozen markup, keeps one id for its life in this document.

  • One arrival watch. arrivals.js (watchArrivals(selector, attributes, { arrive, leave }), watchArrivalsIn(root)) is now the one owner of "keep a paint on elements matching a declaration while they stand in the document or an enrolled shadow root". External links, which had their own document observer, and bounds both use it; shadow-stage.js enrolls each root it fills. The watch starts at boot, before presentation, so an end log opens at its end rather than jumping there after.
  • scrollersOf(node) (reading-regions.js) walks the boxes scrolling a node, innermost first; holdBox gives the move to the block and hands what it cannot take to the page. Anchor travel's scrollingBoxFor uses the same walk. Whether the held control is on screen at all is geometry.js's answer, so a box in a block the page has scrolled away doesn't pull the page back when an agent turn arrives.
  • One "seen" reading. geometry.js's new seenRect is what of an item the user sees: shownRect cut at top and foot by the room the banner and shortcut bar leave (shownWindow), its sides left to the layout viewport so a pinch zoom doesn't count as a clip. Landing, bringForward, read acknowledgement (thread/read.js) and the thread card's "being read" check all ask it; read.js had counted lines under the banner or bar as read, and no longer does.
  • Travel and the Ask walk centre the destination in the block, then scroll the page only as far as needed.
  • Continuity records a following end block's place as its end (followingItsEnd), so a revision keeps it following; readings of regions no longer standing are dropped. carry.js restores a region body's sideways offset and leaves the vertical one to continuity.
  • Margin rows for a target in a bounded block in the column's flow keep the rail (railBeside), their lane clipped to the block; rows in a workspace's panes still pin, as Keep pins as overlays, and let a finger hide them from More #1333 has it.
  • With focus inside a bounded block, d/u page the block; thread context takes the nearest labelled region. The glossary now defines a bounded block as a reading region.

Tests in test_render_threads.py, test_render_navigation.py, test_render_margin.py and test_render_widgets.py cover the seat send (end and start), an arriving agent turn over a full, an unfilled, and a scrolled-away block, travel into named and anonymous logs, the Ask walk, margin rows beside the column and in side-by-side panes, d/u in a log, a bounded log in an agent reply, and a revision over a following log. Each fails with the arrival watch disabled, and all but the revision case fail on main.

A sample fills the room its data-width asks for

lf-sample is display: table; width: 100%, and a table box does not fill the negative margins the kernel's breakout gives it, so data-width="wide"/"available" shifted a sample left without widening it. The package theme now gives a sample its own breakout width, calc(100% + var(--lf-surplus)), under the same painted selector as the kernel's table[data-lf-space] rule. It is scoped to the sample's own breakout because --lf-surplus inherits: unscoped, a plain sample inside a wide section came out 1080px in a 720px item. test_a_sample_fills_the_room_its_authored_width_takes (test_render_pages.py) fails without the rule.

Checks

uv run pytest tests (1426 passed) and npm run test:runtime (151 passed) locally. Independent reviews ran on each of the three changes and on each repair; the browser files these touch have pre-existing failures on main (the ?t= URL assertions after #1337, the margin picked_up cases, test_a_coined_class_cannot_reach_the_chromes_rules), each reproduced on the merge base.

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

🤖 Generated with Claude Code

max-sixty and others added 14 commits September 27, 2026 12:24
Pressing a text box's submit control now does what Enter in the box does:
the user stays in the box. Since #961 a pointer press left the focus on
Send, so the next letters ran page keys. Typing "ok" after a clicked Send
hid every mark (`o`) and closed the margin card (`k`), and nothing
reached the box. #961's goal stands: a send never moves the user into a
different box.

`wireInput` owns this for every submit control it wires, so the Threads
panel, the margin card, page seats (Send and a talk seat's Send & pause),
the page-comment box, the anchored composer and an options group's Add
all get it from one place. A pointer press cancels mousedown's default,
so Send never takes the focus and the box never hears it leave. A keyboard
press on the control (Tab to Send, then Space or Enter) returns to the box
before submitting. Every route then starts the send from the same state
Enter does. Where the send removes its box, focus lands where it does
after Enter: on the sent thread for an anchored comment's first message,
and in the new thread's reply for a seat that gives its box up. The send
landing therefore always lands around the box, and `sendLanding` no longer
takes the button.

Behavior moved in tests: a sent general comment, a panel reply, a margin
card reply and a long panel reply now expect the box focused where they
expected Send, and a keyboard press on an options group's Add leaves the
user in its field, where the emptied field hides Add. A new case covers
card, panel, page-comment box, Send & pause and a seat handoff, by pointer
and by keyboard: the box keeps focus through the pointer press, and "ok"
typed after the send lands in the box with the marks still shown.

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

A block bounded with x-bound or data-bound scrolls on its own, but registered no
reading region, so every question naming the box that scrolls a node answered
with the page. A talk seat's first send in a bounded command scrolled the page
117px and the second carried the block out of the window; thread travel and the
Ask walk to a passage in a bounded log moved the page to centre it.

bounds.js now registers every bounded block as a reading region, its body the
box that scrolls it (the element, or the box its theme marks
`--lf-bound-box: 1`), and lets go of removed blocks on each install and patch.
A block of the page's own document with an id takes `lf-region:<id>:bound`, so
a revision can find its place again. Any other block, anonymous or in a
message's frozen markup (whose ids repeat the page's), takes an id naming that
element in this document alone: it answers every geometry question and keeps
its place while it stands, and a replacement document starts it afresh.

What moves:

- A seat send, and an agent turn arriving above a box being typed in, move
  the block; the page stays still. `scrollersOf` walks the boxes scrolling a
  node, innermost first and ending at a fixed boundary, and `holdBox` hands
  what the block cannot take to the page, so a block its contents do not yet
  fill still holds the box.
- Travel and the Ask walk centre the destination in the block, then bring it
  into the page only as far as it must.
- Continuity records a following `end` bound's place as its end, so a
  revision leaves it following rather than restoring the line at its top; a
  reader who scrolled back keeps their line. carry.js no longer restores a
  bounded block's raw scrollTop, since region continuity owns it.
- Margin rows for a target in a region that reaches the column's edge keep
  the rail instead of turning to pins; the region's lane is clipped to its
  band and across to the rail, so nothing draws past the block's edges.
- Reading keys with focus inside a bounded block page the block, the region's
  more-below edge paints on it, and Page Map names give no percent-down for a
  target inside one, as for any region.

Page-CSS scrollers stay unsupported; `version check` already advises bounding
the block instead.

Tests: a seat send in a bounded block (end and start) leaves the page still
with the turn and box in view; an agent turn holds the box still in a full and
an unfilled bounded block; travel into a named and an anonymous bounded log
scrolls the log, and brings an off-window log back; the Ask walk lands at the
log's top; margin rows stay in the rail and draw nothing past the log's foot;
a revision leaves a following log at its end and a reader on their line. The
rowPosture runtime case takes `besideRail` in place of `rootLane`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The kernel's breakout rule gives an authored `data-width` its room by
negative margins, which an auto-width block fills. `lf-sample` is a
table box with `width: 100%`, so a sample marked `data-width="wide"` or
`"available"` moved left by the margin and kept the column's width. The
default package theme now gives a sample under an authored or painted
breakout `width: calc(100% + var(--lf-surplus))`, screen only, with the
same selectors as the kernel's table rule. A `column` sample keeps the
kernel's column cap.

The rule stays scoped to the sample's own breakout because
`--lf-surplus` is unregistered and inherits. The simpler form, the same
calc with a `0px` fallback on every sample, set a plain sample in a list
item inside a wide section to 1080px: the item's 720px plus the
section's inherited surplus.

`test_a_sample_fills_the_room_its_authored_width_takes`
(tests/test_render_pages.py) sets wide and available samples at
1440x900 and requires both edges to match a plain block given the same
width. It also requires a `column` sample and an unmarked one to keep
the column, and a sample in that nested list item to keep the item's
width. It fails without the rule, and the nested control fails under
the unscoped form.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A pointer press on Send no longer takes the focus, so it never blurred the
box. While an input method held unfinished words, that blur was what
finished them: without it the words went out unfinished, and the input
method's later commit wrote them back into the box the send had just
emptied. While a composition is open the press now takes the focus as it
always did, and the click returns the user to the box before it sends.

test_a_pointer_send_finishes_the_words_an_input_method_holds drives a
composition through CDP's Input.imeSetComposition and fails without the
change (the composition never ends). test_a_pressed_send_leaves_the_user_in_the_box
gains the anchored composer under a pointer press, where #961 lands the user
on the thread the comment starts; its Send takes no keyboard press, since
Tab there walks the field and the response options.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…till behind a bounded block

Review fixes on bounded blocks as reading regions.

A bound is now held where it is painted. `markDeclared` moves from
presentation.js into declared-paint.js, and it calls `holdBounds` on the
root it paints. That covers a page install, a revision's arrivals and
rewritten elements, and a message's frozen markup, which the thread paints
and no install ever swept. A log bounded at its end in an agent reply was
neither the box scrolling its lines nor held at its end until a later page
revision. `settle()` no longer sweeps the document. Each block's hold lasts
as long as its element, and the block's own ResizeObserver answers for its
connection: a block entering the document is registered, one leaving it is
let go. An anonymous block keeps one id for its life. Version continuity
drops the reading of a region that no longer stands, so dead ids stop
accruing in the handoff.

holdBox asked whether the control showed in its own scroller's band, and
not in the window. A box shown inside a bounded block that the page had
scrolled away counted as on screen, and the part of a turn's growth the
block could not take went to the page under a reader: 81px in the test.
`onScreen` now reads the band every box in `scrollersOf` shows, the window
included.

Only a bounded block in the column's flow takes the rail. The earlier rule
gave the rail to any region reaching the column's edge, which moved the
right pane of a side-by-side workspace (and a held workspace body) from pins
to the rail. Panes pin as they did before; #1333 says a rail cannot help a
pin in a pane.

Also:
- A thread's context label comes from the nearest labelled region, so a
  bounded block inside a labelled pane reads as part of that pane.
- carry.js carries a region body's sideways offset, since region continuity
  restores only the vertical place.

Tests: an arriving turn leaves a reader who scrolled away still with a
bounded block, full and not yet full; a bounded log in an agent reply is the
box scrolling its lines and opens at its end; rows in side-by-side panes pin
while the rail stands; d and u page a bounded block with focus inside it.
Each fails with its fix removed.

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

#1325 moved the page's declared marks to delivery, so the browser's
`markDeclared` now paints only message markup. Holding a bound from the pass
that paints it would have held replies and no page block. bounds.js now holds
every `[data-lf-bound]` block as it arrives in the document, whoever painted
it: one watch on the body (`holdArrivingBounds`, started at boot) holds what
the page opens with, every node added since (a revision's arrivals, a
message's markup), and any element whose bound is painted or taken away in
place, and lets go of a block that leaves. declared-paint.js is gone;
`markDeclared` stays in presentation.js as main has it.

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

#1325 paints an authored data-width as data-lf-space at delivery and dropped the
kernel's main [data-width] selectors, so the sample rule's second half matched
nothing a painted rule does not.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	tests/test_render_widgets.py
…metry whether a control shows

Bounded blocks and external links both need their paint for as long as an
element stands in the page, whoever put it there, and each had a hand-written
MutationObserver over the document for it. Only the links' covered declared
shadow roots. arrivals.js now owns that watch:
`watchArrivals(selector, attributes, { arrive, leave })` calls `arrive` for
each matching element standing in `document.body` or an enrolled shadow root,
now and as it is added or has a watched attribute changed, and `leave` once it
no longer stands or matches. shadow-stage.js enrolls each root it fills
(`watchArrivalsIn`), so a bounded block inside a widget's shadow tree is now a
reading region too. External links and bounds are cut over; the links' own
observer and root set are gone. widget-controller.js's lifecycle observer is a
different shape (registered owners, not a declaration) and stays.

`holdArrivingBounds` starts at boot, before presentation, and takes a layout
read for each bounded block there. It can't wait: an `end` log opens at its
end, and a pin taken once the page has presented would show the log at its top
and then jump.

holdBox's `onScreen` asks geometry.js (`shownRect`) whether the control shows
through every box that clips it and the window, rather than intersecting
scroller bands itself.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
onScreen asked geometry.js's shownRect, which clips a node by every box over it
and the window but not by the chrome, so a control standing only under the
banner counted as shown and a landing held still with it there. It now also
asks shownWindow, geometry's reading of the window the chrome leaves, as the
banner-inset band it replaced did.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…t, and answer being seen in geometry.js

Review fixes to the arrivals watch and to being on screen.

A render that kept an external link and rebuilt the children around it
(`setChildren`, a stage's refill, a data projection) dropped the note beside
the link, and only the link's own children re-offered it, so the link went on
describing itself by an id nothing carried. `watchArrivals` now offers a match
again when a sibling next to it is added or removed as well as when its
children change: where an owner's paint stands. The note stays a sibling
rather than moving inside the link, since inside it would join the link's
`textContent`, which renderers and tests read as the link's words.

A stage built while its host was detached never arrived: an added or removed
node's matches did not reach into the stages inside it. They do now, so the
stage's links are marked and its bounded blocks held when the host lands.
arrivals.js is also the stages' one registry (`liveStages`); shadow-stage.js's
copy is gone and it enrolls each stage as it builds it.

Bounded blocks are re-offered by those neighbourhood changes too, and each
sync reads every descendant's style. `arrive` now syncs only a block that is
not registered or whose bound changed; what a registered block holds stays
its own observer's.

`dress` no longer paints external links beside the watch, which already marks
every link that stands, the install included.

geometry.js gains `seenRect`: `shownRect` held to the room the chrome leaves
(`shownWindow({ within })`), so a shortcut-bar box cuts only what it stands
across. It is the one answer to whether the user sees something, and three
callers that each re-added the chrome now ask it:

- holdBox's `onScreen` (reply-landing.js): same answer as before, except the
  bottom band now cuts only a control it stands across.
- The composer's `bringForward` (composing/surface.js) travels to an
  addressable the shortcut bar wholly covers, as it already did to one the
  banner covers.
- Read exposure (thread/read.js) no longer counts a message's lines under the
  banner or the shortcut bar as shown. That was wrong before: words the chrome
  covers are not words the user has seen.

skills/leaf/assets/AGENTS.md names arrivals.js and `seenRect`.

Tests: a kept link gets its note back after `setChildren`; a stage filled
before its host is inserted has its link marked and its bounded block
registered at its end. Both fail on 1d7ff5a.

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

seenRect took its sides from the visual viewport, so under a pinch zoom a
message wider than the zoomed view was never seen whole across and read.js's
full-width rule never marked it read. The chrome cuts only its top and foot
now; its sides are shownRect's, as they were for read before seenRect. The
thread card's check for which messages a new summary would swallow while they
are being read now asks seenRect too, so a message under the banner or bar is
not being read there either.

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

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The canonical glossary still defines Bounded block as “not a reading region.” This PR registers bounded blocks as reading regions and updates the package reference to say so, leaving the glossary with the opposite contract for future runtime work. Please update that definition in this change. I can push the wording change if helpful.

@max-sixty
max-sixty merged commit 2cc74a9 into main Sep 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the thread-focus-scroll branch September 27, 2026 22:56
max-sixty added a commit that referenced this pull request Sep 28, 2026
…1351)

The declared marks (x-space, x-inline, x-exhibit, x-bound, x-reading-role) now have one table, `schema.DECLARED_MARKS`, which both painters read. Delivery paints a page's document from it, and the runtime paints a thread message from the same table, stamped into the vocabulary as `$marks`.

**Owner.** #1325 made delivery paint a page's marks, which left the vocabulary stated twice. Python's `revision_delivery.py` had `DECLARED_MARKS` and `AUTHORED_MARKS`, and derived each paint name as `data-lf-<key>`. The runtime's `presentation.js` had `MARKED_IN_MESSAGE`, the five mark entries of `PAGE_PAINT_ATTRIBUTE`, and a separate `data-bound` override line. Nothing had drifted yet. The keys belong to `EXTENSION_SCHEMA`, so the table sits beside it in `schema.py`. Each entry names its paint attribute, the authored attribute that overrides the tag's declaration (`data-width`, `data-bound`), and whether the mark holds in a message. Every mark does except x-space, because the room belongs to the document and a message renders in the panel.

**What changed**

- `registry.layer.stamp_composition` stamps `$decisions` and `$marks`. It replaces the two `stamp_decisions` calls in `page init`'s layer composition and a page's composition, which is the route #1275 took for `$decisions`. A declared `$marks` is overwritten.
- `mark_declared` iterates `DECLARED_MARKS`. The runtime's `markDeclared` iterates `registry.$marks` and skips the marks that don't hold in a message. The registry intake requires `$marks`.
- `PAGE_PAINT_ATTRIBUTE` loses its five mark entries and holds only the runtime's own paint. The replay signature's exclusion is now `isPagePaint(name)`, which accepts the runtime's paint or any `$marks` paint.
- `bounds.js` names `data-lf-bound` literally, as the theme's bound rule does. Its watch on arriving bounds (#1364) starts at boot, before any registry has loaded.
- Deleted: `DECLARED_MARKS`/`AUTHORED_MARKS` in delivery, `MARKED_IN_MESSAGE`, the runtime's `data-bound` special case, and `PAGE_PAINT_ATTRIBUTE`'s `inline`, `space`, `readingRole`, `bound` and `exhibit`.

**What still names the paint attributes.** `theme.css`, `layouts.css`, package themes, `render-checks/layout.js` and `bounds.js` read them by name. Those names are the stylesheet's contract, which `packages.md` documents for package authors. `structure.AUTHORED_ALLOCATIONS` names `data-width` and `data-bound` too. It holds a different fact: the values an author may write, checked by `page check`, and it includes `data-rail`, which is not a mark.

**Behaviour that moved.** None for a user. A served vocabulary without `$marks` now fails at intake, the same way one without `$decisions` does. `test_a_message_carries_the_marks_a_page_would_except_its_room` checks a message's marks through the served registry: exhibit, inline, an authored `data-bound`, and no room even for an authored `data-width`. It fails when `markDeclared` ignores the `message` flag. `test_replay_signatures_exclude_settlement_and_other_runtime_paint` now also checks that a mark's paint stays out of the replay signature.

**Phase profile.** No startup change. The registry fetch and its size are the same apart from the five-entry `$marks`, and delivery paints the same attributes it did before.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
max-sixty added a commit that referenced this pull request Oct 9, 2026
…e page (#1784)

Typing in a floating comment box scrolled the page whenever the box
stood
under or over its passage and grew past the room shown on that side. On
every content change, `floating-response.js` asked `makeRoom` to scroll
the reading region until the whole box fit clear of the passage. A
stack-logged probe at 900x700 measured it. With the box over its passage
at mid-window, the first keystroke scrolled the page 162px. With the box
under a passage near the top, the page scrolled 55px once the box
reached
the window's foot. The user's rule is that the box moves and the page
stays.

The comment box's height may now reach the whole boundary on every side,
as it already could beside its passage, and growth never spends scroll
travel. It grows from the edge that holds it (#1890 holds a landed box
by
that edge). Once the window stops that edge, shift
slides it over its passage, and once it fills the window it scrolls its
own words. This is what a box beside its passage already did at the
window's foot. Only a thread card opening under or over its target still
scrolls to make room. The margin card's reply never scrolled the page
while typing; the same probe confirmed that at both widths.

Letting the box fill the window exposed a 2px mismatch at Send. The box
reserved 2px less beneath its words than the card's reply row takes, so
a
card capped at the window's height shrank its transcript and shifted the
sent words up 2px (`test_send_grows_thread_around_the_words` at
900x600).
One token, `--lf-comment-reply-row`, now sizes both.

Behavior changes the tests now protect:

- `test_typing_moves_the_comment_box_and_leaves_the_page_still` (new)
  types line by line into a box under and over its passage and checks
that the page never scrolls and the box stays in the window. Both cases
  fail on main.
- `test_a_growing_text_comment_keeps_its_side_and_the_page_still` (was
  `..._keeps_its_passage_clear_without_changing_sides`) and
  `test_a_text_comment_chooses_above_when_the_page_has_more_room_there`
asserted that typing scrolled the page and kept the passage clear. They
now assert that the page stays put, and that a later scroll carries the
  grown box with its passage.
-
`test_a_wheel_return_attaches_the_comment_box_in_the_first_visible_frame`
types a shorter draft. In its pane cases, typing used to scroll the pane
  to make room under the passage, and the test expected the box there.
- `test_where_a_comment_stands_before_and_after_send`'s phone case
  required the box to overlap its block only when the two couldn't show
  together, which only held while typing scrolled the page. It now
  requires a box that overlaps to stand at the window's edge.

The assets AGENTS.md "Stability" section now says a floating box grows
inside the window and never scrolls the page for its growth. A field in
flow, which cannot move apart from the page, still keeps its controls in
view.


## Add-on F: one shared reading of where the user works

The design review proposed one reading of the user's working point,
shared
by the card's held edge (`holding`, fed by `drafting` in
`margin-projection.js`), the place keeper (`recentPlaceInput` in
`user-place.js`) and typing growth. This change doesn't add it. I sorted
the place- and landing-hold repairs since 2026-09-23 by the question
each
answered:

- Which edge of the card stays still: #1429, #1536, #1552, #1574, #1587,
  #1771. #1552 and #1574 fixed how the hold was keyed across a second
  placement pass and across Send's admission, not which point the user
  works at.
- Which item in a scroller stays still: #1045, #1464, #1480, #1549,
#1694,
  #1715, #1735.
- What waits behind a notice: #1473, #1493, #1725, #1738, #1742.
- What a landing reveals on entering, sending or typing: #1303, #1364,
  #1571, #1602, #1624, #1626, #1645.
- Whether the box or the page moves as the box grows: #1453 and this
one.

None of these commits names a case where `drafting` and
`recentPlaceInput` disagreed, so a shared reading wouldn't have
prevented
them. The two readings also differ by design. `drafting` counts words
left
in the reply and a send still in flight, both of which outlast focus and
the pointer. The place keeper deliberately follows whichever of pointer
and focus came last. Their outputs differ in kind too: one is an edge of
a
floating surface, the other a node in a scroller's list. The typing
scroll
was a question of which thing moves, so it needed no working-point
reading.

One rule does repeat: a focused control counts as the user's place only
while it is on screen. `holdBox` (`reply-landing.js`), the place
keeper's
"begins in the band" filter, and #1735's resize landing each state it.
It
is a candidate for a shared predicate, but not the primitive F
described.

## Overlap with work in other worktrees

`leaf.shift-a-thread-jitter` has uncommitted changes to
`comment-placement.js`, `floating.js` and `floating-response.js`, based
on
#1705. Its `floating-response.js` hunk is small. Its
`comment-placement.js`
header rewrite overlaps the paragraph this change rewrites, so expect a
textual conflict there. `leaf.thread-card-margin-avoidance` is mid-merge
in
`comment-placement.js` and `margin-projection.js`. Neither touches
`makeRoom`'s call from `floating-response.js` or the frame tokens.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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