Repository navigation
Place Reply directly after short panel threads - #1694
Merged
Merged
Conversation
Keep long replies pinned. Share held news and response continuity across thread surfaces so incoming and streamed text retain a natural editor, and explicit navigation releases held messages. Scope native details continuity to open disclosures. Update browser expectations and reviewed snapshots for the new short-thread geometry.
leaf-agent
previously approved these changes
Oct 4, 2026
leaf-agent
reviewed
Oct 4, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The test job is red on four thread appearance snapshots. The panel cases still expect the old full-height card (for example, panel/drafted expects 639px and renders 449.84px); the general capture also includes the moved panel Reply row. I reproduced general locally and confirmed the expected image shows Reply at the panel foot while the candidate shows it after the messages. Please review the changed captures, publish the accepted snapshot set with leaf-dev thread-snapshots capture and accept, and rerun the snapshot test. The failed CI job has the four cases and geometry readings.
leaf-agent
dismissed
their stale review
October 4, 2026 00:58
CI failed: thread appearance snapshots do not match the changed panel layout.
leaf-agent
approved these changes
Oct 4, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 4, 2026
A reaction put on a reply in another tab drew its strip under the answer at once, so an open short panel card grew 28px and its Reply box moved under the reader. The Threads panel already held new replies and streamed edits behind the thread's notice (#1694), but `HeldNews` compared only message bodies. It now compares what a message draws, its words and the reactions standing on it, and holds a reaction change behind the same notice ("1 reaction changed"). Outlets, which also draw reaction strips, get the same hold. - **Own gestures still show at once.** A press is the user's own while the ledger holds its attempt, and a withdrawal while the ledger holds an undo whose `undoes` names the reaction. Reactions are compared by token, which survives the log naming a pending reaction. - **No empty notice.** A message back to what was drawn, such as a reaction put on and taken off again, holds nothing. - **A held strip keeps its controls honest.** `toggleReaction` takes the face the press saw, so a press on a strip drawn behind the log means what it showed and sends nothing where the reaction already stands that way. The press also shows what the thread holds. Package callers omit the argument and keep acting on the current reading. - **A held reopening draws no strips**, since a thread drawn resolved offers no reactions. - **Filter counts use tabular figures**, so a count that news changes, such as 1 to 2, no longer widens its button and moves the choices after it by 2px. A count that gains a digit (9 to 10) still widens. `test_news_from_elsewhere_moves_nothing_in_a_short_panel_thread` fails on main in three places: the shift watch catches the 28px move and the 2px filter move, and the stale press withdraws the reaction. It passes here. A thread resolved or reopened from elsewhere, with no new turn, still moves an open card. This happens on main too and isn't part of this change. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 5, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
…ecords before changing a module held-news.js's header now records that a panel card holds news behind its notice (#1694), the choice #1525 recorded and the alternatives it rejected, and that arrival stays a set of call sites because deriving it from focus events missed shadow-tree moves and dialog hand-backs. /developing-leaf tells a change to read a module's decision record first, write a decision it settles there, and ask the user before reversing one they made. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
… now (#1780) Records decisions from the held-news case study where the next change will read them. - `AGENTS.md`, "Where instructions live": a module's header records the product decisions it embodies and the alternatives they rejected; a change that reverses one rewrites that record and says so in its commit. (#1525 kept its rejected alternative in `TODO.md`; #1694 adopted it without noting the reversal.) - `held-news.js`: the first such record. A panel card holds news behind its notice (the user's decision), rejecting filling the list (#1480) and letting the list move. Arrival stays the `showHeld` call sites, since deriving it from focus events missed focus moves inside one shadow tree and took a dialog's hand-back for an arrival. - `tests/AGENTS.md`: the narrow pull-request gate is the user's choice, so a red main is no reason to widen a change, its gate, or its test selection. The branch also carries that focus-derived arrival attempt and its revert, for reference; the net diff is the three records above. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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]>
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.
A short thread's Reply field now follows its last message. The card no longer stretches to fill the panel; a long conversation still pins Reply to the scrollport's bottom.
Thread presentation uses the shared news and response-continuity owners to preserve the native editor, draft, caret, and position. Incoming replies and streamed body edits that would move a short editor wait behind the existing news notice; pinned long threads follow incoming text. Explicit message and Ask navigation reveals held news, and canceled streams clear their notices.
The shared hold also preserves the displayed resolved card when reopening news arrives, and native disclosure retains space only while open. Pointer and keyboard reopening use the same resolution control.
Validation covers short/long arrivals, streaming, typing across the sticky threshold, refusal/retry, hosted reopening by click/r/Enter, and held message/Ask navigation in real browsers. The matched rendered comparison removes the short-thread gap with no additional startup requests. Reviewed message-delivery snapshots cover light, dark, and narrow layouts.