Skip to content

Set a thread quote's place apart by its face, not by marks on the words - #5447

Merged
max-sixty merged 3 commits into
mainfrom
thread-quote-marks
Nov 5, 2026
Merged

max-sixty merged 3 commits into
mainfrom
thread-quote-marks

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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, 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 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. anchorQuote goes, and anchorLabel (place, then the words in marks) stays for running text such as accessible names and notices. Threads' search now reads anchorLabel of the thread's passage, so quoteReading is private to the thread card.

What changes on screen

  • A place before quoted words is set smaller and medium weight: design · paragraph · p · Retries are capped at three.
  • A head that names only a place, such as § paragraph · Retries are capped at three., takes the same face, since the whole line is a place.
  • A head of quoted words alone is unchanged from Let a thread's quote read as a quote without quotation marks #5430.

Tests

Two assertions also needed repair. test_quotes_cross_preserving_containers_and_remain_attached still expected the marks #5430 removed from a head of words alone. test_a_data_bound_diff_aims_and_selects_one_source_line already failed on main before reaching its head assertion, because it expected an anchor without the prefix and suffix the capture records; it now expects both, and its head reads app.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.

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

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
leaf-agent previously approved these changes Nov 5, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@max-sixty
max-sixty merged commit 6584aa9 into main Nov 5, 2026
4 checks passed
@max-sixty
max-sixty deleted the thread-quote-marks branch November 5, 2026 09:12
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]>
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