Repository navigation
Grow the floating panel's thread view for the answer the user waits for - #2916
Merged
Merged
Conversation
…n its 6px Reverses #2902's room. #2902 gave every open view 12px at its foot so the line over the field (`.lf-fp-context`) could lie across the seam without covering the view's last words. Over an open view that line mostly repeated what was on screen: in a thread, "Reply in this thread", which the head names, or arrival news the view already shows ("Claude replied"); in Threads, "Comment on the page", which the placeholder said before typing. - **No line over an open view.** The line shows only with no view open, above the row, as before. The view's foot padding is 6px again, and the `--lf-fp-say`/`--lf-fp-foot-room` variables and the overlay rules go. - **The leaf's peek says a notice answering the user.** A notice the line would have said while a view is open, such as a refused send's reason, is said by the peek, as on a folded panel. Unfolded, the peek stands over the view's foot from the leaf's left edge, inside the panel's width. News arriving (`notice(..., {background: true})`) goes unsaid there but for the live region: the notice reading now carries `news`, so the panel tells the two apart. - **New reply fits the 6px foot.** Its strip still stands on the panel's ground and reaches the view's edge through the padding it gives back. Tests: `test_nothing_lies_over_a_view_s_foot_but_new_reply` replaces `test_nothing_in_a_view_stands_under_the_line_or_new_reply`: nothing is said over the view's foot (line or peek) while typing at the end of a long Threads list or thread, or when the answer's arrival waits behind New reply; the view keeps only its padding under its last words; New reply stays inside the view and clear of the user's last turn. The notice test now holds that the peek says a covered notice over an open thread, inside the window, clear of the head, from the leaf's left edge. The first-thread and click-into-field tests hold that the line stays away over a view. Each fails without the change; the foot test fails with the peek saying arrival news ("8 replies in 1 thread") if the news filter is dropped. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/assets/runtime/floating-panel.js # skills/leaf/kernel/kernel.json # skills/leaf/kernel/leaf.js
Reverses #2892's hold. While the user's own turn ended a thread, its view held the height it stood at, so the agent's answer landed inside it; in a one-comment thread that view was one message tall, so the answer waited behind New reply, the user's own message header scrolled under the head, and a sliver of the answer showed under the press. The user chose to let the view grow for this one case, an exception to the stability rule and the shift watch, recorded where the rule lives. - **The view grows for the answer.** The answer to the user's last turn, work under way and a reply streaming included, grows the view up to its cap (`--lf-fp-view-height`): the field stays put and the head rises. Only past the cap does New reply appear. The thread view no longer holds a room at all, so `fitAnswer` loses its hold and release branches. - **What stands behind New reply looks intentional.** The user's turn stays wholly in sight above the press, header first where it is taller than the room. New reply's sticky strip now sticks at the view's edge (`bottom: -6px`): a sticky box sticks at its scroller's content edge, inside the padding, which let the answer show through below the press. - **The exception is recorded and scoped.** `skills/leaf/assets/AGENTS.md` ("Stability") names it. The shift watch credits a scrollport that declares it stands on its foot (`data-lf-rises`, only the panel's thread view) rising at its head with its `append` region's growth, by no more than it, carrying what it holds and what stands above it in the boxes that rise with it (`appendGrowth`). The panel's outlet declares `append`, and the primary reader marks a reply still streaming at the thread's end as its growing tail, as thread cards do. A carried text may change its words as it goes (a message's "Sent" becoming its next state), so its fragment's end edge is no longer compared. Tests: `test_an_answer_the_user_waits_for_grows_the_view_up_to_its_cap` replaces `..._shows_at_once_where_it_fits`: the view grows with the head rising by the same distance and the field still; past the cap the view stands at its cap, the user's turn is wholly in sight above New reply, and New reply's ground reaches the view's foot. The streaming test now holds that each step grows the view with the head rising and the end in sight. The thread-walk and New update tests use answers longer than the cap. `test_append_growth_may_raise_a_port_standing_on_its_foot` covers the credit and its limits: undeclared region or port, an extra move of the head, a port rising past the growth, and a stand outside the runtime all fail; a carried text changing its words passes. Each fails without the change. The selection also ran with the watch's VERIFY = 1. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 15, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 15, 2026
…iew (#2918) Brings GOAL.md's departures in line with #2916 (the awaited answer grows the view) and #2913 (no line over an open view). > _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.
Reverses #2892's hold. While the user's own turn ended a thread, its view held the height it stood at, so the agent's answer landed inside it; in a one-comment thread that view was one message tall, so the answer waited behind New reply, the user's own message header scrolled under the head, and a sliver of the answer showed under the press. The user chose to let the view grow for this one case, an exception to the stability rule and the shift watch, recorded where the rule lives.
--lf-fp-view-height): the field stays put and the head rises. Only past the cap does New reply appear. The thread view no longer holds a room at all, sofitAnswerloses its hold and release branches.bottom: -6px): a sticky box sticks at its scroller's content edge, inside the padding, which let the answer show through below the press.skills/leaf/assets/AGENTS.md("Stability") names it. The shift watch credits a scrollport that declares it stands on its foot (data-lf-rises, only the panel's thread view) rising at its head with itsappendregion's growth, by no more than it, carrying what it holds and what stands above it in the boxes that rise with it (appendGrowth). The panel's outlet declaresappend, and the primary reader marks a reply still streaming at the thread's end as its growing tail, as thread cards do. A carried text may change its words as it goes (a message's "Sent" becoming its next state), so its fragment's end edge is no longer compared.Tests:
test_an_answer_the_user_waits_for_grows_the_view_up_to_its_capreplaces..._shows_at_once_where_it_fits: the view grows with the head rising by the same distance and the field still; past the cap the view stands at its cap, the user's turn is wholly in sight above New reply, and New reply's ground reaches the view's foot. The streaming test now holds that each step grows the view with the head rising and the end in sight. The thread-walk and New update tests use answers longer than the cap.test_append_growth_may_raise_a_port_standing_on_its_footcovers the credit and its limits: undeclared region or port, an extra move of the head, a port rising past the growth, and a stand outside the runtime all fail; a carried text changing its words passes. Each fails without the change. The selection also ran with the watch's VERIFY = 1.