Repository navigation
Make an armed Go-to map a stance, so the panel's field names it and offers Close - #6448
Merged
Merged
Conversation
After `t` or `m`, the panel's empty field said the walk's position
("Thread 4 of 7") for as long as the user stayed at the stop it reached,
so the agent's status line, and every update to it, stayed hidden while
the user read there. Max asked for the position to show for a few
seconds and the status to come back, and for the rule behind when the
field says the user's own state ("page status") instead of the agent's.
The rule, now in the floating panel's header: the agent's status is the
field's own words. Something of the user's replaces it only while it
answers or directs what the user is doing: an error until their first
edit, selected words, held keys, the Go-to filter while it waits for a
key, and a notice or a walk's position for a notice's moment. Where the
user stands by a choice that lasts (a mode, an older version, a
comparison, hidden annotations) leads the status instead.
Behavior that changed:
- A walk's step holds the panel's seat for NOTICE_MS (4 s) from the
latest step (`answerStep`, replacing `holdStatus(900)`), then the
status returns while the walk itself stays where it landed (On Me's
ring, the thread view's lead). News arriving meanwhile now waits for
that moment, as it waits for a notice, rather than 900 ms.
- A thread open in the panel keeps the position before its reply, since
the field there says no status.
- A mode (Draw, Design, the picker) now leads the status, "In Draw mode
· <status>", with Close at the field's end, instead of replacing it;
the `stance` reading of `data-lf-says` is gone. This extends Max's
request to the general rule and is the call he may reverse.
Tests: a fake-clock browser test that the status returns after the
moment and a step renews it (fails on main); the Draw-mode tests read
the status after the mode's name; the semantic-selection journey no
longer depends on the match position outliving its moment.
> _This was written by Claude Code on behalf of max-sixty_
…e field's rule and the guide > _This was written by Claude Code on behalf of max-sixty_
# Conflicts: # browser/runtime/floating-panel.js
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".
…each press The panel's seat for passing words answers presses: a notice, a walk's position, the Go-to word, where the user stands. Judging those words one call site at a time missed how they read beside each other and beside the screen, so this presses every page command a key reaches at rest, the journeys whose later presses depend on the first, and the first stop of each widget kind, and tabulates what the seat says, what it says once a notice's moment has passed and what the live region heard, base beside head. PANEL_SAYS, the seat's reader, moves to leaf_dev.browser so the tests and the survey read the seat the same way.
…their owners declare
A walk's owner used to choose what Leaf's panel showed of its position: a null noun
for a list on screen, `position: null` for one wholly in view, and its own label for
a listener. No owner could know what the panel's own words already named, so with a
thread open in the panel the change walk read a bare "1 of 5", and a two-tab strip
said "1 of 2" while both tabs stood in view.
Owners now declare facts and Leaf composes the words. `beginWalk(key, noun, read,
{list, named})` takes what one stop is, the elements a list on screen stands in, and
whether the page field's standing words name the list. Leaf declines a step whose
list stands whole in view, so the ring alone answers it and the walk the user came by
stands; says the place alone where the list is on screen or the field names it; and
the whole position elsewhere. `beginWalk` returns the whole position for the owner's
announcement. Behavior that changed:
- With a thread open in the panel, the change walk's lead names the comparison,
"Change 1 of 2 since v1"; the page field still says "2 changes since v1 · 1 of 2".
- A list's step says nothing where all of the list is in view, measured at the step:
a two-tab strip, a visual review's queue, a chart's points; a long tab strip or the
command reference still says "2 of 14".
- Packages lose `walkPositionLabel` and `rowWalk`'s `position: null`; module-input.md
says what `list` does.
A notice now stands no longer than its words hold (`notice(…, {stands})`), shown or
waiting: "N changes since v2 — v shows them" goes once a comparison stands, and "No
changes marked" once one marks some. With that, `v` and `o` no longer show a notice
that only repeats the field's standing words ("5 changes since v2", "Annotations
hidden"); a listener still hears them, and their opposites, as before.
Listener words the survey (`leaf-dev words`) found wrong: Go-to's counts agree with
their nouns ("1 visible target", "2 visible threads", where the threads filter said
"Thread controls"), and Enter on a page search's match says its place and context
as `n` does ("Match 3 of 9, selected: …").
The survey heard page search say "…issues ra the r than blockers" for "the" in "rather": the match's description put a space on each side of the match whatever stood there. A match whose neighbouring letters run on in its own text node now joins them, so a listener hears "rather"; one at a node's edge keeps its space.
The survey pressed ArrowDown, ArrowRight and End at each widget's first stop, which missed walks on other keys, such as a diff's ] and [ between hunks. It now presses each key of the walks the register offers from that stop and nowhere else, and reaches further down a page.
…lists by their stops Review of the last round found the panel's surfaces disagreeing about where the user stands. The page field says the comparison and hidden annotations in its standing words, but the folded leaf's peek and a thread's field say none of them, so making `v` and `o` announce-only left the folded peek blank, and the change walk's `named` flag had its owner assert what the page field's words said. A notice or walk now names the fact where the user stands that it concerns (`about`): "comparison" for a comparison's start, end and changes, "annotations" for the `o` toggle. Each surface passes the facts its own words say: the page field leaves an `about` notice to its standing words and says a change's place alone, while the peek and a thread's field, which say none, show the notice and the whole position. So folded, `o` shows "Annotations hidden — o shows them" again; unfolded, the field says "Annotations hidden" at once with no notice repeating it. A walk's `list` is its first and last stops, never one holding element: a scrolling case list measured as its own box declined steps whose cases ran out of view. The visual review's queue rows, the chart's first and last point shapes and a diff's hunk and file heads now bound their walks, and the visual review announces the case's place, which focus moving to the case doesn't say. Also: a notice's premise and its press's both hold it up; a notice whose premise has already lapsed isn't shown; the since-seen count's arrival is a signal, so a newer arrival retires the older news; page search's announcement falls back to the active match's place where the walk can't place it.
# Conflicts: # browser/runtime/annotation-overlay/margin-projection.js # browser/runtime/change-walk.js # browser/runtime/floating-panel.js # browser/runtime/keyboard/command-reference.js # browser/runtime/keyboard/go-to-sequence.js # browser/runtime/notifications.js # browser/runtime/walk-declaration.js # browser/runtime/walk-position.js # packages/default/widgets/lf-chart.js # packages/default/widgets/lf-tabs.js # packages/visual-review/widgets/lf-visual-review.js # skills/leaf/references/module-input.md # tests/browser/navigation/test_go_to.py # tests/browser/projection/test_visual_review.py
Merging main after #6427 landed as a squash restored lines this branch had since removed: lf-options' `position: null` and the portable export of `walkPositionLabel`.
…survey
A fresh reviewer read the survey's captures and found a bare "14 of 14" beside a tab
strip whose rows read "1 of 31 pages real": the panel stands apart from the list it
counts, so a position names its list wherever the panel says one ("Tab 14 of 14",
"Command 1 of 97"), and says its place alone only where the surface's own words name
the list, as "5 changes since v2 · 1 of 5" does. A list wholly in view still says
nothing.
From the same review and a second code review:
- Go-to armed with no hint chips on screen says "No visible targets" while it waits,
as an empty filter already said "No visible hyperlinks"; the next key otherwise
went to Go-to with nothing saying so.
- On Me's region walk says "waiting on me here" only where the region holds part of
On Me.
- A listener hears `.` fold and unfold the panel, a diff's steps in the walks' shape
("Hunk 2 of 3: src/summary.rs"), and page search's match words without "…." where
the context ends in an ellipsis.
- A notice the page field leaves to its standing words holds no seat against news,
and doesn't displace news already showing.
- The standing parts are one table, which both the field's words and the set of
facts they say read.
Tests: the diff walk assertions read what a listener hears, since a diff whose hunks
all stand in view now shows no position; the command reference's reads "Command 1 of N".
…n entries A last fresh look at the survey's differing rows found one regression: hiding annotations by key had stopped showing "— o shows them" in the field, leaving a sighted user who hid them by accident a standing "Annotations hidden" that names no way back. A notice now leaves the field to its standing words only where its words say nothing more than they do: hiding by key names the key, so it shows in the field for its moment again; "Annotations shown" and a comparison's start and end still show only where no standing words say them, as on the folded leaf. Also from that look: Go-to's margin filter says "margin entries", the glossary's term and its own id, as "threads" beside it already does; and Enter on a page search's match is heard in the shape `n` gives, "Match 3 of 9: …. Selected.".
The notice queue dropped a press's notice that carried `about` while news showed, and let news take the seat from one that did show. Only the page field leaves such a notice to its standing words; the folded leaf's peek shows it, so there the user's own `v` or `o` went unsaid behind the news, or was replaced by it at once. The queue can't tell which surface draws the seat, so it no longer decides: the notice holds the seat as any other does, unseen on the page field for its moment, and `passing(says)` alone hides it there (review on #6442). The tests that read the field while a notice's moment still stands read it once the press has drawn, rather than under a one-second deadline the suite's source check refuses. With both the replacement and the premise watch disabled, the comparison test fails as it should.
…ffers Close While `g` waited for a key with hints painted, the panel's field went on saying the agent's status, so nothing where the user reads said the next key went to Go-to or how to leave. The sequence now declares a stance's way out, as Draw mode and page search do: the field reads "In Go-to · Away · Close esc", Close takes the map off from any step, and its esc stands only while Escape would close rather than take a letter or a filter back. Escape's steps split into two rows to keep that: one backs a letter or the filter, the other is the exit, live throughout so Close works from a filter too. "In Go-to" takes the glossary's noun; "In Go to · Away" read as a verb and its object (fresh review). A draft standing in the page field rewraps as the map arms and closes (494 to 460 px wide on triage-board), since the stance's ✕ takes the seat where the field can't say Close; the panel's header now accepts that for Go-to too, whose user aims at the page's hints rather than the panel. An open thread's field still says no stance, Go-to's included.
leaf-agent
previously approved these changes
Nov 19, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
One non-blocking test fix inline.
…stance says The last assertion looked for "Go to", which "In Go-to" never contains, so it passed with the map still armed (review on #6448).
leaf-agent
approved these changes
Nov 19, 2026
This was referenced Nov 19, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 19, 2026
…r goes (#6475) `fieldHint` in `browser/runtime/floating-panel.js` draws the panel field's empty-state words in one of two Lit shapes. One is the status parts alone. The other is a template that holds the stance's lead (`lf-fp-standing`) and then the status parts. A stance coming or going switches between the two, so Lit removes the status's span and inserts an equal one. The write watch reports that as an unchanged write. #6448 made an armed Go-to map a stance, so pressing `g` then `Shift+p` now triggers this whenever the status is the agent's own sentence, a node carrying a source. Three tests in `tests/browser/margin/test_status.py` fail at teardown on `main` with `unchanged write: children of span.lf-compose-placeholder-words`: - `test_unit_claim_arrivals_share_one_window_with_the_open_page_map` - `test_each_seat_agrees_with_the_page_map_on_a_controls_receipt[margin]` - `test_each_seat_agrees_with_the_page_map_on_a_controls_receipt[page]` Both cases now render one template, with the lead left empty when there is none. The status's nodes update in place, and only the lead's span is added or removed. What the field says is unchanged, and #6448's stance is kept as it is. Verification: - **Before:** the three tests error on #6448 (`e6bc8a1ef`) and on `main` (`9192a5041`), and pass on #6448's parent. - **After:** all three pass, along with `tests/browser/navigation/test_go_to.py`, a stance, status, mode and search selection from the floating-panel, agent-replies and gate tests (25 tests), `pnpm run check:browser` and `pnpm run test:runtime`. - A mutation probe shows the change: after `g`, the field's words used to take out and put back the whole status. Now the only write is the `In Go-to · ` lead. This settles one of the two causes in [run 44445204827](https://github.com/max-sixty/leaf/actions/runs/44445204827). The other, `test_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure`, belongs to #6452 and its open fix #6455. Refs #6418 — automated triage Co-authored-by: leaf-agent <[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.
While
gwaits for a key, the panel's field now says so: the Go-to map is a stance, as Draw mode and page search are, so the field reads "In Go-to · Away · Close esc", and Close takes the map off from any step. Before, the field went on saying the agent's status with the hints painted, so nothing where the user reads said the next key went to Go-to or how to leave. Max asked for this after #6442's survey found it.Escape keeps its order (a letter, then the filter, then close) in two rows: one backs a letter or the filter, the other is the stance's exit, live throughout so Close works from a filter too, with
escbeside it only while Escape would close. "In Go-to" takes the glossary's noun, since "In Go to · Away" read as a verb and its object.To weigh: a draft standing in the page field rewraps as the map arms and closes (494 → 460 px on triage-board), because the stance's ✕ takes the seat where the field can't say Close. The panel's header accepted that for modes as a rare path; it now accepts it for Go-to too, on the grounds that the user's aim is on the page's hints then, not the panel. An open thread's field still names no stance, Go-to's included, as on main.
Tests: a new browser test walks the field through arming, a filter that keeps a chip, Escape, an empty filter and Close; the Go-to journey and reference tests,
pnpm run checkand the runtime tests pass.