Skip to content

Bring a refused detached comment's box back beside its words, and its thread's view away - #3298

Merged
max-sixty merged 2 commits into
mainfrom
fp-refused-detached-comment
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fp-refused-detached-comment

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

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).

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

max-sixty and others added 2 commits October 20, 2026 02:10
… 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
@max-sixty
max-sixty merged commit ef520b3 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the fp-refused-detached-comment branch October 20, 2026 09:20
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]>
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