Repository navigation
Bring a refused detached comment's box back beside its words, and its thread's view away - #3298
Merged
Merged
Conversation
… thread's view away A selection the page's text can't name again, such as one running into a suggestion, has a detached anchor: only the browser's Range knows where its words stand. The placement dropped that Range whenever the box went down, so the box a refusal reopened stood in the unanchored window posture, in the window's top-left corner. The Range now stays with its anchor across the box's tenures, while its endpoints survive and it still reads as the quote, so a refused send's box, and Resume writing, stand beside the words again. Such a thread has no card beside its passage, so the send opened it in the panel, and the refusal left that view saying "This thread is not on the page." A thread view now goes whenever the reading no longer holds its thread, as a margin card does, whoever opened it, an undone comment's included (untested). The panel's own page-comment refusal keeps only its caret rule on top of that, and the unreachable "not on the page" text is gone. Behavior changed: a refused detached comment reopens beside its passage with no panel view (test_a_refused_detached_comment_reopens_beside_its_words). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
leaf-agent
approved these changes
Oct 20, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 21, 2026
The [main CI run](https://github.com/max-sixty/leaf/actions/runs/39548136774) timed out pressing Remove drawing in the inserted-frame case. After the viewport change, the drawing's floating composer was above the viewport (`y = -79` in the focused reproduction); Playwright could not press its control while the page remained scrolled away from the drawing. The test now returns to the drawing's section before pressing Remove drawing. It still checks that a changed native frame parks the ink and that removing the draft clears its mark. Both `test_a_missing_native_frame_cannot_retarget_another_svg` cases pass locally. The test change preserves the floating composer's page-anchored placement, which #3298 uses for detached comments. Co-authored-by: leaf-agent <[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.
A selection the page's text can't name again, such as one running into a suggestion, has a detached anchor: only the browser's Range knows where its words stand. The placement dropped that Range whenever the box went down, so the box a refusal reopened stood in the unanchored window posture, in the window's top-left corner. The Range now stays with its anchor across the box's tenures, while its endpoints survive and it still reads as the quote, so a refused send's box, and Resume writing, stand beside the words again.
Such a thread has no card beside its passage, so the send opened it in the panel, and the refusal left that view saying "This thread is not on the page." A thread view now goes whenever the reading no longer holds its thread, as a margin card does, whoever opened it, an undone comment's included (untested). The panel's own page-comment refusal keeps only its caret rule on top of that, and the unreachable "not on the page" text is gone.
Behavior changed: a refused detached comment reopens beside its passage with no panel view (test_a_refused_detached_comment_reopens_beside_its_words).
Found while building the shared error cover (#3246).