Skip to content

Correct comments and a reference that misstate the code, and drop two dead pieces - #6723

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/stale-references
Nov 22, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/stale-references

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Several comments and one shipped reference describe code that has since changed. This corrects them and removes two pieces of dead code. Behavior is unchanged, apart from one shipped sentence that no longer points package authors at the wrong pattern.

  • skills/leaf/references/module-reading.md gave the depth dial as an example of a widget that reads its document with viewDocument(node). Let Skim fold an aside: the dial governs the element it stands in #6642 scoped lf-dial to this.parentElement and dropped that import, so a package author copying the dial from this sentence got the scope the dial stopped using. The contents list (toc-view.js) is now the only example, and it is the only caller.
  • src/leaf/todos.py and _todo_error in event_contracts.py said a to-do needs a live widget. Since Declare once per code whether a finding refuses, and name what each refusal keeps #6641, work.widget_seat_error accepts any widget the newest revision declares.
  • browser/styles/floating-panel.css: the band comment said the band is the shelf's tallest picture plus its gaps. The rule reserves the most a picture may take, --lf-media-h (tokens.css), plus a gap on each side, as Stand a pasted picture in a band above the box while a thread is open #6686's own description says.
  • browser/runtime/obligations/view.js sent readers to a passage in version.js's header that no longer exists. carry.js owns that rule now ("Other unnamed elements and changed tags carry nothing"), and the comment states the failure inline.
  • browser/runtime/rendering.js cited scripts/leaf/render_checks.py. The file is src/leaf/render_checks.py.
  • Dead code: page-inspection.js rendered a "Reading source…" line in a branch that the early return above it already rules out; handOver in thread/replies.js took a target argument it never read; and projection/authored.js stated its header paragraph twice.

The browser type check (tsc --project browser/types/tsconfig.json) passes. These are comment and dead-code changes with no behavior to pin, so there's no regression test.

… dead pieces

module-reading.md named the depth dial as a viewDocument reader; #6642
scoped lf-dial to its parent. todos.py and _todo_error still said a to-do
needs a live widget; #6641 made widget_seat_error accept any widget the
newest revision declares. The floating panel's band comment said the band
follows the shelf's tallest picture; the rule reserves --lf-media-h plus
its gaps. obligations/view.js sent readers to a version.js passage that no
longer exists (carry.js owns the rule), and rendering.js cited
scripts/leaf/render_checks.py, which is src/leaf/render_checks.py.
page-inspection.js rendered a loading line in a branch the early return
already rules out, handOver took a target it never read, and
projection/authored.js said its header twice.
@leaf-agent
leaf-agent merged commit 2b15a9c into main Nov 22, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the nightly/stale-references branch November 22, 2026 07:07
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