3 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
NB 47ad6adc34 Steer a working agent by default, and give a teammate's request its own turn (#7826)
* Steer a working agent by default, and give a teammate's request its own turn

A message that a person sends to a working agent now steers the running turn
by default. A stored Queue selection, for the app or for one agent, stays.

OpenBot adds a short steer note for Codex, Pi, Muse and API key providers. The
note tells the agent that the message adds to the current work. Claude Code and
Grok Build frame a steered message themselves.

A request from another agent does not join a running turn in each mode. It
waits for a turn of its own, and `send_message` tells the sender
`queuedBecause: "own-turn"`. An answer, a requested result or a notice follows
the recipient's mode. A turn that the user stopped is not a steer target.

* Give a steered slash command no steer note

The agent reads a command only at the start of the input. The note in front
of it made the command plain text. A turn start already has this rule.
2026-11-11 20:17:37 +01:00
Aleksander DygońandClaude Opus 5.5 af587556f5 Steer Pi and DeepSeek agents with Pi's steer command (#3211)
* Steer Pi and DeepSeek agents with Pi's steer command (#3206)

Pi refused a steer `prompt` while it compacted, and the Pi client then
failed the whole running turn while Pi kept working. Later prompts failed
with "Agent is already processing". The client now sends Pi's `steer`
command, waits for its answer, and refuses a steer for an ended, stopped
or other turn. A refused steer fails only the steer, so the message waits
in the queue. The desktop app also removes a "Could not steer" error when
the turn ends, so it no longer shows below the last reply.

Adds `test:pi-steer`, an E2E test of the Pi client over a fake Pi.

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

* Refuse a Pi steer that a stop removed, and drop late steer errors

A stop that came while Pi answered a steer removed the message from
Pi's queue, but the client reported it as delivered. The client now
refuses that steer too, so the message stays in the queue.

The desktop app removes steer errors only when the agent's chat turn
ends, not when another turn of the agent ends. It does not show a steer
error that arrives after the steered turn ended, because the message
then runs as the next turn. The Pi client sends `turn/steer` straight
to its steer step.

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

* Remove steer errors again when any turn of the agent ends

The check that the ended turn was the agent's active turn did not match
at `turn-completed`, so the "Could not steer the agent" error stayed
after the turn ended. A smoke test showed it. The app again removes the
error at each `turn-completed` of the agent, as it already resets the
agent's active turn there.

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

* Clear Pi's queue when a Pi steer times out

Pi can still queue a steer after the client stopped waiting for it. The
message also goes back to OpenBot's queue, so it could run two times.
The client now sends `clear_queue` when a steer times out. A refusal
queues nothing, so it does not clear the other steers of the turn.

The Pi steer E2E test checks both cases.

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

* Keep earlier Pi steers when a steer times out

Pi's `clear_queue` removes every queued steer, also an earlier steer of
the turn that Pi accepted and did not read yet. The client now sends
each removed steer back to Pi, except the one that timed out. Pi gives
back only the text, so an image of such a steer is not sent again.

The fake Pi keeps a steer queue, and the E2E test checks that a held
steer stays after a timeout.

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

* Send held Pi steers back only while their turn runs

After a steer timed out, the client sent the other cleared steers back
to Pi also when a stop or the end of the turn came first. Pi then
started them as a run that OpenBot did not start. The client now stops
when the turn ended or stopped. A failed re-send is reported as a
diagnostic, and the other steers still go back.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:00:55 +01:00