4 Commits
Author SHA1 Message Date
NB 6fbd8bfc20 Let the main chat and side threads of an agent use each other's browser tabs (#13433)
* Let every chat of an agent use the browser tabs of the agent

Main chats and side threads of an agent can now use all browser tabs of
that agent. list_tabs shows the chat that opened each tab and tells when
another chat uses a tab now. Takeover, submit_secret and list_logins use
the same rule. Channel and messaging threads still use only their own
tabs and the tabs shared with an @ tag.

* Keep channel tabs out of other chats and make the working hint reliable

The main chat and side threads use only the tabs that the main chat, a
side thread or no chat opened. Tabs of a channel or a messaging thread
stay out of these chats unless a person tags them with @.

otherChatWorking now also uses the last chat that used each tab in the
last 2 minutes, because control sessions end 1.2 s after a call.

A takeover from one chat no longer deletes the held takeover result of
another chat. list_tabs looks up each chat once per call.

The browser user-control E2E now covers the cross-chat access.

* Keep a held takeover result for each chat of a tab

Held takeover results used only the tab id as the key. When two chats of
one agent took over the same tab, the second result replaced the first.
The key is now the tab id and the thread id.
2026-11-20 13:51:50 +01:00
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ń 3178ed6350 Give webhook routines an endpoint on a computer that is not published (#6567)
* Register the host for webhook routes without publishing it

A webhook route needs this computer registered for the signed-in account: a server ID and a
machine token. Only Publish and phone connect gave them, so a computer that was never published,
or that lost its token after a sign-out and sign-in, kept a routine without a URL forever. The
relay now registers the host before it registers a route when the ID or the token is missing. A
computer with no server gets the name "OpenBot", as phone connect gives it. The host stays
unpublished. Right after a sign-in, the registration waits until the account's host is bound:
the status change of that host starts the next sync.

Fixes #6029

* Register the host once per sync, as an automatic registration

- The registration of an existing host sends `automatic`, so the account service refuses a host
  that its owner removed (#5273).
- A sync calls `ensureHost` once, before the first route that it registers. A revocation does not
  register the host, and a failed registration is not sent again for each route.
- A background `configure` returns a failed registration to the caller and does not set an error
  status that the user did not cause.
2026-11-10 11:10:55 +01:00
NBandClaude Opus 5.5 1b5f44bd2f Record webhook use in analytics (#5328)
* Record webhook use in analytics

The host now sends a system_webhook_delivery event for each webhook
request: owner kind, result, reason, status, body size, handle time,
delivery age and the test flag. It sends at most 60 events a minute and
then a skipped_count. It sends no address, secret, event type or body.

Routine run events now show webhook runs with trigger_type webhook.
system_inventory adds webhook_route_count. Routine and workflow actions
report webhook_route_limit when the host refuses a new address.
signal_capacity adds the webhook answers by status and the wait time.

Generations: desktop_host 16, desktop 13, signal_capacity 2.
scripts/webhook-analytics-e2e.ts checks the events and the redaction.

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

* Count Signal webhook waits of 5 s or more as slow

ANALYTICS.md says 5 s or more; the code counted only waits over 5 s.

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

* Count a Signal webhook wait only after Signal sends the frame

Signal timed each generic webhook answer from app.ts, so a request that
deliverWebhook refused or could not send (no peer, full pending budget,
refused format) counted as a wait of about 0 ms. #deliver now times the
wait from the frame to the answer, timeout or cancel.

Also stop exporting WebhookDeliveryResult and WebhookIgnoredReason,
which knip reports as unused.

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

* Leave out absent webhook analytics values with exact optional types

types:ratchet allows no exactOptionalPropertyTypes errors in
src/main/analytics.ts. The webhook delivery and routine run events now
add an optional value only when it is set.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 12:30:54 +01:00