Skip to content

Drop a walk's unread list and a dead panel selector, and correct three stale references - #6492

Merged
leaf-agent merged 1 commit into
mainfrom
chore/stale-refs
Nov 19, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
chore/stale-refs

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

This PR removes two pieces of dead code and corrects three stale references found in the nightly review. No behavior changes.

  • A walk's unread list: browser/runtime/walk-declaration.js stored list on the current walk, but walkPosition() never returns it. Its only consumer, walk-position.js, takes the list from the lf-walk event's detail instead.
  • elementBorderFrame (browser/runtime/element-frame.js): its comment described it as "for consumers cloning its computed presentation", but it is private to elementFrame. It also read shownBox a second time. It now takes the box elementFrame already read.
  • A panel class nothing draws: PANEL_SAYS in dev/leaf_dev/browser.py and the arrival-notice wait in tests/render_harness.py looked for .lf-fp-context. That is a line over the field that nothing in browser/ draws any more. PANEL_SAYS is shared by the suite's seat reads and, since Add leaf-dev words, a survey of what the panel says in passing after each press #6439, by leaf-dev words. A notice now shows only as the empty field's placeholder (data-lf-says="notice") or in the leaf's peek. Both selectors already read those, so the dropped branch never matched.
  • notes/dependency-candidates.md said Leaf takes printed letters ahead of a page menu's typeahead. Since Leave letters to page menus, trees and comboboxes that type ahead #6469, a menu, tree, listbox or select-only combobox keeps them.
  • browser/runtime/change-provenance.js cited ../SOUL.md, which doesn't resolve from browser/runtime/.

Verification: the browser type check and the walk, frame and provenance runtime tests pass. The pre-commit hooks pass apart from eslint, which couldn't load in this worktree, so CI runs it.

…e stale references

- walk-declaration.js stored `list` on the current walk, but nothing reads it:
  `walkPosition()` never returns it, and walk-position.js takes the list from the
  `lf-walk` event's detail.
- element-frame.js: `elementBorderFrame` is private to `elementFrame`, not for
  "consumers cloning its computed presentation", and read `shownBox` a second
  time; it now takes the box `elementFrame` already read.
- `PANEL_SAYS` (dev/leaf_dev/browser.py, shared by the suite's seat reads and
  `leaf-dev words`) and the arrival-notice wait in tests/render_harness.py looked
  for `.lf-fp-context`, a line over the field nothing in browser/ draws. A notice
  now shows only as the empty field's placeholder or in the leaf's peek, which
  both already read, so the branch matched nothing.
- notes/dependency-candidates.md said Leaf takes printed letters ahead of a page
  menu's typeahead; since #6469 a menu, tree, listbox or select-only combobox
  keeps them.
- change-provenance.js cited ../SOUL.md, which doesn't resolve from
  browser/runtime/.

No behavior changes.
@leaf-agent
leaf-agent merged commit 4c33ba1 into main Nov 19, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the chore/stale-refs branch November 19, 2026 07:10
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