Repository navigation
Draw a thread a reaction opens as any thread, from the moment it is put on - #7445
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Nov 27, 2026
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.
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 andlf-reactwash. 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.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 --basereports no package-interface name added or removed.pnpm run check, withtest:runtime, passes, and so do the 65 tests undertests/browserandtests/journeysthat the change edits or that build a reaction, run by node id.Closes #7323