Skip to content

Let every thread card take a reply, and end a view's controls with its Close - #4622

Merged
max-sixty merged 4 commits into
mainfrom
resolved-reply-close-beside
Oct 31, 2026
Merged

max-sixty merged 4 commits into
mainfrom
resolved-reply-close-beside

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Two follow-ups to #4573 that the user picked on the threads-panel review page.

Every thread card takes a reply. A resolved card now keeps its reply box, whose empty box says "Reply to reopen" (the floating panel's words for the same box), and a send reopens the thread, as the panel already did. Before, the only place a resolved card showed, a widget seat's Resolved disclosure, drew it with no box, so writing there took Reopen first. With every thread taking a reply, the shared admission replyAvailable always held, so it goes with its plumbing: the per-session reply row in thread-card.js, its keystroke repaint, and replyThreadAtCurrentLocation, which c and the reply carry consulted. The margin keeps its own rule, now stated in annotation-inventory.js: a resolved thread leaves the margin unless a reply is being written in it.

A seat (inline.js) folds a resolved thread unless the user is writing in it, and a thread already in the disclosure stays there while they write, so the box never moves out from under the caret. A new browser test replies in a seat's resolved thread; with the keep-while-writing rule taken out, it fails.

A view's Close ends its controls. Whenever an open view has controls (a thread, or the On view with its tabs), its ✕ now stands at their end, beside Resolve in a thread, at rest and widened alike. The field below runs to the panel's edge (494px at rest in the 540px panel, from 442px), and Close no longer jumps between the row's seat and the controls when the field widens. A stance such as Draw mode, or a view with no controls, keeps its ✕ in the row's seat. This reverses the 25 October seat for views; the floating-panel.js header records both choices.

Behavior changes, with their tests:

  • A resolved thread card draws its reply box (test_a_reply_in_a_seat_s_resolved_thread_reopens_it, new). Two runtime tests that relied on a resolved card drawing no box now stub the box's input wiring.
  • A view's ✕ is found among its controls (test_a_view_s_close_ends_its_controls_and_the_field_the_row, replacing the widened-only test; two panel tests that pressed the ✕ in the row's seat; and the SEATS probe that holds a thread's controls still through news, which read the ✕ in the row).

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

…s Close

The user picked both proposals on the threads-panel page on 28 October.

Every thread card now keeps its reply box, a resolved one included, whose empty
box says "Reply to reopen" and whose send reopens the thread, as the floating
panel's field already did. Only a widget seat's Resolved disclosure showed a
resolved card, and it showed no box there. With every thread taking a reply,
the shared admission `replyAvailable` always held, so it is gone with its
plumbing: the per-session reply row, its keystroke repaint, and
`replyThreadAtCurrentLocation`, which `c` and the reply carry consulted. The
margin keeps its own rule, now stated where it lives: a resolved thread leaves
the margin unless a reply is being written in it.

A seat folds a resolved thread unless the user is writing in it, and a thread
already in the disclosure stays there while they write, so the box never moves
out from under them; a bug-back without that rule fails the new test.

A view's Close now ends its controls whenever the view has controls, beside
Resolve in a thread, at rest and widened alike, so the field runs to the panel's
edge (494px at rest, from 442px) and Close no longer jumps between the row's
seat and the controls when the field widens. A stance, or a view with no
controls, keeps its Close in the row's seat. This reverses the 25 October seat
for views; the header records both choices.

Tests: the panel tests now find Close among the controls, a new browser test
replies in a seat's resolved thread, and two runtime tests that relied on a
resolved card drawing no box stub the box's input wiring instead.
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json
leaf-agent
leaf-agent previously approved these changes Oct 28, 2026
# Conflicts:
#	browser/runtime/thread/thread-card.js
#	dist/kernel/kernel.json
#	dist/kernel/leaf.js
#	dist/kernel/runtime/bundle-data.js
#	dist/kernel/runtime/bundle-page-layout.js
@max-sixty
max-sixty merged commit 7748b5c into main Oct 31, 2026
4 checks passed
@max-sixty
max-sixty deleted the resolved-reply-close-beside branch October 31, 2026 19:54
max-sixty added a commit that referenced this pull request Oct 31, 2026
…ield (#4851)

The Leaf panel's row ends in one slot that the On me mark and a mode's ✕
(Close search, Exit Draw mode, Close picker, and the other modes entered
from the panel) take in turn. The slot was as wide as On me with room
for a two-digit count (50px), and the ✕ sat at its far end, so a focused
search field stood 29px clear of its ✕. Max questioned that gap on 31
October. #4622 already moved a thread view's Close beside Resolve; this
covers the modes that still put their ✕ in that slot.

Each occupant now takes its own width. On me keeps its count's room, so
a count arriving still moves nothing beside it. The ✕ takes the leaf's
width (32px), so it stands as far from the field as the leaf does at the
row's start, and the field's box ends 10px from it. The field gains 18px
while a mode is active, at a moment the field's contents change anyway,
and typing in the mode moves neither the field nor its ✕.

The slot now follows the mode alone: its ✕ stands while the mode does,
and once the mode ends a draft's Send takes the corner as it does at
rest. That removes `seatHeld`, which held the slot for a draft until the
user's next posture change. It saved no rewrap, since a mode's arrival
already rewraps a standing draft (984 → 931.6px on main), and only kept
On me beside the draft at the narrower width; its comment named a
refused send closing a view, a case it never reached. A draft standing
through a mode rewraps as the mode comes and as it goes, a rare path
(`browser/AGENTS.md`, "Stability is owed to the common path").

`test_a_mode_entered_from_the_panel_offers_its_way_out_in_the_row` now
holds the ✕ to the On me mark's right edge and to the leaf's distance
from the field, where it held the ✕ to the mark's whole box, and checks
that typing in Draw mode moves neither the field nor its ✕. Checked in
Firefox with `leaf-dev probe` against main, light and dark. The On me
mark at rest and a thread view's Resolve and Close are unchanged.

Max also asked whether the panel's ✓ and ✕ should move to its top, where
a thread card has them. They stay at its foot: the panel rests on the
window's foot and grows upward, and over three Resolves in a row, ✓ held
one spot while the panel's top edge moved 429px. `browser/AGENTS.md`
("Stability") now states the rule: a box's controls stand on an edge the
box holds as its content changes. For the panel that is its foot; a
thread card holds whichever edge keeps a pressed control still
(`CardAnchor.prepare`), so its controls can stand at its head.

> _This was written by Claude Code on behalf of max-sixty_
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