Repository navigation
Scroll prose tables and code blocks sideways only - #3347
Merged
Merged
Conversation
A prose table or code block declared only `overflow-x: auto`, which computes to `auto` down too, so the runtime marked it a box that scrolls down. That restarts the landing band, and a landing on what it holds cleared none of the sticky headers over it: Tab onto a link in a wide table under a framed tab set's stuck strip left the link's focus ring under the strip, in Chromium and Firefox. Both now say `overflow: auto hidden`, so each is a sideways box (`across`, state.css) and its contents count the headers over it. The table's first-paint restart of `--lf-top` moves onto its children, where the across restart puts it once the runtime marks the table, so the table itself keeps the slot it met. For authors: a table or code block given only a `max-height` now clips what runs past it instead of scrolling down; `overflow-y: auto` scrolls it down. page-authoring.md says so, and module-scroll-and-motion.md asks a package's sideways scroller for the same `auto hidden`. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 20, 2026
This was referenced Oct 22, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 24, 2026
Cuts the guidance Leaf ships to agents — the skill, its references, package instructions, registry instruction strings and the text Leaf's code prints — to the claims an agent acts on. This is the agent half of the guidance cut; the maintainer half (groups A–E) lands separately. Each group was cut on its own branch, reviewed side by side against main, and is one commit here, merged onto current main with main's later changes kept. Each commit message lists what its group cut, what it kept and how each conflict with main was resolved. ## Groups Word counts are `wc -w` on main (`79af4eb2f`) and on this branch. **F — SKILL.md and the conversation loop** (11 files, 12,418 → 11,115, −10%). Drops what command `--help` already says, what delivered `handling` already says, mechanism no reader acts on (the surfaces table, Sent/Queued/Delivered, the desktop wake, Codex's queue check, the render check's JSON fields), duplicates and justification. Corrects SKILL.md step 1: running `page init` again with `--package` replaces the page's packages rather than adding one. **G — page authoring and layout** (5 references, 8,120 → 6,868, −15%; default registry x-instructions 1,810 → 1,533; kernel 116 → 104). Drops each file's route restatement, copies of other references and of registry entries, rules `page check` already reports, narration that asks nothing of the author, and hedges with no failure behind them. Moves the side-list tab summary rules and the tally rule from `lf-tab`/`lf-tally` into `page-layout.md`, "A workspace", which agents re-read when revising (queue-is-a-side-list went 0/2 → 2/2). **H — module references** (6 files, 14,420 → 12,871, −11%). Keeps every `widget-api.js` export's signature, return and usage rule; drops section lists, runtime mechanism, refusals the runtime already throws into a page error, restatements and maintainer-only build detail. module-authoring's route to module-reading.md now names icons (widget-interface-serves-the-task 1/4 → 4/4). **I — packages** (3 references and the 10 instructions files, 10,324 → 9,572, −7%; package registry instruction strings 1,444 → 875). Removes duplication between each package's instructions file and its registry entries, which `page instructions --use` concatenates, so the registry keeps markup and API facts and the instructions file keeps choice rules. Drops `--help` restatements, refusals a check reports, and playground's "Task-shaped recipes", whose shared rules now sit under "Stateful previews" and in the handoff check. Corrects `lf-playground-preset`: a control the preset doesn't set keeps its current value. **J — text Leaf's code hands agents** (delivered handling/answering clauses 1,490 → 1,237; every event case's delivery, per the snapshot, 9,076 → 7,317 words). Drops narration of what Leaf does by itself, restatements, justifications and the `invalid-registry` finding, which nothing produces. Moves the anchor-move rule from every reply clause to the `relocated-anchor` finding, and corrects `page check --help`: a plain check also runs the page's scripts and browser-judged widgets. A sixth commit repoints four references at conversation-loop.md's "Page availability and handoff", which main renamed from "Status and handoff" without updating them, and fixes packages.md's pre-#3593 path to `src/leaf/layer-registry.md`. ## Eval-backed passages kept - Answer a question you can already settle before revising the page (`parent-keeps-leaf-responsive/known-answer`, #3169). - The `leaf task plan` paragraph and example (`0ae092c32`, 1/5 → 4/4 on Claude Code). - The second `thread summarize` example (`thread-fold-without-summary-prose`). - Progress and failure replies publish nothing. - A bounded `<pre>` or table clips what runs past it, with the `data-bound` and `<details>` routes (#3347). - The touch route for hiding markers: the leaf's menu → Annotations → Hide annotations (`pin-takes-no-page-room`). - The route to a package's other audiences, such as a contract's `producer`. - A widget output's value must fit its contract, since nothing checks it; `wireInput`'s keys; `failSoft`'s `source`; a `start` that throws not running again. - The progress line before any other command, "even a read" (`first-command-says-what-comes`), and the reply's own check of the saved edit. - "An option the user added needs no writing in" on the markup clause (#2632). ## Checks - `pytest -n 3` over test_hooks, test_stop_guard, test_wait, test_receipts, test_thread_reading, test_interact_layer, interact_contract/, test_delivery, test_interact_product, test_interact_anchors, test_activity and test_product_page: 848 passed, 1 failed. The failure, `test_hooks.py::test_a_prompt_re_vendors_a_page_an_older_leaf_vendored_and_hands_over_its_input`, received a pointer instead of an inline delivery on a host at load average 30; it passes when run alone. - The six snapshots group J's strings reach were regenerated with `--regtest-reset` from the resolved code; `tests/process/website_server/test_app_server.py` passes with its snapshot unchanged. - `node --test tests/runtime/widget-api.test.mjs`, which requires every authoring export to be named in a module reference: 4 passed. - `leaf package check` on all eleven bundled packages: no findings. - `pre-commit run --files` over the 53 changed files: passed. - Every `file.md, "Heading"` and `file.md#anchor` pointer in the changed prose resolves on this tree, and pointers into files groups A–E change resolve on those branches. No removed heading is cited anywhere. - An independent review redid each group's merge file by file and checked every conflict by hand against main's additions and the group's reviewed diff. It found no lost claim; three reviewed cuts that main's rewordings had brought back (a `--attempt` sentence in `thread reply --help`, a second `module-state.md` pointer in `package-data.md`, and the `lf-motion` registry string repeating `instructions/author.md`) are reapplied in the last commit, with the command-help snapshot regenerated. Not run: the browser and journey tiers, and no evals were rerun after assembly; each group's evals ran on its own branch against its merge base. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
For authors: a prose table or code block (
<pre>) given only amax-heightnow clips what runs past it instead of scrolling down. Addoverflow-y: autoto scroll it down.references/page-authoring.mdnow says so.Follows #3217. A prose table or code block declared only
overflow-x: auto, which the browser computes toautodown as well, so the runtime treated it as a box that scrolls down. Such a box starts the landing band again, so a landing on anything inside it cleared none of the sticky headers over it. Tab onto a link in a wide table under a framed tab set's stuck strip brought the link only to the strip's foot, leaving its focus ring under the strip: ring top at 41.6 in Chromium and 42.0 in Firefox, strip foot at 47.Both now say
overflow: auto hidden, so each counts as a sideways box (across,state.css) and what it holds counts the headers over it. The table's first-paint--lf-top: 0pxmoves onto its children, where the across restart puts it once the runtime marks the table; the table itself keeps the slot it met.module-scroll-and-motion.mdasks a package's own sideways scroller for the sameauto hidden.Checked:
auto/hiddenand none runs taller than its box.leaf-dev stillsreports 18 of 18 table, code and tab states unchanged.test_tab_onto_a_link_in_a_wide_table_under_a_framed_strip_clears_the_stripruns in Chromium and Firefox, andleaf-dev bugbackshows both failing with the change reverted.The source form of a data widget before it upgrades keeps
overflow-x: auto. Its tag is sized to the box its module will draw, so source longer than that box should still scroll.