GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor: halve code comments and cap comment blocks at four lines by maria-rcks · Pull Request #21514 · pingdotgg/t3code

Conversation

@maria-rcks

@maria-rcks maria-rcks commented Oct 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Comment lines kept growing after https://git.cafe/pingdotgg/t3code/pulls/19559, mostly as long "why" blocks that restate context the code already shows. This PR cuts JS/TS comment lines from 26,014 to 12,863 and adds checks so they don't grow back.

Prevention

  • t3code/no-low-value-comments fails a comment block over 4 lines (license headers exempt). Before this PR, about half of all comment lines sat in blocks of 4+ lines.
  • It also flags a bare #1234 issue or PR number (TODOs, regression: #123 test markers, owner/repo#123, code spans, and hex colors are exempt) and the copied @public Service construction is part of the canonical Effect module API. line.
  • AGENTS.md now says to default to no comment, use one line where possible and four at most, and not to explain the fix you just made.

Cleanup
Comments that restate names, narrate steps, label sections, or record history are deleted. Remaining why-comments are cut to the constraint they carry. Code is untouched: every changed file parses to the same Oxc AST as main once comments are ignored, and every directive comment is kept (1,835 files checked). Two oxlint-disable lines lost the comment above them that gave the reason, so the reason is now inline. The non-JS files that changed are marketing .astro, Rust, shell, PowerShell, and one Python script, all comment-only.

vp lint (0 errors) and the lint plugin tests (289 passed) pass on a Blacksmith testbox.

Written by claude-opus-5-5 (Claude Code, in T3 Code), with gpt-6.1-sol children doing the per-slice edits.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
maria-rcks added 27 commits October 19, 2026 01:23
@maria-rcks
feat(lint): flag bare issue and PR numbers in comments
b527e5a
@maria-rcks
refactor: prune low-value comments in web chat and pull request compo…
8d3c15a
…nents
@maria-rcks
refactor: prune low-value comments in web components outside chat and…
3818f88
… pull request
@maria-rcks
refactor: prune low-value comments in web app outside components
7d4f31d
@maria-rcks
refactor: prune low-value comments in server orchestration-v2
9a2f190
@maria-rcks
refactor: prune low-value comments in server provider, mcp, cli, prev…
b2962f3
…iew and cloud
@maria-rcks
refactor: prune low-value comments in rest of the server
72ae842
@maria-rcks
refactor: prune low-value comments in contracts and shared packages
80c5a92
@maria-rcks
refactor: prune low-value comments in mobile app
9c7f6e1
@maria-rcks
refactor: prune low-value comments in source-control packages
96119d3
@maria-rcks
feat(lint): flag the copied @public boilerplate
915ac6a
@maria-rcks
refactor: prune low-value comments in desktop and tooling
78f963c
@maria-rcks
refactor: prune low-value comments in provider packages
7606096
@maria-rcks
refactor: shorten comments in web chat and pull request components
4ed07fa
@maria-rcks
refactor: shorten comments in web components outside chat and pull re…
b96c624
…quest
@maria-rcks
refactor: shorten comments in server provider, mcp, cli, preview and …
1c69a09
…cloud
@maria-rcks
refactor: shorten comments in contracts and shared packages
8c331e6
@maria-rcks
refactor: shorten comments in web app outside components
4004ef4
@maria-rcks
refactor: shorten comments in server orchestration-v2
a224827
@maria-rcks
refactor: shorten comments in rest of the server
e0afe2e
@maria-rcks
refactor: shorten comments in provider packages
e66fc8b
@maria-rcks
refactor: shorten comments in desktop, marketing, infra, scripts, nat…
4298ae2
…ive, packaging and root files
@maria-rcks
fix(lint): issue refs skip all-digit hex colors
d775252
@maria-rcks
refactor: shorten comments in mobile app
a69cb20
@maria-rcks
refactor: shorten comments in source-control packages
5d28c79
@maria-rcks
refactor: drop the copied @public boilerplate
b55a185
@maria-rcks
refactor: drop a bare issue number from a comment
f90be19
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Oct 19, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Oct 19, 2026
View reviewed changes
@only21mil only21mil mentioned this pull request Oct 31, 2026
fix(lint): a suppression directive no longer exempts the comment above it from no-low-value-comments #28337
Closed
only21mil added a commit to only21mil/t3code that referenced this pull request Nov 1, 2026
@only21mil @claude
fix(server): fit the ACP history import to current main
077759d
Main renamed the provider adapter registry layer (pingdotgg#26238), changed
layerWsRpc to take four arguments and need ScratchThreadPromotion
(pingdotgg#26767), and caps comment blocks at four lines (pingdotgg#21514). The importer
layer, the ACP session RPC test and the importNativeHistory docblock
follow suit. The pending-history browser test now asserts through
expect.element, as AGENTS.md asks of browser tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 1, 2026
fix(ci): vouch labels update again after a trust-list change #24091
Closed
docs(mobile): put the Android font alias comment beside the font config #28730
Closed
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through f3b058cd6a hal-c2/hal-c2#1164
Merged
This was referenced Nov 7, 2026
Merge upstream T3 Code through e19fe0837b Nurozen/lecturn#177
Merged
Upstream sync: comment halving and four-line cap (#21514) through 68d5b7ac73 Nurozen/lecturn#180
Merged
@only21mil only21mil mentioned this pull request Nov 8, 2026
fix(server): check out a pull request only in a checkout of its repository #20727
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XXL 1,000+ changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@maria-rcks
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.