Repository navigation
Give the panel field's readings one home, in field-readings.js - #6444
Merged
Merged
Conversation
What the floating panel's empty field says, how long each reading holds it, what
leads its words and what its end offers was spread across fieldReading's branch
order, passing(), SAYS_ELSE, the page editor's enters, the module header and the
guide's table. field-readings.js now declares the readings in the order they claim
the field, each with its lifetime, its product decisions, what leads it ("standing",
"stance" or nothing) and what its end offers ("key", "comment", "moment", "none").
readField walks it over the moment's facts, which fieldReading reads for the page's
field or a thread's reply box. The page and thread editors take the field's end
straight from the reading, and SAYS_ELSE and the dead `more` branch of standing go.
Behavior that changes:
- The Go-to word and a walk's position lead with the stance alone, as a notice did,
rather than with everything where the user stands. With annotations hidden, `t`
now reads "Thread 1 of 2" for its moment instead of "Annotations hidden · Thread 1
of 2"; the status's own words bring the rest back when the moment ends. This
reverses the earlier rule that only a notice took the stance alone.
The guide's "What the panel's line says" gains the held-keys row and the Go-to word,
corrects the caret's words to Comment… and Reply…, and a runtime test holds its rows
to FIELD_READINGS' order. The precedence, the end presses and the leads are tested in
Node (tests/runtime/field-readings.test.mjs) rather than only through the browser.
Max asked for this as #3 on the handback page for #6421: one home for the field's
precedence, "much more cohesive".
Codex reviewed the field-readings commit and found the rule still had second homes: - The folded leaf's peek chose notice, then Go-to word, then walk position in `passing()`, beside the same order in the field's notice reading. `passingWords` in field-readings.js now holds that order, and both read it; selected words read its Go-to-or-step half. - The Errors dot predicted which errors the field says, through its own copy of "a press notice beats an error", and counted every error the field could say as said, though it says only the newest. It now reads the field's reading: the one error the field says goes undotted. Behavior change: with two errors about nothing raised before the user writes, the older one, which the newer covers, now dots the leaf and the menu's Errors at once, where before it showed nowhere until the first edit passed both. The test asserting the old dot is rewritten. - `pressing` was derivable from the notice's press and the caret, so the error reading derives it and the fact is gone. Two further behavior changes from the previous commit, named here: while the page holds early keys, an open thread's reply field offers nothing at its end, as the page field does, where before it showed its key; and a reply field whose thread has left the reading says nothing, an error included, for the paint before its route retires. Tests: the runtime test for the readings gains the selection's end and ink, the turn's, the status's lead, held keys in a thread, and the peek's order. Runtime suite 1059 pass; 134 panel, notice, held-key and peek browser tests pass.
leaf-agent
previously approved these changes
Nov 18, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
#6442 rewrites the same seat. It gives passing() and navigationWords() in floating-panel.js a says argument naming the facts each surface already states, and changes which surface says a notice's "— o shows them". This PR replaces both functions with passingWords and lets passing words lead with the stance alone. Whichever lands second will need its composition moved into FIELD_READINGS rather than a textual merge, since the two disagree about what decides a notice's lead: lead: "stance" here, and the surface's stated facts there.
#6429 gave a thread's reply field Reply… and its key after a notice that offers no press, through the panel's SAYS_ELSE. This branch moves the field's ends into field-readings.js, so that rule now lives in `endOf`'s thread case, with a runtime assertion beside the Go-to notice's. The field-readings header names ⌘Z, the key #6429 gave undo.
leaf-agent
previously approved these changes
Nov 19, 2026
…o FIELD_READINGS #6442 has each surface of the panel hear what passes through what its own words already say of where the user stands (`says`): on the page field a notice about one of those facts is left to them, and a walk over a list one of them is about says its place alone ("5 changes since v2 · 1 of 5"). The panel now gathers that per surface (`passingFacts`), so the field's facts, the folded leaf's peek and FIELD_READINGS keep one order and one rule. Behavior change against this branch's earlier head: the Go-to word and a walk's position lead with all of where the user stands again, as on main, while a notice keeps the stance alone (`lead` on the "notice" reading). #6442's place-alone wording counts on it, and with it #6444 changes no words. Leading every passing word with the stance alone, as this branch had it, is still open with Max. The guide's Go-to example reads "No visible threads", as #6442 words it.
leaf-agent
previously approved these changes
Nov 19, 2026
#6447 holds an undo's notice until the next input. Its comment in notifications.js now points at field-readings.js for the press the field's end says, and the readings' header and the guide's table of the panel's line say that an undo's notice, like one offering a press, holds until the next input; so does the guide's Notices lede, which still said four seconds for every notice.
leaf-agent
approved these changes
Nov 19, 2026
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.
The floating panel's empty field says one thing at a time (an error, keys held while the page loads, where typed words go, selected words, a passing notice, the agent's status, or Reply in a thread), and its end offers one press. That rule lived in three places: the branch order of
fieldReadinginfloating-panel.js, the editors' own end arbitration (SAYS_ELSE), and about 80 lines of the panel's header, with the guide's table copying the order by hand. NowFIELD_READINGSin the newbrowser/runtime/field-readings.jsdeclares each reading in order, with its lifetime, what leads its words and what its end offers.readFieldwalks that list, and the panel only gathers the moment's facts for the surface asking, including what that surface's own words already say of where the user stands (#6442'ssays, nowpassingFacts). The folded leaf's peek and the Errors dot read the same reading instead of predicting it. A runtime test holds the guide's table (docs/using.html, "What the panel's line says") to the declared order.The diff doesn't make these behavior changes obvious:
What passes on the page field leads as on
main: a notice with the stance alone, the Go-to word and a walk's position with all of where the user stands, which #6442's "5 changes since v2 · 1 of 5" counts on. Max kept that over leading every passing word with the stance alone.Max asked for this on a Leaf review page ("let's try to make this much more cohesive"). Codex reviewed it, and its findings are folded in. The runtime suite (1061 tests) passes, as do 111 browser tests covering the panel, notices, Go-to, walks, comparisons and the peek.