Skip to content

Drop runtime fields nothing reads, and correct comments that drifted - #6368

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/runtime-dead-code
Nov 18, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/runtime-dead-code

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Removes two runtime fields nothing reads and corrects comments that no longer describe the code, from the nightly sweep. No behavior changes.

The On Me press the floating panel's field offers at rest no longer carries stands. notifications.js calls stands() only on notices posted through offerNotice, which never posts this press, and pageOffer already decides when it stands. The panel types the press as NoticePress without stands.

The latest-version control's label is now null while the control isn't offered. Before, the label was the placeholder "New page available → open v999", which nothing showed: version.js offers the control only after a failed save or when the page is behind, and the panel prints latest.label only after a failed save.

projection/data.js writes and removes data-lf-source and data-lf-source-revision through PAGE_PAINT_ATTRIBUTE.source and .sourceRevision, which every other writer uses, instead of string literals.

Comments: since #6344 the sample's "quoted" note is only a pseudo-element, and full view reserves height for no label (sample.css, lf-sample.js). The reading package's serifs are chosen for their x-height, not "a large height". The panel's voice decision no longer carries a date.

Not in this PR: pageStatus in activity-words.js repeats the agent-name rule that semantic-state.js owns (agentName). Because of that, an empty agent string would make the resting line read " awaits". Draft #5979 rewrites those lines, so the fix waits until it lands. The dates in that file's resting-line comment wait for the same reason.

Verified with pnpm run check and pnpm run test:runtime (1012 pass), plus the two browser tests that exercise the latest control's label: test_news_under_the_open_menu_moves_nothing_in_it and test_a_failed_save_is_an_error_until_the_next_valid_one.

- The On Me press the floating panel's field offers at rest carries no
  `stands`: no notice posts it, and `pageOffer` already decides when it
  stands. Its type is `NoticePress` without `stands`.
- The latest-version control's label is null while the control isn't
  offered, instead of the placeholder "New page available → open v999"
  that nothing showed.
- projection/data.js writes and removes the source stamps through
  `PAGE_PAINT_ATTRIBUTE`, the constants every other writer uses.
- Comments: the sample's "quoted" note is only a pseudo-element since
  #6344, full view reserves no label, the reading package's serifs are
  chosen for their x-height, and the panel's voice decision carries no
  date.

No behavior changes. The resting line's second copy of the agent-name
rule in activity-words.js is left for after #5979, which rewrites those
lines.
@leaf-agent
leaf-agent merged commit 9a2ad15 into main Nov 18, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the nightly/runtime-dead-code branch November 18, 2026 07:52
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