Skip to content

Correct comments and a site sentence that name the wrong file, a gone name or a gone reason - #7247

Merged
leaf-agent merged 3 commits into
mainfrom
fix/stale-comment-references
Nov 26, 2026
Merged

leaf-agent merged 3 commits into
mainfrom
fix/stale-comment-references

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Eight comments and one sentence on the how-it-works page pointed a reader at the wrong place, or kept a reason that no longer holds. This corrects them. No behavior changes, apart from one import moving to its module's top.

  • visual-mark-paint.js said data-lf-mark is drawn in surfaces.css. Its rules are in element-marks.css.
  • idioms.css, sample.css and tabs.css said .lf-label is in base.css. It is in elements.css.
  • schema.py and the Worker's storage.py named reading.UNWATCHED. The constant is page_inputs.UNWATCHED.
  • reading.css cited "A rule for focus anywhere in a box" as a section of browser/AGENTS.md. That phrase is a sentence under "What a style rule costs".
  • layer.py imported layer_metadata_of inside layer_vocabulary, so that a hook that only hashes the skill would skip it. Hooks stopped hashing the skill in Leave a change to the skill under a running session to the harness, and say when Claude Code renews Leaf's hooks module #7221. The import makes no cycle at the module's top, so it moves there.
  • docs/how-it-works.html said browser drafts live outside the page directory. They travel with it, since schema.PAGE_STATE_FILES holds drafts.json, and the figure caption below that paragraph already says so. The sentence now says only session ownership lives elsewhere, in the state home.

Verified with lint-imports (both contracts kept), ruff, and tests/model/test_product_page.py. The nightly survey and the review of recent commits found these.

… name or a gone reason

- `visual-mark-paint.js` said `data-lf-mark` is drawn in `surfaces.css`;
  its rules are in `element-marks.css`.
- `idioms.css`, `sample.css` and `tabs.css` said `.lf-label` is in
  `base.css`; it is in `elements.css`.
- `schema.py` and the Worker's `storage.py` named `reading.UNWATCHED`; the
  constant is `page_inputs.UNWATCHED`.
- `reading.css` cited "A rule for focus anywhere in a box" as a section of
  `browser/AGENTS.md`; it is a sentence under "What a style rule costs".
- `layer.py` imported `layer_metadata_of` inside `layer_vocabulary` so that
  a hook hashing the skill would skip it. Hooks no longer hash the skill
  (#7221), and the import makes no cycle at the top (import-linter keeps
  both contracts), so it moves there.
- `how-it-works` said browser drafts live outside the page directory; they
  travel with it (`schema.PAGE_STATE_FILES` holds `drafts.json`), as the
  figure caption below that paragraph says.
- `page_code.py`'s header kept an eval's counts; it keeps the reason.

No behavior changes.
max-sixty added a commit that referenced this pull request Nov 26, 2026
The header moved from page_code.py carried the counts of a widgets-draw-as-written
eval run: 5 of 6 Codex thread messages holding a Mermaid sequence diagram didn't
draw, and their authors never ran --render. #7247 drops them from page_code.py,
since the tree states what holds now and a measurement goes in the commit.
leaf-agent and others added 2 commits November 26, 2026 07:11
The pre-commit oxfmt hook failed on fa14536 because the edited sentence ran past the print width.

Co-Authored-By: Claude <[email protected]>
# Conflicts:
#	src/leaf/pages/render_gate/page_code.py
@leaf-agent
leaf-agent merged commit 8604f51 into main Nov 26, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/stale-comment-references branch November 26, 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