Skip to content

Correct four comments that name the wrong author word, a missing function or a false reason, or tell history - #7131

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Four comments the nightly survey found wrong or out of place. Comments only; no behavior changes.

  • lf-activity.js header said a row names the user "You". actorOf writes "Me", the glossary's author word.
  • findings.py pointed the not-a-widget and not-an-element refusals at tasks.task_error, which doesn't exist; Move the leaf task commands into tasks and the forks lane into leases, so todos, plans and forks import only downward #7121's new tasks.py made that pointer actively misleading. The to-do check is todos.todo_error.
  • http.py body_unread said an undrained body "would be read as the next request line on a reused connection". uvicorn's h11 protocol discards a request's body data once the response is done (h11_impl.py, the h11.Data branch checks our_state is h11.DONE), as PageEndpoint's docstring already says. What the flag does is close the connection so the transport doesn't drain a body the peer may never finish sending, which test_a_user_without_the_key_reads_and_writes_nothing exercises with a keyless POST declaring 1 GiB. Both comments now give that reason, so a later reader neither removes the flag as redundant nor copies it for the wrong reason.
  • packages/diagram/defaults.css told how its rules left the default theme and the incident behind the fade's 30% stop. Root AGENTS.md, "Where instructions live", puts that in commit history; the comments keep the rule and its reason.

Verified with pre-commit on the four files (ruff, oxfmt, eslint, typos).

…tion or a false reason, or tell history

- `lf-activity.js`'s header said a row names the user "You"; `actorOf` writes "Me", the glossary's author word.
- `findings.py` pointed the `not-a-widget` and `not-an-element` refusals at `tasks.task_error`, which doesn't exist; the to-do check is `todos.todo_error`.
- `http.py` said an undrained body "would be read as the next request line on a reused connection". uvicorn's h11 protocol discards body data once the response is done, as the class docstring says. The flag closes the connection so the transport doesn't drain a body the peer may never finish sending, as the keyless 1 GiB POST in `test_a_user_without_the_key_reads_and_writes_nothing` shows.
- `packages/diagram/defaults.css` told how its rules left the default theme and the incident behind the fade's stop. The comments keep the rule and its reason.

Comments only; no behavior changes.
@leaf-agent
leaf-agent merged commit 343d060 into main Nov 25, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the nightly/stale-comments branch November 25, 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