Repository navigation
Set a thread quote's place apart by its face, not by marks on the words - #5447
Merged
Merged
Conversation
After #5430 a thread's head dropped the quotation marks only when it held nothing but quoted words; a head naming a place first, such as "design · heading · t · “Rollout”", kept them, because `anchorQuote` built the head from the same joined string as `anchorLabel` and could only choose whether to add marks. `anchorPlace` now returns where an anchor stands on its own, and the head draws that place and the quoted words as two parts: the place in the quote's status face, the one "Changed" already wears, and the words in the quote's face with no marks. `anchorQuote` goes. `anchorLabel` keeps the marks for running text. Threads' search reads `anchorLabel` of the thread's passage, so `quoteReading` is private to the thread card. Visible change: a place before a thread's words, and a head that names only a place ("§ paragraph · …"), now read in the smaller, medium-weight status face. A head of quoted words alone is unchanged.
leaf-agent
previously approved these changes
Nov 5, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
One selected test fails here and also fails on current main, so this PR didn't cause it: tests/browser/test_render_anchors.py::test_quotes_cross_preserving_containers_and_remain_attached still expects “Release context. Which plan should lead?” (with quotation marks) on a head made only of quoted words. #5430 removed those marks, and this PR leaves that case as it is.
…text test_quotes_cross_preserving_containers_and_remain_attached still expected the marks #5430 removed from a head of words alone. The data-bound diff journey already failed on main, since it expected an anchor without the prefix and suffix the capture records.
leaf-agent
approved these changes
Nov 5, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 5, 2026
The quote's status leads both, and where a place follows it the place's own separator joins them in the status's face: "Changed · design · heading · Rollout". The title #5447 kept for a detached quote goes, as this branch's status word says it. Co-Authored-By: Claude Opus 5.5 <[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.
After #5430 a thread's head dropped quotation marks only when it held nothing but quoted words. A head naming a place first, such as
design · heading · t · “Rollout”, kept them, becauseanchorQuotebuilt the head from the same joined string asanchorLabeland could only choose whether to add marks.anchorPlacenow returns where an anchor stands on its own, and the head draws the place and the quoted words as two parts. The place takes the quote's status face, the one "Changed" already wears in the same line, and the words keep the quote's face with no marks.anchorQuotegoes, andanchorLabel(place, then the words in marks) stays for running text such as accessible names and notices. Threads' search now readsanchorLabelof the thread's passage, soquoteReadingis private to the thread card.What changes on screen
design · paragraph · p · Retries are capped at three.§ paragraph · Retries are capped at three., takes the same face, since the whole line is a place.Tests
Two assertions also needed repair.
test_quotes_cross_preserving_containers_and_remain_attachedstill expected the marks #5430 removed from a head of words alone.test_a_data_bound_diff_aims_and_selects_one_source_linealready failed onmainbefore reaching its head assertion, because it expected an anchor without theprefixandsuffixthe capture records; it now expects both, and its head readsapp.py · new line 2 · request.token.id. Both pass locally, as do the focused browser tests over the thread head, Threads search, design mode and rewritten anchors. A Firefox probe read each kind of head and found a thread by searching a word it quotes.