Skip to content

Draw a thread a reaction opens as any thread, from the moment it is put on - #7445

Merged
max-sixty merged 7 commits into
mainfrom
trial-reaction-as-thread
Nov 27, 2026
Merged

max-sixty merged 7 commits into
mainfrom
trial-reaction-as-thread

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A thread holding only the reaction that opened it was a special case: the server served bare_reaction, the panel neither listed nor counted it, and the page drew it as the emoji in the margin, with its own Undo disclosure, Escape scope and lf-react wash. Since #7304 made a reaction a message the agent answers, that state lasts only until the agent's first line. Now such a thread is carried and drawn like any other from the moment it is put on: Threads lists and counts it, its passage wears the comment mark, its margin entry is the thread marker, and its card opens on the emoji.

Before After
An unanswered 👍 on a passage: the emoji in the margin, the passage in a lighter wash The same 👍: the speech-bubble marker by the passage's line, the passage in the comment mark
Pressing the emoji reveals Undo beside it Pressing the marker opens the thread's card, whose one message is the 👍, queued for the agent
While the agent works on a ✂️, its emoji entry previews 'reaction actions… On it' The ✂️ thread's marker previews as any thread's: Me, On it, 1 message

The card offers no way to take an emoji message back; pressing the emoji again in the picker on the passage does, as does Cmd+Z. Max chose this trade in #7323. Taking back a reaction that opened a thread now brings any reply begun in its card to the passage's draft, as a comment's undo does.

Code +127 −467, not counting the compiled JavaScript; tests +157 −424. leaf-dev interface --base reports no package-interface name added or removed. pnpm run check, with test:runtime, passes, and so do the 65 tests under tests/browser and tests/journeys that the change edits or that build a reaction, run by node id.

Closes #7323

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

Measurement branch, not for landing. A thread that holds only the reaction
that opened it was a mark on its anchor: the server served `bare_reaction`,
the panel listed and counted only `discussed` threads, and the page drew the
emoji as a margin glyph with its own Undo disclosure and Escape scope over a
`lf-react` wash. Here that split is gone. The thread is listed and counted from
the moment it is put on, its passage wears the comment mark and its margin item
the thread marker, and its card opens on the emoji. The user takes the reaction
back by pressing its emoji again in the picker, or with Cmd+Z.

Tests that asserted the mark, its receipt disclosure, the `lf-react` paint or a
bare reaction's absence from Threads now assert the thread; three tests whose
only subject was the receipt seat are deleted (its press-away, a margin render
cycle it could cause, a pin unfolding from it, which test_pins covers).
# Conflicts:
#	browser/runtime/annotations/anchor-controls.js
#	browser/runtime/annotations/anchor-paint.js
#	browser/runtime/records/thread/actions.js
#	browser/runtime/records/thread/placement.js
#	browser/runtime/records/thread/state.js
#	browser/runtime/records/undo.js
#	browser/runtime/state/semantic-application.js
#	browser/runtime/state/thread/model.js
Two threads on one passage share one margin row; a card opened from its marker
starts in its reply, so two Escapes take it down; an element-anchored reaction
leaves its thread's marker, with no wash or contour.
…n back

A reaction now opens a thread with a reply box, so taking it back brings the
words of that box to the passage's draft, as a comment's undo does; giving back
nothing leaves the draft and Resume writing as they stand. Also: the crowded-
cluster test narrows its window, since its reactions no longer widen the
cluster; the widget round-trip asserts its note counts both threads; the
snapshot test uses the publisher's thread shape; the gallery and icon notes
stop pointing at the removed Undo disclosure.
@max-sixty
max-sixty merged commit f02e93b into main Nov 27, 2026
7 checks passed
@max-sixty
max-sixty deleted the trial-reaction-as-thread branch November 27, 2026 21:33
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.

A reaction opens an ordinary thread, with no drawing of its own while unanswered

2 participants