5 Commits
Author SHA1 Message Date
Aleksander DygońandClaude Opus 5.5 03c2ff34c2 Remove code comments and add the no-comments rule (#12604)
* 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>
2026-11-19 12:19:28 +01:00
Aleksander Dygoń 1ddc765954 Show the total of a Cursor plan first, as Cursor shows it (#5907)
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
2026-11-09 13:37:05 +01:00
Aleksander DygońandClaude Opus 5.5 374666c9c6 Show one rail ring when Grok and a merged Cursor plan share a quota (#3394)
* 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>
2026-10-27 13:16:38 +01:00
NBandClaude Opus 5.5 bceb292969 Hide the Cursor "Other models" window on merged plans (#3096)
* 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>
2026-10-25 17:14:57 +01:00
Aleksander DygońandClaude Opus 5.5 160fb16fb0 Show Cursor plan usage in the page rail (#2892)
* 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>
2026-10-23 12:23:19 +02:00