Repository navigation
Say in the panel's passing seat only what the screen doesn't - #6427
Merged
Merged
Conversation
After #6403 dropped "Options" from the On Me walk's position, Max asked for the same question to be put to everything the panel shows in passing: what does it tell the reader that the screen doesn't? A walk's position now names its list only when the walk carries the user across the page and the panel doesn't already name it ("Thread 2 of 5", "Match 3 of 9", "2 of 5 waiting on me"). Behavior that changed: - A walk inside a list on screen whose end may be out of view says only its place: tabs, the Page Map, the command reference and visual review's cases read "2 of 14" rather than "Tab 2 of 14", "Entry …", "Command …", "Case …". `rowWalk` declares its position with no noun; its `noun` still names the step routes. - The change walk reads "5 changes since v2 · 1 of 5" rather than "5 changes since v2 · Change 1 of 5 since v2", since the field already names the comparison. A listener still hears "Change 1 of 5 since v2". - A walk over a list always wholly in view declares no walk: a question's options, the reaction bar, the response options, a margin cluster's entries, the visible margin markers, Go-to and target-picker hints, and a chart's points. The ring shows the place, so the field keeps the agent's status, or the walk the user came by: On Me's "1 of 4 waiting on me" now stands while they arrow through that item's options. `rowWalk` takes `position: null` for such a list; a reader returning null still ends the walk standing, as the panel's own rows do. A chart still tells a listener "Point 3 of 8", through `walkPositionLabel`, which the portable API now exports. - The Go-to filter's count ("3 visible hyperlinks; type a hint or press Tab to hear them.") is announced only, as arming Go-to already is; the narrowed hints show it. With none, the field's "No visible hyperlinks" loses its full stop, as the seat's other words have none. Kept as notices: the comparison's and the annotation toggle's. Making either announce-only left an earlier notice standing over its opposite ("Annotations hidden — o shows them" after showing them, "No changes marked" over a fresh comparison), since a notice isn't tied to the condition its words state. The rule is stated at `beginWalk` (walk-declaration.js), and module-input.md says what `rowWalk` and `beginWalk` show with a null noun. One gap: with a thread open in the panel, whose field shows no standing words, the change walk's lead reads a bare "1 of 5".
leaf-agent
approved these changes
Nov 18, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 19, 2026
…tices declare (#6442) Walk owners and notice producers now declare facts, and the panel composes what it says from them, saying only what the screen and its own words don't; a listener hears the whole position either way. This is #6427's follow-up: Max asked to put "what does this tell the reader that the screen doesn't?" to everything the panel says in passing, to let the panel compose it rather than each call site guessing what is visible, and for a way to survey, review and iterate. `leaf-dev words` (#6439, landed) is that survey; three fresh reviewers worked from its captures. <img src="https://gist.githubusercontent.com/max-sixty/17c067fe5d4b7930043a18803c0295c8/raw/c83ac52419ef0db864c2e3bcc4ba976ad0d6728a/panel-before-after-2.png" alt="The panel's field on main and on this branch after four presses" width="900"> **How it composes.** `beginWalk(key, noun, read, {list, about})`. `list` is the walk's first and last stops: Leaf declines a step while both stand whole in view, so the ring alone answers it and the walk the user came by stands (a two-tab strip, a question's options, a diff whose hunks all show). `about` names the fact where the user stands that the list belongs to ("comparison" for its changes). Each surface passes the facts its own words say: the page field's standing words say a comparison and hidden annotations, so there a change's place reads "5 changes since v2 · 1 of 5" and a notice that only repeats them stays out of the field; the folded leaf's peek and a thread's field say none, so they show the notice and the whole position ("Change 1 of 2 since v1" beside a thread's reply, which read a bare "1 of 5"). Such a notice holds the seat like any other, so on the page field it is unseen for its moment and news waits behind it. Notices take `stands`, the condition their words state, and retire, shown or queued, when it lapses ("N changes since v2 — v shows them" once a comparison stands). **Settled with Max:** a list on screen names what it counts ("Tab 14 of 14", "Command 1 of 97", where #6427 had "14 of 14"), since a fresh reviewer found the bare count ambiguous beside a tab strip whose rows read "1 of 31 pages real". Hiding annotations by key keeps "— o shows them" in the field, since the standing words don't name the key. **Also from the survey:** Go-to armed with no hint in view says "No visible targets"; counts agree with nouns ("1 visible target"), and the filters say "threads" and "margin entries"; page search reads a match inside a word back as the word ("rather", not "ra the r") and Enter says the match's place; `.` announces folding; a diff's steps are heard as "Hunk 2 of 3: src/summary.rs". **Weaknesses:** a dot or line chart bounds its walk by its whole drawing, which counts as shown when taller than the window; a partly visible option list's walk replaces On Me's, so On Me's view loses its ring on that item; Go-to with hint chips still says nothing in the field (as on main). Tests: new browser tests for the thread-field change walk, notices following their premise, the toggle's notice in the field and the folded peek, and a match inside a word; the touched browser and journey tests, `pnpm run check` and the runtime tests pass. > _This was written by Claude Code on behalf of max-sixty_
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 panel's seat for passing words now says only what the screen doesn't. #6403 dropped "Options" from the On Me walk's position because it named the kind of item the user was already looking at; this puts the same question to every walk position and notice the seat shows.
A walk's position names its list only when the walk carries the user across the page and the panel doesn't already name it ("Thread 2 of 5", "Match 3 of 9"). A walk inside a list on screen that may run past the window says only its place: tabs, the Page Map, the command reference and visual review's cases read "2 of 14", and the change walk reads "5 changes since v2 · 1 of 5". A walk over a list always wholly in view declares no walk: a question's options, the reaction bar, response options, a margin cluster's entries, the visible margin markers, Go-to hints and chart points. The field keeps the agent's status there, or the walk the user came by: On Me's "1 of 4 waiting on me" now stands while they arrow through that item's options. The Go-to filter's count is announced to screen readers only, as arming Go-to already is.
Where to look: the rule is stated at
beginWalkinwalk-declaration.js.rowWalktakesposition: nullfor a list always wholly in view, which leaves the walk the user came by standing, where a reader returning null, as the panel's own rows pass, ends it. The portable API now exportswalkPositionLabel, so an owner whose panel position names no list still announces one ("Change 1 of 5 since v2", a chart's "Point 3 of 8");module-input.mdstates what a null noun shows. One gap: with a thread open in the panel, whose field shows no standing words, the change walk's lead reads a bare "1 of 5".Kept as notices, though they repeat the field: starting or ending a comparison, and the annotation toggle. Making them announce-only left an earlier notice standing over its opposite ("Annotations hidden — o shows them" after showing them), because a notice isn't tied to the condition its words state. That is a follow-up once #6421's rework of
notifications.jslands.Max asked for this. A fresh reviewer used the captures, read the diff and checked the fixes for its findings. The touched browser and journey tests, the runtime tests and the browser type check pass.