Skip to content

Move or correct comments that name code and headings that are gone - #5938

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/stale-comments-survey-23
Nov 14, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/stale-comments-survey-23

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

This PR moves or corrects comments that point at code or headings that no longer exist, and drops two duplicate imports. Nothing changes behavior. The nightly survey found each one, and I checked each against the tree with grep.

  • browser/runtime/composing/surface.js: the block explaining what a plain click on the page means sat above fabAnchorAt, about 200 lines from the click listener it describes. It named a setPanel() that exists nowhere in browser/, and cited "the rule this file already carries", which the file no longer has. The block now sits on the listener, without those two references. Two comments with no code under them now sit on selectionChanged and the keyup listener they describe.
  • packages/default/styles/board.css: the grip ring's comment cited the columns' old 10rem floor. The floor is now --lf-reading-column-floor, as the file's header says.
  • evals/correction-edits-the-standing-reply/case.yaml: pointed at a "Correct a message" heading that skills/leaf/references/threads.md has never had. The paragraph the case scores is under "Progress messages".
  • tests/browser/test_render_navigation.py: the module docstring was copied from tests/journeys/test_render_navigation.py and described tests that live there. It now describes this file's six tests. A second import pytest at the end of the file is gone.
  • tests/journeys/test_interact_product.py: a second import block, left from joining two files, repeated pytest and ROOT. Its names now join the top block.

Both test modules collect (60 tests). Prettier and ruff pass on the changed files.

- composing/surface.js: the comment on what a plain click means sat above
  `fabAnchorAt`, two hundred lines from the click listener it describes, and
  named a `setPanel()` that no longer exists and a rule the file no longer
  carries. It now sits on the listener without those two references. Two
  comments with no code under them now sit on `selectionChanged` and the keyup
  listener they describe.
- default/styles/board.css: the grip's ring comment cited the columns' old
  10rem floor; the floor is `--lf-reading-column-floor`.
- evals/correction-edits-the-standing-reply: threads.md has no "Correct a
  message" heading; the paragraph it scores is under "Progress messages".
- tests/browser/test_render_navigation.py: the module docstring was copied
  from the journeys module of the same name and described tests that live
  there; it now describes this file's. A second `import pytest` at the file's
  end is gone.
- tests/journeys/test_interact_product.py: a second import block repeated
  `pytest` and `ROOT`; its names join the top block.

No behavior changes.
@leaf-agent
leaf-agent merged commit 1b06234 into main Nov 14, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the nightly/stale-comments-survey-23 branch November 14, 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