Repository navigation
Drop the Open interactive reply button from drawings that don't hold the widgets - #3436
Merged
Merged
Conversation
…the widgets A reply's widgets stand in one drawing at a time, and the holder is always the highest-ranked drawing that is shown, so whenever a drawing without them is on screen, the drawing that has them is too: the panel's thread view beside the seat it took them from. The button in the drawing without them pointed at widgets already in view, so it goes, with its style. That drawing now shows the reply's words alone, and takes the widgets back when the holder closes, which a new test holds (seat -> panel thread view -> Back). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
A reply carrying markup kept one live copy of its widgets, and an arbiter (`authoredHolders`) handed it between the drawings of the message by rank and visibility, so every other drawing showed the reply's words without its question. Nothing needed the single copy across drawings: widget state is keyed by id in `applicationState`, references inside a message resolve within its own body, and descriptors fall back by id. So each drawing now draws its own copy, cloned from the inert prepared markup; the first takes the prepared instance, which still names the message's elements while no drawing shows it (`messageHolding`). The arbiter, `authoredRank`, the card's release on close and the destination's route to the holder go. A thread about an element in a message now lands on that element in the drawing its route opened. Behavior change: the seat and the panel's view of the same thread both show the reply's widget, and an answer in one shows in both (`test_a_reply_s_widget_stands_in_every_drawing_of_it`, replacing the hand-back and fold tests the arbiter needed). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
Two live copies of a reply's widgets put two elements under each widget id, and the runtime and packages resolve an id to the first in the document. A review with browser probes found that standing in an obligation, walking to it (`m`), an option the user added in `lf-options`, and the panel's wait on its own widgets' paint all follow the first copy, so they break whenever a second drawing shows the reply. Back to one instance handed between drawings, without the button, until id resolution can name the copy in the drawing being asked about. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 21, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 21, 2026
Records the option PR #3436 left open: giving each view of a reply its own copy of the widgets, what it needs (id lookups resolved inside the asking drawing, plus rules for the four lookups that arrive with no drawing), and when to revisit it. > _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.
Since #3417, only one drawing of a reply holds its widgets (the panel first, then a margin card, then a seat on the page, among the shown ones), and every other drawing showed an "Open interactive reply" button pointing at the holder. Whenever a non-holder is shown, the holder is shown too, so the button only ever pointed at widgets already in view: in practice a seated reply beside the panel's thread view of it. This removes the button and its style, so a non-holding drawing shows the reply's words alone.
test_a_seated_reply_lends_its_widget_to_the_panel_and_takes_it_backopens a seated thread in the panel, checks the seat keeps only the words while the panel holds the widget, and that Back returns the widget to the seat.Drawing the widgets in every drawing was tried and reverted on this branch: the runtime and package widgets resolve a widget id to the first element in the document (
elementById,document.getElementById), so a second copy breaks obligation standing,mwalks, an option added through "Another option", the panel's paint wait,lf-boardcolumns and anchors inside a reply. Making copies work needs id lookup scoped to the drawing being asked about.