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 ff1c1cdfee Show which workflow branch has no answer at a model join (#5561)
* Show which branch failed to the steps after a workflow join

A join ran on the answers of the branches that ended well and dropped
a failed or stopped branch with no mark. Now the join keeps the place
of that branch with the reason it has no answer, and its error. An
output step still posts only the answers. A retry of the failed branch
runs the join again with every answer.

Add scripts/workflow-join-e2e.ts. It checks the join, the retry and a
restart on the real SQLite and workflow service.

Fixes #5553

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

* Keep the missing-branch entries out of posts after a workflow join

A condition and an approval hand their input on to the nodes after
them. So an entry at such a join reached an output after it, and a
post could show the error of a failed branch. Now only a model or
agent join gets the entries, because those steps write new text. The
error in an entry is cut at 300 characters, so a long provider error
costs few tokens.

The join E2E now also checks an approval join and an output after the
approval.

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

* Redact join entries and follow skipped steps to their failure

A missing-answer entry goes into a provider prompt, so the error in it
now goes through redactText. The error is cut by characters, so a cut
never splits a surrogate pair. A stopped step now also gives its error.

A step that was skipped because a step before it failed or stopped now
gives that reason at the join. So a branch of two steps no longer drops
out with no mark. A step after the branch that a condition did not
choose still gives no entry.

A run and a retry now use the same join rule: the forward edges of the
node in the full graph.

CI now runs the join E2E (test:workflow-join).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:34:02 +01:00