Skip to content

Drop the test harness's unused scrollStill and knip's dist/ exclusion - #5300

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/dead-scrollstill-knip-dist
Nov 4, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/dead-scrollstill-knip-dist

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

This removes two pieces of dead code. Neither changes behavior.

  • scrollStill in tests/page_scripts/harness.js. The harness returned it, but nothing loads it. tests/render_harness.py pulls only browserState, armRest and readRest from that script through browser_function, and a grep across tests/ and dev/ finds no other reference. The reading that is in use is SCROLL_STILL in dev/leaf_dev/browser.py.
  • "!dist/**" in knip.config.js. knip skipped dist/** because the tree used to commit dist/kernel/. Since Serve the runtime's source modules from every install, and commit no kernel #5287 the tree commits no kernel, and a prepared installation compiles its own into its output directory outside the checkout. dist/ is never in the tree now, so the pattern excludes nothing.

prek run passes on both files, including eslint, prettier and knip.

tests/page_scripts/harness.js returned a scrollStill reading that no test
loads: render_harness.py takes only browserState, armRest and readRest from
it, and the live copy of that reading is SCROLL_STILL in
dev/leaf_dev/browser.py.

knip excluded dist/** while the tree committed dist/kernel/. Since #5287 the
tree commits no kernel and a prepared installation compiles its own outside
the checkout, so the pattern excludes nothing.

No behavior changes.
@leaf-agent
leaf-agent merged commit c669b31 into main Nov 4, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the nightly/dead-scrollstill-knip-dist branch November 4, 2026 07:02
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.

1 participant