Commit Graph
300 Commits
Author SHA1 Message Date
b10aa58161 Start custom agents with the login shell PATH (#2158)
* Start custom agents with the login shell PATH

An app that Finder, the Dock, or a login item starts has a short PATH.
The login shell PATH found the agent command, but the agent process got
the short PATH, so "#!/usr/bin/env node" agents stopped with exit
code 127. Give the process, and Check agent, the PATH that the command
was looked up in. A PATH saved on the agent still wins.

Fixes #1824

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

* Do not mask the launch PATH in Check agent, and test Check agent

Check agent masks each value in its environment as a secret. Give the
launch PATH to Check agent as a separate field, so that only the saved
values are masked. A PATH that the user saved on the agent still wins.

Remove the launchPath injection parameters, because no test uses them.
Add the test:custom-agents:login-path script, and make the E2E script
also start the agent through Check agent.

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

* Give agents only absolute PATH folders, and stop E2E agents

A relative PATH folder such as "." would be read in the agent's working
folder, which is a workspace. The launch PATH now holds only absolute
folders, as the command lookup does.

The E2E script now runs the stop Effect of each client, so no agent
process stays after the script. Document the launch PATH in the
provider architecture notes.

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

---------

Co-authored-by: batool-fariha <farihabatool2023@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 10:16:02 +02:00
Aleksander DygońandClaude Opus 5.5 4088e1d549 Stop an agent's chat from also being a messaging thread (#2120)
* Stop a restart from making a messaging thread an agent's chat

The boot repair of unclaimed threads skipped channel contexts but not
Discord and Slack conversation threads. An agent that had no chat of
its own adopted one of them. The thread was then the agent's chat and
an execution thread at once, with two snapshots in memory. A
conversation write during a turn there, such as a routine deletion,
copied the active turn into the agent snapshot, and the turn end
cleared only the execution snapshot. The drain held every later
message on "active-turn" until a restart.

The repair now skips messaging threads, and an agent whose chat is a
channel or messaging thread gives it back and gets its own chat on the
next use. The conversation stays in the messaging thread.

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

* Keep the agent's chat and give it one snapshot

The boot repair gave the thread back, which emptied the in-app chat of
the agent: messages written there since the bad restart stayed only in
the Discord or Slack thread, which the app does not show.

Now the agent keeps the thread. ConversationRuntime does not register
an agent's own chat as an execution thread, so the thread has one
snapshot and the end of a turn clears the turn that held the queue.
MessagingThreads still reports the turns of that thread to the
platform, but does not take its events, so the app shows the chat
again. The roster query still keeps messaging threads from being
adopted.

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

* Fix the local review findings of the shared chat thread fix

- AgentStore.ownsThread answers whether a thread is an agent's own
  chat with no copy of the roster. ConversationRuntime and the
  ownChat hook use it.
- Boot recovery lists a thread that is also the agent's own chat once,
  so the provider history of it is read once.
- The MessagingThreads.event doc says that such a thread keeps its
  events in the app and the Team API.
- The release note names Telegram too.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:52:54 +02:00
NBandClaude Opus 5.5 bb73b21477 Add backup, verify and restore commands for Docker instances (#2125)
* Add backup, verify and restore commands for Docker instances

openbot-instance backup stops the container, writes /data to a
compressed archive with a manifest and checksums, and starts the
container again. verify unpacks a backup as the data user and checks
the databases, the keyring and the counts. restore puts a backup back
and keeps the instance stopped. backups shows the state for a monitor.
A systemd timer makes a daily backup.

scripts/instance-backup-e2e.ts runs the commands in Docker in Docker.

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

* Do not follow agent links during a restore

The restore made its folders at fixed names in /data and checked them
before the container stopped. An agent could put a link there, and root
then moved the old data to the link target. The restore now makes each
folder with mktemp after the stop. Verification accepts only a number
as the schema version, because agents can change the database.

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

* Keep the new backup and report backups that stopped

Retention now never deletes the backup that was just made, also when
the clock went back, and --verify checks that backup. backups shows a
run that ended without a result as stopped and exits with 1. A restore
sets its restart trap before the stop, and the script stops when Docker
does not answer instead of reading the container as stopped.

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

* Delete old backups only after the new one is verified

With --verify, retention now runs after the verification succeeds, so
a failed verification keeps all older backups. When a restore has too
little free space, the message and the docs tell the operator to move
the old data off the disk first.

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

* Share the step status code of backup and verify

backup and verify_locked now call one run_step function, which records
the start, keeps the errors, and writes the result.

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

* Take the instance lock in up, down, restart and upgrade

These commands could start or stop the container while a backup copied
the database or a restore moved files. They now wait for the same lock
as updates, backups and restores. lock_instance checks the name first.

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

* Record the image version when the container was removed

After `down`, the container is gone, and a backup recorded no OpenBot
version, so a restore could not refuse an older image. The backup now
takes the version and image from the compose configuration. A restore
of a backup with no version shows a warning.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:27:46 +02:00
Aleksander DygońandClaude Opus 5.5 d581de58d6 Stop Slack, Discord and Telegram conversations from holding an agent's queue (#2130)
* Stop messaging conversations from holding an agent's queue

A turn that no event ended held the agent's queue until OpenBot
restarted, and status posts in Slack, Discord and Telegram stayed on
"Working" or "Waiting" after a restart or a failed post.

- Muse ends a turn whose turn/start failed after turn/started.
- A provider exit ends the turns of that client that have no message
  left for the delivery recovery, such as a turn the CLI started.
- The drain does not mark a turn active that already ended, and settles
  the messages that such a turn left running.
- Messages of an unconfirmed turn/start that no turn took in 5 minutes
  end as interrupted, and the queue continues.
- A question card in a messaging thread is refused: nobody there can
  answer it.
- An approval that did not reach the platform is posted again.
- Discord and Slack name lookups no longer hold the prompt deadline.
- The delivery recovery tells the conversation that a request ended.
- Status posts and Stop buttons are kept in a file. A connection that
  is connected again sends each last post that did not reach the
  platform, and stops the posts of requests that ended meanwhile.

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

* Handle kept deliveries in order for each route only

Signal keeps the order of kept deliveries for each route (Slack team,
Discord guild, Telegram chat). The host opened and handled them under
one global permit. Thus a connection that could not start held back
the kept deliveries of all other connections, and each of its
deliveries waited 60 s for the transport.

- signal-ingress: open kept deliveries one at a time, in send order.
  Then each delivery waits only for the earlier deliveries of its route.
- messaging-service: the kept deliveries of one connection share one
  transport deadline for each socket. A connection that does not start
  costs one 60 s wait, not one wait for each event.

Ack and 503 behavior do not change.

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

* Keep a Telegram link for the host's next Signal socket

A `/start <code>` link could land while the host's ingress socket
connected again. Then no socket, or a socket that closed, held the
chat, and Signal sent the linked update only once, live. The host
dropped it, and the route ticket of its next socket did not name the
chat. The chat did not show in OpenBot until the user linked it again.

- Signal keeps the linked update, sealed and with `linked: true`, in
  the ingress queue for the host until a socket acknowledges it. A
  host with no queue key, or a Signal with no queue, gets the live
  frame as before.
- Signal remembers each new link for the route ticket TTL, and routes
  the chat to a new socket of that host whose ticket does not name it.
  The route floor still applies.
- `IngressQueue.keep` keeps an event for a known host and starts no
  host. `offline` uses the same code.
- The Signal E2E check links a chat between two sockets of one host.

No frame changes meaning. The Signal change needs its own deployment.

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

* Merge the release notes of the messaging stall fixes

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

* Fix the local review findings of the messaging stall fixes

- A last post goes out once: a copy that a settle and a wait both
  queued stops when the post is no longer the current one.
- The last post is saved before it is sent, so a restart still has the
  answer when the send failed.
- A settle stops only posts from before the restart. The end of a
  request in this run comes as an activity, which can still be on its
  way.
- A turn with no known requester does not count as told, so the
  delivery settle still tells the conversation.
- The status file is read at once, before the activity listener, so no
  activity is lost while it loads. Posts of a removed connection are
  left out.
- A failed edit is sent again as an edit. Only the last attempt posts
  anew, so a temporary error leaves no second "Working" post.
- A new message waits at most 5 seconds for its author and place names.
- The reason of an unstarted turn uses a catalog key.
- interruptTurnsOf takes keepRecoverable in place of a copy of its loop.

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

* Name the kept Telegram link in the Signal store rules

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

* Do not send a failed answer again

An answer goes out in parts. When a later part failed, the retry sent
the parts that were on the platform already. Now a failed answer is
not sent again: the status post gets the fixed failure notice, and the
host keeps the answer.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:22:38 +02:00
NBandClaude Opus 5.5 eec1c11742 Let agents and joined servers set routine recovery policies (#2122)
* Let agents and joined servers set routine recovery policies

Agent routine tools accept missedPolicy and limitPolicy. An update keeps
the policy that it does not name.

The new routine-recovery-v1 capability lets an owner or admin of a joined
server read and save missedPolicy, and read the run history with the
records of missed runs. A host without the capability keeps the events-v1
routes, and the editor does not show the missed-run choice for it.

Closes #2089

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

* Keep long runs and message links in the remote run history

A script run stores the routine instruction and its event, so the run
codec accepts a longer instruction. The host shortens a run error to the
codec limit, so one long error does not stop the full history.

A run names the message it posted: an agent run in deliveryId, a channel
run in requestMessageId. The editor opens an agent run in chat again.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 19:43:30 +02:00
NBandClaude Opus 5.5 1ed7b4eaf8 Use the memory guard on self-hosted and Docker servers (#2111)
* Use the memory guard on self-hosted and Docker servers

A self-hosted server and the Docker container now create the memory
guard of a hosted server. New turns wait when free memory is low, a
fixed number of turns run at the same time, and the browser gets the
low-memory signal. The desktop app does not change.

- Rename HostedServerMemory to ServerMemory.
- When no cgroup v2 memory limit can be read, use the machine memory
  and log one warning. Before, a missing memory.max stopped the guard.
- `openbot status` shows the memory limit, the free memory, the level
  and the turn limit.
- Document the guard for self-hosted servers and containers.

Closes #2093

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

* Fix the review findings of the server memory guard

- In the container, start Xvfb in a subshell, so tini adopts it. As a
  child of main, it got the OOM value of the agent processes.
- A self-hosted or container server has no plan, so its low-memory
  notice does not tell the user to buy a larger plan.
- Use the machine memory only when memory.max is missing. Another read
  error is a read error, as before.
- Read /proc with a limit of 16 at the same time.
- Correct the comments that say only a hosted server reads memory.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 18:48:44 +02:00
NBandClaude Opus 5.5 9dddf1b636 Start the self-hosted server again after a failed terminal update (#2097)
* Start the self-hosted service again after a failed terminal update

`openbot update` stopped openbot.service and ran `apply` under `set -e`.
When `apply` failed, the command exited before the start, and the server
stayed stopped. The command now uses the recovery of `request`: an EXIT
trap completes an interrupted copy, starts the service, and keeps the
status of the failure. INT, TERM and HUP also start the service again.

Fixes #2080

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

* Keep the update recovery running after a second signal

A second Ctrl-C during the recovery stopped the copy and the start, so
OpenBot stayed stopped. The recovery now ignores INT, TERM and HUP, and
the `apply` child ignores them too.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 18:12:25 +02:00
Aleksander DygońandClaude Opus 5.5 a30edea0d0 Stop Gemini starts from filling the disk on Windows (#2070)
* Stop Gemini starts from filling the temporary folder (#2067)

The Windows Antigravity server is a PyInstaller one-file program. Each start
unpacks about 310 MB into %TEMP%\_MEI<hex>, and only a normal exit removes it.
OpenBot stops the process with taskkill /F, and a start that times out is
stopped while it unpacks, so each start left a copy.

- Give each Antigravity process its own TMP, TEMP and TMPDIR folder in
  userData/provider-temp. Remove it when the process closes, and empty the
  root at launch.
- Do not start Antigravity when less than 1 GB is free there.
- After 3 failed starts in a row, do not start a provider automatically.
  Show the reason on the provider row. A user action starts it again.
- The automatic refresh after an auth error sends `automatic: true`, so it
  does not start a stopped provider.
- Add scripts/antigravity-start-e2e.ts (bun run test:antigravity-start).

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

* Apply local review findings to the Gemini temp folder fix

- Use the private temp folder on Windows only. On macOS the userData path
  has a space and is too long for a Unix socket, and a command that the
  agent starts can outlive its folder. On Windows the tree stop ends it.
- Do not count a low-disk stop as a failed start. Keep its message on the
  provider row.
- A new CLI from an update or install gets new starts.
- Set the activation time only for a new client, and restore it when the
  activation fails.
- Keep the old message when only the restart limit stops the provider.
- Remove an earlier run's folders in the background at launch.
- Share one spawn helper for the client and the sign-in process.
- Decode the refresh input with `optionalPayload`.
- E2E: use the platform separator, and check repeated low-disk starts and
  the launch sweep.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:10:26 +02:00
Aleksander DygońandClaude Opus 5.5 212eff2a80 Remove unit tests and keep E2E and protected tests (#2051)
* Remove unit tests and keep E2E and protected tests

Delete 591 vitest unit test files and their test-only harnesses. Keep
E2E and smoke scripts under scripts/, and keep vitest files only for
migrations, schema parity, the renderer-to-main trust boundary, secret
redaction, and check-rule fixtures.

Remove the test runners that have no tests now (site-router, remote/api,
contracts, brand, auth-api client), their CI jobs, and the transfer
budget report. Remove code and dependencies that only the deleted tests
used.

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

* Set the E2E-only test policy and remove references to deleted tests

AGENTS.md now permits vitest files only for migrations, the trust
boundary, secret redaction and check-rule fixtures. All other behaviour
gets an E2E script under scripts/.

Remove references to deleted tests, harnesses and commands from docs,
AGENTS.md files and skills. The release-upgrade-safety gates that ran a
deleted test now use a manual check.

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

* Keep migration tests and fix CI checks after the test removal

Move the migration cases out of the deleted mixed test files into
three migration test files: the v15 agent usage upgrade and rollback,
the read-state baseline from schema v2, and the remote control plane
and permanent invitation D1 migrations.

Keep error.agent.noStartingModel for the text that older hosts send,
and let i18n-check accept it. Lower two type baseline entries. Correct
comments and docs that named removed tests or test commands.

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

* Remove the empty test patterns from the knip configuration

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

* Add E2E checks for Signal secrets, IPC input decoding and analytics redaction

- scripts/signal-security-e2e.ts starts the real Signal service with
  throwaway secrets. It checks the Telegram secret header, the Slack
  signature, signed account events, remote and route tickets, webhook
  headers, and that no frame or log line holds the bot token. CI runs
  it in the new Signal E2E job.
- scripts/ipc-input-e2e.ts sends malformed requests from a running dev
  app and checks that the main process decoders refuse them.
- scripts/analytics-redaction-e2e.ts checks that no captured analytics
  or failure report request holds a seeded secret. For this,
  OPENBOT_ANALYTICS_CAPTURE_URL sends analytics to a loopback capture
  server. Only an unpackaged build reads it.

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

* Check the renderer analytics path and path traversal in the E2E scripts

The analytics E2E now loads the window again and waits for the renderer event, so the renderer send path cannot pass with no request. The IPC input E2E now sends an attachment id and a shared file path that try to leave their folder.

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

* Remove an unused optional parameter from the read-state migration test

The parameter gave one exactOptionalPropertyTypes error, which the type ratchet refuses for a new file.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:25:48 +02:00
Aleksander DygońandClaude Opus 5.5 477e9fe1fa Update a Docker instance from the app (#2054)
* Update a Docker instance from the app

An instance of docker/instances now updates from Server settings and the
update dialog. The container writes an empty request file to a folder
that the host mounts. openbot-instance-update@<name>.path runs
`openbot-instance update-request <name>` as root, which pulls the image
and, for an install, makes the container again from a newer image only.
Root writes the state to a folder that the container mounts read-only.
The container never gets the Docker socket.

The app uses HostedUpdateAdapter with the container folders when the host
wrote update-status/enabled, and reports the method self-update.

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

* Limit the update requests of a Docker instance to a small tmpfs

The container can write the request folder. As a folder on the disk of
the host, it was outside the disk limit of the instance, so an agent
could fill the host disk. It is now a tmpfs of 64 KiB and 16 files that
/etc/fstab mounts before Docker starts.

An instance with a fixed OPENBOT_TAG offers no update in the app, because
a pull of that tag never gives a newer version. The keeper uses touch -c,
so it does not make the state file again after the request ends.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:11:11 +02:00
NBandClaude Opus 5.5 10355df234 Add Vercel to the Apps catalog (#2050)
* Add Vercel to the Apps catalog

Vercel is a remote MCP server at https://mcp.vercel.com with OAuth
sign-in. The listing has the same shape as Cobrain: an http server with a
link sign-in, and no secrets. Vercel accepts OpenBot's dynamic client
registration with the loopback redirect. The listing text also states the
write rights that Vercel gives agents.

Send logo_uri in the client registration, so that authorization servers
that show a client logo can show OpenBot's logo.

Regenerate the catalog outputs and set the listing count to 17.

Refs #2004

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

* Translate the Vercel listing and describe the logo request

Add the Vercel listing keys in all ten languages and map the slug in
marketplace-plugin-text.ts, so that the listing and its warning about
write rights show in the user's language.

Write the listing description in the third person, with shorter
sentences.

PRIVACY.md now says that the client registration names OpenBot's logo
at openbot.run, and that a sign-in page can make the browser load it.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:13:31 +02:00
Norbert 9d7ab42751 Put message actions in one row under each message, and add reactions and text selection to the mobile app (#2039)
* Put message actions in one row under each message, and add reactions and text selection to mobile

Desktop: Copy, React and Reply are in one row under each message, with the
time. Copy is a direct button. The "…" menu that held only Copy is removed.

Mobile: each message has a visible action row with Copy, React, Reply,
Select text and the time. You can react with an emoji. You select text in
the reply itself and send Explain, Improve, Shorten, Tone or Grammar, or
describe an edit in the message box. Queued messages show above the message
box with Steer and Edit. The long-press message sheet is removed.

The selected-text message format moves to @openbot/contracts so that
desktop and mobile send the same text.

Closes #1842

* Send the host message ID when you react to or reply to a message you sent from the phone

A message sent from the phone keeps its local row ID after the host names it. React, Reply and the selection actions now send the host ID, so the host finds the message.

* Select the word under the finger in the message itself on iPhone, and select text in your own messages

On iPhone, message text is a native UITextView from react-native-uitextview once a reply has stopped streaming and has shown all its words. A touch and hold selects the word under the finger, the formatting stays, and the selected text starts the selection actions. Expo Go and Android keep the Select text button and the text field that covers the message, and your own messages can now use them too. A new development build is required on iPhone.

* Turn off native selection for a message that the host does not have yet

A message that waits on the phone, streams or waits for its first word has no host ID. Its row already had no actions; now it has no native selection either, so a selection action cannot reply with a local ID.
2026-10-14 13:56:15 +02:00
Aleksander DygońandClaude Opus 5.5 c6ea97fed7 Sign a server in for an owner with a one-time server claim (#2046)
* Sign a server in for an owner with a one-time server claim

An operator can now sign a self-hosted server or a Docker container in
for an owner's email, with no email code.

- Account service: POST /v2/admin/server-claims makes a one-time claim
  for an email (admin token SERVER_CLAIMS_ADMIN_TOKEN). It makes the
  account when there is none. POST /v2/server-claims/redeem gives a
  desktop session of that account once, for 15 minutes, with an IP rate
  limit. D1 keeps only the claim hash (migration 0034).
- Server mode: the control socket route POST /v1/login/claim redeems
  the claim and publishes the host, as an email sign-in does.
- CLI: openbot login --claim <claim> [--name <name>].
- Secret wiring in CI and the deploy script, docs and release notes.

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

* Keep the server claim out of process arguments and keep state on failure

- openbot login --claim reads the claim from standard input or a
  hidden prompt, and refuses an email with --claim.
- Server mode refuses a claim when the session cannot be stored, or
  when the account state can hold a stored session. A failed claim
  keeps the account state and the earlier server name, and a used
  claim gives 400, not 502.
- The redeem reads the user through the new session, so the retention
  job cannot make a spent claim give 401.
- Docs: the header file for the admin token, and what the admin token
  can do.

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

* Add server claims to the auth data retention test

The retention job now prunes server_claims, so the test schema needs
the table. The test covers active, expired, redeemed and boundary rows.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 13:17:49 +02:00
Norbert d6d55c5d8a Show the store of each mobile release on /changelog (#2031)
Apple and Google review a build on their own, so a version can reach one
store days before the other. The mobile changelog heading now records a date
for each store, and mobile:release:published takes the store: ios, android or
both, and --version for an older version.

The Mobile tab of /changelog shows the stores of each release, and a store
that does not have it as "In review". 1.3.0 and 1.3.1 are on Android only.
2026-10-14 09:50:44 +02:00
Aleksander DygońandClaude Opus 5.5 9e6954c5ef Add the pstack skill, which installs its 52 skills as pstack-<name> (#1951)
* Add the pstack agent to the launch catalog with its bundled skill

Add the pstack plugin by Lauren Tan (cursor/plugins@1b6d44f, MIT) as one vendored, multi-file
skill in the launch catalog, and a pstack agent that pins it. The build publishes every file of
`bundles/<slug>/` for a `cursor` source. An unlisted skill stays out of the Skills catalog and
installs only with the agents that pin it (account D1 migration 0032).

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

* Publish each pstack skill as `pstack-<name>`

The production catalog gets packs. A pack is a vendored plugin in
`bundles/<pack>/`. The build publishes each folder of its `skills/` as the
skill `<pack>-<folder>` and renames the references to other skills of the
pack, so `$pstack-why` works with every provider. The pstack Agent lists the
pack. An agent can now have 64 skills, not 32.

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

* Build pstack skills from a catalog pack and allow 64 skills per agent

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

* Replace the pstack Agent with one pstack skill that includes all 52

A skill version can now include other approved skill versions
(`includes_json`, migration 0033). The pack publishes the listed skill
`pstack`, which includes every `pstack-<name>` skill. Installing it on an
agent installs them all; removing it removes them.

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

* Install pstack as one skill whose archive holds its 52 skills

One install of 53 marketplace skills hit the Worker rate limits. The pack
is now one skill: its archive holds each skill in `skills/pstack-<name>/`,
and the installer writes each one as a sibling folder under the pack's one
lock entry, with one download and one install receipt. This drops the
included skill versions, the unlisted flag, their migrations, and the
64-skill limit.

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

* Keep pack installs whole and old lock entries unchanged

- Write all folders of a pack in one replace, which puts back every
  folder it changed when one write fails.
- Enable writes all folders in one replace. Disable checks all folders
  first and moves back the moved ones when a move fails.
- Record the pack skills in the lock entry as `folders`. An entry from
  before packs keeps its files in its own folder.
- Stop the build when a pack folder does not make a valid skill slug.
- Say in the catalog README that pstack can use MCP servers and links.

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

* Skip vendored marketplace bundles in the Markdown link check

The pstack bundle is upstream text, kept unchanged. It links to upstream
files that the catalog does not copy. The catalog build test checks the
links of the files that it publishes.

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

* Exempt vendored marketplace bundle tests from the collection guard

The pstack bundle publishes upstream test files unchanged. They run in
the upstream repository, with its own runner and dependencies.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 11:44:42 +02:00
NBandClaude Opus 5.5 a9c637e26b Let script and webhook routine runs stay quiet, and keep quiet answers in a closed run (#1948)
* Keep the source of a routine run and let script and webhook runs stay quiet

Store the source of each routine run (migration 35). Script and webhook
runs no longer get the Test run sentence, so the agent can call
routine_no_update. The run history shows Script and Webhook runs.

A quiet run keeps its text answers as routine_quiet_answer messages.
Unread counts, the preview, the runtime snapshot and the Team API do
not include them.

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

* Open and close the messages of a routine run with its row

The messages of a routine run's turn now follow the run's row in the
chat. The run toggle shows and hides them. A finished quiet run starts
closed. A run that is not finished, or that reported something, starts
open. An open run group shows each run and its messages as rows.

Quiet answers do not add to the new message count or the unread state.

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

* Document quiet routine answers and keep them from Team API clients in tests

The Team API conversation test now has a quiet routine answer. It checks that no client
gets it and that each page and read request asks the store to exclude it.

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

* Leave quiet routine answers out of message search

Search returned a quiet answer to Team API clients, which never get it, and
to the desktop chat, which cannot show it inside a closed run. Also update
the comments that still said only scheduled runs can be quiet.

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

* Keep an open routine run out of a run group

A reported run starts open, and its messages follow its row. When it came after closed
runs, it joined their group, and an open group drew its messages two times.

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

* Show the earlier states of an open routine run

A run with messages lost its history toggle. An open run now shows its earlier
states above its messages.

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

* Keep a turn that a routine run shares in place

A turn can also run a message from a person or a second run. Its messages
now stay where they are, so a reply to a person does not move under a run.

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

* Keep a turn that a teammate's message shares in place

A message from a teammate also starts a turn with a routine run. Its turn
now keeps its messages in place, as a turn with a person's message does.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 10:57:35 +02:00
NBandClaude Opus 5.5 4a08c9a0c0 Return effect cleanups instead of calling onCleanup (#1901)
A Solid 2 effect runs its second callback from the queue with no owner, so
onCleanup there never runs. Five callbacks lost their cleanup this way: the
remote browser live view never stopped its stream, a browser password request
could show the preview of an earlier request, and listeners and a timer leaked.
Each callback now returns its cleanup.

The new no-cleanup-in-effect-callbacks GritQL rule rejects the pattern in the
SolidJS code. It reports the four callbacks in ChannelConversation.tsx that #1877
fixes, so this change merges after #1877.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 15:37:55 +02:00
NorbertandClaude Opus 5.5 4138d883ad Keep the mobile chat usable offline and send queued messages on reconnect (#1890)
* Keep the mobile chat usable offline and send queued messages on reconnect

The composer stays usable while the server is offline. A sent message goes to
an outbox on the phone, saved per account with its text, reply and files, so
it survives a restart. Each chat sends its messages one at a time and in order
while its server is online, from any screen.

An agent message carries a clientMessageId when the host advertises
message-client-id-v1, and a channel message uses the same id as its
operationId. A repeat after a lost reply stores the message once. A message
that the host may have stored is not repeated when the host cannot drop a
repeat, or 12 hours after its first attempt; it shows "Not confirmed".

Waiting messages are drawn lighter with one status line under the last of
them. Touch and hold opens Edit and Don't send, and Retry for a failed
message. "Waiting for connection" moves under the reconnect status, which no
longer shows the failure text and code in the chat.

Also fix trackWorkspaceActions, which dropped the serverId, onProgress and
clientMessageId arguments of sendMessage, uploadAttachment and
discardAttachment.

Closes #1761.

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

* Do not export outbox names that only their module uses

knip reported OUTBOX_ROW_PREFIX and OutboxState as unused exports.

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

* Say where an unsent message stays, and check that Retry starts nothing

PRIVACY.md now says that sign-out keeps the outbox copy, and that a message
to an agent or server you no longer have stays until the app is removed.

The Retry test checked the deliverer before a send could reach it. It now
also checks that the message stays failed.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 13:53:58 +02:00
NBandClaude Opus 5.5 a5c182367b Start a hosted server before the disk restore when a release is ready (#1869)
* Start a hosted server before the disk restore when a release is ready

After a wake, boat restores the disk lazily for about 3.5 minutes. The
apply unit waited for the restore when a release was staged, so OpenBot
started only after it. The unit now runs `boot`, which skips a staged
release during the restore. OpenBot asks root to stage the release, which
waits for the restore, and installs it when the server is idle and no
client used it for 5 minutes. openbot.service also starts with lightdm,
about 8 seconds before boat starts the other enabled units.

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

* Keep the hosted wake safe after a failed boot and during reading

- `boot` does nothing while OpenBot runs. boat starts the apply unit a
  second time after a wake, and a failed `boot` was not active then.
- Self-hosted setup releases the update lock before it starts OpenBot,
  because the start runs `boot`, which waits for the lock.
- The automatic install also waits 5 minutes after the start while a
  client is connected, because a member who only reads is not in use.
- Remove the `client-use` label: `host-update-v1` sends it as `other`.

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

* Let a member's update request replace the automatic schedule

On a hosted server, the automatic schedule waits for client use, also
for the use of the member who asks. Also accept an undefined
`clientInUse` for exactOptionalPropertyTypes.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 17:17:53 +02:00
NBandClaude Opus 5.5 8ec598586f Let dictation use Whisper turbo with a fixed language (#1857)
* Let dictation use Whisper turbo with a fixed language

Parakeet cannot take a language. Whisper large-v3 turbo (int8, sherpa-onnx)
is now an optional second dictation model, and the dictation language
setting applies to it. Parakeet stays the default.

- Settings > Voice lists the models with Download, Cancel, Try again, Use
  and In use, and a language select with flags. The select is disabled
  while Parakeet is in use.
- Main keeps one model service per model, with cancel, and saves the
  model and language in voice-preference.json.
- The voice host loads the selected engine, sets the Whisper language
  without a reload, and decodes Whisper audio in parts of 28 s or less.
- The composer shows only the progress of the model it prepares.
- Packages carry the Whisper license, and the package checks stop when a
  Whisper model file is in the application.

Refs #1843

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

* Name each voice model button and mark the selected model

Each Download, Cancel, Try again, and Use button names its model, so a
screen reader can tell the two rows apart. The "In use" badge shows on
the selected model before its download too.

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

* List the speech model downloads in the privacy notes

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

* Remove unused voice model exports

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

* Transcribe Whisper dictation only after Stop

Whisper reads 30 s for each pass, so a live pass each second kept the CPU
busy and made the final text wait for one more pass. Parakeet keeps the
live text. Remove the unused voiceModelInfo.

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

* Give the language select null before the voice settings load

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

* Put the Mobile Connect story comment back on its story

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 12:43:18 +02:00
NBandClaude Opus 5.5 9e6256a4c4 Keep focus in the chat input while agents and popovers change (#1855)
* Keep focus in the chat input while agents and popovers change

- Browser host: a popup or a tab close gives focus to a browser tab only
  when a browser tab had focus before. An agent click or a page that
  closes itself no longer takes focus from the chat input.
- Popover and dialog: give focus back to the trigger only when the
  closing surface had focus. A click into the chat input keeps focus
  there.
- Composer: keep the editor editable while the provider starts or
  restarts, so typed keys are not lost. Send still waits for the agent.

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

* Wait for a ready agent before Enter sends, and lock the editor with no agent

- Enter no longer sends while the agent starts or restarts. Before, the
  editable composer sent the message at once.
- The editor stays locked while no agent is shown, as before. Text typed
  then has no draft and was replaced when the agent list loaded.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 12:14:58 +02:00
NBandClaude Opus 5.5 10cabf72cd Add openbot mobile-connect to connect the phone app to a headless server (#1852)
* Add openbot mobile-connect for a headless server

A self-hosted or Docker server has no screen for a Mobile Connect code.
The control socket now gives a code for the signed-in account as a
terminal QR code, and the openbot command shows it. Document how to
connect the phone app to a server.

Fixes #1850

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

* Show the account issue and accept only digits for the expiry

When the account is not signed in, the mobile-connect answer now gives
the account issue text. The openbot command refuses an expiry value that
is not digits before it uses the value in shell arithmetic.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 11:26:56 +02:00
NBandClaude Opus 5.5 160db11d4e Document AWS ECS and accept a small /dev/shm in the Docker image (#1820)
* Document AWS ECS and accept a small /dev/shm in the Docker image

Add docs/aws-ecs.md: run the image as an ECS service on EC2, with the
seccomp profile in daemon.json, an EBS data volume, ECS Exec sign-in and
CloudWatch logs. Fargate is not supported: it cannot set a seccomp
profile, and SQLite WAL does not work on EFS.

When /dev/shm is smaller than 1 GiB, the container entry script starts
Electron with --disable-dev-shm-usage, so Chromium uses /tmp.

Refs #1817

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

* Fix the ECS user data and the IMDS exposure in the ECS guide

Use /dev/sdf and the volume UUID instead of nvme1n1, require IMDSv2 with
a hop limit of 1, refuse to overwrite an existing daemon.json, get the
seccomp profile of the image version, and say that the log is in
CloudWatch. Link the guide from the README.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 21:02:59 +02:00
NBandClaude Opus 5.5 5837278bd7 Review every pull request on claude-opus-5-5 at high only (#1804)
NorbiAI no longer reads NorbiAI-Model or NorbiAI-Effort from a pull
request description or a review request comment. It no longer selects
a different model for documentation-only changes. Every review runs on
Claude Code with claude-opus-5-5 at high.

Remove the Codex path, which is now dead code: the bridge, the MCP
overrides, the busy-bridge retries and the dropped-stream salvage.
Remove the model selection test, and run the review step test against
Claude Code only.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 15:57:03 +02:00
NBandClaude Opus 5.5 db37ede435 Make claude-opus-5-5 at high the default NorbiAI reviewer (#1796)
A pull request that names no reviewer now gets claude-opus-5-5 at high
on Claude Code. gpt-6-astra stays on the allowed list and runs on Codex
at low when a pull request asks for it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 14:24:04 +02:00
NBandClaude Opus 5.5 20f3ed96b5 Add Cobrain to the Apps catalog (#1791)
Cobrain is a remote MCP server over https with OAuth sign-in. The listing
has the same shape as Canva: an http server with a link sign-in, and no
secrets. Regenerate the catalog outputs and set the listing count to 16.

Closes #1687

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 14:11:57 +02:00
NB 34070fd6ef Require production payment analytics credentials (#1718)
* Require production payment analytics credentials

* Align account setup with required analytics credentials
2026-10-09 23:29:31 +02:00
NB 23120b7806 Keep chat focus and scroll position during agent activity (#1716)
* Keep chat focus and scroll position during agent activity

* Preserve optional scroll behavior when following chat updates
2026-10-09 23:14:00 +02:00
NB 2457960917 Refactor ACP and add native Pi and Muse providers (#1715)
* Refactor ACP and add native Pi and Muse providers

* Fix provider secrets, usage, and live settings updates

* Name each provider setting reset action

* Allow retry when provider settings are not ready

* Remove unused provider exports and declare the Linux terminal

* Fix provider redaction, v7 creation, and saved ACP settings
2026-10-09 23:01:56 +02:00
NBandClaude Opus 5.5 ec0a81d661 Replace Whisper with Parakeet and show live text while you speak (#1710)
* Replace Whisper with Parakeet and show live text while you speak

Voice input now uses NVIDIA Parakeet TDT 0.6B v3 (int8 ONNX) through
sherpa-onnx in a separate host process. The host loads the model on the
first request and stops 60 s after the last use.

- The first recording downloads the model (670 MB) with SHA-256 checks
  and shows the progress in the composer.
- The composer shows the words while you speak, about once a second.
  The final pass replaces them when you stop.
- The microphone button changes into a recording bar with a live
  waveform, cancel, finish, and send.
- Packaged builds delete the old Whisper model cache.
- Release workflows, package checks, and licenses use the new runtime.

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

* Stop the waveform when the recorder stops by itself

- Stop the meter, the stream and the elapsed timer when the recorder stops without the user,
  for example when the microphone is disconnected.
- Close the audio context when the meter setup fails.
- Do not send the "ready" model status again on each live pass.

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

* Fix the unused export and keep the runtime recipe unchanged

- Do not export `voiceIO`. Only the voice model service uses it.
- Restore the runtime workflow from main. Its model cache step does nothing, because the package
  build prepares only the voice runtime. An edit to the file forces a full native runtime rebuild.

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

* Remove the unused voice assets error text

Parakeet reports a missing runtime with its own message, so no code uses
`error.voice.assetsUnavailable` now.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 22:01:33 +02:00
NB f3f2ed9abf Fix browser identity and keep Google sign-in compatibility (#1711) 2026-10-09 21:59:32 +02:00
Aleksander DygońandClaude Opus 5.5 8bc5b24125 Answer in Telegram with one shared OpenBot bot (#1448)
* Answer in Telegram with one shared OpenBot bot

People mention the OpenBot bot in a Telegram group, or reply to it, and the
Telegram Orchestrator asks the right agent, as in Slack.

- Signal holds the bot token. It receives the webhook, routes each update to
  the host of its chat over the ingress socket, and makes the host's Bot API
  calls from a fixed list, only for chats routed to that host.
- The Worker links a chat to a host with a one-use code (D1 0026) and signs
  the Telegram route ticket.
- The host adds a Telegram driver, the Telegram Orchestrator and a settings
  page under Connectors.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Fix Telegram link, disconnect and removed chats

- Hold the ingress socket while a link code is open, so Signal can route
  the first chat when no connection runs.
- Link a chat only on a `/start` that Signal marks `linked`: a made-up code
  in a routed chat no longer resumes a paused chat.
- Validate Telegram route tickets by bot, chat and link time, so a revoked
  route of one bot does not come back on the chat ID of another.
- Hold the socket until the bot leaves the chat on disconnect.
- Keep a chat that removed the bot removed across reconnects and restarts.
- Remove unused exports that knip found.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Wait for Signal before a Telegram link, and end rate limits

- Open the `t.me` link only when the socket is ready with a Signal that has
  Telegram, so the chat's `/start` always finds this host.
- Allow 64 chats in the Telegram overview, as the account service does.
- Send an answer as plain text when its HTML is over the call text limit
  that Signal checks, so Signal does not close the shared socket.
- Retry a rate-limited Telegram call like the Slack client, and restore the
  connection state when the wait ends, for Slack too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Fix four Telegram review findings

- Retry a failed Telegram route ticket with its own backoff, as for webhooks.
- Mark a paused chat as removed, and unlink it, when the bot leaves it.
- Look up the bot's username again when the link could not get it.
- Let a reply to the bot start a conversation in a group.

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

* Hold the Telegram socket while a chat looks up the bot's username

After a restart, no transport holds the socket before identify() ends,
so the getMe call waited for a socket that did not open.

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

* Add the OpenBot Telegram bot settings, and deploy them to the Worker

- Encrypt TELEGRAM_BOT_ID and TELEGRAM_BOT_USERNAME into the auth-api
  .env.production and .env.dev, and the bot token, webhook secret and
  webhook origin into remote/.env.production.
- api:deploy now sends TELEGRAM_BOT_ID and TELEGRAM_BOT_USERNAME to the
  Worker, as it does the Slack and Discord settings.

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

* Keep the Telegram bot token away from the dev app

The dev stack passed TELEGRAM_* shell values to every child. The bot token,
the webhook secret and the webhook origin now go only to Signal (and the
account API, as for Discord); the bot ID and username only to the account API.

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

* Use the new OpenBot Telegram bot, @meetOpenBot

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

* Document the OpenBot Telegram bot settings

Add apps/telegram-app/README.md, as for the Discord and Slack apps: the
BotFather settings and texts of @meetOpenBot, its secrets, and the limits
of Telegram.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-09 13:14:56 +02:00
Aleksander DygońandClaude Opus 5.5 c163f616d3 Install the OpenCode CLI from npm only and name failed requests (#1642)
* Install the OpenCode CLI from npm only and name failed requests (#1632)

- Get the OpenCode LICENSE from the opencode-ai npm tarball, not from
  GitHub. The SHA-256 is the same as the lock value. The pin script
  hashes the same file.
- When a runtime request gets no answer, show the URL and the network
  reason, not only "fetch failed".
- When a complete download passes its digest check, a Retry installs it
  and does not download it again.

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

* Offer an OpenCode release only when its opencode-ai package exists

- The release check reads opencode-ai/latest and gets the platform
  package at that version. Staging needs the LICENSE from that package.
- Get the small LICENSE tarball before the platform tarball is unpacked,
  so a failed request stops early.
- The pin script checks the name and version of the opencode-ai package.
- PRIVACY.md and docs/RELEASING.md name npm as the LICENSE source.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:53:17 +02:00
2ff63129fe Let a scheduled routine run end silently when there is nothing to report (#1570)
* Let a scheduled routine run stay silent when it answers [[no-update]]

A scheduled run of an agent routine can now end without a message. The
user asks for it in the routine task; OpenBot adds nothing to the run
prompt, and there is no setting and no migration. When every answer of a
turn that ran only scheduled routine runs is exactly [[no-update]], the
turn drops its answers, thinking and plan, keeps the run marker and the
run history, does not change the preview, and marks its turn-completed
event quiet, so no notification or completion sound follows. A marker
inside a longer answer is a report and is shown. Test runs and script or
webhook runs are never quiet. The released Team API event projects a
fixed key list, so the quiet flag stays on this computer.

The routine editor shows a hint under the instruction of an agent
routine.

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

* Put the earlier preview back after a quiet routine run

The start of a scheduled run shows the routine task in the agent preview.
The run now remembers the preview from before, in memory by delivery, and
a quiet turn puts it back, unless something else changed the preview in
the meantime. A run that is not quiet shows the answer as before, and
after a restart the preview keeps the task.

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

* Keep quiet routine answers out of history import and the preview

The provider history import could bring back the [[no-update]] answer
that a quiet turn had dropped, with an unread message. In a turn that a
routine delivery started, the import now skips each answer that is only
the marker, and when every answer is the marker it skips the turn's
thinking too. It decides from the staged items alone and still marks the
turn imported, so a later scan neither retries nor brings it back.

A routine run whose last answer is only the marker, also a Test run that
shows it in the chat, no longer puts the marker in the preview. Every
routine run now saves the preview from before, and such a run puts it
back.

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

* Share the agent preview limit with the routine scheduler

Export AGENT_PREVIEW_MAX_LENGTH from the agent store and use it where
the scheduler saves the routine task that the run shows. The turn
lifecycle compares the stored preview with this value, so both must
cut at the same length.

Give the saved-preview map its own cap name, and move the
RoutinePreviewBeforeRun interface above the class comment.

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

* Carry the quiet routine run flag on Team protocol v6

The released turn-completed projection keeps a fixed key list, so a
remote client did not get `quiet` and showed a notification and played
the completion sound for each quiet routine run.

The current v6 event adapter now puts `quiet` beside the frozen
projection, in the way plan, senderMember and uiBlock ride beside the
conversation projection. A v6 client that predates the flag, and every
protocol 1-5 host path, drop the key without an error. Only `true` is a
value; any other value is a protocol error.

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

* Keep a quiet routine run off the Dynamic Island and document remote clients

A remote quiet run marked the agent as completed, so the next runtime
snapshot showed its old latest message as a new reply on the island.

Update the architecture notes and the changelog: quiet now reaches the
browser client, the phone and a desktop connected to a remote server.

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

* Fix three NorbiAI findings for quiet routine runs

- History import: drop the answers of a turn only when a scheduled
  routine run started it and the turn completed. A Test, script or
  webhook run, and a failed or interrupted turn, keep their answers, as
  the turn completion does.
- Dynamic Island: count the replies of each active turn on an inactive
  host. When a quiet routine turn completes, remove that count from the
  unread replies, because the chat no longer shows those answers.
- Agent preview: a routine run queued while an earlier run of the same
  agent still shows its task keeps the preview from before that run.
  Thus the last quiet run puts back the correct preview.

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

* Check every delivery of a turn in the history import

The import dropped the answers of a turn when the first delivery was a
scheduled routine run. A message steered into the same turn was not
checked. Now every delivery must be a scheduled routine run, as at the
turn completion.

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

* Keep quiet turns hidden after their routine is deleted

A deleted routine takes its run records with it. The history import
then saw no scheduled run and brought back the answers that a quiet
turn had dropped. Now a routine delivery without a run record counts
as a scheduled run. Only a recorded manual run keeps its answers.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Aleksander Dygoń <48182795+Sniezka1927@users.noreply.github.com>
Co-authored-by: Sniezka1927 <dygons14@gmail.com>
2026-10-08 17:54:21 +02:00
Aleksander DygońandClaude Opus 5.5 2981e2f66a Fix copy and paste in the browser of a remote server (#1607)
* Fix copy and paste in the browser of a remote server

The live view of a remote tab sent Ctrl/Cmd+C and V to the host as
plain keys with no key code, so the page did no edit command. Also, the
host clipboard is not the clipboard of the member.

- Add the optional `browser-view-clipboard` capability. The client
  sends `paste` text and a `copy` request. The host inserts the text
  with `Input.insertText` and sends the selection back as `copied`.
  The host does not read or write its own clipboard.
- Do not prevent the clipboard shortcuts in the live view, so the
  client window fires its own copy, cut and paste events.
- Send the `selectAll` command for Ctrl/Cmd+A, and forward Cmd/Ctrl+A
  from the desktop window to a focused live view.
- Show a message when the host is older, or when the text is too long.

Fixes #1597

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

* Keep the user's clipboard safe in the remote browser copy

- Start a copy in the key press with a ClipboardItem that waits for the
  host answer. Do not cancel the copy event: an empty cancelled copy
  clears the clipboard. The host answers every copy, and an empty
  answer does not change the clipboard.
- Send Ctrl/Cmd+C, V and X to the page as keys again, so a web
  terminal still gets Ctrl+C. Match the shortcut letter by key
  position on layouts that are not Latin.
- Fire a paste event on the focused element before the text is
  inserted, and insert it only when the page does not cancel it.
- Do not delete a cut that is too long to send, and stop a too-long
  selection in the page before CDP sends it.
- Read the selection in an open shadow root.
- Send only the key down for the desktop select-all, so the real key
  up is not sent two times.

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

* Delete a cut only after the text is on the clipboard

- Split a cut into a copy and a `cut` input. The client sends `cut`
  only after the clipboard write succeeds. The host deletes only when
  the selection is still the same text.
- Run the inputs of one live view one at a time, in order, so a key
  typed after a paste does not land first.
- Find focus in frames of the page's own origin, so the paste event,
  copy and cut reach a field there.

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

* Follow focus into cross-origin frames for remote paste and copy

The automation world of the page cannot enter a frame of another
origin. The host now asks CDP for the frame ID of the focused frame
element with `DOM.describeNode`. It then uses that frame's target
session when the frame runs in another process, or an isolated world
of that frame when it runs in the same process. It does this again for
each nested frame. The paste event, copy and cut now reach a field in
such a frame.

The live-view smoke test clicks into a cross-origin frame and checks
the paste event, copy and cut there.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:43:10 +02:00
NB cf66e5634f Add removal of owned servers from the web side panel (#1600)
* Add removal of owned servers from the web side panel

* Keep the authentication epoch when an owned server is removed

* Remove the duplicate host removal test

* Scan account service sources for translation key usage
2026-10-08 17:00:35 +02:00
NBandClaude Opus 5.5 8169d81a71 Install updates on hosted Linux servers from Server Settings (#1598)
* Install updates on hosted Linux servers from Server Settings

OpenBot on a hosted or self-installed Linux server now asks root to
stage and install a release. It writes an empty request file in its
runtime directory. A root path unit starts `openbot-hosted-update
request`, which stages the release, or stops OpenBot, applies the
release and starts OpenBot again. Root writes progress to a state file.

The new HostedUpdateAdapter gives UpdateService the electron-updater
shape, so Settings → Updates and Server Settings → Updates show the
full controls. openbot.service installs the request units on the first
start after an update from an older script.

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

* Stage before a hosted install, and start OpenBot after a partial copy

An install request now runs `stage` first, so OpenBot keeps running while
the request waits for a download of the timer. When `stage` fails, a
release that is already staged still applies. The traps are set before
OpenBot stops, and the EXIT trap completes an interrupted copy before it
starts OpenBot. The progress keeper makes the state file again when the
`stage` of the timer removes it.

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

* Start OpenBot when the retry of an interrupted copy fails

`set -e` applies in the EXIT trap of `request`. When the second `apply`
failed, the trap stopped before `systemctl start`, and OpenBot stayed
stopped. The trap now ignores that failure.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:36:00 +02:00
NB 6a7fd1d53a Add Spanish and German translations (#1587) 2026-10-08 15:21:10 +02:00
NB e11388a4b7 Publish production boat snapshots after each release (#1584) 2026-10-08 14:39:13 +02:00
NB 0086fc4eff Separate encrypted development settings from local defaults (#1580)
* Add shared development secrets with persistent local defaults

* Replace the shared Stripe development key

* Use encrypted development env and remove legacy state import

* Document the two account environment files

* Clarify shell overrides and production worktree setup
2026-10-08 14:16:15 +02:00
NB f2e52bc49f Update the Bun toolchain to 1.4.2 (#1575)
* Update the Bun toolchain to 1.4.2

* Fix the remote desktop dependency audit

* Pin the verified recipe 15 runtime artifacts
2026-10-08 12:39:40 +02:00
Aleksander DygońandClaude Opus 5.5 08c994e51b Add a Routines canvas that hands a routine's answer from agent to agent (#1447)
* Add diagrams canvas designs in Storybook

Add the shared UI for diagrams (#1203): a canvas where routines start
agents, with the last run's input and output for each agent, a run
panel, and a small chat panel to edit the diagram through an agent.
Add an Agents, Channels and Diagrams switch over the sidebar list. The
switch shows only when the app handles it, so the app is unchanged
until it is wired.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Show what each routine does on the diagram canvas

A routine card now shows its instruction, a seven-day strip with a tick
at each time it fires, and its last runs as status dots. It glows while
the run it started is in progress. The run panel for a routine shows
what it does, the agents it starts and how far the run reaches, the
times it fires this week, and its run history.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Animate the diagram assistant when it opens and closes

The panel grows out of the launcher's pill shape and folds back into it,
with a little overshoot on open and a faster close. Its content settles
just after the shape. Focus moves to the input on open and back to the
launcher on close, and the folded panel lets the pointer reach the canvas.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Show the open chat in the diagram workspace story

On the Agents and Channels views the middle of the workspace story now
shows the open chat, as the app does. The canvas shows only on the
Diagrams view, and leaving it returns to the last open chat. The agent
chat setup and the channel transcript move to shared story modules, so
the conversation stories and the workspace story use the same code.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Remove the Channels view from the sidebar switch

The switch now has two views: Agents, the chat list with its channels as
before, and Diagrams, which shows how routines start agents.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Show each routine's run when one agent has several routines

A diagram keeps the last run of every routine, not one run for the whole
canvas. One routine is in focus at a time: a picker in the header, the
chips on each agent card, or the "Started by" list in the run panel sets
it. The canvas then shows that routine's path, steps and last run in its
colour and dims the rest; the panel shows what each agent received and
returned in that run. The focus follows the newest run until the user
picks one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Add a story for a routine that starts one agent alone

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Show an agent's routines beside its canvas

The sidebar keeps the chat list in both views; the switch is now Agents
and Routines. On Routines, opening an agent shows a list of every
routine whose run reaches it, with schedule, next run, run history and
last result, and the canvas of the routine picked in the list. Each
routine is its own diagram. The sidebar's diagram list is removed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Put an agent's routines on one canvas with tabs

The Routines tab no longer adds a routine list column. The open agent
gets one canvas with every routine whose run reaches it, and the tabs in
the canvas header pick the routine whose path and last run show. The run
panel starts closed and opens when a card is picked, so the canvas has
the whole width.

A connection can now belong to one routine. A run follows only its own
routine's connections and the shared ones, so a check that one agent
runs alone stops at that agent even when the agent hands work on in
other routines.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Pick the highlighted routine from a selector

The routine tabs in the canvas header become one select: All routines,
then each routine with its colour and how its last run went.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Show the run details panel by default

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Start the diagram assistant closed

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Run routine flows in the desktop app

The Routines view of the sidebar now shows the open agent's routines from
the local host: schedules, next runs, run history and what each agent
received and answered in the last run. On the canvas, connecting one
agent to another inside a routine makes the routine hand the first
agent's answer on when it runs.

Migration 28 adds the link, position and step tables, written directly,
not through the event log. The Effect-based RoutineFlows service sweeps
on turn, queue and routine events and at startup: it records the answer
of a run that ended, settles steps whose delivery ended, and sends the
next messages as deliveries from the routine. An agent with several
inputs waits for all of them; an agent whose inputs failed is skipped. A
link applies only to runs that start after it. Remote servers answer
that routine flows are only for agents on this computer.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Let the routine canvas header drag the window

The canvas and run details headers sit at the top of the window like the
chat header, so they now carry window-drag as it does.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Let an agent edit the routine canvas from its chat panel

The Routines view now shows the chat panel. A request goes to the open
agent's conversation, and the panel shows the answer of the turn that
read it. Agents get list_routine_flows, connect_routine_agents and
disconnect_routine_agents.

The canvas walked all links as one graph, so two routines that link the
same agents in opposite directions froze the renderer. Each routine is
now walked on its own links, and a new connection is checked against the
focused routine only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Name the canvas chat placeholder a routine change

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Centre the Bloub in the canvas chat launcher

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Use the chat composer in the canvas chat panel

The panel input is now the chat's compact composer: one line with the
round send button, and the same editor and send shortcut.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Let the user drag the canvas chat

Drag the chat by its button or the panel header. It stays inside the
canvas. A press that moves less than 4 px is still a click.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Show a new canvas connection before the host saves it

The link draws at once. When the host refuses it, the link goes away and
an error toast says why. A pending link cannot be removed until it is
saved.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Remove the week strip from routine cards

The run details panel still shows it. The fit uses the shorter card.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Centre the Bloub in the canvas header

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Match the canvas header to the agent chat header

38 px high, with the same 18 px avatar, name size and start position.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Move the routine picker onto the canvas

The picker sits at the top centre of the canvas, level with Add agent.
Add agent and the header Run now use the extra-small button and icon.
The canvas status message moves below the picker.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Remove the last run status from the canvas header

The run details panel still shows it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Show the canvas zoom controls as a column of square buttons

Zoom in, zoom out and fit, one outlined button each. The fit button's
name still says the zoom level.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Use smaller, muted icons in the canvas zoom buttons

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Match the run details button to the chat header, and slide the panel in

The button uses the chat header's panel toggle. The run details panel
opens with the settings panel's slide-in, and without it when the user
asks for reduced motion.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Open run details as the chat's browser sidebar opens

The panel appears at the right edge, and the canvas eases its padding to
make room, with the chat panel's transition. This replaces the slide-in.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Rename run details to routine details, and close it with a chevron

The close button uses the browser sidebar's right chevron.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Close routine details from the canvas header

The header button toggles the panel: the panel icon opens it, and a
right chevron in the same place closes it. The panel has no close
button of its own.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Draw the routine details chevron without a fill

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Use the header chevron style for the step details back button

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Centre every agent Bloub on the canvas view

One rule replaces the header and chat fixes and also centres the step
list and canvas card avatars.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Focus a routine when the user clicks its card

The card click now also does what picking the routine in the select does,
and the panel still shows the routine's details.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Select a canvas card from a click anywhere on it

Before, only the card's title row selected it; a click on its body
started a drag that did nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Remove Run now from the routine details panel

The canvas header keeps it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Let the user change an agent's task in a routine

The Task field in an agent's routine details is editable. For the
routine's own agent it changes the routine's instruction; for any other
agent it changes the instruction of the links that reach it in that
routine, through the new routineFlows.updateLink endpoint. The card and
the panel show the task of the routine in focus.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Give the routine canvas the chat's edge background

The header row takes the sidebar colour, and the canvas below is the same
inset panel with its top line and rounded corner.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Use the small header button for hiding the canvas chat

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Remove the Add agent and Add routine toolbar from the canvas

Agents join a routine through a connection or the canvas assistant.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Render agent answers as Markdown in the canvas chat, and follow the newest

An agent's answer uses the chat's Markdown renderer, and its links open
in the external browser as in the chat. The message list scrolls to the
end when a message arrives or the agent starts working.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Add agents to the routine canvas from a right-click menu

Right-click the canvas to place an agent that is not on it yet at that
spot, or to create a new one there in a small card: name, what it does,
and the model it runs on. The new agent is created without leaving the
canvas. Placing an agent shows it at once and takes it off again when
the host does not save it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Use the chat header's model pill in the new agent card

The pill sits below what the agent does, shows the reasoning effort,
and sends the chosen effort with the new agent.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Use the agent form's model field in the new agent card

The card shows the model as the agent setup form does, below what the
agent does. The host picks the reasoning effort, as it does for that form.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Draw the new agent card's model field at the height of its inputs

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Close the new agent card on a press outside it

A press inside the card or in its model list keeps it open, and so does
an agent that is being created.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Keep the canvas menu icons as outlines

The sidebar menu's fill-in effect turned the person icon into a solid
shape while its submenu was open.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Keep SVG ids in a closing menu's copy

The copy that plays a menu's exit removed every id, so an avatar drawn
through url(#id) masks showed as a solid square while it faded. SVG
elements now keep their ids; the copy goes in only after the original
has left the page.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Resend a routine handoff that a restart left without a delivery

A restart between writing a step and attaching its delivery left the
step running with nothing to settle it, and the flow stopped. The sweep
now sends such a step again under the step's own key, so the mailbox
returns the first delivery instead of sending twice.

Also stop exporting what nothing else imports (knip).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Drop a connection whose card is gone, and save a move before leaving

Removing the card a connection started on cancels the connection, and a
connection needs both cards on the canvas. A card moved just before the
user leaves the canvas is saved then instead of dropped.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Give the canvas menu's agent rows room for name and title

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Keep the exactOptionalPropertyTypes ratchet at its baseline

The new routine flow code adds no errors under the option, the moved
story messages leave out absent fields, and the Conversation story's
baseline goes down to its one remaining error.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Tie canvas chat answers to their request, and ignore stale canvas loads

The assistant reads its request in the conversation around its own
message. A request still queued takes no answer, a failed or cancelled
delivery ends it with an error, and an answer must come from the
request's own turn. A canvas load for an agent the user has left changes
nothing, and removing an agent drops its pending move.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Find a long turn's answer for the canvas chat on the newest page

When the page around the request ends before the answer, the chat reads
the newest page, where the answer of a turn that has just ended is.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Say a canvas connection is made only after the host saves it

The canvas announced the connection as soon as it was drawn, so a
connection the host refused showed both a success line and an error.
onConnect now answers whether the connection was saved.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Read only one turn's assistant messages for a routine flow answer

The flow sweep looked up each finished run's answer by loading and
parsing the whole conversation of the agent. It now reads the assistant
messages of that one turn.

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

* Show the last answer of a long turn in the canvas chat

An earlier message of the turn on the page around the request no longer
stands in for the answer: once the turn has ended, the answer on the
newest page wins.

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

* Show webhook routines on the routine canvas and set their webhook

The canvas listed scheduled routines only. It now reads routines of every
trigger kind, and a webhook routine carries its endpoint, event type and
filters. Its card says which events start it, and its details use the
routine settings' webhook card: copy the endpoint, regenerate the
signing secret, and save the event type and filters through the events
API. Run now and the owner's task use the events API for these routines.

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

* Seed one webhook routine in the development showcase data

Launch gets "Release published", started by release.published events
with one filter. The seed cannot reach Electron's safe storage, so it
stores a placeholder secret: requests answer 503 until the secret is
regenerated in the app.

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

* Place canvas agents on their routine's row and add a webhook routine story

An agent now goes on the row of its first routine, or of the agent that
hands work to it, so an edge does not pass behind another card. Run now
stays at the right edge of a routine card that has no runs. A Storybook
story shows a routine that a webhook starts.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 11:35:40 +02:00
NB ee5376d4ae Bound provider history and preserve recovery state (#1532)
* Bound provider history and preserve recovery state

* Preserve cache recovery and ACP replay order

* Preserve live history state and provider recovery

* Preserve routine and Claude history during recovery

* Remove resolved optional-field errors from the baseline
2026-10-07 20:34:31 +02:00
NB 2df4f66999 Add reliable error reports across app surfaces (#1533)
* Add reliable error reports across app surfaces

* Report structured provider failures once per turn

* Exclude confirmation dialogs from notification reports

* Keep saved mobile reports until the account is loaded

* Omit absent optional fields from failure reports
2026-10-07 20:03:19 +02:00
NorbertandClaude Opus 5.5 ee9aef5832 release: prepare the mobile app v1.2.0 (#1515)
Move the mobile release notes into apps/mobile/CHANGELOG.md and set the
version to 1.2.0. Name the release "OpenBot mobile", because the version
applies to iOS and Android, and tell the release to run the Android
upload too.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 15:40:57 +02:00
NB 8d09a10fcc Let the macOS package check accept the effect import of the database host (#1506)
Since the Effect 4 migration (#1283), the database host imports effect. The macOS package check still accepted only node: builtins, so the v0.31.0 release failed on both macOS jobs. Release dry runs skip the macOS job, so they did not find this.
2026-10-07 14:48:36 +02:00
NB 97e47005e2 Add Bitwarden login autofill (#1505)
* Add Bitwarden login autofill

* Open Bitwarden setup from the Marketplace card

* Accept Bitwarden folders with a null ID
2026-10-07 14:39:57 +02:00
NB ab4a6484fd Let Framer sign-in pass in the embedded browser (#1493)
* Let Framer sign-in pass in the embedded browser

Framer refused every sign-in with "Access denied by policy" when the user
agent had the `OpenBot/` product token. The session and the service-worker
fallback now remove only this token. They keep `Electron/`, which Google
sign-in needs.

dev:automation used the token to identify the app. It now uses the preload
bridge of the app window.

Add a `--framer-live` browser smoke probe.

Fixes #1484

* Fix the findings of the local review

- dev:automation also requires `Electron/` in the CDP user agent before it
  accepts an app window as proof. A page in another Chromium can define
  `window.openbot`.
- The Framer probe restores the panel size that the smoke script used
  before the probe.
- Correct the reason for the Canva row in the site table.
- Rename the release note to the branch name.
2026-10-07 12:44:38 +02:00
Aleksander DygońandClaude Opus 5.5 9b669e9c28 Connect Discord servers through a central OpenBot Discord bot (#1449)
* Connect Discord servers through a central OpenBot Discord bot

Signal holds the bot token, keeps the Gateway connection, passes each
guild's mentions of OpenBot to the linked host's ingress socket, and makes
typed Discord calls for that host. The account service links a guild to a
host and seals the link to it. Each guild gets a Discord Orchestrator, and a
conversation is a reply chain.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Match the generated auth-api route tree to the router generator

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Unlink removed Discord guilds without the host, and keep failed disconnects

- Signal tells the account service when the bot leaves a guild, and drops
  the route at once, so an offline host does not keep the link.
- A Discord disconnect unlinks first and changes nothing when that fails.
- Reconnect of a guild that removed the bot starts the install again.
- nginx streams Discord uploads to Signal instead of buffering them to disk.
- Remove two unused exports that knip reports.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Recover Discord guild removal when the unlink or the host misses it

- Signal knows the bot's guilds from the Gateway. A route ticket that names
  a guild the bot left is not routed, and Signal asks for the unlink again,
  also after a restart. New links get five minutes for the Gateway to catch up.
- The discord-session frame lists the guilds routed to the socket. A host
  connection whose guild is not listed stops, so Reconnect starts the install.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Reconcile Discord guild links from the Gateway, and restore a README heading

- Signal sends the account service the guilds that the bot is in, after the
  Gateway lists them and every 30 minutes. The account service unlinks each
  older link of another guild, so a failed unlink recovers without a host,
  also after a Signal restart. Membership is tracked per Gateway shard.
- Restore the "Production requirements" heading of remote/README.md, which
  docs/self-hosting.md links to.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Pause the Discord guild reconcile while a Gateway shard is closed

A closed shard can miss a guild that installs the bot, so its guild list
is stale until the shard resumes or is ready again. The reconcile sends
nothing until every shard has a current list, so it cannot unlink a new
guild.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Retry rate-limited Discord calls, retry the Gateway connect, bound uploads

- A Discord call that Signal answers with rate_limited waits and tries
  again, at most 3 times and at most 60 seconds each, as a Slack call does.
- A first Gateway connection that fails is tried again with a backoff of
  5 seconds to 5 minutes, until Signal stops.
- An upload reads at most one byte more than Discord's 10 MB limit, so a
  large attachment is not read into memory.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 12:35:15 +02:00
NBandClaude Opus 5.5 e26b637ad0 Move shared runtime installer helpers to one module (#1458)
* Move shared runtime installer helpers to scripts/runtime-install.ts

The Claude, Codex, Grok, cua-driver and remote desktop installers had
copies of the same helpers. Put one copy of each in
scripts/runtime-install.ts:

- installValidatedTree (the remote desktop installer calls it for the
  platform/architecture directory)
- isCurrentInstallation, which now takes the verify function
- download (Grok and remote desktop)
- safeArchivePathParts, the common safety part of validateArchivePath
- escapeRegExp

Error messages, user agents and install paths do not change. The remote
desktop download now sets redirect: "follow" explicitly; that is the
fetch default, so the result is the same.

The cua-driver and pin-cua-driver downloads keep their own copies,
because their error messages (and the pin user agent) are different.

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

* Keep remote-desktop-runtime-release.ts unchanged

The remote desktop workflow requires a recipeVersion increase when this
file changes. That increase changes the input digest and starts a new
native build and release. A refactor must not do that, so this file keeps
its own validateArchivePath.

Also run the cua-driver workflow when scripts/runtime-install.ts changes,
because install-cua-driver.ts now imports it.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:07:29 +02:00