2 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
NBandClaude Opus 5.5 27718e4f6c Keep the files of a Discord mention in GitHub outputs (#4633)
* Keep the files of a Discord mention in GitHub outputs

A workflow that a Discord mention starts now keeps the files of the message.
The trigger payload has the name, type, size and address of each file, so
agent steps can read them. A GitHub output that makes a new issue or a comment
downloads the files from Discord and commits them to the orphan
`openbot-attachments` branch of the target repository, with `[skip ci]`. The
text links them there. GitHub has no attachment API for an App token. A file
that is larger than 25 MB, or that cannot be copied, keeps its Discord link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Copy Discord files before the GitHub change is recorded

- Copy the files in a new `attachFiles` step before the action is
  recorded as `sending`. A restart during the copy runs the step again.
- Give each download a 2 minute deadline.
- A file that GitHub refuses keeps its Discord link. The other files
  still copy.
- Copy up to 50 MB for each change.
- Drop whole links when the links are longer than half of the GitHub
  text limit, so that the text stays.
- Type the download error as `MessagingAdapterError`.
- Name the files of the replied-to message in PRIVACY.md, the
  architecture notes and the changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give the upload of a file to GitHub a 2 minute deadline

A file of 25 MB is about 33 MB of base64 JSON. A slow upload cannot
send it in the usual 30 second deadline of a GitHub call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 11:17:25 +01:00