Skip to content

Scroll prose tables and code blocks sideways only - #3347

Merged
max-sixty merged 3 commits into
mainfrom
agent-a07fbc5ad2cf5b639
Oct 20, 2026
Merged

max-sixty merged 3 commits into
mainfrom
agent-a07fbc5ad2cf5b639

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

For authors: a prose table or code block (<pre>) given only a max-height now clips what runs past it instead of scrolling down. Add overflow-y: auto to scroll it down. references/page-authoring.md now says so.

Follows #3217. A prose table or code block declared only overflow-x: auto, which the browser computes to auto down 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: 0px moves 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.md asks a package's own sideways scroller for the same auto hidden.

Checked:

  • Clipping: across the corpus, 63 tables and code blocks now compute auto/hidden and none runs taller than its box.
  • Print: a 200-row table and a 200-line code block print on 12 pages on both main and this branch, so both still fragment.
  • Stills: leaf-dev stills reports 18 of 18 table, code and tab states unchanged.
  • Test: the new test_tab_onto_a_link_in_a_wide_table_under_a_framed_strip_clears_the_strip runs in Chromium and Firefox, and leaf-dev bugback shows 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.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 20, 2026 09:00
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]>
@max-sixty
max-sixty merged commit 627e9fc into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-a07fbc5ad2cf5b639 branch October 20, 2026 16:20
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants