* Remove code comments and add the no-comments rule
Remove the comments from first-party code and configuration files:
TS/JS, JSX, CSS, SQL migrations, Swift, Kotlin, Gradle, shell,
Docker, systemd, Nix, YAML, TOML, JSONC and GritQL.
Keep only what a tool reads: license headers, shebangs, compiler
and lint directives, JSDoc types in plain .js files, generated file
headers, GritQL scope lines, the install-server.sh help text and the
openbot-boat-pre-stop marker. Vendored code, fixtures and released
schemas keep their comments.
Add the rule to AGENTS.md, and change the docs that asked for
comments. Add two i18n keys that only comments named to
RELEASED_SOURCE_KEYS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep comments that are data in strings
The benchmark task files in opencode-free-models-bench.ts tell the
model what each function must do. The sample file and HTML page in
the two stories are display content. Put their comments back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep released migrations and mobile native inputs unchanged
check:migrations compares each released migration with v0.73.0 byte
for byte, so restore src/backend/migrations. A change to a native
build input of apps/mobile makes a new runtime version, so restore
those files and the extra fingerprint sources.
List these files and the comment markers that a tool reads in
AGENTS.md. Remove the last requests for comments in
src/renderer/AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a plan split into Cursor's own models and the others, the reader now
sends Cursor's totalPercentUsed as the tertiary window. The usage list
shows it first as "Total", and the rail ring shows it, or a window that
is used up. The usage limit check and the Team API do not read tertiary,
so blocking and peers do not change.
Fixes#5848
* Show one rail ring when Grok and a merged Cursor plan share a quota
On a merged Cursor plan (GetPlanInfo isMerged), the Cursor reading is the
Grok plan quota. The reading now sets sharedQuotaWith: "grok". The page
rail then shows the Grok ring alone, and its hover card lists Cursor too.
The Team API does not send the field.
Fixes#3376.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Draw the shared ring from the reading with the least left
The shared Grok and Cursor ring now draws the reading with the least left,
so a Cursor quota that runs out first still shows. The ring label names
the providers with the locale list format and gives the windows of both
readings. One memo now groups the rail rows into rings and shared rows.
The release note says that the change is for the desktop app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Hide the Cursor "Other models" window on merged plans
The usage reader also sends GetPlanInfo. On a merged plan (isMerged), the
included usage covers Grok and Composer only, so totalPercentUsed alone
fills the primary window, as the Cursor app does. A failed GetPlanInfo
keeps the split reading.
Fixes#3057.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Correct the Cursor usage comment and document the Enterprise case
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Show Cursor plan usage in the page rail
Read the Cursor plan usage with the Cursor CLI's own sign-in: the macOS
Keychain item, else the CLI's auth.json. Send the request that the CLI
sends, GetCurrentPeriodUsage on api2.cursor.sh. Show Cursor's own models
and all other models as two windows of the billing cycle. Keep the
usage-limit banner for Cursor.
Closes#2810
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Read Cursor usage without the CLI and fix review findings
- The dock poll reads Cursor usage with one HTTPS request, as for
OpenCode, and does not start the Cursor CLI. A rejected token no
longer stops later reads.
- A Cursor usage-limit line on stderr still shows as an error.
- Name the Cursor windows by models only when both are present.
- Keep the path of CURSOR_API_ENDPOINT in the request URL.
- Give each mobile plan window a unique key: Cursor's two windows have
the same length and reset.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Say that the dock reads Cursor usage without the CLI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Do not export the Cursor usage parser
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>