Repository navigation
Let the wheel reach a short workspace playground's Send from its stage - #5446
Merged
Merged
Conversation
A playground whose premise and presets push its bar below the window keeps half the window for its stage (#3622), and the workspace scrolls on to the bar. In Chromium the wheel reached Send only over the premise. Over the stage it scrolled the stage to its end and stopped there, and over the presets band it did nothing, because every pane body in a full-height workspace contained its overscroll (`layouts.css`), the playground's generated panes among them. Firefox passed the wheel on regardless. Now only a page's own panes contain it. A widget's generated pane (`data-lf-generated`) passes a scroll spent at its edge to the box around it, as a bounded block in a document does, since it is one part of the widget's task rather than a task of its own. Reading keys follow `overscroll-behavior` too (`navigation.js`), so `d` at the stage's end goes on as the wheel does. Visual review's queue, evidence and discussion panes are the other generated panes, and chain the same way. Measured with `leaf-dev probe --base --viewport middle --journey` on an agent-authored alert page from the 2026-10-12 comparison runs, made a workspace (presets, then 12 controls on the stage), at 900x700. Each wheel notch was its own gesture, from the workspace's top: | Wheel over | main | this change | | --------------------- | ---------------------------------- | ------------ | | the premise's heading | Send in view | Send in view | | the presets | Send at y 791-822, below the window | Send in view | | the stage, past its end | Send at y 791-822 | Send in view | In Firefox, Send came into view from all three on both. `test_the_wheel_takes_a_short_workspace_to_its_playgrounds_send` (stage and presets) fails on main's `layouts.css` and passes here. It shares its page with `test_inline_playground_keeps_half_a_short_workspace_for_its_stage`, which now reads it from a module constant. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
max-sixty
marked this pull request as ready for review
November 5, 2026 09:43
leaf-agent
approved these changes
Nov 5, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 10, 2026
Tend's PR review now checks each change against the open backlog and gets the description to close what the change settles. Where the change leaves nothing of a `backlog` issue to do, by finishing what remains, removing its premise or recording a decision against what it asks, the description says `Closes #N`. Where it does part, the description says `Part of #N` and what is left, so the review of the last part can tell that part finishes the issue. On Tend's own pull request the review edits the description. On someone else's it asks in the review, and the ask goes in an approval rather than holding one back. The rule is a new section of `running-tend`, **Issues a change finishes**, after **Review threshold**. ## Why Leaf's backlog triage of 2026-11-04 found seven merged pull requests that did an open backlog issue's work without closing it. Four said `Part of #N`: #3879, #3902, #3856 and #3868. Three named no issue: #4487, #4124 and #5039. Nothing asked those three to look, since `/developing-leaf` asks for `Closes #N` only of a session that starts from a backlog item. Tend's nightly sweep reads a seventh of the open issues each night, long after the diff has left the reader's context, and, by the triage's count, it commented on none of them in ten nights. The review is the step every change passes with its diff in hand. The replay below sorts the seven more finely than the triage did. #4011, #4036 and #4013 were settled by #3879, #4124 and #5039. #3902 did half of #4023, whose five composition defects stayed open. #3856, #3868 and #4487 each did one item of #4027, which is still open. For those four the right description is `Part of #N` with what is left. A `Closes #N` would have been wrong. ## Replay Each case gets the rule as this branch ships it, together with `running-tend`'s **Review threshold** section, which it competes with. It also gets the PR's title, author, description and diff, capped at 80k characters with vendored files left out, and every `backlog` issue open when the PR merged, as it read then. That list is rebuilt from the issues' creation and close times, label events and body edit history, plus their comments up to the merge. Each case runs once through a headless `claude -p` on `claude-opus-5-5` (the review's model), with no tools, in a scratch home. The JSON verdict is graded against an expected answer fixed before the run. | PR | What it did | Expected | Result | | --- | --- | --- | --- | | #3879 | the play-through #4011 asked for | close #4011, or part with its open decision left | pass: part, the decision and the home-page test left | | #3902 | #4023's touch-target half | part of #4023 | pass (also part of #4027) | | #3856 | #4027's Android back item | part of #4027 | pass | | #3868 | #4027's Draw mode item | part of #4027 | pass | | #4487 | #4027's lf-draft back item | part of #4027 | pass | | #4124 | recorded the call that settled #4036 | close #4036 | **miss**: read #4036 and judged the call unrelated | | #5039 | one held-news count, #4013 | close #4013 | pass (also part of #4012) | | #5331 | removed #4060's premise | close #4060 | pass | | #4643, #4718, #4847, #5020, #5252 | nothing in the backlog | nothing | 5 pass | | #5441, #5446, #5454 | rightly a part of an open issue | that part | 3 pass | | #4212 | rightly said `Closes #4037` | close #4037 | pass | That is 6 of the 7 triage cases, the premise case, and 9 of 9 controls. No run closed or named an issue it shouldn't have. #5020 is a hard negative: it changes held-news notices, which #4013 is about, and the run left #4013 alone. #4124's miss held in all three wordings tried. The triage itself only inferred that the 2026-10-25 call in `reading-place.js` covers #4036's case. The clause for a removed premise or a recorded decision goes beyond the two cases Max named. It is there because the triage closed several issues as obsolete after a landed change removed their premise. Without the clause, the #5331 run read #4060 and declined: "It only makes one sentence of the issue's background out of date". With it, the run closed #4060. Two grades were corrected after the first run, each on evidence from the record. #5252 says `Part of #5194`, but #5194 was labelled `backlog` only on 2026-11-05, after #5252 merged. #5039 left a count that gains a digit outgrowing its room, as its own `thread-card.js` comment says, and #5288 fixed that on 2026-11-04, so `Part of #4013` naming that is also right at merge time. The final wording closed #4013 anyway. ```sh uv run python .tmp/replay/replay.py --jobs 4 uv run python .tmp/replay/replay.py --only 5331,4124 --rule-file .tmp/replay/arm-finishes-only.md --runs runs-finishes-only --results results-finishes-only.json ``` The final wording's 17 runs cost $6.75. All runs together cost $19.64, across three wordings and the two-run ablation. The script, cases, prompts, answers and results are in `.tmp/replay/` of the worktree that wrote this PR, not committed. The last run used this text before one sentence was split in two. ## Decisions Max may reverse - **Where the rule lives.** It lives in `running-tend`, which only Tend loads. `/developing-leaf`'s `Closes #N` under **Take a backlog item** stays as it is. That rule claims an item early: the closing keyword is what makes `TODO.md`'s `-linked:pr` query skip it. The review then corrects a claim the change only partly fulfils to `Part of #N`. Repeating the search in the author's skill would make every Leaf session pay for a check the review already makes on every PR. - **How it acts on others' pull requests.** The review asks and doesn't edit, since the author owns the description and Leaf sessions rewrite it whole from a file. The ask doesn't withhold approval. `tend-review` runs on `opened`, `synchronize`, `ready_for_review` and `reopened`, not on `edited`, so a held approval would wait for the next push. The review approves with the ask as its body. - **Scope.** Only issues labelled `backlog`. CI failure reports and cause issues close by their own routes. ## Not verified - **Use inside a full review.** The replay gives the section on its own, with the backlog inline. It shows that the rule, once applied, picks the right issue. It doesn't show whether a whole Tend review, with the bundled review skill in context, remembers to apply it. Tend's next reviews will show that. - **What-is-left lists.** The replay leaves out the earlier PRs that name each issue, which the rule tells the review to read. So its lists repeat items that earlier parts had done. #5454's ask lists #4027 items that #3856 and #3868 had finished. - **Repeat runs.** Each case ran once. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 <[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.
A playground whose premise and presets push its bar below the window keeps half the window for its stage (#3622), and the workspace scrolls on to the bar. In Chromium the wheel reached Send only over the premise. Over the stage it scrolled the stage to its end and stopped there, and over the presets band it did nothing, because every pane body in a full-height workspace contained its overscroll (
browser/layouts.css), the playground's generated panes among them.Now only a page's own panes contain it. A widget's generated pane (
data-lf-generated) passes a scroll spent at its edge to the box around it, as a bounded block in a document does, since it is one part of the widget's task rather than a task of its own. Reading keys followoverscroll-behaviortoo (navigation.js), sodat the stage's end goes on as the wheel does. Visual review's queue, evidence and discussion panes are the other generated panes, and chain the same way.Measured with
leaf-dev probe --base --viewport middle --journeyon an agent-authored alert page from the 2026-10-12 comparison runs, made a workspace (presets, then 12 controls on the stage), at 900×700. Each wheel notch was its own gesture, starting from the workspace's top:Playwright's Firefox showed Send in view from all three on both arms, but review found it also ignores
containon a plain control page where Chromium honours it, so that reading describes the harness and says nothing about real Firefox.The bad-pages defects, re-measured
Part of #4041. The eval's 190–280px stage is gone since #3622: the study-shaped page above gets 350px, and the 13 agent-authored workspace playgrounds from the 26 October to 1 November hill-climb runs get 350–518px, each of the 12 with a bar showing Send at rest. What remained was the wheel, which this PR repairs, and Send a scroll away below a tall premise is the cost #3622 recorded. A phone's thread pin over a line's last words is unchanged here and stays open on that issue.
Tests
test_the_wheel_takes_a_short_workspace_to_its_playgrounds_send(stage and presets) is new. It fails on main'slayouts.css, with Send left half in view, and passes here. It shares its page withtest_inline_playground_keeps_half_a_short_workspace_for_its_stage, which now reads it from a module constant.test_playgrounds.py; the chaining, task-boundary and pane tests innavigation/test_panes.py; the workspace bounds tests that read panes and end room; the visual review tests in flow and on load.layouts.cssexactly as on this branch:test_a_short_workspace_shows_more_below_its_playground_regions(the controls' cue reads 13 pixels), both cases oftest_visual_review_keeps_its_inline_comment_editor_in_view_after_phone_resize, andtest_workspace_end_room_stays_inside_the_last_reading_region[pane](a key badge takes the click).uv run pre-commit run --fileson both files.Not verified