PR #10224 review: delete 93 quick-fix comments

PR #10224 · Review workspace · author AviPeltz · reviewed at 90eb8dd4

Summary

The PR deletes 244 comment lines in 75 files. It targets comments that defend a delay, fallback, workaround, or temporary shim, on the grounds that AGENTS.md wants rationale in commit messages. No code line changes. The only added line is the regenerated terminalHtml.generated.ts.

Verdict

Needs changes

Many deletions are fine, but a large group removes comments that AGENTS.md says to keep: traps the next reader would walk into, and constraints that live outside the repo (released clients). Some deletions also leave dangling @deprecated pointers.

Findings

High · rule conflict

Released-client constraints removed from the tRPC/shared contract. AGENTS.md keeps comments for "a constraint that lives outside the repo", and packages/trpc/AGENTS.md rule 2 asks for @deprecated markers on kept-for-compat shapes. These comments are the only place in code that says which released builds need the shape and when it can go:

Fix: restore these blocks. If dates are the objection, drop only the date and keep the constraint plus @deprecated.

High · rule conflict

Trap comments removed from ordering-sensitive code. Each explains why an innocent-looking defer or flag must stay; without it, the next "simplify" pass will turn it into a synchronous call and bring back the bug.

Fix: keep these, shortened to one line each if wanted (e.g. // Deferred: called inside xterm's parse loop.). Name-first alternatives (e.g. deferOutsideParseLoop()) also work.

Medium · correctness of docs

Dangling @deprecated pointers. packages/auth/src/lib/billing/legacy/plan-ids.ts:9 and :17 still say @deprecated See PRO_MONTHLY_PLAN_ID, but the PR removed the doc on PRO_MONTHLY_PLAN_ID (and it is no longer deprecated itself). Same for stripe-routes-shim.ts:81,89,168,185 — "see withAutumnBilling", whose doc was removed. The result is inconsistent: some legacy exports struck through, the ones they point at not.

Fix: restore the @deprecated blocks on the eight legacy exports (the TODO date can go), or remove all of them consistently.

Low · scope

Mixed batch makes the good deletions hard to land. Roughly half the deletions are clearly fine (e.g. RenameInput.tsx "Delay to allow context menu to fully close", RepositoryList.tsx "Refetch after a short delay", oauth/consent/page.tsx "Defensive", packages/panes/.../utils.ts "shouldn't happen"). Fix: split: land the plain "for now"/"defensive"/restating comments now; keep or reword the two groups above.

Evidence

This PR changes no behavior, so there is no UI, desktop, iOS or API surface to run. Evidence is command output at 90eb8dd4:

Not run: desktop/web/mobile surfaces — not applicable (comment-only).

Questions for the author

Test / CI notes