Skip to content

Drop the Open interactive reply button from drawings that don't hold the widgets - #3436

Merged
max-sixty merged 6 commits into
mainfrom
inline-interactive-replies
Oct 21, 2026
Merged

max-sixty merged 6 commits into
mainfrom
inline-interactive-replies

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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_back opens 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, m walks, an option added through "Another option", the panel's paint wait, lf-board columns and anchors inside a reply. Making copies work needs id lookup scoped to the drawing being asked about.

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

max-sixty and others added 6 commits October 20, 2026 22:22
…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]>
@max-sixty
max-sixty merged commit a19528f into main Oct 21, 2026
3 checks passed
@max-sixty
max-sixty deleted the inline-interactive-replies branch October 21, 2026 06:19
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]>
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