Repository navigation
Say an older version in the panel field's words, and offer Open latest at its end - #6153
Merged
Merged
Conversation
…its end The row's version notice was a tinted chip beside the On Me mark, sized `flex: none`. Coming or going on news, it narrowed or widened the comment field, so *Comment… c*, which stands at the field's far end since #5428 and #5448, slid about 105 px with no input, and the arriving Latest landed where the resting pointer aimed to comment (#5642). The chip needed three postures to stand aside (`data-lf-writing`, `data-lf-drafted`, `data-lf-presses`) to avoid more of the same. The version now leads the field's words, as hidden annotations already did ("v1 of 2 · Away"), and Latest is the press the field's end offers when no other is offered there, behind a notice's press, a stance's Close and Next On Me. One function (`standing`) now says where the user stands on the page, the stance, the version and hidden annotations, before the status, in a stance, and before words selected on the page. The chip, its CSS and the `data-lf-presses` posture are gone. Behaviour that changed: - The version shows only where the field's words show: not while the field holds a draft (as before), and not in an open thread's view, whose field is its reply. - With words selected on the page, the field still ends in Comment… c; Latest is then reached from Versions or the leaf's menu. Tests that pressed Latest with words selected now open the latest from Versions by keys, which keeps the selection. - Latest takes no tab stop in the row, as every field-end press; the keyboard reaches it in the leaf's menu. The shift watch's failure in `test_native_input_survives_progressive_render_revision_and_export` no longer reproduces. Closes #5642 Co-Authored-By: Claude <[email protected]>
…tands Pressing `v` marks the blocks changed since a version and says how many in a notice that passes in four seconds; after that only the bars beside the blocks show that the page compares, and they say neither with what nor how much. The comparison is a lens the user turned on, as hiding annotations is one they turned off, so the field's words now say it with the others (`standing`): "2 changes since v1 · Away". Co-Authored-By: Claude <[email protected]>
…stands in the field's words Co-Authored-By: Claude <[email protected]>
…voice
"Latest" alone, in the dim italic every word at the field's end wears, read as a
status ("you're on the latest"), the opposite of the truth; a verb says it acts. A
comparison's count is Leaf's account of what changed, as its notice already said in
Leaf's italic, so the words keep one face as the notice passes into the line.
Co-Authored-By: Claude <[email protected]>
…er as the pointer leaves
Walking On Me on an older version said "1 of 3 waiting on me" alone, so the version
left the row for as long as the walk stood. A walk's position and the Go-to word stand
while the user does, so they now follow where the user stands; a notice of news still
holds the line alone after the stance, since news often announces a change to where
the user stands ("Annotations hidden — o shows them").
Leaving the panel compared the offer it held with Next On Me alone, so an Open latest
that arrived under a resting pointer waited for an unrelated paint; it reads the whole
offer now (`pageOffer`). The prose that promised Latest stays offered while a
revision waits, and the site's account of the version notice, name the routes that
remain. A test of a reply in the panel's field releases the waiting revision by what
the press runs, since the field then offers no press.
Co-Authored-By: Claude <[email protected]>
max-sixty
marked this pull request as ready for review
November 16, 2026 20:14
leaf-agent
approved these changes
Nov 16, 2026
This was referenced Nov 16, 2026
Merged
Native-input delivery test fails on main since #5448: the panel's key part moves without input
#5642
Closed
leaf-agent
added a commit
that referenced
this pull request
Nov 16, 2026
…tests #6208 missed (#6225) #6208 removed the separate `markup` argument from `post_reply` and `cmd_comment`, so an agent message is now one Markdown body that holds its HTML. Seventeen callers in `tests/browser/` and `tests/journeys/` still passed markup positionally. A pull request runs only the later-tier tests it edits, so they first failed on main: push run [43956121090](https://github.com/max-sixty/leaf/actions/runs/43956121090) failed 15 browser tests with `TypeError: post_reply() takes 3 positional arguments but 4 were given` (or the `cmd_comment` equivalent). Each caller now writes the HTML into the text after a blank line, with `html=True` on `post_reply`, the same form #6208 gave the callers it updated. The three that passed `None` as markup now drop that argument. One test changes what it covers. `test_a_durable_reply_completes_its_stream_placeholder_in_place` used to end by editing the completed reply and checking that its widget survived. That reply holds HTML, and #6208 freezes such a message whole (`leaf thread edit` refuses it with `edit-holds-html`), so the agent can no longer send that edit. The test still checks that the durable reply completes the stream placeholder in place and draws its widget. Verification: before this change, the 15 browser tests named in that run failed with the TypeError. With it, they pass locally, along with the three journey-tier tests that make the same calls (28 passed, `-n 4`). An AST scan of the tree finds no remaining call that passes markup. This leaves two other failures from that run, both with owners: #6139 (`test_a_root_summary_keeps_thread_actions_outside_its_fold`), and the −54 px `lf-compose-placeholder-enters` shift in `test_an_arrival_the_opening_view_will_cover_puts_it_away`. That shift still reproduces on main after #6153, so it goes back to #5642. Refs #3985 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 17, 2026
…ival test (#6228) `test_an_arrival_the_opening_view_will_cover_puts_it_away` errored at teardown because the test itself moved the panel with no input. It called `focusDestination(#foot, 'step')` from a script to stand in for a Tab press. Putting Threads away widens the row's field by 54 px. Since #5428/#5448 the field's end carries *Comment… c*, so the shift watch saw that hint and its key move, with nothing to credit: `span.lf-compose-placeholder-enters moved without input by (-54, 0)px`. In a real session a Tab press causes that move, so the watch credits it to the key. The test now presses a real Tab from a button, `#before`, toward `#foot`. `#before` sits behind a 450 px spacer, above where the Threads view comes to rest. A key pressed on a stop the user can't see lets go of it first (`keyboard/controller.js`, `letsGo`). So when `#before` sat right above the foot, under the view's landed box, a slow CPU left focus on `#before` and the Tab never reached `#foot`. What the test protects is unchanged. Threads is still opening when Tab lands: one view stands and its slowed 3 s motions are still running. With the panel's close-on-step (`floating-panel.js`, `standsOver(node, landedBox(node))`) removed, the test fails. Verification: on main `397534cd7` the test errors at teardown. At this head it passes at `--cpu-throttle` 1, 8 and 20. The control (close-on-step removed) fails at rates 1 and 8. The other test #5642 named, the native-input delivery test, was fixed by #6153. Closes #5642 — automated triage --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 17, 2026
… two faces, and keep a status's ask ink off the lead (#6251) Three follow-ups to #6153, which moved the version into the panel field's words, the first two from Max's comments on the row's design page. **Open latest wears its keys.** Every press at the field's end shows its key (*Comment… c*, *Close esc*) except *Open latest*, which read as plain words beside the status ("a link which looks the same as a non-link"). No key opened the latest version, and a version's digit in Versions opens that version pinned, so it stays put as later versions land. As Max asked, Versions now takes `l` for the live page, and Open latest shows `g V l` while `g` would open the Go-to sequence. **The field holds two faces.** Its words came in three faces: the agent's (upright), Leaf's (italic), and the interface's own for a mode's name, the version, a walk's place and quoted words. The interface's face is upright like the agent's, so "v1 of 2" read as the agent's. Max chose two faces for this box, so Leaf now says those words, and the glossary's "Reader-facing words" and `voice.js` state the rule for any seat that also carries the agent's words. **A status's ask ink stays the status's.** When the agent's status asks the user to act, its ink coloured the whole line, so "v1 of 2 · Annotations hidden" in front of it read as part of the request. Where the user stands is now drawn apart from the status, in the empty field's quiet face; the working sheen still spans the line, since it masks the placeholder's box. Tests: the older-version journey opens the latest with `g V l`; command reference, Go-to, selection, revision and draft tests and `test:runtime` pass locally. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Nov 17, 2026
Removes code nothing reads, found by the nightly review. No behavior changes. - **`pickerModel` in `browser/runtime/version.js`** built five strings and flags per read that no consumer uses: `picker.keyTitle`, `picker.ariaLabel`, `picker.compared`, `picker.news`, `latest.keyTitle`, and the `currentRevision`, `pendingBase` and `baseRevision` fields of `selection`. The last reader of `latest.keyTitle` went with `olderVersion()` in #6153; the others were already unread. The fields still read (`picker.token`/`offered`, `latest.failed`/`error`/`disabled`/`label`/`shown`/`news`, `selection.base`/`on`) stay, and the browser type check (`pnpm run check:browser`) fails on any read of a removed one, so it confirms none remains. - **`licenseNotices` in `build/browser/shipped.mjs`** took a `suppliedLicenses` argument neither caller (`build/vendor.mjs`, `build/browser/build.mjs`) has ever passed; a package without a license file still throws. - **Tests**: a stray `import pytest` at the end of `tests/browser/test_render_controls.py`; in `tests/model/test_shown_answers.py`, a `.replace` that replaced a string with itself, and an option appended after its group's closing tag rather than through `section`'s `extra` parameter, which nothing used. Checked: `pnpm run test:runtime` (1001 pass), `pnpm run check:browser`, `pnpm run check:tools`, and `tests/model/test_shown_answers.py` pass. 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.
On an older version the panel row showed a tinted chip,
v1 of 2 · Latest, beside On Me (flex: none). Coming or going on news it narrowed the comment field, so Comment… c at the field's end slid 105 px with no input, and Latest landed under a resting pointer. This deletes the chip, its CSS and thedata-lf-pressesposture, and says the version where the row already says Draw mode and hidden annotations: in the field's own words,v1 of 2 · Away, with Open latest as the field-end press when no other is offered. One function,standing, now says where the user stands before the status, in a stance, before selected words and before a walk's position. A second commit adds a comparison's count there (2 changes since v1).To weigh: Open latest takes Comment's place at the end on an older version, has no key and no tab stop (the leaf's menu keeps the keyboard route), and isn't offered while the field holds a reply, where the chip was hidden too, or while words are selected, where the chip showed.
Max asked whether the version should be a left-aligned notification without the box, then picked moving it into the field's words on a Leaf page, and left the comparison count to Claude's judgement. The count stays: it says the same kind of thing, where the user stands against the latest version, so the row says both in one place. Codex and a fresh-context visual pass reviewed it; "Latest" became Open latest after the visual pass read it as a status. Tests: the #5642 test passes without its xfail; the focused panel, version, revision-patch and draft-revision tests pass locally.
Closes #5642