Skip to content

Let a thread's quote read as a quote without quotation marks - #5430

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

A thread's head in the floating panel drew the words it is about in curly marks, on top of the rule and quiet ink that already say they are quoted. The head has carried both since the first release. The marks came from anchorLabel, the one string every surface names an anchor by, which accessible names, announcements and lf-activity's lines also read. In running text the marks are all that sets the words apart, so anchorLabel keeps them, and the head draws the same place and words through a new anchorQuote, with none.

A head that names a place before the words, as design · heading · t · “Rollout” or app.py · new line 2 · “request.token.id” do, keeps the marks: without them a fresh reviewer read the quoted word as one more label in a path.

The field's placeholder, notices such as "Resolved “…”", Page Map's pointed rows and the hidden description behind #lf-composer-quote keep their marks, since none of them wears the quote's face. Threads' rows name a thread rather than its passage, and a margin card draws no quote, so neither changes.

Also in this change

  • The quote no longer darkens on hover. It takes no press, and browser/AGENTS.md, "Visual treatment carries meaning", says a difference the reader sees means something. It now shows the text cursor over words it lets the reader copy.
  • .lf-quote and .lf-thread-quote become one class. The hidden composer description was the only other element wearing .lf-quote, and it is never drawn. The quote also leaves the list of controls held to the aim floor, along with the rules that cancelled the floor and the pointer cursor for it.
  • quoteReading loses its words field, which nothing read.

Tests

Assertions on the head's text now state a passage without marks, including one in tests/journeys/test_site.py, which this branch updated without running. The focused browser tests over these paths, pnpm run test:runtime, pnpm run check:browser and pre-commit pass, and a Firefox probe read each anchor shape on the merge base and this branch.

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

A thread's head drew the words it is about in curly marks, on top of the rule
and quiet ink that already say they are quoted. The marks came from `anchorLabel`,
the one string every surface names an anchor by: in an accessible name or a feed's
line, marks are all that sets the words apart. `anchorLabel` keeps them there, and
the head now draws the same place and words through `anchorQuote`, with none.

The quote also stops darkening on hover and showing a pointer's leftovers, since
it takes no press. Its `.lf-quote` and `.lf-thread-quote` classes were one element's
two names once the hidden composer description stopped wearing the first, so they
are now one rule.
A fresh look at the captures read "design · heading · t · Rollout" as a
path of labels, with the quoted word one more label. The marks still say
which part of such a line is the quotation, so only a line holding only
words drops them.
@max-sixty
max-sixty merged commit a3a5804 into main Nov 5, 2026
4 checks passed
@max-sixty
max-sixty deleted the thread-quote-marks branch November 5, 2026 08:03
max-sixty added a commit that referenced this pull request Nov 5, 2026
…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 added a commit that referenced this pull request Nov 5, 2026
…ds (#5447)

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 #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_
max-sixty added a commit that referenced this pull request Nov 5, 2026
A phone user can now read what the floating panel said only in tooltips:
why a thread has no place on the page, each version's note, each
neighbouring page's whole account, and which agent resolved a thread.
Versions also opens at the version the page shows. Part of #4027.

**What was unreachable.** A journey tapped through the panel's views at
390×844 under a coarse pointer on six pages, and read every element
whose `title` holds words its visible text doesn't, or whose words are
cut. A second read did the same for the page itself on 31 catalog,
developer and docs pages. Four sets of panel words had no route for a
finger:

- **A thread's missing passage.** The quote's title alone said "This
passage is no longer in the version shown". The view drew the quote and
no Show on page, with nothing saying why.
- **A version's note.** Versions cut it to one line, whole on hover. The
note is the only place a version says what changed, and across 2,245
distinct notes in page logs on this machine the median is 92 characters,
where a phone's row shows at most about 40.
- **All pages' rows.** The title and the agent's line were cut, and
where the session works, which tells two pages of one title apart, was
only in the row's title.
- **Who resolved a thread.** Only Reopen's name said so.

**What changed.**

- `quoteReading` gives a thread's quote one `status` word: Not in the
latest version, Not found, Earlier data or Changed. The first is true on
every version the thread is read from, including an earlier one where
the passage still stands, which Not in this version wasn't. The word now
leads the quote, so its three-line clamp can't cut it, which it did to
Changed and Earlier data on a long quote. The quote has no title, and
the four titles `quoteReading` computed for found passages, which
nothing drew, are gone.
- Under `(pointer: coarse), (hover: none)` a panel row's words stand
whole at rest (`floating-panel.css`): a menu row's, such as Undo naming
its gesture; a version's note on the lines under its name; and in All
pages the title, the agent's line and the rest of the account (`rest`,
`live-leaves.js`). A mouse keeps the cut words and their titles, as
chosen on 15 October: at 1280×800 All pages draws the same, and Versions
differs only by a passing notice's fade.
- The panel's field says "Resolved by Codex" for a thread the agent
resolved, on every pointer. On an earlier version the field shares its
line with the version chip, and a long name such as Claude Code cuts to
"Resolved …"; Reopen's name still says it whole. This change accepts
that cut.
- Versions opens at the version the page shows (`at` on the view,
`focusView` in `floating-panel.js`). That row comes into view by either
route, and a key lands on it rather than on the first row. Reopened from
an older version, a long list used to open at the top with Showing out
of sight: on base past about 14 versions, and with this change's taller
phone rows past about 7 (inferred, not measured), where about 30% of the
local pages the review counted have more versions.
- `keyboard/AGENTS.md`, "Touch routes", states the rule for words: a
`title` can't be the only place a state's reason or the rest of a cut
word is said, though a row may keep one for a mouse.
- `skills/leaf/references/threads.md` says a detached thread's quote is
marked as not in the latest version.
- `leaf-dev stills` gains `detached-thread` and `all-pages`.
`plan-versions-touch` now stamps a long note first, since the fixtures'
own notes ("Earlier draft") never reach the cut.

**Already reachable, unchanged.**

- The compare state: the field says "5 changes since v2" and Compare
wears its pressed contour.
- A disabled menu row's reason: no row carries one. Resume writing,
Restore discarded edit and Restore selection are disabled with no title,
and the command reference says why a command is unavailable when
pressed.
- On me's answers keep their two lines. Show, by tap, lands on the
option's card with its whole words in view.
- Copy link's grant is on About. A mode's or search's row holds one ✕,
and the On me count returns when it ends.
- Clipped diagrams: none at 390 wide. All 31 pages have a `scrollWidth`
of 390. Each `lf-diagram` wider than its box scrolled to its end under a
synthesized touch swipe: `pr-flow-diagram` 589 in 292,
`security-proposed-states` 937 in 342, `request-path` 749 in 342,
`layers-flow` 490 in 342. Other drawings scale to fit.

**What's left of #4027:**

> **Finish what a phone user still cannot reach.** `lf-trace` says some
things only in titles: the input badge's selector, call times and that
key-down times aren't recorded, and what Review pace does. A version's
cut note and All pages' account also have no keyboard route on a
desktop, where focus paints nothing.

**Calls Max may reverse.**

- The words Not in the latest version and Not found, and the status
leading the quote, which also moves Changed and Earlier data.
- A key opening Versions lands on the version shown, not the first row,
so its ring is in view. `test_versions_travel_opens_in_the_panel` and
`test_versions_rests_the_page_s_keys_and_takes_a_version_s_number` now
say so; both open on the tab's v1. On base, the first Enter after `g V`
from an older version opened the latest version; now Enter on the shown
row only closes the panel.
- Whole words at rest under a finger rather than the held press
`held-word.js` gives other controls. A hold is undiscoverable on a row
and needs a measurement of whether the words are cut; this costs taller
rows on a phone, which the pairs below show.
- "Resolved by Codex" shows on desktop too.

**Evidence.** Still pairs are in
`/Users/maximilian/.tmp/leaf.agent-a50b95e230784033f/phone-reach/`
(`version-note`, `detached-quote`, `all-pages`, `resolved-by`,
`versions-reopen`, and `wide-diagram` before and after its swipe). The
first three come from `uv run leaf-dev stills --state
plan-versions-touch --state detached-thread --state all-pages --viewport
phone`, at 390×844 under a finger, and `resolved-by` from `leaf-dev
probe --viewport phone --base`. `versions-reopen` shows 13 versions
reopened at v2 by tap, with the scroll removed (before) and kept
(after). `detached-quote-earlier-version.png` shows the gallery's
detached thread read at v1, saying Not in the latest version.

With the source at base and the tests at head, the five tests holding
these words fail, and with the new scroll line removed both cases of
`test_versions_opens_at_the_version_the_page_shows` fail
(`test_a_finger_reads_a_version_s_note_whole`,
`test_a_finger_reads_a_neighbouring_page_s_whole_account`,
`test_a_thread_whose_words_are_gone_keeps_its_quotation_in_the_panel`,
`test_a_removed_subject_keeps_its_thread_open_and_detached`,
`test_news_in_an_open_thread_moves_none_of_its_controls`), and
`test_versions_travel_opens_in_the_panel` passes as the control.

**Ran.** 62 test functions that read the quote, its status, a version's
note, All pages' rows, or how Versions opens and where its keys land;
`pnpm run test:runtime` (810); `pnpm run check`; the Versions state in
Firefox and WebKit, whose note wraps whole in both. Two of those tests
were already red on main and are repaired here, since they read this
quote: `.lf-fp-quote` no longer exists, and
`test_quotes_cross_preserving_containers_and_remain_attached` still
expected the quotation marks #5430 removed. This also removes the
`.lf-fp-page > .lf-external-mark` rules, which matched nothing, since
that mark is `a[data-lf-external]::after`.

**Not verified.** A real phone; emulation only, and no iOS run. The
title read covered each page's open tab, since a closed tab's panel has
no box. The new All pages test uses a real neighbour, but its stills use
a rewritten state, since a stills server has no neighbour.
`test_on_a_phone_turning_on_s_tabs_moves_nothing` flakes on this tree (2
of 3 runs) and on base (3 of 3), under load, independent of this change.

> _This was written by Claude Code on behalf of max-sixty_

---------

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