* 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>
* Read the OpenCode Go quota with the key the OpenCode CLI uses
With no key saved in OpenBot, the OpenCode CLI used its own key, but
the Go usage reader read only the saved key. Usage then showed no Go
quota for a key from `OPENCODE_API_KEY` or `opencode auth login`.
- With no saved key, read the CLI's own keys in the order that T3 Code
uses: the active OpenCode Console row in `opencode.db`, then the
`opencode-go` key in `auth.json` (or `OPENCODE_AUTH_CONTENT`), then
`OPENCODE_API_KEY`. A 401 or 403 tries the next key.
- A saved key stays the only key, because the CLI applies it last.
- Skip a self-hosted Console row and an OAuth row.
- Open the database read-only with a 100 ms busy timeout.
- Add scripts/opencode-go-usage-e2e.ts and run it in CI.
- Update PRIVACY.md and docs/architecture/providers.md.
Fixes#3548
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Name the release notes after the branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix the key order text and share the OpenCode data folder
- The docs, PRIVACY.md and the code comment said that a rejected
`auth.json` key moves the read to OPENCODE_API_KEY. It does not:
that variable is the Go key only when `auth.json` has none.
- Move the OpenCode data folder rule to `openCodeDataDirectory`, and
use it in `openCodeStatePaths` and in the usage reader.
- Make `readConsoleKey` a named `Effect.fn`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>