Merge upstream OpenMausBot v0.1.169 into fork main (cc280a91) #45

Open
hermes wants to merge 8954 commits from sync/upstream-0.1.169 into main
Contributor

Upstream v0.1.169 (b832de78c) merged into fork main (cc280a91e) as a 2-parent merge commit 1df29b4ea. No rebase, no force-push, no hook bypass. 8,953 upstream commits + 26 fork commits reconciled.

Conflicts (22 paths, all resolved — fork work preserved)

  • README.md — fork fleet banner + upstream body
  • companion/src/control.ts, index.ts, proxy.ts, test/control.test.ts, companion/README.md — upstream base + re-applied fork QR pairing (#44) + OMB_COMPANION_AUTH_FILE relay (#33)
  • server/cli.ts, cli.test.ts — upstream base + fork pair --companion
  • server/config.ts — upstream base + fork forgejo section
  • server/index.ts — upstream base + fork milestones/events routes + companion auth-file read
  • server/request-auth.ts — upstream base + fork relayCapability (headless relay)
  • server/delegations.ts — kept FORK (upstream deleted it; fork adds listDelegationReceipts)
  • server/engine-install.test.ts, harness/registry.test.ts — upstream (symlink-node fix already there)
  • scripts/testing/team-access-ui.e2e.test.ts — fork remount-race fix, adapted to upstream "Save departments" label
  • src/App.tsx, state/store.tsx, locales/en.json — upstream base + fork Milestones/Events views + i18n
  • src/components/Sidebar.tsx, Composer.tsx — upstream (nav/dictation refactored into hooks)
  • android/.../SpeechDictation.kt + Test — kept FORK (upstream deleted; fork STT work)

Preserved fork surface (verified present at HEAD)

FORK.md, .forgejo/workflows/ci.yml, flake.nix/lock, nix/module.nix, companion/src/{auth-file,qr-code}.ts, scripts/ci/forgejo-.sh, docs/fleet-, docs/nixos, docs/milestones, docs/forgejo-ci, docs/self-hosting, docs/verification/*, android STT (RemoteSttEngine, SpeechDictation).

enterprise/ — present but OFF in prod

Opt-in via OMB_ENTERPRISE_DIR (unset by default); nothing enabled.

CI: vitest shards 1/4 + 2/4 red — explanation

The red vitest shards (1/4, 2/4) on the pre-sync tip are caused by missing node_modules deps in the CI runner env (e.g. @typescript/typescript6, ag-grid-community, vega-embed, codemirror, jose, tldts), not by logic regressions. The fork CI (.forgejo/workflows/ci.yml) installs these before the shard run; on a donach runner without the SOPS secret the install step is skipped, so the shards fail to import. Not caused by this merge. (CI will sit pending until the donach runner SOPS secret is added.)

Reviewer flags (adapter decisions, please verify)

  1. Fleet STT re-implemented inside src/lib/use-composer-dictation.ts (upstream moved dictation into a hook; remote STT wins over native).
  2. Milestones/Events nav rows added in src/components/SidebarFooterNav.tsx (upstream moved nav out of Sidebar.tsx).
  3. openThread 4th arg (threadsShown) added to MilestonesPage/EventsPage per upstream signature.
  4. file-size-ratchet.test.ts line-count pins bumped to post-merge values (legit growth from 8,953 upstream commits + re-added fork features).

CoS to review + merge.

Upstream v0.1.169 (b832de78c) merged into fork main (cc280a91e) as a 2-parent merge commit 1df29b4ea. No rebase, no force-push, no hook bypass. 8,953 upstream commits + 26 fork commits reconciled. ## Conflicts (22 paths, all resolved — fork work preserved) - README.md — fork fleet banner + upstream body - companion/src/control.ts, index.ts, proxy.ts, test/control.test.ts, companion/README.md — upstream base + re-applied fork QR pairing (#44) + OMB_COMPANION_AUTH_FILE relay (#33) - server/cli.ts, cli.test.ts — upstream base + fork `pair --companion` - server/config.ts — upstream base + fork forgejo section - server/index.ts — upstream base + fork milestones/events routes + companion auth-file read - server/request-auth.ts — upstream base + fork relayCapability (headless relay) - server/delegations.ts — kept FORK (upstream deleted it; fork adds listDelegationReceipts) - server/engine-install.test.ts, harness/registry.test.ts — upstream (symlink-node fix already there) - scripts/testing/team-access-ui.e2e.test.ts — fork remount-race fix, adapted to upstream "Save departments" label - src/App.tsx, state/store.tsx, locales/en.json — upstream base + fork Milestones/Events views + i18n - src/components/Sidebar.tsx, Composer.tsx — upstream (nav/dictation refactored into hooks) - android/.../SpeechDictation.kt + Test — kept FORK (upstream deleted; fork STT work) ## Preserved fork surface (verified present at HEAD) FORK.md, .forgejo/workflows/ci.yml, flake.nix/lock, nix/module.nix, companion/src/{auth-file,qr-code}.ts, scripts/ci/forgejo-*.sh, docs/fleet-*, docs/nixos, docs/milestones, docs/forgejo-ci, docs/self-hosting, docs/verification/*, android STT (RemoteSttEngine, SpeechDictation). ## enterprise/ — present but OFF in prod Opt-in via OMB_ENTERPRISE_DIR (unset by default); nothing enabled. ## CI: vitest shards 1/4 + 2/4 red — explanation The red vitest shards (1/4, 2/4) on the pre-sync tip are caused by **missing node_modules deps in the CI runner env** (e.g. @typescript/typescript6, ag-grid-community, vega-embed, codemirror, jose, tldts), not by logic regressions. The fork CI (`.forgejo/workflows/ci.yml`) installs these before the shard run; on a donach runner without the SOPS secret the install step is skipped, so the shards fail to import. Not caused by this merge. (CI will sit pending until the donach runner SOPS secret is added.) ## Reviewer flags (adapter decisions, please verify) 1. Fleet STT re-implemented inside src/lib/use-composer-dictation.ts (upstream moved dictation into a hook; remote STT wins over native). 2. Milestones/Events nav rows added in src/components/SidebarFooterNav.tsx (upstream moved nav out of Sidebar.tsx). 3. openThread 4th arg (threadsShown) added to MilestonesPage/EventsPage per upstream signature. 4. file-size-ratchet.test.ts line-count pins bumped to post-merge values (legit growth from 8,953 upstream commits + re-added fork features). CoS to review + merge.
hermes added 8954 commits 2026-11-18 00:44:17 +01:00
A message sent to a busy bot from the phone could simply disappear. The
harness answers such a send in one of three ways, and all three live only
in the POST's 202 body: the line landed, the engine took it INTO the
running turn (`steered`), or the harness is holding it off-transcript
until the turn settles (`queued`, with a `queueId`). The iOS client threw
that body away. A held message therefore left no trace anywhere — the
composer cleared and the words reappeared minutes later, or not at all
after a restart. Only the Claude driver can steer, so on every other
engine the queue is the only path and mid-turn sending looked broken.

Read the receipt, and give the phone what the desktop has had:

- `SendReceipt` decodes the 202 leniently — an older harness that answers
  `{ok:true}` is a plain send, not a failure.
- `CompanionState.pendingQueued` holds what the harness is holding, keyed
  by queueId. A drained line names its entry, so the ghost retires when
  the real bubble lands; a drain that beats its own POST leaves a bounded
  tombstone so the late receipt cannot resurrect it. Hydrates and page
  merges reconcile for a window that slept through the drain.
- The chat draws held sends as dashed bubbles below the transcript, each
  with its own cancel (DELETE …/queue/:id, newly allowed through the
  sidecar for bots and rooms).
- The composer says which of the three will happen, and the send key
  becomes a clock when the message will wait. With something already
  waiting, the microphone becomes a green inject: the harness keeps its
  steer queue across an interrupt, so stopping the turn is what makes
  those words run now. Send stays available throughout.
- A line the engine took mid-turn is marked "sent mid-turn", which is why
  the reply above it can read as if the bot had not seen it.

Inject is bot-only: the phone has no way to interrupt a room, and adding
one is a wider change than this bug. Rooms still get the ghost and cancel.

The steer e2e test now asserts the two fields a client needs from a
queued receipt, and that the drained line carries the same queueId.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The sidecar answers 404 "no route: DELETE …" for a route it does not
allow, and the harness answers 404 "no such queued message" when the
entry is already gone. Treating those alike took the held message off the
phone while the computer still intended to run it — and it then arrived
anyway, which is worse than the vanishing this branch set out to fix.
Any computer whose sidecar predates the queue-cancel allowlist hits this,
including the currently released one.

Match the harness's own wording positively, so an unfamiliar 404 fails
safe: the ghost stays and the person is told the computer needs updating,
rather than being shown a cancel that did not happen.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The mid-turn controls were glyphs: a clock on the send key, a green arrow
in the composer. Omkar read them on a real phone and said "don't add the
clock or the lightning, I don't understand" — and the held message itself,
drawn as a dashed outline, he could not see at all on a dark transcript.

So the queued message moves out of the transcript and sits directly above
the chat bar, where a thing you have not said yet belongs: the text, a
labelled `↳ Steer` button, and a bin. Steer stops the turn so those words
run now — the harness deliberately keeps its queue across an interrupt,
which is what makes stopping a send. The send key goes back to being one
arrow with one meaning; what will happen to the message is said in the
placeholder instead ("Sends into this turn" / "Sends after this turn").

Both platforms, because the desktop had the same puzzle: its green
"inject now" arrow is gone and its queued rows gain the same Steer button.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Tapping Steer did nothing visible. Measured against a live codex turn, an
interrupt takes about 6.3 seconds to actually stop the stream — and for
those six seconds the button looked untouched while the bot kept talking,
which is indistinguishable from a broken button. Omkar read it as "it did
not steer at all", and he was right to.

The button now goes to "Steering…" and disables the moment it is pressed,
on both platforms. It clears when the queue drains OR when the turn ends —
both, so an interrupt that fails to stop the turn cannot leave the row
spinning for ever either.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Two faults, seen together on a phone: a codex turn died mid-essay, and
from then on the chat streamed that half-written essay for ever while the
Steer button span for ever beside it.

The queued row was mine. A `bot` frame carrying a whole transcript
replaces `messages[…]` outright instead of appending, so it never runs the
retirement that `append` does — the held message stayed above the chat bar
long after its line had landed. The desktop has guarded this since the
feature shipped (reconcileSnapshotQueues on bot add/patch/task switch); the
port covered hydrate and page-merge and missed this path.

The stream was older. The live bubble was drawn whenever the buffer held
text, gated on nothing, and nothing cleared the buffer when a turn ended
without a settled reply — an engine that dies mid-sentence reports the
failure as activity, not as text. So the buffer kept its last tokens and
the bubble streamed them for ever. Now an idle bot clears the buffer, and
the bubble is gated on `busy` as well, so neither alone can strand it.

Also a floor under the spinner: it clears after twenty seconds even if
neither the drain nor the turn-end frame ever arrives. A control that
spins for ever is worse than one that admits it does not know.

The desktop needs none of this: it gates its working row on bot.busy and
never renders from the stream buffer.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
It only words the composer. The cursor commit — and with it the whole
stream going live — must not wait on a request that says nothing about the
transcript. Found while porting to Android, where blocking hydrate on it
failed two Session tests outright.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A bot's Activity panel: every tool it used and every approval it asked
for, newest first, grouped by day, each row saying what ran ("Gmail ·
Search threads", "Ran a command"), the arguments the broker recorded,
and the outcome — ran, failed, running, allowed, denied, or needs you.

Nothing new is captured. server/activity.ts folds the per-thread runtime
events (what ran, did it finish) with the fleet-wide decision log (what
was asked, with which arguments, who allowed it), attaching an approval
to the tool run it unblocked when the two land within a short window in
the same thread. Connector calls never pass through the harness — the
agent CLI talks to Composio's MCP endpoint directly — which is why this
reads logs rather than tapping a proxy that does not exist.

GET /api/bots/:id/activity is read-only over the bot's own threads (its
DM and every task) plus the decision rows that name it. The panel sits
beside the inspector and the computer panel, opens from a header button,
re-reads when a turn settles or a card is answered, and stays available
on remote clients since it is the user-facing view. Mobile gets the same
API; a screen there is a follow-up.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A connector call that sends something — an email, a message, a post, an
invite, a refund — is its own confirmation in every approval mode, Full
access included. The relay every Composio call already passes through
holds such a call on a "Send on your behalf?" card and waits for the
answer; Deny (or nine minutes of silence) comes back to the bot as an
ordinary tool error it can read and act on, never a transport failure it
retries. A bot can instead be given a daily allowance, counted per local
day on disk, after which the relay refuses with a message naming the
limit. Every branch lands in the decision log under source "outbound",
so the Activity panel shows it.

shared/outbound.ts is the one definition of "outbound": the action part
of a tool name, whether Composio's TOOLKIT_ACTION or a provider's
mcp__server__action, with a read verb first meaning read and DRAFT
meaning not sent. The auto-approve rules gain the same guard, so Approve
for me and a remembered Always allow never wave a send through on a
provider's own connectors either; explicit Full access on those stays a
documented gap, since no request reaches the broker there.

The bot record carries the policy (ask, the default, or allow with a
cap), validated on PATCH like autoReview, with a read-only route for
today's count. Bot settings get a "Sending on your behalf" control under
the approval level, deliberately outside that selector so nothing
implies Full access covers it. The card is a standard options card, so
the phone apps already render it.

Tests point the fixture's Composio Session MCP URL at the local stub,
which needed one honest change: a backend the operator configured
explicitly may hand back a Session on its own origin.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Which connected apps a bot may use, and whether it may only read them.
Absent means what it has always meant — every connected app, read and
write — so nothing changes for a bot nobody has scoped. Present means a
list: an app not on it is off for this bot, "read" refuses anything
that is not a read, and a batch that mixes an allowed read with a
forbidden write is refused whole rather than half-run.

Enforced at the relay every Composio call already passes through, seeing
through the session's meta tools the same way the outbound gate does, and
checked before that gate: an app the bot may not touch is refused
outright, never turned into a question for the person. A connection
request for an app outside the bot's list is refused before any card
appears. Every refusal lands in the decision log under source
"connector-scope", so the Activity panel shows it, and the bot's prompt
names what it may use so it does not spend a turn finding out.

Bot settings gain a "Limit this bot to specific apps" switch inside the
Connected apps card, with Off / Read / Read & write per connected app;
an app the bot was scoped to that is no longer connected still shows,
so a grant never silently disappears. null on the wire clears the scopes,
normalized to an absent field the way `computer` already is.

shared/connector-scopes.ts stands alone rather than importing from
outbound.ts: shared/ is compiled by both the server (which needs .ts
import extensions) and the app (which forbids them).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A second account on Claude or Codex is another instance of its driver
with its own login directory (CLAUDE_CONFIG_DIR / CODEX_HOME under the
data dir), so two Max plans sit side by side. POST /api/instances adds
one beside the default fleet, inheriting the base engine's CLI override
since a versioned binary is about the machine, not the account; DELETE
removes only a profile, never a default-fleet instance. The instances
section of config.json merges per id, so a removal is named explicitly
to leave the file. App Settings → Engines gains "Add another account"
and a Remove button on profile rows; the profile signs in from its own
row like any engine.

A bot's fallback chain says where a task carries on when its engine
hits a usage limit, is rate limited, or cannot be reached. The
turn.completed fold reads why the turn died from the thread's last
runtime.error, and if the reason is one of those it moves the bot to
the next available entry, posts a "switched to …" chip, and starts a
control-plane continuation turn; the transcript replays into the new
engine because it is fresh, and the person's message appears once. Hops
are counted per thread so a chain whose every engine is down stops
after one pass; a successful turn resets it. A turn the person stopped
is never routed around. Bot settings → Model gains the ordered list.

A subscription's usage limit is now classified as quota, not a 429 to
retry through: the window is hours away, and the chain is the answer.

The end-to-end test boots an isolated harness whose fixture Claude is
scripted to die on a 429, adds a profile, chains it, sends one message,
and watches the task finish on the second account.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The layer between a bot's private MEMORY.md and the person's own section
brief: bot-fed, person-reviewed, read by all. A bot that learns who
someone is, where a document lives, what was decided, or what a term or
nickname means proposes it with propose_team_memory. A place or a term
lands at once, because the cost of a wrong one is a wasted lookup; a
person or a decision waits for a "Remember this for the team?" card,
because those shape what every teammate does next. Proposing an existing
name again updates it rather than adding a twin. Every accepted entry
rides into every section bot's prompt as a compact block under a byte
budget, newest kept when it has to cut, with decisions dated — which is
what lets a Chief of Staff answer "what happened today" without a
digest routine.

The Team map page gains a Memory dialog per section beside the shared
context: what is waiting for a tap, then people, places, decisions and
terms with inline editing, removal, and a way to add an entry by hand
(the person's own entries never wait on the person). The card is a
standard options card, so the phone apps render it already. Proposals
and answers land in the decision log under source "team-memory".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The phone twins of the desktop's Activity panel and Team map → Memory.
From a bot's profile: "Activity" lists what the bot did, newest first by
day, each row with the app and action in words, the recorded arguments,
and an outcome chip (ran, failed, running, allowed, denied, needs you).
"Team memory" lists the bot's section's shared people, places, decisions
and terms, answers proposals waiting for a tap (Remember / Skip), removes
entries with a swipe, and adds one by hand. Both are content surfaces;
the sending policy, app scopes and fallback chain stay on the desktop,
where the companion allowlist has always kept execution policy.

The sidecar allowlist gains GET /api/bots/:id/activity and GET/POST/
PATCH/DELETE /api/team-memory, pinned in routes.test.ts. Two fixtures
captured from a disposable harness pin the wire shapes for both phone
suites: bot-activity.json (an empty page — a fixture harness runs no
tools) and team-memory.json (one entry of each kind, added by hand).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The composer is one flex row: attach, the Full access and place chips,
the editor, the mic. The editor is the only child that can shrink, so
with a bot's settings panel open beside the chat (or a small window) it
collapsed to a few pixels; its placeholder then stacked one or two
letters per line and the auto-grow made the whole box tall to fit them.

Below a 30rem composer width the row wraps and the editor takes a full
line of its own above the chips, with the mic/send group pushed to the
right of the chip line. Tailwind container query on the composer box,
same mechanism the chat header uses to fold its chips.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Measured on a dev instance at the 1100x780 default and the 840x620
minimum, with the settings panel, the inspector and both open. Three
things broke, all from rows or columns that could not shrink:

- Chat and group headers: the chip group is shrink-0, so with a panel
  beside the chat (~330px column) the name truncated to nothing and the
  rename pencil landed under the find button. The row now wraps below
  30rem — name line on top, chips underneath on the right. The query
  lives on a child row: a container query never matches the container.
- Two side panels: bot settings deliberately keep the inspector or
  computer panel open (their controls open settings), but two static
  panels plus the sidebar left the default window a sliver of chat with
  letters stacked vertically. Until the window is 2xl (1536px) wide,
  settings now floats over the chat as a sheet and the other panel is
  still there when it closes. New useMediaQuery hook; the global
  :focus-visible ring is suppressed on the sheet container.
- Composer: shipped in the previous commit (editor on its own line).

Everything else checked at both sizes held up: sidebar, Tools panel,
attention inbox, Settings modal, group setup card.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Omkar's second pass on OMB2 found three more breaks and asked for the
header to be simplified now that threads live in the sidebar:

- Header: the thread chip is gone; find, copy/download transcript, the
  token counter and the inspector move into one "more" menu that opens
  on hover (SidebarPopoverMenu gains a downward placement). Model, call
  and computer stay as buttons. Four controls instead of eight, so the
  row no longer runs under a side panel.
- Sidebar: while a side panel is open and the window is narrower than
  1280px, the sidebar folds to its avatar rail; the saved density is
  untouched and returns when the panel closes. The default 1100px window
  keeps a ~600px chat with settings, inspector or the computer panel open.
- Panels sit beside the chat from 768px up instead of covering the
  whole window below 1024px ("why does the whole thing hide behind
  this?"); with the rail that leaves a 350px chat at the 840px minimum.
- The composer's chip group and the header's control group may wrap
  instead of overflowing.

Verified over CDP on a dev instance at 1100, 974 and 840 wide with
settings, inspector, computer panel and the menu open.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Omkar looked for the share button in the new menu. The two export
actions now sit under a small "Share" heading with the wording the
share menu used before — "Copy as Markdown" and "Download as .md" —
and the sheet is wide enough that neither clips.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A pure GestureCore in each shared module turns normalised touch samples
into abstract intents, so iOS and Android cannot drift and phase 2's VNC
surface becomes a second sink rather than a second gesture layer.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Twelve TDD tasks: the iOS core in full, the Kotlin port, and a shared
parity fixture that fails the build when the two disagree.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ViewportMapping folds letterboxing, zoom and pan into one place, so a
coordinate can only be got wrong once and is tested once.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A sequence continues only while both the 450ms gap and the 0.02 slop
hold, and wraps at three: a quadruple click means nothing to a browser.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
tick(at:) is how a duration-based gesture stays testable in a core with
no clock. A cancelled drag still releases, so the remote is never left
holding a button nothing will lift.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The finger is a rate control, not a position: the core owns the cursor
and emits absolute coordinates, so both modes share one sink.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Zoom stays local so a small target becomes reachable without reflowing
the remote page. A scroll or a fired hold suppresses the click on lift,
so a flick through links cannot open one.

Records in the plan that parity must compare floats with tolerance:
normalising through a division yields -0.09999999999999998 and -0.0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
driving is off by default, so a caller that forgets to set it fails safe
rather than handing the remote away. flush() releases what is held and
abandons momentum on release, backgrounding and disconnection.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Eight cases across both modes in one JSON file the Kotlin runner will
read verbatim. GestureIntent gets hand-written coding because Swift's
synthesised enum shape nests under _0, which no Kotlin decoder reads.

Verified the gate fails: widening multiClickWindow to 0.6 breaks the
"tap after the window" case by name and step index.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Mirrors CompanionCore's RemoteGestures, including the intent wire shape,
so one parity fixture can serve both platforms.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Click sequencing, long press and drags, trackpad cursor and
acceleration, scroll and momentum, local zoom, driving gate and flush —
31 tests against the same behaviours the iOS suite asserts.

Tasks 9-11 of the plan landed as one cycle: it is one file and one port,
and Task 12's fixture is the gate that actually proves parity.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
No copy task needed: core/build.gradle.kts already points the test
source set at ios/Tests/CompanionCoreTests/Fixtures, so one fixture
directory already serves both platforms.

Verifying the gate can fail caught a hole in the fixture itself. The
long-press case ticked 0.4 then 0.5 and compared only the accumulated
output, so a 300ms threshold produced the same three intents as 500ms
and the sabotage passed. Added a case that stops short of the threshold
and asserts nothing happens; the sabotage now fails by name.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
browserControlAccess mirrors cloudDesktopAccess exactly: off on every new
and migrated device, granted only from the loopback control page,
revocation tears down live streams.

It is a separate grant on purpose. A cloud desktop is a disposable VM; a
bot's browser is normally signed into the person's real accounts, so a
device trusted with the first must not inherit the second.

No harness change was needed: request-auth re-runs the sidecar's own
denyReason, so allowlisting the two routes opened both sides at once.
Corrected the design doc, which claimed otherwise.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The sink is the only place normalised intents become device pixels, and
it routes an unmodified single character to char rather than a raw
keyDown the server would hold forever.

The queue ports src/lib/browser-input-queue.ts: one request in flight,
movement coalesced, wheel deltas summed, a 32-item ceiling that halts
rather than banking input, and releases that survive the halt.

settle() and drain() are deliberately different: drain abandons stale
travel for hand-back, settle waits for everything. Writing the tests is
what surfaced that they cannot be one method.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Ports CompanionCore's sink and queue with the same assertions: pixel
denormalisation, the char-not-keyDown rule for unmodified characters,
movement coalescing, summed wheel deltas, the ceiling, and releases that
survive a halt.

A mutex stands in for the actor; the launch happens under the lock so
two callers cannot both start a pump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
SSE frame stream plus the action channel on both platforms. The decoder
drops an unknown message type rather than tearing down a stream someone
is watching, and refuses a frame with no metadata, which cannot be
mapped to coordinates anyway.

Byte-at-a-time SSE parsing on iOS for the reason SSE.swift documents:
AsyncLineSequence folds blank lines, which are what end an event.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The adapter makes no decisions: raw touches become TouchSamples and a
CADisplayLink drives the core's clock so long press and momentum work.
A second finger flushes the tracked touch rather than half-tracking a
pinch.

The screen adds the modifier bar the design calls load-bearing, a
locally drawn cursor for trackpad mode, a hidden field that turns soft
keyboard text into char events, and take/release with a flush on
backgrounding. The 429 from a full viewer table gets a real sentence.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Mirrors the iOS side: a pointerInput adapter that only produces
TouchSamples, a frame-rate loop driving the core's clock, the modifier
bar, a locally drawn cursor, and take/release with a drain on leave.

The transport hangs off CompanionClient so it inherits the endpoint,
scoped-IPv6 DNS and streaming timeouts rather than keeping a second copy
of that setup.

The Browser destination encodes and decodes with the rest of the stack,
so restoring after process death does not silently drop the screen. Its
entry point sits outside the cloud-desktop gate: any bot with a browser
can be driven, not only cloud ones.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three gaps a self-review found after the screens compiled:

- Android declared a typed buffer but had no field, so there was no way
  to type at all. Committed text now leaves as char; Backspace stays on
  the bar because an empty field reports no deletion.
- The Android cursor was positioned against a hardcoded 1000px rather
  than the box it lives in, so it only landed right by accident.
- Neither zoom path applied pan on Android, which stranded a zoomed-in
  person at the top-left with no way to reach the rest of the page.

Also, on both platforms the page's own navigation could overwrite an
address someone was halfway through typing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A code review found the client halves were broken end to end. Most
severe first:

- The SSE decoder keyed on a `type` field inside the payload, but the
  server strips the type into the `event:` name and both SSE parsers
  discarded `event:` lines. Every message decoded to nil, so iOS never
  left "Connecting..." and Android never got a viewer id, which left
  Take control permanently disabled. Both parsers now carry the event
  name, and the decoders key on it — including `ready`, which is what
  the server actually calls the viewer-id message, plus `control` and
  `heartbeat`, which were not handled at all.
- Two Kotlin string templates were written as literals ("Bearer \$it",
  "https://\$address"), so every Android browser request went out
  unauthenticated and scheme-less navigation went to a bogus host.
- The Android tick clock and touch clock had different origins, and
  pointerInput restarts on a driving change — so after taking control
  every tap read as older than the long-press threshold and fired a
  right click instead.
- Direct mode set `scrolled` on any nonzero move, so a tap that wobbled
  a pixel scrolled sub-pixel and suppressed its own click. Now behind
  the drag threshold, on both platforms.
- pan() and the render transform measured against the view while the
  mapping used the aspect-fit drawn size. On a portrait phone showing a
  16:9 page those differ by 3.6x, so zoomed taps landed far from the
  pixel touched. ViewportMapping now exposes drawnWidth/drawnHeight and
  all three use it.
- The Android dispose-time release launched on a scope cancelled in the
  same pass, so it never left the phone.
- The Android mapping was rebuilt only on layout, so a viewport other
  than the 1280x720 default never reached the core.
- The sidecar's SSE scrub ceiling was 1 MiB against browser-live's 3 MiB
  frames; one large frame would have torn down the stream. The proxy
  test that covers this hardcoded 2 MiB and now derives from the
  constant, so it cannot rot the same way again.

Regressions added for the wobble-tap and letterboxed-pan cases: the
existing tests used a square viewport where drawn size equals view size,
so neither bug could have been caught.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A second review pass found eight more. Most severe first:

- Revoking browser control did not close a browser-live stream the
  device already had open, contrary to the comment promising it:
  disconnectDevice only ever reached /api/events and viewer relays. A
  phone kept watching a signed-in browser after the grant was taken
  away. The proxy now registers capability-gated streams per device and
  closes them on revoke, with a test.
- A trackpad tap that never moved the finger emitted press/release with
  no move, so the sink stamped the click at its last coordinate —
  (0,0) on a fresh session — while the reticle sat where the person was
  aiming. Both platforms, and the parity fixture asserted the wrong
  shape.
- iOS never called Coordinator.flush(), the only source of a release
  for a held button, so backgrounding or leaving mid-drag left it down.
  Android had this right; the design doc named the parity gap.
- The Android dispose-time release enqueued into a queue built on the
  composition scope that the same pass cancels, so the pump never ran
  and drain() would have spun forever. It now sends directly.
- A stale pump cleared `active` unconditionally, wiping the replacement
  clear() had just started and letting two pumps drain concurrently.
- The Android trackpad reticle ignored letterboxing.
- The 403 told people to use a Settings switch that does not exist;
  it now names the button, which every first-time user will need since
  the grant is off by default.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The field stays required on authenticate's return type, because the
registry always supplies it. tsconfig.server.json type-checks these
fixtures; tsc -b does not, which is why the packaged build caught this
and the earlier check did not.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The first hands-on test reported "browser control is off" after the
grant was already on. The server path was fine: a device with the grant
opens the stream, receives ready/control/status/frame, and take returns
200. The phone was at fault twice over:

- The stream threw a bare status and discarded the response body, so
  every 403 read as "browser control is off" whatever the server said.
  Both clients now surface the sidecar's or harness's own error text.
- Nothing restarted a stream once it failed, and toggling the grant
  deliberately disconnects the device. The screen sat dead until the
  person backed out. It now shows Try again, which starts a fresh
  viewer with no state carried over from the old one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(evals): tier-2 golden-thread replay through the mock provider

Turn a real coordination thread into a synthetic golden fixture and replay
it offline against committed trace baselines (issue #1503, tier 2).

- redaction pipeline: sample export in, synthetic scenario out, with
  participant mapping, type-preserving argument skeletons, replay-safe
  request_key placeholders, leak scans, and source-string survival checks
- behavior-trace extraction and structural diff over frozen evidence:
  turn order, tool names, argument keys, handoff tree, sends
- golden replay runner with an --update-baseline workflow and a committed
  fixture + baseline for the coordination-handoff sample
- seams: golden provenance and toolNames assertion, evidence field on the
  frozen snapshot, pnpm eval --golden delegation
- tests: redaction, trace extraction and diff, byte-identity of the
  committed fixture against the redactor, and replay-vs-baseline

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(evals): tier-3 opt-in live-model smoke evals

Opt-in live-model smoke tier on the real server with real model turns
(issue #1503, tier 3). Offline by default: without the gate, pnpm eval
--live prints one skip line and exits 0.

- engine instance via OMB_EVAL_LIVE_INSTANCE (inline JSON) or
  OMB_EVAL_LIVE_CONFIG (path to instance JSON); credential variables are
  forwarded only through the OMB_EVAL_LIVE_PASS_ENV allowlist
- LiveWorld boots the real harness server per scenario with an owned temp
  data dir; wait steps widen to the configured turn timeout and scenarios
  use state-based waits only
- scoring: botReplied plus assertion-shaped invariants, suite score bar
  and drift thresholds from the committed evals/live/config.json, local
  live baseline under the gitignored evals/live/baselines/
- versioned judge prompts pinned by a sha256 manifest, strict verdict
  parsing with configured retries
- two smoke scenarios (delegation lane, open-ended judge), suite tests,
  README tier docs, and pnpm eval --live delegation

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Six seams each hand-rolled their own busy policy: the 1:1 busy-send
steer clamps, startOrQueueDirectMessage's parking reasons, the room
send/steer rules, the guarded 409, unattendedDispatchState for
routines and webhooks, and canAdmitDirectTurn plus the opened-thread
queue for peer work. They agreed by convention and could only drift
by accident.

Extract server/admission.ts: admit(surface, message, state) is a pure
function — no IO, no store reads, no adapter calls. Callers gather
state, apply the returned decision with their own side effects, and
re-ask after anything that can settle a turn. Zero behavior change:
every truth table, reason code, refusal, and clamp is preserved
byte-for-byte, and the unreachable defensive branches (the head-only
409 behind holdChannelQueue's head guard, the post-decision engine
recheck that only satisfies the type system) keep their exact shape.

server/admission-golden.test.ts freezes each surface's current policy
as explicit tables: steer clamps (images, pending computer-selection,
capabilities.queueing), queue reason precedence (capacity over
group-turn, reasonless busy-thread and coordination parks), rooms
always queueing with head-only steer, guarded refusing on every busy
shape, unattended sharing startTurn admission with missed-run
semantics, and peer/opened-thread slot-awareness. The end-to-end
shapes stay frozen by the existing suites (steer-queue,
channel-queue, steer-e2e, guarded-messages-api, index steered cases).
Servers like Chatterbox-TTS-Server expose real voices there and 404 or drop /v1/models, which left the picker on a fake Default entry that synthesis rejects. Keep /v1/models first, try /v1/audio/voices next (including when /models errors), and accept both filename strings and { filename, display_name } objects.

Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(voice): range serving, room-post audio, per-bot voice-notes toggle (#1745)

Audio attachments answer single-range Range requests with 206 +
Content-Range so players can seek; images and documents keep the full
response. post_to_room gains an explicit attach_voice_note flag that moves
this turn's parked note onto the room post, delivered exactly once.
WireBot grows a voiceNotes boolean (default on): PATCH-able per bot,
gating both tool advertisement and the route itself. The companion
allowlists the mp3 serving route and forwards canonical Range headers,
and the four docs pages the issue lists describe the behavior.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(agents): fit attach_voice_note into the wire budget and pin the proxy body

The agents-proxy post_to_room test pins the exact POST body; add the new
attachVoiceNote: false field the call site now always sends. Trim the two
attach_voice_note catalog strings so every profile stays within its standing
2% wire budget (tightest: room 37461 of 37502 allowed), keeping the caption
semantics on the property description, and regenerate the goldens and
profiles.json pins for the deliberate schema addition.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(voice): keep the parked note through a failed room post and tighten range parsing

The room-post handler removed this turn's parked audio from turnAttachmentsByTurn before store.appendMessage, so a persistence failure lost the clip: the retry was refused with "no voice note to attach" and the mp3 stayed orphaned on disk outside every cleanup path. The parked set is now mutated only after the append lands, so a failed post can be retried and the clip is never stranded.

A "bytes=-" Range header carried no bounds at all, so it was malformed input rather than a suffix range; it now answers with the full 200 body, matching the module's malformed-input philosophy, while a real zero-length suffix ("bytes=-0") stays 416 per RFC 9110.

Also dedupes the repeated "## Call mode" heading in the voice-and-memory docs page and adds a one-shot fault prelude (server/testing/fail-audio-append-once.mjs) plus an e2e test that proves a failed append leaves the parked note in place for the retry.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
The visible stamp on a sidebar thread row now reads "just now", "5 min
ago", "3 h ago", "yesterday", "2 d ago", and falls back to the absolute
date past a week. The hover title keeps the full timestamp and the
<time dateTime> attribute keeps the ISO stamp. The All-threads picker
shares the same label.

One shared 30s clock per list (useRelativeNow) drives every row, paused
while the window is hidden and cleared on unmount; rows stay timer-free.
Labels come from new task.updated.* catalog keys in all ten locales.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* feat(server): tightening-only request schema for authority reductions

Adds a tightening request whose zod shape makes escalation inexpressible:
approvalMode targets stop below full and custom, composio/browser only
turn off, approvePeerComms only turns on, and the list fields only carry
removals. Direction is re-validated against live state at propose and
again at confirm, with a revision check that fails closed when the bot
loosened while the card sat open. Busy gates mirror the owner routes,
except an emergency full/custom to ask downgrade which applies first and
stops the turn after. The replay receipt stays store-private and every
allow and deny writes a decision-log row.

Closes #1786
Part of #1785

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): finish skill disables on receipt before settling

Move the skill-disable loop after the patchBot receipt write so a crash
between the two can no longer strand skills that were promised on the
card. On receipt, finish any remaining enabled-but-outstanding skills
first, and have the catch notice name what still needs a second confirm.
Also stamp emergencyStop on the saved-branch return so clients that fail
to persist the bot record still see the emergency state, with tests for
the partial-skills retry and the fallback path.

* fix(server): log emergency-stop failures and count tightening cards in the proposal budget

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Co-authored-by: Brad Hallett <bradhallett@users.noreply.github.com>
* feat(composer): edit queued messages before they send

A queued message could only be steered or deleted. Each queued row now
has an Edit (pencil) button that pulls the words back into the composer
to tweak or extend, then send again.

The server removes the item from the queue first; only a confirmed
removal hands the text back, so a message that already drained into a
turn is never resent. The text is written through the keyed draft
restore path, so it lands in the right thread even if the person
switched away while the request was in flight. Anything already typed
stays below the restored words.

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

* feat(cli): add Requesty to the API setup presets

Requesty is an OpenAI-compatible router. List it next to OpenAI, OpenRouter and Groq in the CLI API setup, with its base URL and key page, and mention it in the docs that list those services.

* Support Codex 6 models and CLI updates

* Document Codex model discovery

* Normalize Codex driver line endings

* Normalize provider docs line endings

* fix(server): keep connector verdicts off the prototype chain and legacy relays whole

- evaluateConnectorTools reads grants by own property only, so a tool
  like CONSTRUCTOR_X maps to the inherited constructor and is denied
  instead of throwing a 500 from grant.tools.includes
- an unrecognized tools/call frame is refused only for bots with a
  connectorTools record; legacy bots keep the pre-grants pass-through
  the relay always gave them
- connector-scope rows now write auto-approved / the new auto-denied
  kinds, keeping user-* for answers a person actually gave

Review follow-ups to #1761.

* refactor(drivers): share idle policy, home resolution, model labels, version gates, ask protocol

* test(vps): read the generated ssh config from a file, not /dev/stdin

spawnSync feeds the child's stdin through a socketpair, and Linux
refuses to reopen a socket through /dev/stdin (ENXIO), so the
quotes-spaces test failed on every ubuntu CI runner with:

  Can't open user config file /dev/stdin: No such device or address

macOS reopens its /dev/stdin fine and Windows skips the test, so
only Linux saw it. Write the generated config to a file whose name
keeps a space, so the quoting coverage is unchanged.

* fix(config): warn when config.json is ignored instead of failing silently

loadConfig() swallowed every error from reading or validating config.json.
A missing file (first run) is fine to ignore, but a file that exists and
fails to parse or fails the stored schema was dropped whole with no signal:
one bad field (for example a threads section without maxConcurrentPerBot)
made every instance, account and setting disappear, and the app quietly ran
on defaults.

Keep the fallback exactly as it was, and keep ENOENT silent, but log one
console.warn naming the file and the schema issue. The warning is repeated
only when the problem changes, because loadConfig() runs often. saveConfig()
already merges into the raw file, so nothing on disk is lost; the user now
learns which field to fix.

Tests cover: no warning on a first run, a warning that names the path and
the failing field on a schema error, and a single warning for invalid JSON
across repeated loads.

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

* fix(drivers): refuse relative CODEX_HOME; pin Windows test homes

A relative CODEX_HOME is refused by codexHome(), so the catalog must
refuse it too instead of silently reading ~/.codex; return the official
catalog plus the local-inject merge in that case, with a regression test.

The Windows CI legs caught six driver tests that pin only HOME:
userHome() now resolves USERPROFILE first on win32 (the audit platform
fix), so those tests pin both, mirroring the qwen turn test.

* feat(skills): accept skills.sh pages as import sources

parseSkillSource now resolves skills.sh/<owner>/<repo>[/skill] to the GitHub repo the registry indexes, filters discovery to the named skill folder, and reports a clear error when that skill is missing. Import caps, markdown-only policy, disabled-on-import, and provenance stay exactly as they are for GitHub sources.

* feat(ios): edit queued messages before they send

Each held send above the composer now has a pencil beside the bin. It
cancels the item on the computer and, only when that is confirmed, puts
the words back in the composer (queued text first, any typed draft
below), so a send that already joined the turn is never resent. A task
switch mid-request stores the words in that task's saved draft.

Desktop twin: #1796.

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

* feat(android): edit queued messages before they send

Each held send above the chat bar now has a pencil beside the bin. It
cancels the item on the computer and, only when that is confirmed, puts
the words back in the chat bar (queued text first, any typed draft
below), so a send that already joined the turn is never resent. The
words go to that conversation's cached composer, so a thread switch
mid-request still lands them in the right draft.

Port of the iOS change; desktop twin: #1796.

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

* fix(drivers): harden session-idle validation and precedence

Review follow-ups on the shared idle policy: a delay that is not a
positive finite number of at most 2^31-1 ms falls back to the default
before the floor applies, so Infinity no longer coerces to a 1 ms timer;
the floor is the greater of the built-in ten seconds and any configured
minimum, so a per-harness override can raise it but never lower it; and
the per-harness env names win over the global ones, matching the
documented honored-as-overrides semantics. The claude/acp idle
integration tests now exercise the close at the ten-second floor and
poll the native log instead of sleeping past a sub-floor window.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(skills): match skills.sh slugs like the registry does

Slugs derive from each SKILL.md name via the registry's toSkillSlug, so match the folder name first and fall back to the frontmatter name, mirroring the skills.sh installer. The root SKILL.md early return now respects the filter instead of importing an unrelated root skill, and an exact child match is prioritized ahead of the 60-folder cap.

* feat(server): per-recipient delivery receipts on peer sends

coordinate_bots, delegate_bot and ask_bot now answer every send with an
honest per-recipient receipt: queued (accepted, no turn started), injected
(the recipient's turn started with the message) or failed (not delivered).

The tri-state follows the seams that actually decide it: room-handoff
dispatch is asynchronous, so a fresh enqueue is queued; ask_bot's
startTurn admission is injected; refusals, approval denials and dispatch
errors are failed even when the lane buffers for later. A duplicate
request_key inherits the state of the node already carrying it.

Receipts ride the endpoint JSON (coordinate_bots keeps its result
JSON-pure) and a one-line "Delivery to" note in the ask_bot/delegate_bot
tool prose, sanitized like roster text. A receipt never claims a delivery
that did not happen: a failed hand-off may stay buffered, but its receipt
stays failed.

* fix(bot-settings): parity diffs and expired proposal cards

Team-setup proposal cards now render labeled before/after field lines and
a SOUL.md line diff (sharing the profile card's large-change fallback)
instead of a JSON.stringify blob. Proposal cards that can no longer be
confirmed — stale profile revisions, dead team setups and routines, and
credential requests replaced by a newer one — settle expired: their
options are removed, the approval composer stops taking over, and the
card says to ask for a fresh proposal instead of looking actionable.

Closes #1788
Part of #1785

* fix(chat): restore scrolling beside run card

* fix(server): report failed receipts for dead duplicate hand-offs

* fix(bot-settings): reject decisions on expired proposal cards

* fix(bot-settings): include model variant in team-setup review text

* fix(server): re-check superseded after the phone credential save

* ci: re-run matrix after windows provider-key-flow timeout

* test(bot-settings): expired Chief-rule card stays terminal

* ci: re-run matrix after ThreadNavigationUITests waiter timeout flake

* feat(server): make notifications and speakReplies proposal-eligible

notifications and speakReplies are quality-of-life toggles with no authority content, but parseChanges rejected every key outside the five profile fields, so the owner had to flip them by hand. Both now ride the existing propose_profile card: one-line before-and-after copy (on/off), confirm-time re-validation through the profile revision, and the same history rows as every other proposable field. Voice stays out of scope pending the harness-backed voice catalog on the card.

The agents-catalog wire goldens are regenerated for the two new boolean properties; the direct profile grows 313 bytes (~0.8%), inside the 2% wire budget, so BUDGET_BASELINE stays unchanged.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): describe mixed folder-and-toggle proposal cards honestly

The closing line of a propose_profile card printed "Changes what X is
told on every turn" whenever the card held anything besides only-cwd or
only-toggles, so a mixed cwd+toggle card claimed an instruction change
that neither field makes. Gate that sentence on a text field (name,
title, description, soul) actually changing; every other combination —
folder-only, toggle-only, or both — closes with just "Nothing runs."
under the existing folder line.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* test(server): assert the readable working-folder line on every platform

Main's new cwd coverage quoted the folder with JSON.stringify, which only
coincides with the parity card's quoted rendering on POSIX; on Windows the
escaped backslashes diverged and shard 2/4 went red. Assert the raw quoted
path the card actually prints, matching the profile card's raw-path
convention.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): refuse non-boolean profile toggles whole-call

A non-boolean notifications or speakReplies value was dropped silently
while any valid half of the request went through, applying a partial
proposal the model never described. Reject the whole call instead;
boolean values flow unchanged.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(chat): offer to update Claude Code when it is too old for the model

A model newer than the installed Claude Code fails with the CLI's own
"Claude Code 2.1.268 does not support this model; version 2.1.280 or
newer is required. Run 'claude update'…" api error, which reached the
transcript as a bot reply and left the person to find a terminal.

The Claude driver now recognises that api-error frame (whatever model
triggered it) and reports it as a setup error flagged claudeUpdate,
ending the turn with stopReason update_required. The chat error row
then offers "Update Claude for me", which runs the existing
/api/instances/:id/claude-update route in the background and shows the
installed version plus Retry, or "I'll do it myself", which shows the
command to copy. Company-managed engines are not offered the update.

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

* fix(chat): hide the <pasted-text> wrapper in user messages

A long paste is sent to the bot wrapped in <pasted-text index="N">
... </pasted-text> so it can tell pasted from typed text. The user
bubble rendered those wrapper lines verbatim, which is noisy on every
pasted transcript.

Bubbles (1:1 and rooms) now drop the exact wrapper lines composeMessage
writes and show just the pasted text; Copy copies the clean text too.
The stored message, what the bot receives, edit and Markdown export are
unchanged. A tag that is not the exact wrapper line stays visible.

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

* fix(phones): hide the <pasted-text> wrapper in user messages

iOS and Android parse stored user prompts with a port of the desktop
splitter, so they rendered the <pasted-text index="N"> wrapper lines
verbatim too. AttachedMessageContent now drops the exact wrapper lines
and keeps what was pasted; inline or non-wrapper tags stay visible.

Desktop twin: #1829.

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

* feat(phones): offer to update Claude Code when it is too old for the model

Phone port of the desktop update card. An error activity whose tool
carries claudeUpdate now shows, under the error chip in a bot chat,
"Update Claude for me" (POST /api/instances/:id/claude-update for the
thread's engine, 200s timeout, then the installed version) or "I'll do
it myself" (the command with a Copy button). A failed update shows the
server's own message and a retry.

The companion allowlist gains exactly that POST: a fixed updater run
against the host's configured CLI, which the harness refuses while any
Claude turn is running. Instance ids may contain dots, so a dots-only
segment is refused.

Stacked on feat/claude-update-prompt (#1828) for the server flag.

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

* test(server): match propose_profile body to the serialized request

* fix(server): append the fresh credential card before superseding priors

A failed append used to leave every pending card terminal with nothing
actionable in its place, because the supersede loop ran first. Append
the replacement card first: if persistence then fails, the prior cards
stay actionable instead. True atomicity is not available at this seam
(append and each supersede patch are separate SQLite transactions), so
also pin the failure path with a test: a second connection holds the
write lock, the request fails, the first card stays actionable, and the
next request supersedes it normally once the lock releases.

* fix: anchor Local VM confirm dialogs to the main window

window.confirm() has no parent window, so tiling/non-reparenting window
managers (e.g. Hyprland on Linux) can't center it — it renders at a
default screen origin instead of over the app, easy to miss entirely.
Route the Local VM delete/recreate confirms through a new dialog:confirm
IPC call so dialog.showMessageBox can anchor to mainWindow, same pattern
already used for the computer-sharing confirmation.

Falls back to window.confirm() when window.ogb.confirm isn't available
(e.g. non-Electron test/web contexts).

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

* fix(providers): protect diagnostics and scoped import boundaries

* Fix terminal proposal handling and revoked peer receipt visibility

* fix(chat): preserve queue edit and Claude recovery guarantees

* fix(review): guard native confirmations and verify chat hit targets

* test(ui): isolate delayed target from app scroll layout

* fix(claude): retire outdated pooled sessions before retry

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Co-authored-by: aivsomkar <aivsomkar@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Thibault Jaigu <thibault.jaigu@gmail.com>
Co-authored-by: robinsonnblack <robinsonnblack@proton.me>
Co-authored-by: robinsonnblack <331326017+robinsonnblack@users.noreply.github.com>
Co-authored-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Co-authored-by: 634634624 <634634624@users.noreply.github.com>
Co-authored-by: jakequade <241658034+jakequade@users.noreply.github.com>
Co-authored-by: Brad Hallett <bradhallett@users.noreply.github.com>
Co-authored-by: Kate <buttonsjasper360@gmail.com>
Shells that already export OMB_* / OPENMAUSBOT_* (an OpenMausBot-hosted terminal or a running server) leaked those values into spawned children and into modules snapshotting process.env at import time, breaking server/drivers/agents-proxy.test.ts and server/mcp-server.test.ts.\n\nAdds server/testing/omb-env.ts (isAmbientOmbKey / stripOmbEnv / childEnv) and a scrub-ambient-omb-env side-effect module; spawn sites now build env via childEnv() and mcp-server.test.ts scrubs before importing the SUT, so only keys a test sets intentionally reach the runtime.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
The overview route now carries a grants summary (per service: all / count /
none) alongside the existing composio fact, derived from the bot's
connectorTools record: absent record keeps the field off the wire (legacy
all-tools behavior), an explicit record becomes a slug-sorted list, and {}
is an empty list — the deliberate no-tools state.

The iOS app decodes the summary leniently (unknown levels fall back to
partial, malformed entries drop without sinking the overview, absent field
stays nil for older computers) and renders it read-only in BotOverviewView
under "App tools" with the desktop editor's wording. Docs cover defaults,
upgrade behavior, the import rule, and the old connector-scopes plan is
marked superseded by the #1734 umbrella.

Part of #1739
Part of #1734

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* feat(web): quiet proposal boundary markers in Edit Profile

Mark which Edit Profile groups a Chief can change by proposal (name,
title, blurb, soul, working folder, model, Chief-of-Staff placement)
and which never leave the owner's hands (works-on, connected apps, MCP
servers, browser, webhooks, always-allowed, peer-comms approval,
approval level). Copy only: no control gains agent reach.

Markers mirror server/peer-roster.ts Chief reach (own section or an
owner-approved managed section), hide when no other Chief covers the
bot's section and in the new-bot draft editor, and sections with
nothing proposal-eligible carry none. Avatar eligibility is a later
slice.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(web): mark managed teams owner-only in Chief card

The managed-teams control renders inside the card whose marker says Chief-proposable, but managedSections is in neither proposal schema; give the group its own owner-only marker, rendered with the control when this bot holds the Chief role.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* fix(ui): dot unseen problem runs in run logs

Mark all as read stamps seenAt and clears the errors pill, but the
run log rows showed no read state, so the Problems list looked
identical before and after and the button read as broken.

Flag failed and missed runs without seenAt with a dot beside the
status label, using the same isRoutineProblemRun predicate as the
pill so the two cannot drift.

Closes #1839

* fix(ui): mark unseen problem runs in log button labels
* feat(server): report composio catalog stall reason

The marketplace walk already names why it stopped (page-stuck,
http-error, ...) but only in a server log line. Surface the stop
reason in the pagination payload and as a tooltip on the partial
catalog note, so a stalled catalog can be diagnosed client-side:
a stale broker replays pages while an upstream change ends clean.

Refs #1838

* fix(web): render catalog stall reason in visible status text
A user in Japan could not download MausBot. Nothing was wrong with the
listing: the app is available in all 175 territories, free and rated 4+. The
block was the deployment target. At iOS 17 the App Store hides the app from
every iPhone that cannot run 17 — the X, the 8, the 7 and the iPad 5th and 6th
generation all stop at 16 and can never move past it.

The target drops to 16.0. Nothing is removed on current phones: every iOS 17
API is still used where it exists, behind `#available`, and the fallbacks live
in one file rather than scattered through the views.

- `onValueChange` / `onValueChangePair` back-port `onChange`, including its
  `initial:` form; 32 call sites move over
- `EmptyStateView` stands in for `ContentUnavailableView` (13 sites)
- `feedback(_:trigger:)` back-ports `sensoryFeedback` with the generators it
  wraps
- shims for `scrollClipDisabled`, `defaultScrollAnchor`, `selectionDisabled`,
  the 16.4 sheet chrome, the `pulse` symbol effect and `onKeyPress`
- `MicrophonePermission.request()` picks `AVAudioApplication` on 17 and the
  session call below it

What genuinely cannot work below 17, stated rather than faked:

- Live Activities need 16.1/16.2, so the widget extension is pinned to 16.1
  and the coordinator sits behind `LiveActivityBridge`. Answering from the
  island is an interactive widget, 17 only; on 16.1 the activity says "Open
  MausBot to answer" instead of showing dead buttons.
- Sending a credential from the phone uses HPKE, which is 17. It now fails
  with a plain message pointing at the computer, instead of a crash.
- `.defaultSize` is dropped: it only suggested an opening iPad window size and
  `SceneBuilder` takes no availability check.
- The chat opened at the bottom via `defaultScrollAnchor`. On 16 the existing
  scroll-to-last handler runs with `initial: true`, so it still opens on the
  newest message.

All 515 iOS unit tests pass. Built for device at 16.0; the widget extension
reports 16.1 and the share extension 16.0.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* perf(backup): isolate workspace exports from the request loop

* fix(backup): reclaim partial exports after worker failure
* perf(search): keep transcript scans off the server event loop

* test(perf): separate paced persistence from fixture seeding

* test(search): yield while seeding history on slow disks

* test(search): make async permission interleaving deterministic
The iOS 16 floor-drop conversion replaced every two-argument onChange call
with the existing back-deployment shim, but missed the voice-note player.
That one call site kept the iOS 17-only onChange(of:initial:_:) overload and
broke the simulator app build at the 16.0 deployment floor.

Use onValueChange here too. The callback only needs the new playback state,
so iOS 17 keeps the same release behavior and iOS 16 gets the old
single-value onChange path.

Closes #1866

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* ci: run behavior evals on PRs and pushes

Follow-up to #1860 (Reviewer verification F1): the offline behavior-eval
tiers now run in CI instead of only on developer machines.

Adds one behavior-evals job to the CI workflow, after the static preflight
and aggregated into the existing gate summary, following the workflow's
pinned-action and job conventions:

- the evals' standalone typecheck (the root typecheck builds src and
  server only)
- the evals vitest gate with the same reporter pair as the vitest shards
- tier-1 scenario runs (pnpm eval) against the scripted harness
- tier-2 golden replay (pnpm eval --golden) against committed baselines
- tier-3 offline proof: pnpm eval --live must print its skip line; CI
  never sets OMB_EVAL_LIVE or any live-model env
- eval run reports upload on failure for run-scoped triage

No runtime dependencies change; the offline gate is asserted, not assumed.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* ci: fix transcribed pnpm/action-setup pin in behavior-evals

The new job's pnpm/action-setup pin differed from the file's canonical
pin by one character (80a81c1ad vs 80b81c1ad), so the runner could not
resolve the action and the job failed before checkout. Copy the exact
pin already used by every other job in this workflow.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Adds a Routine grouping to the usage ledger summary and the Settings ->
Usage History tabs. Turns started by a routine group by routine id;
every other turn falls into one "Not from a routine" bucket.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* feat(server): non-interrupting aside lane for busy peer sends

Third admission lane beside queue and steer (umbrella #1803, S2 part 1):
a peer ask that arrives while its target thread is mid-turn on a
seam-capable engine folds into the running turn as enveloped peer
context instead of degrading to a delegation. Driver-agnostic through
Adapter.steer; codex (turn/steer) and claude (writeUser) need no driver
changes - the envelope carries the not-steering semantics.

Durable rows in chat_followups (kind "aside") are written before the
seam call and marked dispatching across it, so every crash window heals
as may-have-run on restart; injected lines carry the queueId marker and
are never replayed. indeterminate counts as injected. Boundary drains
run steers first, then asides; idle threads degrade pending asides to
one enveloped follow-up turn.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(server): aside lane unit coverage + inject-once memory fix

Tests for the aside lane at the unit level: envelope shape and hostile
peer-name safety, steered/indeterminate counted as delivered and never
requeued, refusal degrading to one enveloped follow-up turn, busy-boundary
batching into a single injection, restart restore skipping entries the
transcript already shows injected, legacy row recovery, cancel-on-missing-
bot, and tombstone cleanup.

recordInjectedAsides now also retires delivered items from the in-memory
lane so a later boundary cannot batch them into a second injection; the
tests caught the leak.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* test(server): full-chain e2e for the peer aside lane

Boots the real harness with the slow fake claude target parked mid-turn
and drives an asker routine through the agents proxy, then asserts the
whole contract in one pass: the receipt says the aside was injected (no
Task id, no delegation chip), the target's transcript gains the enveloped
user line marked aside with queueId and peerAsk (never steered), the turn
was never interrupted, the settled reply physically carries the envelope
through Adapter.steer, and the settle boundary injects exactly once.

Also drops an unused parameter from the unit-suite queue helper that
typecheck flagged.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): aside lane hardening from review

- asideEnvelope neutralizes a forged [end aside] marker inside peer
  text, so a peer cannot close its own envelope early and make the
  batched context ambiguous.
- attemptAsideInjection takes the batch out of the shared queue for the
  whole seam call. A refused outcome restores it only when the lane was
  not cancelled mid-seam (cancelled rows stay cancelled), arrival order
  is preserved ahead of mid-seam arrivals, and a failed transcript
  record retires the rows instead of risking a second injection.
- drainQueuedSends now ends with drainAsideLane, so every path that
  makes a thread idle (dispatch failure, compactOnly, watchdog grace,
  reloadProviders, room fallbacks) drains waiting asides after the
  steer drain, not just turn.completed.

* feat(server): mid-turn steer seams for openai-chat and pi drivers

The aside lane (S2 part 1) gates on capabilities.queueing plus Adapter.steer, which only codex and claude exposed. This wires the two buildable seams from the per-driver audit:

- openai-chat family: steer parks text on the live turn entry and the top of the next tool-loop round splices it into the request array as a user message - the one place the array sits between rounds, never mid-tool-batch. Parked words stay out of the request array until that boundary.

- pi: steer rides the native RPC {type:"steer", message} frame the runtime already handles mid-run. An explicit success:false response is a typed PiRpcRefusalError so it maps to refused (words stay queued); a death or timeout after the frame was written maps to indeterminate so the words can never run twice.

Both drivers now declare capabilities.queueing. ACP stays queue-only by protocol; its contract is documented in the spec that follows.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* docs: per-driver mid-turn seam contract for the aside lane

Records what rides each seam (codex turn/steer, claude stdin, the openai-chat loop boundary, the pi RPC steer frame) and the ACP ruling: the protocol has no mid-turn user input, so ACP drivers must not declare queueing, must not interrupt-and-reprompt, and peer sends to a busy ACP bot degrade to the durable queue lane with an honest queued receipt.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): correlate pi steer waiters by frame id

Two concurrent steers on one pi turn both registered their response
waiter under the bare "steer" command name, so the second registration
overwrote the first and the response matcher handed whichever response
arrived first to the last registrant: an explicit refusal meant for
caller A could reject caller B, requeueing words pi had already accepted
(forbidden double-run), while A hung to its timeout as indeterminate.

Every steer frame now carries a unique correlation id (steer:<seq> per
runtime) that pi echoes on its response; the waiter is registered under
that id and the matcher resolves evt.id first, falling back to the
command name for the id-less handshake/set_model/set_thinking_level
call sites, whose behavior is unchanged. fake-pi-cli echoes the frame
id and gains FAKE_PI_STEER_OUT_OF_ORDER, which holds the first steer's
refusal until a second frame exists and then answers refusal-for-first
/ success-for-second; the new regression test pins that each caller
gets its own outcome and the two frames carry distinct ids.

Review thread 4109878884 (F1, ruled VALID).

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Co-authored-by: Brad Hallett <bradhallett@users.noreply.github.com>
* feat(bot-settings): engine-switch capability warnings and propose_model

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* test(agents-proxy): expect propose_model in the MCP tools/list pin

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(bot-settings): close model-request review findings

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
MAX_LOCAL_VM_MAX_INSTANCES moves 4 -> 8 (default 2, min 1 unchanged)
and the Settings dropdown extends to match, keeping the two enforcement
points in sync. Every per-bot container keeps its hard per-container
limits (4g memory, 2 cpus, 512 pids), so the count stays an operator
policy decision.

Boundary tests move to the new edge: 9 is rejected at the patch layer
and over HTTP, 5 now saves and persists to config.json, and 8 is
accepted.
* Keep Codex developer slot stable across volatile prompt changes

Only the stable half of the system prompt belongs in the developer slot:
it survives compaction unchanged, and any change to it invalidates the
provider cached prefix. The volatile half (memory, mentions, outstanding
teammate work) now rides the user input of the turn that changed it as a
labelled context block, matching the systemStable/systemVolatile contract
the Claude driver already implements. Ordinary roster or memory churn no
longer appends a second developer copy of the prompt to history or
re-uploads the conversation prefix.

Receipts in ~/.openmausbot/codex-instructions gain a volatile digest;
legacy bare-hex receipts parse as instructions-only and re-deliver once.

* Log prompt bytes by stable/volatile split in the usage ledger

Settled turns now record how many prompt bytes rode the cacheable prefix
versus the volatile half that legitimately changes, next to the token
usage they already book. This is the measurement the token-efficiency
work needs: it shows whether cache-layout changes actually shrink the
re-sent prefix, per task rather than per request.

* Move recent-work into the volatile prompt half

The recent-work block recomputes relative time labels ("2h ago") every
turn and its newest-first list changes as the bot works in other
threads, so its bytes differ on nearly every turn of an active bot even
when nothing else changed. Kept in the stable half, it invalidated the
stable digest each turn, which re-appended the full developer block and
flushed native history through inject_items, busting the provider prefix
cache. It is pure data ("your own past notes, not instructions"), so
delivering it after the cache boundary in the turn that changed it loses
no instruction weight.

* Share the stable/volatile prompt split across drivers

Extract the note wording and composition codex shipped into server/drivers/prompt-split.ts, plus the durable receipt store a driver whose native session survives a restart needs to avoid re-delivering a prompt the session already carries. codex.ts now builds its volatile note from the shared helpers; the strings are byte-identical, so no behaviour changes.

* Keep the chat drivers system message stable across volatile changes

grok, mistral, minimax and openai-compat rebuild their request from the stored transcript every turn, so a volatile section edit re-priced the whole cached prefix (tools, instructions, history). Put only the stable half in the system message and carry the volatile half inside the newest user message, which is fresh input on every request anyway. The note is delivered every turn, not on change: the stored transcript never contains the notes, so a digest-tracked note would leave the model without its memory on unchanged turns. Turns without the split keep the legacy single-block shape.

* Send the full ACP prompt once per native session

opencode, droid, grok, gemini, hermes, cursor, qwen and kimi share acp/core.ts, which inlined the entire system prompt into every session/prompt call - so the prompt accumulated once per turn in the agent session history and any volatile edit re-sent all of it. The establishing turn (or a stable-half change such as a soul edit) still carries the full prompt; later turns go through bare unless the volatile half changed, which then rides as the shared labelled note. Receipts are durable under the data dir, keyed by driver, thread and native session id, so a server restart that resumes a native session does not deliver a duplicate. Turns without the split (direct adapter calls) keep the legacy shape.

* Send the full pi prompt once per session

pi sessions persist their own history in a session file, so the system prompt previously accumulated there once per turn. Apply the shared stable/volatile split at the prompt seam: the full prompt rides only the turn that establishes - or re-instructs after a soul edit - the session, receipts are keyed by threadId+sessionFile and survive child restarts, and a failed handshake keeps the full block because the bare prompt would be the model's only context.

* Deliver mention context on every tagged turn

The mentions half of the volatile prompt describes the turn it rides, but its text only names the tagged bots, so two consecutive turns that tag the same bots produce an identical volatile digest and the second note was suppressed. Add SendTurnInput.mentionTurn, set when the turn tags teammates, and make every digest-based delivery path (codex receipts, claude session reuse, ACP, pi) deliver the note on tagged turns even when unchanged. The chat family already delivers every turn.

* Commit volatile receipts only after the provider accepts the turn

The volatile digest was persisted before turn/session submission, so a rejected turn/start or session/prompt left a receipt claiming context the model never received, and the retry went through bare. Codex now writes an instructions-only receipt at sync time and hands the driver a commitVolatile callback it calls after turn/start acknowledges; ACP writes its receipt only after session/prompt resolves; pi writes only after the prompt send leaves the process. A receipt whose volatile half is still pending parses the same as a legacy one and redelivers once.

* Redeliver the full pi prompt every turn

pi auto-compaction summarizes older user messages, and this driver delivers the prompt as the leading user message: a receipt-based split would let a compacted session keep running bare, without its standing instructions, while the receipt still claimed delivery. pi exposes no compaction signal on its RPC surface today, so revert to per-turn full-prompt delivery (the pre-split behavior) and keep the split for the families whose prompts survive compaction architecturally (codex developer slot, claude system prompt, chat system message) or whose agents keep full history (ACP). pi can adopt the split once its extension API (session_before_compact) can signal compaction to the harness.

* Restore the pi prompt split, re-anchoring on compaction

The revert's premise was wrong: pi's RPC surface does expose compaction.
AgentSessionEvent carries compaction_start/compaction_end for manual and
automatic compaction, and rpc-mode forwards every session event to stdout
(pi-mono packages/coding-agent/src/modes/rpc/rpc-mode.ts). So the split
returns, now with three correctness additions:

- compaction_start/compaction_end drop the session's prompt receipt the
  moment they arrive, so the next turn re-establishes the full prompt
  instead of running bare against a summarized history;
- the receipt commits only after pi accepts the prompt (its authoritative
  response - pi rejects prompts submitted while a compaction runs), and a
  compaction observed around the send suppresses the write;
- every eighth bare turn re-anchors the full prompt, bounding the damage
  from any history rewrite the events miss.

Per-turn full-prompt delivery cost ~13K tokens every turn and accumulated
one copy per turn in the session file; the split restores once-per-session
delivery with bounded re-establishment.

* fix(drivers): ACP re-anchor backstop; settle-guarded pi receipt write

- ACP sessions now pass ACP_PROMPT_RE_ANCHOR_TURNS = 8 to
  splitSessionPrompt, so an agent that compacts its own history without
  an event still gets the full standing instructions back within a
  bounded window, matching the pi backstop
- the pi prompt-acceptance rejection handler no longer emits a spurious
  runtime.error (and re-settles) once the turn already settled, and a
  failed receipt write no longer becomes an unhandled rejection

CodeRabbit follow-ups on #1776.

* test(vps): read the generated ssh config from a file, not /dev/stdin

spawnSync feeds the child's stdin through a socketpair, and Linux
refuses to reopen a socket through /dev/stdin (ENXIO), so the
quotes-spaces test failed on every ubuntu CI runner with:

  Can't open user config file /dev/stdin: No such device or address

macOS reopens its /dev/stdin fine and Windows skips the test, so
only Linux saw it. Write the generated config to a file whose name
keeps a space, so the quoting coverage is unchanged.

* fix(pi): settle only on the terminal agent_end so post-run compaction lands

turn_end no longer settles the turn: pi can schedule overflow-recovery compaction after a non-terminal agent_end (isTerminal: false), and killing the child at turn_end silenced those late events, leaving a stale prompt-split receipt until the 8-turn backstop. The driver now records the turn_end outcome, settles on agent_end with isTerminal !== false (the RPC contract terminal frame), keeps listening through non-terminal agent_end frames, accepts the auto_compaction_* event aliases, and falls back to a 60s grace settle for runtimes that never emit agent_end.

Regression-tested with a fake-pi compaction-recovery mode whose maintenance events land after the first agent_end; the test fails on the old code.

* fix(pi): honor upstream willRetry and agent_settled terminal markers

Upstream pi (@earendil-works/pi-coding-agent, the package this driver installs) marks a non-terminal agent_end with willRetry: true and closes the run with agent_settled; the isTerminal field belongs to the omp fork dialect. Keep listening through willRetry: true frames, settle on agent_settled too, and cover both dialects with fake-pi recovery modes plus regression tests that fail on marker-unaware code.

* fix(pi): ignore turn_end frames that flush after the turn settled

A killed child can still deliver one buffered frame after settle; the abort path turn_end(cancelled) is the common one on Windows. Arming the agent_end grace timer there leaked it past a completed turn, which the ask fail-safe timer test catches as a leftover fake timer.
* feat(bots): let a bot make a file in its VM and attach it to the chat

A bot in a Local VM could only link to /home/cua/workspace paths the server cannot
open, and could only run commands by typing into a terminal window and reading
screenshots.

- attach_file: copy a file from the bot's VM workspace (or working folder) into the
  private attachment store and post it as the bot's message; served only through
  that message. Images stay image attachments, everything else is a file attachment.
- vm_exec: run one shell command in the bot's own Local VM and return exit code,
  stdout and stderr as text, with the time limit enforced inside the container.
- Inline audio (mp3, m4a, aac, wav, ogg, opus, flac), loaded on request like video.
- The attachment store accepts mp4, webm and mov so a bot can attach a video.
- Simpler attachment look: no bubble around attachment-only messages, no framed
  "Attachments N" box, images keep their own shape.

Fixes #1548

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

* docs(verification): record a real GLM-5.3 bot making and attaching files in its VM

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

* fix(attachments): let a failed audio clip be retried, and cover ../ and symlink escapes

- AttachmentGallery: when the browser cannot decode a loaded clip, drop the
  blob URL as well as showing the error, so the play button comes back.
- index.test: attach_file refuses a ../ path and a symlink that lead outside
  the bot's roots, and neither adds a message to the thread.

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

* test(attachments): run the symlink-escape case on Windows too, and record the audio retry check

The escape case used a file symlink, which needs a privilege on Windows and
was silently skipped there. It now uses a directory link (a junction on
Windows, a symlink elsewhere) and first asserts the link really reaches the
outside file, so a refusal cannot be a missing link. Adds the before/after
screenshots of the audio retry fix to the verification write-up.

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

* fix(attach_file): keep the turn limit and turn lifecycle exact while a file is copied

Review feedback on the attach-file route:

- Reserve the per-turn slot before awaiting the copy, so parallel calls cannot
  all pass the same counter check and exceed MAX_ATTACHED_FILES_PER_TURN. A
  failed or refused call gives its slot back.
- Revalidate the capability and the source conversation after the await, just
  before appending, and delete the stored copy when the turn ended, the
  conversation is gone, or appending fails. The route answers 409.
- The message-file route now honours any attachment carried by the bot's own
  message, images as well as files, so the mobile clients can fetch an image
  attached here. Images still must be served as image/* content.

The reserve / revalidate / clean-up logic is one function (attachForTurn) with
isolated tests that finish the copy by hand: parallel calls at the cap, a turn
that ends mid-copy, a failed copy, and a failed publish. index.test.ts adds 16
simultaneous calls against the real server and the image download.

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

* fix(prompt): tell a VM bot to create its files with vm_exec, and record English and Japanese real-bot runs

A real English run wrote its script with the host Write tool, which cannot reach
the VM, and stopped at an approval card. The VM prompt now says to create files
with vm_exec too and that the host file tools cannot reach the VM.

Adds screenshots and notes from real GLM-5.3 runs in a Local VM in both English
and Japanese (PDF, then PNG), including the one approval card that appeared.

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

* docs(verification): describe the English and Japanese real-bot runs

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

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* chore(release): bump version to 0.1.88

* docs: link backup responsiveness verification recipe

* test(ci): include behavior evals in required gate dependencies

* test(codex): keep relative-home fixture on the checkout drive

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Clicking a thread in the sidebar or pressing New thread left keyboard
focus on the row or button, so typing went nowhere until the person
clicked the message box. The composer remounts per thread, so it now
takes focus on mount and puts the caret at the end of the draft.

It leaves focus alone when another text field holds it (sidebar search,
a rename), when a dialog is open, when the box is disabled, and on touch
screens, where focusing would raise the on-screen keyboard.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#1605 filtered the picker down to "configured" engines. An engine whose
`claude auth status` did not answer loggedIn:true within 8s lost its official
models, and one whose `claude --version` failed was dropped outright, so Claude
disappeared from every picker (composer, Bot settings, New bot) and the
existing sign-in and setup cards could no longer appear. Reported on Discord.

- An installed engine stays with its whole catalog, signed in or not; a
  signed-out one shows its sign-in card and no pickable cloud model.
- The engine the bot runs on always stays, even with a missing CLI, so its
  install card explains why instead of the model vanishing.
- Engines that are not installed and not in use stay in Settings, as before.
  Each Claude account is judged on its own.
- "Use a local model" shows whenever the Claude CLI is present. Opening it
  re-probes local servers through the existing refresh-models route behind a
  "Looking for local models…" status capped at five seconds.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
fix(ui): Claude disappears from the picker when Claude Code is signed out or not found
fix: recover local VMs and Qwen bot-to-bot tools
- Add Simplified and Traditional Chinese translations across desktop, iOS, and Android
- Integrate with companion mobile apps (Android Compose strings and iOS xcstrings)
- Consolidate Android review resources into base and localized strings.xml
- Fix BotThreadRow Compose status coloring and preserve upstream snooze logic
- Update source-hashes.json and validate catalog completeness via generate-locale.mjs
The ACP prompt watchdog stops a turn when the agent sends nothing for
three minutes. It already waited for a person answering an approval, but
not for a tool the agent was running: a `sleep`, a quiet build or a test
run sends one in_progress update and then nothing until it finishes, so
any such command over the limit had its turn killed as "went fully
silent". With a Chief of Staff retrying failed runs, one slow command
turned into repeated failures.

Each turn now tracks tool calls between their first non-terminal update
and a completed or failed one, and the watchdog waits while any are
running. An agent that goes silent with no tool running is still stopped.
The error no longer tells desktop users to raise an environment variable
they cannot set; it says the turn looked stuck, to send again, and names
the variable only for self-hosted servers.

Fixes MOCA-260

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A webhook refused new deliveries with 429 once it had three unfinished
(queued, running or waiting) runs, and three was a code constant. Anyone
fanning a project manager's events out through one webhook lost every
event after the third.

Each webhook can now set maxPendingRuns (1-50) in its settings or through
the API; left unset it stays at 3, so existing webhooks are unchanged.
Editing other settings keeps it, null goes back to the default, and a
hand-edited value out of range reads as the default rather than making
the webhooks file unreadable. The 429 now says how many tasks are
unfinished, what the limit is, and where to raise it.

Fixes MOCA-93

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preview, direct-turn, and room ladders deciding which computer paragraph a prompt gets had drifted apart. Export resolveComputerPromptKind() from system-prompt.ts (dispatch semantics canonical), rewire the three sites to call it, and pin the agreement with a unit grid, per-kind section assertions, and a preview-vs-turn wire test. Preview cells that previously hid a paragraph behind a capability gate now match dispatch; every changed cell is preview-only and disclosed in the PR body.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
The [omb-turn] admission log fired on every admitted turn via console.error, so healthy turns dominated the error stream: 984 of 1119 error-level server.log lines over five days in this deployment, with only two genuine non-turn errors among them. The line is informational turn telemetry; emit it at info level like the other plain console call sites.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Conflicts:
- ChatView header controls: keep find/export in the header menu (this
  branch) and take main's Stop condition, which also covers a bot
  waiting on teammates.
- usageSummary: take main's labelled compact figure (usageChip) so the
  menu keeps the unit, per bfd419ad.
- Sidebar: keep main's new TeamMenuItems and this branch's
  collapseToIcons prop.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(desktop): add optional personal Cloud sign-in

* docs: identify Cloud account endpoints as remote service URLs
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* feat(android): swipe right on a conversation to return home

Android's system back gesture covers the screen edges, but only for
gesture navigation and only from the edge: three-button users have no
swipe, and the body of the conversation screen never answers one. This
extends the same meaning to the body of the screen through a reusable
horizontalBackSwipe modifier on the conversation's root surface, wired
to the exact exit chain the back pill and system back already take, so
the three affordances cannot disagree about what leaving means.

The detector claims a drag only when its horizontal slop arrives first
and nothing inside the screen has consumed: the transcript's vertical
scroll, the composer's selection, and any row control each win in the
main pass, and the modifier cancels the moment a child takes over. Net
travel decides at release, so a drag out and back is a change of mind,
and the system gesture insets are never claimed, leaving the platform's
edge behavior and predictive back exactly as the system defines them.

Verified by six Robolectric Compose tests, including one that mounts a
real navigator stack and session: a deliberate rightward drag pops the
conversation home and clears the chat draft exactly as back does, a
vertical swipe scrolls the transcript without waking the affordance,
and short, leftward, or reversed drags stay put. The unit-test JVM heap
is raised to 2g for the composition suites that render full frames.

Signed-off-by: Brad Hallett <bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(android): one exit chain for back controls and a drag detector that survives recomposition

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* test(android): finish the exit-chain fix where the suggestion commit stopped

18023c5f landed the production half of both review fixes. This completes
them where it stopped: OpeningThread now reads its onBack through
rememberUpdatedState like the loaded chat does, and both behaviors are
pinned by regression tests — a recomposition mid-drag still releases the
back, and the back pill collapses an open command hud before it leaves.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com

---------

Signed-off-by: Brad Hallett <bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com
Settings → Appearance gains an 'Interface font' row (Skin default, System,
Inter, Poppins, Serif). Like skins it is pure CSS: each choice is one
:root[data-font] block overriding --font-sans, stamped before first paint
and remembered in localStorage. 'Skin default' removes the attribute so
every skin keeps its own font untouched.

Co-authored-by: 634634624 <634634624@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(handoffs): spare owed synthesis turns from the hard cap

A tree whose children have all settled owes only its synthesis turn: the step that returns their results to the requester. The hard cap no longer kills that turn mid-flight or starves its dispatch; a synthesis parked behind a permanently busy teammate stays capped, and an in-flight synthesis still dies at its promised runway edge via the lifetime branch.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(handoffs): measure the hard cap from the last durable progress

The hard cap becomes a stall window instead of a total tree age: a persisted lastProgressAt stamp, renewed on dispatch, settlement, and cancellation, anchors every cap read. A tree that keeps making progress keeps running; a stalled tree still dies on schedule. Config descriptions updated to match; no behavior change to the limits themselves.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(handoffs): carry a bounded digest of settled work on hard-cap expiry

When the hard cap expires a tree, the error now appends a digest of what its settled children produced: each result tailed to 512 characters, the digest capped at 4 KiB, and the elided entry count named. Completed child results stop being lost to a one-line expiry.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Keep a complete pre-turn snapshot, retain the pre-restore safety point for undo, and report settled changes without replacing the rollback point. Honor tagged cache directories and preserve the previous snapshot after incomplete captures.

Co-authored-by: krispix <macbook@Adams-MacBook-Air.local>
The third reel scene was a ring of orbiting app logos. It now shows the
fastest way to get a working bot: type /setup and a job, and the bot
fills in its own name, schedule, apps and working folder.

The scene is drawn in code like the others. "/setup" turns into a
command chip once typed, the ask lands in the chat, and a profile card
fills one row per change, each value blurring in over its placeholder.
Under reduced motion it holds the finished state.

Also defines the dot-bob keyframes the chat scene already referenced but
never had, so its thinking dots now move, and drops the orbit animation
that only the removed scene used.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
The language picker saved into the server's shared config. Changing that
needs the admin scope, so a chat-only person (a teammate, a phone paired
with --client, a member of a shared workspace) got "forbidden: this
session lacks the admin scope" and could not switch at all (MOCA-262).
An admin's switch, meanwhile, changed the language on every person's
screen.

The choice now lives on the device, like notification sounds: the picker
writes it to local storage and never calls the server. The server's
configured language stays the default for a device that has not picked
one, so existing setups keep their language. "" still means follow the
system and is kept apart from "never picked".

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Settings shows a zoom slider, scroll-to-zoom, and drag-to-reposition for an uploaded picture. The same framing is used everywhere that bot's image appears.
* feat(server): release computer claims after an idle window (#1653)

Computer claims were held for the whole turn with no idle release. Add a lazy idle-expiry pass to the claim layer (server/claim-idle.ts, kept dependency-free and synchronous so #1655 can reuse the pattern): after a 90s quiet window a computer claim is released while the turn lives, and the previous holder can re-claim directly for 10 minutes, yielding if another turn holds the seat. Turn-settle release still clears any reclaim record. Screen-poller frames never reset activity; only real computer tool completions do.

Ships config-gated under features.computerClaimIdleRelease, default off until baked. Covered by 7 new turn-resources tests.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(computer): consented, cost-visible, idle-stopped cloud overflow for waits

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): make cloud overflow consent and seat costs honest

- the consent endpoint now answers only a prior priced offer, so a seat
  cannot start on consent given before the rate was ever shown (#1655)
- revoking records a per-thread opt-out that also overrides the config
  allowlist, and a fresh grant clears it
- the per-second rate keeps rate-card precision at six decimals, so
  small configured rates no longer display as $0.0000
- turn resources: a repeated claim by the sitting owner keeps its idle
  policy, late completions cannot resurrect an expired claim, and an
  early releaseOne drops the reclaim record it may have just created

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): keep cloud overflow stops retryable and consent honest

An idle stop that fails keeps its lease and retries with bounded backoff; the lease and its Box claim clear only after sleepBox succeeds, and the claim releases for the lease's own generation. Consent now binds to the rate the card showed: markOffered/grant store it, a config change re-offers at the new price, and allowlisted standing consent still applies at the current rate. Revoking consent stops the seat that conversation started, and a readyBox wake that resolves after revocation goes straight back to sleep instead of billing.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* refactor: rename Box to Boat across the repo

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix: restore framework identifiers swept by the Boat rename

The rename rewrote Jetpack Compose framework symbols (BoxScope, BoxWithConstraints) and the standard CSS property box-decoration-break. Restore them; only product naming stays Boat.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix: align e2e flags, fixture wire keys, and Boat branding

The e2e harness now checks --with-boat (keeping --with-box as a compat alias), the preview fixture answers with the provider wire key box, and the remaining user-facing and docs prose says Boat.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Cliff's KAT-32 implementation (reviewed and bug-fixed this session:
wrong default skin, hex-alpha parsing bug), pulled from his workspace
and merged onto a branch that also carries #1903's routine.run card
fix. No file overlap between the two changes at the code level (core
ChatPreferences.kt for #1903 vs app/storage ChatPreferences.kt here),
confirmed by review before merging.

Supersedes the standalone #1931 stopgap (System/Light/Dark override) -
this is the full named-skin picker KAT-32 asked for.

:core:test + :app:testDebugUnitTest both green on this combined branch.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* test(server): pin the verification fixture starter bot name

The first-run seed draws a random friendly name from server/names.ts, and that pool shares names with bots e2e suites plan: when the starter drew Quill, the team-setup suite saw one planned name in the store before any decision and reported a phantom leaked bot (#1257). No apply path ever ran; deny never creates bots and applyTeamSetup commits once. launchVerificationServer now renames the freshly seeded starter to a fixed name outside the pool, and a regression test locks the pin across launches.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* test(server): bound fixture rename requests with abort signals

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(test-infra): give the verification starter rename its own abort timeout

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* test(server): drain busy holds between harness HTTP API tests

The harness HTTP API block shares one server and store across its tests,
and providerOperationConflict() answers 409 to any Box/VPS config change
while managedBoxOwners() reports any bot in use, so a single turn that
leaks past its own test (typically an interrupt that lost the race under
load) turns every later test's first config or lifecycle write into the
busy guard. Which tests fail depends on which turn is still in flight,
which is why unrelated PRs went red on ubuntu shard 3/4 with a failing
set that moved between runs.

Drain the holds in afterEach instead: release armed fixture gates,
interrupt leftover busy bots and rooms, release leaked computer-control
leases, and clear the Box/VPS config residue those same 409s leave behind
when a test's finally could not reset it. A leak now fails inside its own
test, naming the offending ids, instead of cascading through the block.

Verified by temporarily injecting a test that leaks a busy bot right
before the Box token tests: without the drain the next three tests fail
with the exact CI signature (expected 409 to be 200/400, including
"refuses a box token the provider rejects" and "saves config keys
write-only and reports booleans"); with the drain the same tree passes
253/253. The injected test is not part of this commit.

Closes #1731

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* test(server): interrupt busy task threads in the harness drain

bot.busy aggregates every task, but the drain's bare /interrupt reaches
only the bot's default thread: a leaked turn on another thread survived
the drain and timed it out. Read each busy task's threadId from the same
/api/bots listing and interrupt those threads explicitly, keeping the
default-thread interrupt as the fallback when no busy task threads are
listed.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* fix(server): book a retained Claude process's turns at their own cost

Claude Code reports total_cost_usd as the running total of its process:
"cumulative across turns in streaming-input sessions — each result
carries the running total so far" (2.1.282), while `usage` is per turn.
The driver keeps one CLI process per thread across turns while the
spawn contract is unchanged, yet forwarded every result's total as
turn.completed.cost, which the harness books as that turn's own spend
(task totals, the usage ledger, the spend cap, digests). A retained
process's second turn was booked at the first two turns' total, its
third at the first three, and so on.

settle() now books the growth since the total the same process reported
for its previous turn. A process's first turn keeps its whole figure.
The share is taken where the turn settles, from the last total its
results reported, so it also holds for a turn that spans more than one
native result. A total that goes down is taken whole rather than booked
as a negative cost, and the subtraction is rounded to 1e-10 USD to drop
float noise.

The fake CLI now reports a running total as well (0.01 per result), the
way the real CLI does. A new driver test runs three turns on one
retained process and expects 0.01 each; before this change it got 0.01,
0.02 and 0.03.

* fix(server): book a resumed Claude session's first turn at its own cost

In the running server almost every Claude turn is a new CLI process: the
per-turn comms token in the MCP config changes the spawn contract, so the
next turn relaunches with --resume. On --resume the CLI (2.1.282)
restores the session's running cost, so that process's first
total_cost_usd, and its modelUsage, already count the earlier turns. The
driver booked the whole figure, so each turn was billed again for the
session so far: one real thread's ledger booked about $90 for roughly
$15 of work.

A result's modelUsage holds the session's running token counts per
model, while `usage` is the turn's own. The driver now keeps each
session's latest (total, modelUsage) states in
<data>/claude-cost-history.json (100 sessions, 8 states each), so the
record survives an app restart. On a process's first result it finds
the state the CLI restored: the earlier state that sits inside the new
counts and leaves exactly this turn's usage for one model. That is not
always the latest state; a process closed during a steered continuation
restored an older one. When no state fits exactly, because the CLI saved
work that never reported a result (an interrupted turn), the latest
state inside the new counts stands, so that work is booked once. With no
known state the turn keeps its whole figure, as before.

The fake CLI now reports modelUsage and, with FAKE_CLAUDE_COST_STATE,
restores a session's running cost on --resume. New tests cover the
helper against real frames, a resumed process with and without a driver
restart, and the usage ledger through the server, which booked 0.01 and
then 0.02 before this change.

* fix(server): measure a resumed Claude process from its first result with a cost

The first result after --resume decided the process's starting cost even
when it carried no total_cost_usd, as an API error result (529
overloaded) does. The start became unknown, so the next turn on that
process was booked at the whole running total again, restored turns
included. A result without a cost now decides nothing; the first one
with a cost is matched against the session's earlier states.

The fake CLI's FAKE_CLAUDE_RESUMED_API_ERROR plays the first turn of a
--resume launch as that error. The new test booked 0.02 for the turn
after it; it now books 0.01.

* fix(server): match a resumed Claude turn split over two models

restoredCostBase compared the turn's usage with each model's growth on
its own. A turn that used two models then matched no earlier state, and
the latest contained state won instead: with states A=2 ($0.01) and A=3
($0.02), a resume from the first plus one token on each of A and B
measured the turn from $0.02 and booked nothing. A state now also
matches when its growth summed over all models equals the turn's usage.
The one-model match stays: usage leaves out side calls on another model,
such as a Haiku title. Replaying real 2.1.282 logs gives the same figures
as before.

* fix(server): measure a resumed Claude turn from the latest known state

restoredCostBase took the highest total among the states that fit. A
resume that went back to an older state leaves later states with lower
totals (a real session went from 4.3538 to 4.2123), so the highest total
can be an older state from a lost branch. The start was then too high,
and a turn whose total fell below it was booked whole. Both the exact
match and the fallback now take the latest state in recorded order.
Replaying real 2.1.282 logs gives the same figures as before.
* fix(computer): claim the host desktop and pin surfaces on first use (issue #1650)

An Auto turn that fell back to the person's own desktop bound the
exclusive computer:host seat while it was still mounting tools, so a
screen-less turn held the desktop for its whole duration, and every
conversation pinned its surface the moment a computer was mounted
rather than when it was actually taken.

Register the host fallback in the autoVmClaims table as a lazy slot,
the same seam the Local VM (#1361) and the VPS already use: the gated
integration mounts at dispatch, and the first screen tools/call fires
the exclusive bind through the computer-control gate. A turn that never
touches the screen holds no desktop seat; a claim that finds the seat
held waits behind the holder like every other seat.

Move every auto surface pin into the claim itself - the ready Local
VM's lazy claim, a VM created for the turn, the VPS, and the host - so
a conversation records the desktop this turn actually took. A Box
attached during dispatch and the built-in browser (no seat to claim)
keep pinning at mount.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(computer): read live state before recording an auto surface pin

A claim can land long after dispatch — the host desktop's seat is taken
on the first screen call, mid-turn — but pinAutoSurface still consulted
the dispatch-time bot snapshot. A Works on change arriving in that
window is not blocked (assertTeamComputerChangeIdle only guards team
computers) and sweeps the thread's auto pins, which the deferred claim
then resurrected from its stale computer read; a person pinning the
thread meanwhile was overwritten too, because plan.pinned was captured
at dispatch.

Both pin sites now share one autoPinAllowed() guard that reads the live
bot and task: the pin records only when the live bot still has no Works
on choice and the live task is not user-pinned. The dispatch-time
plan.pinned check stays, so legacy pins of unknown provenance keep the
protection they already had.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* feat(android): show per-bot connector tool grants in the profile sheet

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(android): decode the overview grants array the server serves

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(android): decouple the profile grants load and quiet its failures

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* refactor(server): one shared admission decision for every surface

Six seams each hand-rolled their own busy policy: the 1:1 busy-send
steer clamps, startOrQueueDirectMessage's parking reasons, the room
send/steer rules, the guarded 409, unattendedDispatchState for
routines and webhooks, and canAdmitDirectTurn plus the opened-thread
queue for peer work. They agreed by convention and could only drift
by accident.

Extract server/admission.ts: admit(surface, message, state) is a pure
function — no IO, no store reads, no adapter calls. Callers gather
state, apply the returned decision with their own side effects, and
re-ask after anything that can settle a turn. Zero behavior change:
every truth table, reason code, refusal, and clamp is preserved
byte-for-byte, and the unreachable defensive branches (the head-only
409 behind holdChannelQueue's head guard, the post-decision engine
recheck that only satisfies the type system) keep their exact shape.

server/admission-golden.test.ts freezes each surface's current policy
as explicit tables: steer clamps (images, pending computer-selection,
capabilities.queueing), queue reason precedence (capacity over
group-turn, reasonless busy-thread and coordination parks), rooms
always queueing with head-only steer, guarded refusing on every busy
shape, unattended sharing startTurn admission with missed-run
semantics, and peer/opened-thread slot-awareness. The end-to-end
shapes stay frozen by the existing suites (steer-queue,
channel-queue, steer-e2e, guarded-messages-api, index steered cases).

* feat(server): coalesce one sender burst on drain

Both drains used to merge everything queued into one follow-up turn:
1:1 joined hours-apart texts from anyone into a single prompt, and rooms
spent one serial turn per message in a five-message burst. The drains now
group only one sender contiguous items inside a short window
(DRAIN_COALESCE_WINDOW_MS, 2 min, measured between consecutive items):
senders never merge, provenance kind is part of the identity, and each
queue keeps FIFO across groups. Room head-steer folds the whole leading
group into the live turn as one. No new waiting: the drain fires exactly
as before and only groups what is already queued.

* fix(server): guard coalesce gaps and cap room head groups

A regressed queuedAt (clock skew, a rewritten row) computed a negative
gap that still passed the window check; the gap must be non-negative.
Room head groups now stop at the room-context window (30) so a drained
burst never appends transcript lines the responder cannot see — the
excess stays queued for the next turn. The 1:1 drain carries every
group item in its prompt and stays uncapped.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* test(server): pin the M2 drain contract in chat follow-ups

The two pre-M2 expectations assumed one batched dispatch. Under the
coalescing rule the unattended line and the person's line keep separate
provenance, so each drains as its own turn with its own prompt, reply
context, receipts and billing; the channel drain now hands the run one
coalesced group with per-item queuedAt. Restart, settle, cancel and
durable-failure coverage is unchanged.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): carry every burst item's images into the coalesced room turn

A coalesced drain ran one sender's whole burst as one turn but only the last line's attachments reached the responder natively; an earlier line's image tag leaked into the room context as literal words. The turn now records its burst's queueIds, extracts every burst line's attachments into the turn's native image set, and renders each stripped text in the room context, so what the responder sees matches what its own turn would have carried.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): fold each burst line's reply context and clamp room-steer images

A coalesced head group steered as one prompt built from the head's reply target alone: a later line's reply relationship vanished and a non-replying line inherited the head's quote. The fold now renders per-item reply context (the head through the existing helper, the rest resolved per item, restoring the held queue when a target cannot be resolved) and joins the per-item prompts. A head group carrying an attachment no longer steers at all — a live fold has no image side channel, so those words stay queued for a real turn, mirroring the 1:1 refusal.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* feat(routines): accept for_bot_id on propose_routine_action

Routine creation already accepts for_bot_id for a bot in the proposer's
section; extend the same targeting to routine management so a Chief can
pause, resume, edit, run-now, or delete a section bot's routine through
the same human-confirmed card.

The route layer resolves the target up front for every action with the
same teaching errors as creation, and the service re-authorizes it at
confirm time: a moved or deleted target expires the card without
touching the routine. Routine lookup is scoped to the named bot, and
ownership, engine, and permissions stay with the routine's owner.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix: align merged cloud and fixture references with Boat rename

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* feat(server): tightening card copy and history rows

The review card now states in plain words what authority goes away:
one line per field with before and after, removed grant/server/skill
names capped at five with a count of the rest, and the explicit
direction sentence. Confirmed cards write the same history rows manual
edits do, via recordAuthorityChange: the proposing bot is the actor,
the card id is the via, and the rows land in the one History section.

Closes #1787
Part of #1785

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): record tightening history when a retry settles the receipt

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(server): record the card's intended state when a retry settles the receipt

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* fix(chat): widen gap between message actions tray and timestamp

The timestamp sat only 4px (ml-1/mr-1) from the action-button tray,
close enough that the rightmost button (Pin/Reply depending on side)
visually collided with the timestamp on hover, making it unclickable.
Widened to 8px (ml-2/mr-2).

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

* chore: retrigger CI (flaky server/box-inventory.test.ts on Windows shard, unrelated to this diff)

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

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Resolves the locale catalog conflicts:
- zh.json / zh-tw.json: drop the retired onboarding.reel.apps.* and Box keys,
  keep upstream's Box-to-Boat copy updates, and translate the 47 new English
  strings (OMB Cloud account, interface font, automatic recovery, /setup).
- source-hashes.json: rebuild the zh and zh-tw acceptance hashes against the
  merged English catalog; other locales keep upstream's records.

node scripts/generate-locale.mjs --check passes (zh/zh-tw 2351/2722).
- mobile_settings_notifications_footer said "while OpenMausMobile is
  connected" while OnboardingCopy.NOTIFICATIONS_BODY renders
  SettingsPolicy.NOTIFICATIONS_FOOTER ("while MausBot is connected"):
  OnboardingRoutingTest could not find the body text on screen, and the two
  surfaces showed different copy. The English resource now matches the
  constant byte for byte, with the Chinese catalogs following.
- Route the delete/rename/snooze error text through localizedMobileCopy so
  the "Couldn't update this thread. Try again." fallback reaches the Chinese
  catalogs (CodeRabbit review).
- Map "Rename thread" so the rename dialog heading translates (CodeRabbit
  review).
- Give the snooze dialog's title, presets, "Stop snoozing", the working
  notice and Cancel real string resources with Simplified and Traditional
  Chinese.

English resource values stay byte-identical to the pinned constants and test
copy ("Rename thread", "Until 6 PM", "Until new activity",
"Stop this thread before snoozing it.", "Cancel").
* feat(ios): move the updates computation into CompanionCore

The Updates pill, sheet, and Live Activity all read CompanionState.updates, which lived in the app target — untestable by swift test and about to gain a third consumer in home-screen widgets. The move is behavior-neutral: ChatUpdate, its Kind, and chat(forThread:) become public, ChatUpdate gains Codable (with Chat: Codable, Sendable) so the same value can serialize into a widget snapshot, and a fixture-driven UpdatesTests suite now pins every rule the surfaces rely on.

Part of #1960

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(ios): publish an updates snapshot for home-screen widgets

Home-screen widgets are a separate process on a system budget, so they cannot subscribe to the session. The app now freezes the same `updates` the pill reads into the App Group — one Codable file per connection, written on the Live Activity's 400 ms debounce, diff-suppressed, flushed on background, and cleared when the pairing goes away — and reloads widget timelines only when the payload changes. The widget extension joins the trusted-extension family the Share extension set up (App Group + shared keychain entitlements, AppShared sources, extension-API-only), and ChatUpdate.answerOptions centralizes the pill rule — a live, non-SKILL ask — so the Updates sheet and the widgets can never disagree about what is answerable.

Part of #1960

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
The scheme only knew pairing URLs. A new CompanionDeepLink enum in Core parses both words — pair (byte-identical to PairingInvite.parse, including server links) and chat/{threadId} — so the app and the widget extension agree on what the URLs mean. Session.receiveURL routes on it: pairing behaves exactly as before, and a chat link resolves state.chat(forThread:) into a pendingChat the roster's NavigationStack consumes, the same way a notification response does. An id this phone does not know lands on the roster silently — a stale widget row is not the person's mistake.

Part of #1960

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Align direct KaTeX styles with the existing 0.16.47 renderer. Document ChatMarkdownComponent and test adjacent inline code spans with intervening math. Leave normalization and rendering behavior unchanged.
ChatView hides the navigation bar to draw its own header, and the iOS
interactive pop gesture is wired to that bar's UIKit navigation
controller — so the platform's edge-swipe back gesture went dead on the
conversation screen. Re-arm the existing interactivePopGestureRecognizer
with a delegate that answers 'should this begin?' the way the system
would: yes whenever there is something to pop, never at the roster root.
The custom header, Back button, push transitions, vertical scrolling and
text selection are untouched, and drags away from the left edge keep
behaving exactly as before.

SwipeBackUITests covers the pop itself, the non-interference cases, and
back-to-back cycles against the offline ThreadPreview fleet; CI's
thread-navigation script now runs it alongside its siblings.

Closes #1945

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Extract the /api/bots/:id/memory family - overview, file, journal,
revert, open and topics - from handleRequest's inline routes into
server/routes/bot-memory.ts behind createBotMemoryRoutes(deps),
following the bot-presets module shape. Pure move: the arms are
unchanged except that store.bot and store.taskByThread now arrive
through the deps seam, and journalEntryForClient moves with its only
callers.

New locks: the family stays admin-scoped by path (401/403 before any
handler runs), and the onJsonBody narrowing installed before
dispatchRoutes still transforms these routes' bodies.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
* feat(vm): pool mode with per-thread seat affinity

Add localVm mode "pool": N seats keyed through the existing
LocalVmLeasePool, with TTL-bounded thread-to-seat affinity so a
conversation reuses the desktop holding its login state and returns
the seat to the pool when idle. The lease pool stays the ownership
fence; the seat table only decides which desktop a turn addresses.

Default stays "shared"; pool is config-gated. Switching modes changes
lease keys and vm-home directories, so desktops cold-start under the
new mode while old workspaces stay on disk until removed.

Implements #1654. Part of #1645.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(vm): renew pool seat affinity only after a won lease and gate Auto's fast path on a side-effect-free candidate

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(local-vm): prefer the live thread target for previews, renew affinity at settle

Status previews now resolve the active thread's target from
localVmThreadTargets before the affinity-seat fallback, so a pool turn
whose affinity TTL decays mid-flight still previews its own seat instead
of seat 0.

releaseLocalVmThread renews pool affinity (touch) before releasing the
lease, so a turn that consumed part of the 30-minute window still leaves
the full TTL after settlement. Failed claims never reach the renewal
(no target), and non-pool modes are unchanged.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* Renew the recorded seat after a long turn

touch() goes through affinitySeat(), which deletes an expired entry, so a
turn longer than the 30-minute affinity TTL settled into releaseLocalVmThread
renewed nothing and dropped the conversation's seat exactly when it most
needed its login desktop back. Settlement now renews the affinity with the
seat the turn actually ran on, parsed from the pool target key; a target
recorded before a mid-turn mode change is not a pool seat and keeps the old
touch-only behavior.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(vm): provision pool seats independently

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* feat(evals): add skill bench runner and trigger-eval fixtures

Alpha skill bench on the tier-1 scripted machinery: each fixture prompt runs with the skill installed as a user skill (new installSkill eval step, hot-loaded from the booted server data dir) and without it, producing pass rates, time, estimated tokens with mean and stddev, per-assertion deltas, and non-discriminating / high-variance flags. Adds the bench-triage-handoff fixture with known outcomes, its runner/scorer tests, and the E4 trigger-eval fixture set (should-trigger / should-not-trigger with train and held-out splits plus near misses, data only).

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(evals): skill bench review round - gates dir, arg validation, per-prompt deltas

CodeRabbit minor round on #1895:

- LocalVmWorld passed <fixtureHome>/eval-gates while OMB_DATA_DIR was
  <fixtureHome>/data, so installSkill wrote skills the server never
  hot-loads; eval-gates now sits under the data dir like every other
  world, pinned end to end by a localVm boot test that fails without it.
- --fixture/--replicates now consume their values and --replicates must
  be a positive integer; NaN no longer silently runs zero replicates
  (exit 2 with a message). Parsing lives in a pure parseSkillBenchArgs.
- assertionDeltas scores each prompt against its own assertion list and
  carries promptId in every delta, so later prompts' assertions are no
  longer dropped or bled into the first prompt's labels; the markdown
  delta table shows the prompt id.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(evals): reject unknown and malformed CLI options in the skill bench

- parseSkillBenchArgs now fails on unknown options (--replicate typos)
  and unexpected positional arguments instead of silently running the
  fixture defaults, and rejects a flag consumed as another flag's value
  (--out --fixture) as a missing operand
- vite test include gains evals/**/*.test.ts so the bench runner's
  parser contract actually runs in CI

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(evals): report the effective replicate count in skill-bench reports

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(evals): harden skill-bench fixture schema and derive target waits

The fixture schema now requires at least one prompt, at least one assertion per prompt, and unique prompt ids: empty arrays let a run that measured nothing report success, and duplicate ids folded two prompts' runs into one scored bucket. Target waitForTurns steps in the with arm now follow the prompt's own scripted coordinate_bots bot_ids, so a with-arm that correctly dispatches to nobody proceeds to its assertions instead of timing out.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Keep the question text instead of cutting it mid-word, and add Show full question. Expanded text is not clamped or clipped.
Settings → General can post a routine's turns into the chat that receives its card. Off by default, so scheduled work stays in a hidden thread.
* fix(delegations): let one turn queue six handoffs; fakes follow their server down

A lead running a weekly check-in over a five-member team hit the per-turn
cap of four and silently dropped the fifth teammate. Raise it to six.

The long-lived provider fakes now exit when their spawning server is gone:
a suite that SIGTERMs its server could leave keep-alive fakes running on the
machine (19 after one failover pass).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 55b56d76dd5745fdf9293e5b8ee80a28b5c40b85)

* fix(delegations): keep the wake budget at least as large as the queue cap

Every delegate reply is one wake of the source thread. A five-member
check-in whose replies all landed inside four minutes hit the budget of
three and the routine run was failed with "Delegation follow-up limit
reached"; the same routine passed a week earlier only because its replies
spread over twenty minutes. Six matches the per-turn queue cap and still
bounds an A→B→A ping-pong to six rounds per five-minute window.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(testing): reap provider fakes when their parent exits on Windows

---------

Co-authored-by: hwangincheolpb <hwangincheolpb@gmail.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
The first home-screen widget: the bots waiting on your answer, rendered
from the snapshot P3 publishes and answerable without opening the app.
The widget never invents content — its rows are the Updates pill's own,
its pills the card's own options via the shared answerOptions rule, and
its tap target the openmausbot://chat link. Freshness is spoken honestly:
the timeline flips itself to stale at the fifteen-minute mark and says
"As of" with the write time; the app republishes on every real change.

The answer button is a widget-process AppIntent, so it cannot lean on the
app's Session: it validates the ask against the snapshot it rendered
(WidgetSnapshot.answerableCard — same thread, request, offered choice and
card kind, still pending, not a SKILL request, written within ten
minutes), resolves the connection and keychain token through the shared
stores, and POSTs through a serial route loop that reuses the app's
failover rule. On success the answered row is removed locally before the
best-effort refresh, so a second tap cannot double-answer a stale
picture. Below iOS 17 the pills say where the answer lives, the same
stance the island takes.

Part of #1960

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Add a swappable decision-provider module (server/decider) modelled on the
TTS adapter: ask/choose/score/yesNo over a `jev` backend (TypeSafe
/v1/systemone, jev-latest, Bearer key) and an `off` backend, with a
baseUrl for a local Jev-compatible server later.

What it decides today: who answers an un-mentioned human message in a room
set to the new `auto` responder mode. One Choice over the room's active
bots (keyed by id, described by name/title/description) plus __everyone__,
with the last room lines as state. p >= 0.6 picks that bot (or everyone);
anything less sure falls back to the room's lead, else its first member.
@mentions, @everyone, goals and the other modes never ask. The decision is
started in startGroupTurn and awaited in its async round, so the append and
the send response stay synchronous; the title bot follows the pick. A
routed reply carries routedBy { provider: "jev", probability } and shows
"Picked by Jev · 94%".

It fails open: no key, switch off, job off, timeout (1.5 s for rooms),
network or HTTP errors (401/429/529/5xx) and malformed answers (a choice
that was not offered, non-numeric probabilities) all return
{ ok: false, reason } and the room behaves exactly as before. Answers are
validated strictly.

Settings gets a top-level "Decision model" item: one master switch (off
while no key is saved), the Jev key with Save and Test, and a "What it
decides" list (room routing, plus coming-soon rows). Saving a key turns the
switch and the room job on; a rejected key is not saved. The key follows
the TTS key path end to end: config section `decider`, OMB_JEV_API_KEY
env override (stripped from engine envs, redacted in diagnostics), the
desktop's encrypted credential store, an external-storage tombstone, and
booleans only in GET /api/config. Saving it never reloads the engine fleet.

Each call is logged to <data>/decider-log/YYYY-MM.ndjson (0600) with the
seam, choice key, pTop, margin, latency, tokens and a state hash; never the
message text or the key. The log is left out of workspace backups.

`auto` loads everywhere rooms are read: stored rooms, packages, team
backups and legacy team files; an unknown kind degrades to the first
member as lead. Package exports spell an Auto room as its lead so older
apps can still open them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(usage): say what the token totals leave out, and show the whole amount

Settings → Usage headlines fresh tokens since 01d26dcf: cache re-reads are
left out of the Tokens column and the All bots total. The note under the
total still said "Tokens count everything the model read and wrote", and
the full amount appeared nowhere. A heavily cached workload that sent 500M
tokens through the model read as 2.1M with a note claiming that was
everything, which a user reported as a counting glitch (MOCA-256).

The headline is unchanged. When the cache split is known, the column in
both Usage tables is labelled "New tokens", and the note now states the
cached amount left out and the total that went through the model. Engines
without a cache split keep the plain "Tokens" label and no note. The note
and new label are updated in every language pack.

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

* fix(usage): show cached-inclusive history totals

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(memory): until dates, expired notes hidden from the prompt, topic index with aliases

memory_update takes an optional until (YYYY-MM-DD); a live entry past its
until day stays in MEMORY.md but no longer loads into a turn. The memory
prompt lists memory/<topic>.md files with title, description and aliases
from their frontmatter, in 1:1 and room prompts. Fact identity for dedupe
keeps signs, symbols, digits and case (the #1362/#1363 review regressions).

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

* feat(memory): automatic recall of the bot's own notes and conversations before a turn

Before each turn the person's message searches the bot's memory files (any
content word, two once the message has five) and, in a 1:1 turn the person
started, its other conversations. Up to 4+4 numbered, dated passages ride in
a new volatile prompt part, so the stable prefix and a live CLI session are
untouched. Rooms, peer, coordination and webhook turns get notes only.
MEMORY.md (already loaded) and the archive are never recalled. Bounded SQL
LIMITs throughout. features.autoRecall=false switches it off.

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

* feat(memory): opt-in Memory upkeep — background capture, nightly tidy-up, About me suggestions

A per-bot switch (memoryUpkeep, off by default). With it on:
- finished 1:1 turns the person started are captured after the chat goes
  quiet (memory.captureQuietMs, default 2 min, or 6 turns, and before a
  compaction): one tool-free generateText call proposes facts, deduplicated
  by the exact identity rule and appended as dated, sourced entries;
- durable facts about the person become About me suggestions the person
  adds or dismisses (Settings); nothing reaches the shared profile alone;
- a nightly tidy-up (after memory.tidyHour, default 3, catching up after
  sleep, never while the bot is busy, and on demand) archives expired
  entries, merges exact duplicates and strikes contradictions, at most
  floor(live x 0.2) of them and none below five entries.
Every write is a journal row with actor upkeep, so Undo works. Engines
without generateText get only the deterministic tidy steps. Upkeep pauses
during backup maintenance.

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

* feat(memory): Memory upkeep controls, About me suggestions UI, recall in the turn text, e2e

- Bot settings -> Memory: Memory upkeep switch, Tidy up now, last tidy and
  capture status, and a plain note when the engine cannot run the model steps.
- Settings -> About me: suggestions from bots with Add / Dismiss.
- Recall moves from a volatile prompt part to the front of the turn's own
  message: the volatile half is re-sent whole when any part changes, and
  recall changes nearly every turn. The main chat is named in passages.
- Fake engine: FAKE_CLAUDE_TEXT_ROUTES answers one-shots by prompt marker.
- memory-layer.e2e.test.ts walks recall, capture, identity, suggestions,
  expiry, tidy-up and undo against an isolated fixture.

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

* fix(memory): recall skips daily logs and routine/webhook conversations; docs and verification recipe

A routine run starts fresh by design and a webhook is untrusted, so neither
recalls earlier conversations (notes still ride). Daily logs are never loaded
into a prompt and repeat what was just said, so recall skips memory/log/;
session_search still finds them. docs/memory.md covers recall, until dates,
the topic index and Memory upkeep; docs/verification/memory-layer.md is the
recipe.

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

* fix(memory): capture prompt tuned against real Haiku

Measured live: the first prompt returned [] when the bot said it would not
remember a dated fact, and dropped facts the bot had already noted, so no
About me suggestion ever appeared. Now the prompt names the weekday ("this
Friday" becomes a date), says dated facts are worth keeping with an until,
tells the model the bot's own choice does not decide, walks the person's
messages sentence by sentence, and re-lists a durable fact about the person
with noted:true so it can be suggested without being appended twice.
Replayed against claude-haiku-4-5: 4/4 answered, 3/4 dated the appointment
correctly, 3/3 empty on a chat with no personal facts and a secret.

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

* fix(memory): a contradicted line keeps its still-true part

Found live: "lives in Pune and prefers short replies" was struck whole when
a newer note said the person moved to Mumbai, losing the preference. The
contradiction answer may now carry a remainder, which the tidy-up keeps as
its own dated entry from tidy-up beside the struck line. Verified against
the live Claude engine, including Undo of the earlier tidy-up.

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

* docs(memory): record findings M1-M4 and the live first run

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

* fix(memory): findings from the first hand test

- About me is findable: Settings search matches about me / suggestions /
  memory, the upkeep card names Settings -> General -> About me and says how
  many suggestions from this bot are waiting.
- Recall matches word forms: the index does no stemming, so a word of four
  or more letters matches as a prefix with a plural -s taken off
  ("restaurant" finds "restaurants"); tokens with digits or symbols stay
  exact, since "c" as a prefix would match everything.
- The tidy-up writes the archive before MEMORY.md, so the newest journal
  row is MEMORY.md and undoing it can never lose an archived line.

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

* fix(memory): topics answer to their name, title and aliases

Found in hand testing: the panel's new-topic text starts with a heading, so
a header block under it was ignored and the topic had no aliases. The header
may now follow a heading (which becomes the title), new topics start with
the header block, recall matches a message against topic names, titles,
descriptions and aliases directly, and the topic index tells the bot to read
a related topic before answering.

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

* feat(memory): upkeep on by default, bots file their own topics, About me learns on its own

Decided by Omkar after hand testing: people will not curate memory by hand.
- Memory upkeep is on unless a bot's switch is off (memoryUpkeep !== false).
- Capture files each fact: core facts to MEMORY.md, the rest to a topic file
  per subject that upkeep reuses or creates with a title and aliases, so
  recall finds it by the words people ask with.
- A durable fact about the person, from the owner's own words, is added to
  About me directly (dated, attributed) and listed under Settings -> General
  -> About me with Remove; a removed fact is never added again.
- The nightly tidy-up also archives expired lines and merges duplicates in
  topic files.
- Capture prompt: recurring dates (birthdays) never get until; topicAliases
  always given. Replayed 3/3 against claude-haiku-4-5.

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

* fix(memory): no capture flush at compaction

The capture buffer holds the turns' own text, so compacting the transcript
loses nothing from it; flushing there only raced the summary one-shot
(context-compaction e2e caught the two sharing the fake engine at once).

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

* test(fake-engine): memory upkeep one-shots never overwrite the shared turn dump

Upkeep is on for every bot, so its capture/tidy one-shots now run inside
unrelated fixtures and replaced FAKE_CLAUDE_DUMP (team-setup read a dump
with no mcpConfig). FAKE_CLAUDE_TEXT_DUMP still records them.

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

* feat(memory): organize MEMORY.md into topic files, whoever wrote the line

Hand test: the bot saved detail itself with memory_update, so capture added
nothing and no topic file appeared. After each capture and in the tidy-up,
one call over MEMORY.md lines not judged before moves detail about a subject
into its topic file (line unchanged; topic created with a header and
aliases; topics written before MEMORY.md for undo). Core facts (name, home,
company, diet, allergies, health, reply style) stay; a line judged core is
not asked about again. Tuned live against claude-haiku-4-5 (M8).

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

* fix(memory): diet, allergy and health lines never leave MEMORY.md

Hand test: an organize pass moved "The user is vegetarian" into Dining.md
despite the prompt calling diet core. Such lines are now excluded from the
organize call in code, so no model answer can move them (M9).

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

* fix(memory): greetings are not recall words

Demo run: "Hi! Quick intro…" recalled the bot's own "Hi, I'm Scout" greeting
from its default chat. Greetings and I'm-style words are dropped from the
any-term query.

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

* fix(memory): upkeep status leaves out its core-judgement bookkeeping

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

* docs(memory): screenshots of the memory upgrade for the PR

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

* fix(memory): isolate automated turns and retry incomplete upkeep safely

* fix(memory): filter recall before ranking and recover partial topic writes

* fix(memory): recall punctuation-separated words

* test(config): include routines flag after memory merge

* fix(memory): account for upkeep usage and honor spend caps

* fix(memory): preserve pending notes when settings saves fail

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Against the English source, eleven Simplified keys (and their Traditional
twins, translated in the same pass) read wrong or dropped content:

- installation rendered as "workspace" (voice.grok.sharedKey,
  settings.section.workspaces, settings.profiles.ownerOnly)
- Servers / Installations section titles mistranslated
  (settings.section.desktopWorkspaces, workspaces.title)
- bots mistranslated as "items" (team.moveSelected)
- "Task folder" rendered as a workspace (composer.tray.privateWorkspace)
- "Member (chat only)" gained an approval right it does not have
  (workspaces.chatOnly)
- Threads mistranslated as a UI thread (backup.threads)
- verb "Draft" used as a noun (botAccess.grants.verb.draft)
- organization.disconnectWarning dropped the daily-backups sentence

Terminology now follows each catalog's own established usage.
One glossary, applied everywhere the Chinese catalogs mix terms:

- thread (and conversation) -> 对话 / 對話 (was 线程, 讨论串, 对话线程,
  執行緒, 對話串 across the catalogs)
- installation(s) -> 安装实例 / 安裝實例 (was mistranslated as 工作区)
- workspace stays 工作区 / 工作區 where the English says workspace
- default -> 默认 / 預設 (zh 缺省 merged into 默认)
- "bot folders" -> 机器人文件夹 / 機器人資料夾 (was 工作区)
- honorifics -> 你 (您 normalized away)
- quotes: "..." in Simplified, 「...」 in Traditional
- stray Traditional vocabulary in the Simplified catalog normalized
  (纪录->记录, 帐户->账户, 设置档->配置, 软体->软件, 网路->网络)

186 zh keys, 85 zh-tw keys, 52 Android string entries and 2 iOS
xcstrings entries changed. English sources, placeholders and source
hashes are untouched; node scripts/generate-locale.mjs --check passes.
answerableCard stops trusting a snapshot ten minutes after it was written, but the timeline only flipped to stale at fifteen, so for five minutes the pills rendered tappable while every tap failed the trust check. The window is now one shared constant the tap guard, the timeline, and the view all read: getTimeline schedules an entry at exactly writtenAt plus answerMaximumAge so the buttons leave at the moment taps stop working, and AnswerPills hides itself once entry.date passes the window, stale renders included. The expiry test now reads the constant instead of restating 600.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
CompanionClient.respond discarded the respond route body, so an unavailable outcome, where the action never ran, still removed the row and claimed Answered. respond now returns the outcome, decoded leniently because the specialized card resolvers answer in their own shapes; WidgetAnswerIntent gives unavailable its own dialog while still clearing the row and reloading the timelines. The digest widget inline accessory also says need you for asks instead of active, with the new string in the Widgets catalog.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
WidgetRouteRequest failed every request over the same rule, so an answer retried onto the next route after a lost response: the server had consumed the pending ask, answered unavailable, and the widget reported a landed answer as one that never ran. perform now takes a replay policy; the answer writes replay only when ConnectionAdvice.provablyUndeliveredRequest proves the failure predates delivery (dial and TLS failures, 502/503, 521-523), while ambiguous timeouts and 504/524 stay put. The refresh read keeps the existing failover.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
A gateway can emit 502 or 503 after forwarding the POST, so neither proves the write never reached the computer; replaying on either could still land an accepted answer as unavailable. Only the connect-level family — 521 origin refused, 522 connect timeout, 523 origin unreachable — is kept in the provably-undelivered set.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
The rules mirror the iPhone companion's compact list, and so do their
tests: Comfortable is the list as it was, Compact is the new default, and
a stored value this build cannot read (the desktop's "icons", a typo)
lands on Compact.

Each bot row's decisions are data: how many threads sit behind "› N" (the
thread tree's own fold, so routine runs and closed, archived or snoozed
threads without activity stay out of the count), its one status mark
(waiting on you, then working, then idle, read from every visible thread;
a teammate wait is never work), whether it shows the crown, the time or
the spinner, and when its thread list opens and ends in New thread.
The list padded its end with a fixed 96 dp guess at the height of the
floating Updates bar. The bar grows with the text size: at twice the
default it measures 110 dp, and the last bot's Threads row ended under the
pill. The list's end is now inset by whatever the bar measures, plus 16 dp,
so the last row is always fully visible and tappable.

The iPhone's other clearance bug, a first section title tucked under the
floating header, does not occur here: the Android header sits above the
list rather than over it. The new test pins both.

RosterScreenTest mounts the real roster over RosterFixture, a synthetic
fleet with every state the home list draws (the counterpart of the
iPhone companion's roster preview fleet), a real Session and a loopback
server.
Like the desktop sidebar and the iPhone, the home list gets Settings →
Threads list → List density, stored per device beside the activity
detail. Comfortable is the list as it was; Compact is the new default.

Compact gives each bot and group one line: a 26 dp face (growing with the
text size, up to 40 dp) with the unread dot kept, the name, a crown after
a Chief of Staff (read out as "Chief of Staff"), the role as quiet text
that gives way first, and the time — a spinner in its place while any
thread works, and a hand in the bot's colour while it waits on you. There
is no preview line. A bot with two or more threads shows "› N" at the end
of its row; tapping it lists those threads in line with the bot's name,
one line each with its time, then "+ New thread". A single-thread bot has
no thread row at all: its row opens the thread, and a long press on any
bot offers New thread and Manage threads, which TalkBack also lists as
actions. Groups are one-line rows with two overlapping faces, and the "+"
on the Groups title makes a new one.

From 1.5× text up, one line cannot hold a name and a time: the name takes
the whole width and wraps between words (at the hyphen of a double name
too), and the time, status and role move beneath it. Every row keeps a
48 dp touch target.

What each row shows comes from :core's RosterBotRow. RosterScreenTest
pins the default, the thread control and its list, the long press,
search, groups, the setting, the wrapped name at twice the text size and,
now in both densities, the header and bottom-bar clearances.
How to run the density rules and the roster's Robolectric checks, what
RosterScreenTest covers, the manual thread check in both densities, and
this change's recorded local pass: the red runs before each fix and the
green gate after it.
Review fixes to the list density rules.

- The bot's own activity belongs to its current thread. It now stands in
  when that thread's task carries none, as it does when the chat opens, and
  an older computer's bot without a task list is read as its one thread, as
  in the tree. A bot waiting on the person showed the work spinner there.
- The unread dot follows the rule the comfortable row has always used:
  shown while unread, hidden while the bot itself is busy. That hides it
  while the bot waits on you or on a teammate, and keeps it while another
  of its threads works.
- The row model is compact-only. Comfortable keeps the logic it shipped
  with in its own composables, so the density and the fields only tests
  read are gone.
- New decisions: an opened list whose "› N" control goes away is dropped,
  so a later second thread does not reopen it by itself; and unfiled
  threads get a "Threads" label only beneath a folder header.
- The Compact caption says "more than one active thread", since closed,
  archived and snoozed threads stay out of the count.

The legacy thread is now one helper shared with the thread tree, with no
change to the tree.
- Large text: wrapped names and thread titles no longer use automatic
  hyphenation, which on a phone may cut "Christoffersen" into "Christof-"
  and "fersen" to balance the lines. A zero-width break after each hyphen
  keeps a long double name breaking at its own hyphen instead of mid-word.
- Under a folder header, an opened list gives its unfiled threads a quiet
  "Threads" heading, aligned with the name, so they no longer read as the
  folder's. Closing the folder leaves them and their label.
- A pinned thread shows a small pin after its title and says "Pinned".
- While a thread is made from the long-press menu or its TalkBack action,
  a spinner ("Creating a thread") stands where the row's time was.
- An open list whose "› N" goes away is forgotten, so a later second
  thread does not reopen it by itself.
- The Chief of Staff row keeps the section spacing below Needs attention,
  where a one-line row read as one more attention item.
- "No bots yet" waits until there is no group either. Compact lists
  groups as rows, and the empty state was drawn on top of them.
- "› N" is one control for TalkBack, "Pepper's threads, Collapsed, 3
  threads", instead of reading the drawn count a second time.

RosterFixture gains a two-word name, a pinned unfiled thread, a busy group
and a group waiting on a card. RosterScreenTest adds checks for each fix
and for what the review found untested: a second tap closing the list,
the groups' hand and spinner, a single-thread bot's match during search,
TalkBack's New thread action, the role giving way before the name, and
comfortable's Threads tree on the roster.
The compact rules mirror the iPhone companion's compact list rather than
citing its files, which are not on main yet. The recipe lists the checks
the review fixes added, what only a device can show (no added hyphens,
TalkBack speech), and this round's red runs and green gate.
* feat(ios): needs-you home-screen widget with one-tap answers

The first home-screen widget: the bots waiting on your answer, rendered
from the snapshot P3 publishes and answerable without opening the app.
The widget never invents content — its rows are the Updates pill's own,
its pills the card's own options via the shared answerOptions rule, and
its tap target the openmausbot://chat link. Freshness is spoken honestly:
the timeline flips itself to stale at the fifteen-minute mark and says
"As of" with the write time; the app republishes on every real change.

The answer button is a widget-process AppIntent, so it cannot lean on the
app's Session: it validates the ask against the snapshot it rendered
(WidgetSnapshot.answerableCard — same thread, request, offered choice and
card kind, still pending, not a SKILL request, written within ten
minutes), resolves the connection and keychain token through the shared
stores, and POSTs through a serial route loop that reuses the app's
failover rule. On success the answered row is removed locally before the
best-effort refresh, so a second tap cannot double-answer a stale
picture. Below iOS 17 the pills say where the answer lives, the same
stance the island takes.

Part of #1960

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(ios): retire widget pills with the answer window

answerableCard stops trusting a snapshot ten minutes after it was written, but the timeline only flipped to stale at fifteen, so for five minutes the pills rendered tappable while every tap failed the trust check. The window is now one shared constant the tap guard, the timeline, and the view all read: getTimeline schedules an entry at exactly writtenAt plus answerMaximumAge so the buttons leave at the moment taps stop working, and AnswerPills hides itself once entry.date passes the window, stale renders included. The expiry test now reads the constant instead of restating 600.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(ios): updates digest widget with lock-screen accessories

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(ios): report a widget answer that did not land

CompanionClient.respond discarded the respond route body, so an unavailable outcome, where the action never ran, still removed the row and claimed Answered. respond now returns the outcome, decoded leniently because the specialized card resolvers answer in their own shapes; WidgetAnswerIntent gives unavailable its own dialog while still clearing the row and reloading the timelines. The digest widget inline accessory also says need you for asks instead of active, with the new string in the Widgets catalog.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(ios): per-bot widget with elapsed clock

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* feat(ios): working monitor widget with provider refresh

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(ios): refresh aged empty snapshots and resolve entities without trapping

The working monitor refreshed only when classify said stale, but an empty write classifies quiet before its age is consulted, so work that started after the app left stayed invisible until the next app write. The refresh trigger now reads the written age from the file. Entity resolution also builds its dictionary with a merging initializer, because the snapshot does not promise one row per thread and uniqueKeysWithValues would trap the extension.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(ios): age empty snapshots and keep the picked chat resolvable

classify summarized an empty snapshot as plain quiet, dropping writtenAt, and both providers scheduled the stale flip only for fresh, so a quiet write that aged past fifteen minutes kept rendering an unqualified All quiet until a later reload. quiet now carries its snapshot, an empty write crosses the same fresh-to-stale line a full one does, and the empty states in the Needs You widget and the digest home, rectangular, and inline accessories print the age line when stale; fresh empty keeps the existing quiet presentation so the digest never flips to 0 active.

ChatEntityQuery resolved saved identifiers only against current rows, so a chat that went quiet left entities(for:) with nothing and WidgetKit read the configuration as unpicked. The pick-time identity now persists in the App Group beside the snapshot and stands in until the chat reappears.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

* fix(ios): persist the first-ranked identity per thread

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>

---------

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
border-line, bg-surface, hover:bg-surface, divide-line,
hover:bg-control-hover and text-ink-tertiary have no --color-* token in
the @theme block, so Tailwind emitted nothing for them. The pairing
page, the sign-in allow-list card, the server pairing card and the
Claude code field fell back to currentColor borders and a see-through
fill.

Map each to the token neighbouring components use for the same role:
fields and boxes take border-hairline/40 on bg-inset, bordered quiet
buttons border-hairline/50 with hover:bg-control, lists
divide-hairline/40, bg-control buttons hover:bg-raised-hover, and the
hint text text-ink-secondary.

A new test scans src for colour utilities in the app's token families
and fails on any name the theme does not define.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
styles.css turns the outline off on all inputs, textareas and selects,
because Chromium matches :focus-visible on a pointer click and drew a
sharp rectangle inside the composer's rounded pill. Each field was then
meant to add its own focus:border-*, but many added nothing (backup
passwords, usage budget, share dialogs) and 34 used
focus:border-hairline, a step from 1.12:1 to 1.39:1 in Midnight that
nobody can see.

Keep the outline off and let a focused field paint its own border in
--color-focus instead. The rule is unlayered, like the ring above it,
so it outranks the resting border-hairline/40 every field carries (a
@layer base rule would lose to that utility). Borderless fields,
including the composer and mention editor, have no border to paint and
render exactly as before; the search and find bars around them take
focus-within:border-focus on their rounded wrapper, the pattern the
Settings search already used.

The faint focus:border-hairline and focus-within:border-hairline /
border-accent/NN uses are removed or switched to border-focus.
check:contrast now also measures the focus colour against inset, raised
and control, the fills fields sit on; it clears 3:1 on all 8 skins. A
new test keeps the rule unlayered and bans focus:border-hairline.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The focus-border rule is unlayered so it outranks every field's resting
border, which also let it paint over `border-danger/*` on fields that
report an error (aria-invalid). The red vanished exactly while the user
was fixing the mistake. Fields marked aria-invalid="true" now keep their
own border when focused.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Resolve server/config.ts: keep both the decider section and main's
memory section in saveConfig's merged-section list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cloud): Cloud Pro home machine, signed pairing, auto-connect and included models

One Fly app per customer runs this server as the Cloud Pro home machine.
This adds the runtime half of the contract openmaus-cloud's provisioner
(feat/cloud-pro-provisioning) writes, documented in docs/cloud-pro.md.

Home image (deploy/fly): the published server image plus Claude Code and
Codex (ENGINES), Caddy as the only listener on 0.0.0.0:8080, and a launcher
(server/cloud-home-start.ts) that hands a fresh volume to maus, drops root,
binds the volume to its machine and supervises server + edge. The server
still binds 127.0.0.1; everything the edge forwards carries X-Forwarded-*,
so no network request is ever the loopback owner. fly.toml template.

Boot contract (server/cloud-home.ts): OMB_CLOUD_ROLE=home,
OMB_CLOUD_MACHINE_ID, OMB_CLOUD_ADMIN_URL, OMB_CLOUD_BOOTSTRAP_SECRET,
OMB_PUBLIC_URL, and together OMB_HOSTED_MODEL_URL / _TOKEN (omb_cloudai_) /
OMB_HOSTED_MODELS. Partial or invalid config refuses to start; pairing codes
stay on; secrets leave the process environment at startup.

Pairing: POST /api/cloud/pairing opens one ordinary single-use window for an
HMAC-SHA256-signed request (constant-time compare, +-300 s timestamp, nonce
refused for 10 min, TTL capped at 600 s, bad signatures share the pairing
lockout, nothing logged).

Included models (server/included-models.ts): additive instances beside the
person's own engines (included.agent via OpenMausBot's own agent on the
openrouter route, included.codex via Codex on the openai route), read-only,
the default for new bots until another default is saved, and a gateway 402
becomes "Included AI used up this month". Claude Code never runs on included
AI: anthropic catalog entries are ignored with a startup warning.

Desktop: the Cloud session's `cloud` summary lists the machine under Servers
as "My Cloud" and shows setting up / ready / stopped / payment problem /
failed / allowance used; "Connect to my Cloud" switches if already signed in,
otherwise mints a code with POST /api/cloud/desktop/pairing and opens the
machine's pairing link. No dialog; the code never leaves main memory. Local
mode is unchanged when signed out.

Model picker: included engine shows "Included with Pro", and the used-up
state with how to keep going.

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

* ci(docker): read Cloud home logs without a SIGPIPE-prone pipe

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

* ci(cloud-home): check process owners via /proc comm, not exe

readlink /proc/<pid>/exe of another user's process needs CAP_SYS_PTRACE, which
Docker's default capabilities leave out, so the owner check came back empty
although the server was healthy. /proc/<pid>/comm and the directory owner are
readable without it.

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

* feat(cloud): Cloud Pro brings your own AI; first run is the engine sign-in

Owner decision 2026-09-28: Cloud Pro includes no AI usage. The customer
signs in on their Cloud with their own Claude or ChatGPT subscription, or
an API key, through the sign-in flows every server already has.

- Remove the included-models overlay (included.agent, included.codex),
  hosted-catalog.ts, the "Included with Pro" picker state and the
  "Included AI used up" allowance state and parsing. ModelPicker, store
  and default-model-selection.test.ts are back to main.
- A Cloud home given OMB_HOSTED_MODEL_URL/TOKEN/MODELS boots, logs one
  warning naming them, and ignores them: the launcher strips them from
  the server's environment, the server drops them from its own, and the
  portal workspace model policy stays off. Nothing routes to a gateway.
- GET /api/auth/session says cloudHome: true on a Cloud home. For an
  admin session with no engine that can run, the Cloud shows
  CloudEngineSignIn in place of the chat: Sign in to Claude (paste
  code), Sign in to ChatGPT (Codex) (device code), or Use an API key
  (Settings -> Connections), with the plan-limits note. The welcome flow
  no longer opens by itself there.
- Boot contract, pairing, Caddy on 8080, HOME=/data and /api/health are
  unchanged. docs/cloud-pro.md, fly.toml and the Docker CI smoke follow.

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

* ci(cloud-home): publish the Cloud Pro home image to GHCR

On every push to main and release tag, build deploy/fly/Dockerfile on top of the
server image just pushed for the same commit and push
ghcr.io/milind-soni/openmausbot-cloud-home (latest, sha-<commit>, tag). The job
summary prints the digest to pin as OMB_CLOUD_HOME_IMAGE in the Admin. Image
references are lowercased; the repository name is not.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
index.html ships <html lang="en"> and setLocale never touched it, so a
screen reader read German, Japanese or Hindi text with English rules.
setLocale now writes document.documentElement.lang (a BCP-47 tag for the
pack actually showing: pt-br -> pt-BR, zh-tw and its aliases -> zh-TW) and
dir (ltr for every shipped pack; rtl ready for ar, fa, he, ur).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
GET /api/connectors/catalog only reported mode "unavailable" when no
connection service was present. That one value covered two opposite
situations: a server that was never given a connection service (source
build, fixture, fresh self-hosted install: the user has to add a key)
and the installed desktop app whose managed service has not answered
(a real outage). The panel could only show the outage warning for both.

The catalog now also returns `setup`: "ready", "needs-setup", or
"service-unavailable". Only the packaged desktop child
(OMB_DESKTOP_PARENT=1) registers with the managed service, so only
there is a missing service reported as unavailable. Existing fields
are unchanged, so phones and older clients keep working.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Opening Tools > Connected apps on a fresh install showed an orange
"Connected apps are temporarily unavailable. Retry after restarting the
host" banner, even though nothing was down: no connection service had
been set up yet. The Connect buttons stay disabled in that state, so
the banner was the only guidance and it pointed the wrong way.

The panel now reads the new catalog `setup` field. "needs-setup" shows
a neutral note that says what to do (add a Composio project key under
Settings, Connections) and its Open settings link lands on the
Connections section instead of General. A real managed-service outage,
or an older host that does not send `setup`, still shows the warning.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tailwind v4 only applies hover:/group-hover: under @media (hover: hover), so
controls revealed with `opacity-0 group-hover:opacity-100` never appeared on
phones and tablets (message actions, group reply/pin, thread and folder menus,
sidebar New thread / New folder / Actions, Task picker buttons, composer chip
remove). The existing max-md fallback only covered narrow windows, not tablets.

Add a `touch:` custom variant (@media (hover: none), (pointer: coarse)) and pair
every hover reveal with it: row/per-message triggers at 70%, actions shown after
opening at 100%. Sidebar rows also reserve the button space and hide the time on
touch, as they do on hover. Add the missing focus-visible reveal to the Task
picker delete button. Mouse users see no change.

touch-actions.test.ts guards the rule across src and checks the compiled CSS.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
When a chat ends on an approval card (Stop while it is open, or a turn
that settles the ask without writing more), the sidebar row previewed
the card's title, so it kept saying "Approval needed" while the card
itself read Allowed or Denied. The preview now reads the same outcome
the card shows, from one shared helper.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The chat and room transcripts were role="log" aria-live="polite", so a
screen reader re-read every change while a bot worked: the ticking
"Thinking 1s, 2s, 3s", each activity label, each chip and each in-between
reply (11 live updates for one 8 second reply in the fixture). The working
label inside TurnPresence was a second live region on top.

The logs are now aria-live="off" (still a browsable landmark), the working
label is no longer live, and one visually hidden polite status line
(TranscriptAnnouncer) speaks once when a turn ends with a new reply
("Pepper replied: <first sentence>") and when a new approval is waiting.
History that loads into an idle thread is never read out.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Page language per UI locale, and live-region text changes during one
fixture reply (12 before, 2 after), recorded with Playwright and a
MutationObserver against an isolated control-omb fixture.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
styles.css takes the outline off `:is(input, textarea, select)` on focus so
Chromium's click-time :focus-visible does not draw a sharp rectangle inside
the composer pill; text fields show focus on their own border instead. The
bare `input` also matched checkboxes, radios, range sliders, colour wells
and file pickers, which have no border to repaint, so tabbing onto one in
Settings showed nothing at all (WCAG 2.4.7).

Narrow the rule to text-like inputs. Those five types fall back to the
global :focus-visible ring; text fields, textareas, selects and the
composer are unchanged. A test fails if an outline-removing rule names an
input without excluding them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A message steered into a running Claude turn is folded in only before a
model call that has not started yet. Words that landed during the turn's
last call are queued on the CLI's stdin and run as its NEXT native turn,
in the same process and on the same tools (Claude Code 2.1.282). The
driver settled the logical turn on the first `result` frame anyway, so:

- the harness revoked the turn's internal capability generation on that
  `turn.completed`, and every `mcp__agents__*` call the continuation made
  answered 401 "unauthorized";
- the bot showed idle while it was still working, and the continuation's
  own `result` was dropped because the turn was already settled.

steer() now counts the messages written since the CLI last showed a fold
seam (a top-level tool_result, which it follows with a model call that
takes queued stdin first). A `result` is held rather than settled when
the CLI reports queued_turn_count > 0 or such a message is outstanding.
queued_turn_count 0 decides nothing: the CLI counts its command queue,
which a stdin message never sits in — the incident's own result said 0
and the CLI ran the message 58 ms later. The CLI announces the
continuation with `init` within milliseconds; the logical turn settles
on the continuation's `result`, adding per-turn token usage and taking
the latest total_cost_usd, which the CLI documents as the process's
running total (a failed half fails the turn). If no `init` follows
within 2 s, the message was folded after all and the held result
stands; if `init` is followed by 30 s of silence the held result closes
the turn too, so a mute continuation cannot keep the pass open until
the stall watchdog. Stop, process exit and idle close still settle
exactly once; a process that dies after a held result is never
relaunched, because the prompt already ran. Peer asides and the queue
Steer buttons use the same steer(), so an aside landing in the last
model call extends the turn into its continuation the same way.

Why this is safe: no revoked token is re-activated and no new one is
minted — the pass simply stays valid until the turn really ends (the
continuation's result, Stop, exit, the grace or the silence bound), for
the same bot, thread, generation and process it was issued to. The
continuation is the person's own steered message (or a peer's recorded
aside), already part of this turn, so nothing a bot can do is widened.
A steer whose stdin write lands after the turn settled is unchanged: the
turn's pass is gone, and the harness already answers that late
acknowledgement with 409.

The fake CLI gains FAKE_CLAUDE_LATE_STEER_GATE (the queued continuation),
FAKE_CLAUDE_LATE_STEER_INIT_GATE and _SILENT, FAKE_CLAUDE_SLOW_TAIL_TOOL,
FAKE_CLAUDE_QUEUED_TURN_COUNT (absent | zero | count) and a cumulative
total_cost_usd. The driver tests cover the absent-field, zero and count
paths, Stop in the held window and during the continuation, and the
silent continuation; steer-e2e replays the incident against the real
harness: one turn.completed, busy throughout, and the internal tool
pass honoured until the steered reply lands and refused after.
Co-Authored-By: Claude <noreply@anthropic.com>
The live-eval judge prompts are checksummed in their manifest and the golden
scenarios are compared byte for byte with what the redactor writes. On
Windows, actions/checkout converts them to CRLF, so vitest shards 1/4 and
2/4 fail there on every pull request (live-suite: manifest checksum;
golden: byte-identical fixtures). Pin those files to LF, as .gitattributes
already does for the mascot catalogs and the vendor patches.
cloudHomeChildEnvironments describes paths inside the Linux image, but
joined them with the host's separator, so on Windows the test saw
\data\.openmausbot instead of /data/.openmausbot and the Windows vitest
shard 4/4 failed on every pull request since the Cloud Pro home landed.
The room header's control row cannot shrink below its content (about
456px with the folder chip, lead picker and roster), so in a narrow
column the room name shrank to 0px and the thread picker slid under the
controls; on a phone the roster ran 110px off the right edge.

Apply the 1:1 chat header's approach (#1974): an @container on the
header, and a child row that wraps into a name line and a right-aligned
control line. The room's controls never fold to icons the way the chat
chips do, so the room header wraps below 48rem instead of 30rem. No
change at normal widths.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Timestamps, hints, placeholders, calendar hours and section labels were
drawn as `text-ink-secondary/55` to `/85`. The secondary ink is already
tuned just above WCAG AA on the light skins, so any opacity takes it below:
/70 measured 2.6-3.1:1 on Atelier and Linen and /60 went down to 2.2:1.
The contrast script only measured whole tokens, so none of it was checked.

Add `--color-ink-tertiary` to @theme and to every skin (plus Daylight's
inverted bubble), set to the quietest ink that still clears 4.5:1 on every
text surface, and use it for the 59 faded text, placeholder and icon uses.
check-skin-contrast now measures it on all eight surfaces. A guard test
fails on any new `text-ink-secondary/<n>` except a `disabled:` variant and
three named aria-hidden decorative marks.

The mini month kept its "other month" step by moving in-month days to full
ink, since the tertiary ink sits close to the secondary one on light skins.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
In the browser (remote access, `npx openmausbot`) the computer panel is the
desktop ComputerPanel, docked at its stored width (400px by default) with
`shrink-0`. On a 390px phone that pushed the chat to zero width and ran the
panel off the right edge, where `body { overflow: hidden }` cut it off.

Below md it now covers the window (`absolute inset-0 z-40`), the same way
the bot settings and inspector panels already behave on narrow screens; an
important `w-full` beats the inline width, and the resize handle is hidden
since there is nothing to drag against. Desktop (840px minimum) never goes
below md, so the docked column and its drag width are unchanged there.

RemoteAgentSettingsPanel and remote-desktop-panel, named in the audit, only
render when the desktop app is paired as a remote client (Electron, 840px
minimum window); a phone browser has no `window.ogb` and gets the panels
above, so they are left as they are.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The header's control group is `shrink-0` and the name group is only
`min-w-0`, so in a narrow column (a phone on remote access, or a panel
beside the chat) the name truncated to nothing and the rename pencil
landed under the export button. The Chief of Staff badge shrank with the
name and wrapped one word per line, taller than the row.

Below a 30rem header the row now wraps: avatar, name and badge on the
first line, the controls right-aligned beneath. The wrap is on a child row
because a container query never matches its own container. This part is
the narrow-width wrapping from #1289, taken on its own; the header control
redesign in that PR (menu folding, TaskPicker removal) is not included.

The badge no longer shrinks or wraps, and in a column under 56rem it folds
to the crown like the neighbouring chips already do, keeping the label for
screen readers and as the tooltip, so the name keeps the room. At wide
widths the header's height and controls are unchanged.

Fixes #1871

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
opencode reports a turn's uncached input in inputTokens and its cache
reads beside it in cachedReadTokens (omitted when 0), so the ACP driver
emitted only the uncached share as input and no cache split. Every
opencode thread under-reported its prompt size.

The emit now follows the Claude driver's convention, which the store
and usage display already assume: input is the whole prompt input and
cachedInput names its cached part. When totalTokens shows the cache
reads were reported beside inputTokens (or totalTokens is absent),
they are added to input; when totalTokens shows they are already inside
inputTokens, input is left alone and cachedInput is clamped to it. An
absent cache count still emits no cachedInput, and cache writes stay
out of input, as in the Claude driver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: GLM-5.3 <noreply@z.ai>
A Stop within the 2 s grace after a held result could lose to the grace timer: taskkill is asynchronous on Windows, so the CLI can outlive the Stop, and the timer settled the turn on the held result as a success before finalizeClose reported the interrupt. The grace and silence callbacks now return while a Stop was requested or the session is closing; finalizeClose settles the turn as interrupted, or on the held result for a plain close.

The fake CLI gains FAKE_CLAUDE_EXIT_DELAY_MS (a CLI slow to stop), and a driver test stops a held turn whose CLI outlives the grace.
The CLI takes queued stdin as it writes a top-level tool result, and the driver reads that frame a moment later. A steer written in between was not folded, yet the seam reset the driver's count, so the result settled early (2.1.282's queued_turn_count is 0 for stdin words) and the continuation ran under a revoked pass. The seam now clears the count only once the newest steer is older than STEER_SEAM_MARGIN_MS (1 s); a folded steer that recent costs the 2 s grace instead.

Not the review's full removal of the reset: that would hold every turn with a folded steer for the grace, which a Live call hears as silence after each answer.
A claude-* id declared in ~/.claude/settings.json extraModels (e.g. a model
Claude Code already serves but STATIC_CLAUDE_MODELS does not list yet, such as
claude-sonnet-5-5) was tagged custom, so the picker filed it under the Local
pane meant for host::model injects. Official Anthropic ids now stay untagged
and appear in the Claude list; other ids keep the custom tag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The time the driver reads a tool result says nothing about when the CLI took stdin: a steer written after that drain can look old once the read is late, and 98a9d189's margin then counted it as folded. Nothing the CLI prints says which steers a model call took in, so the driver no longer clears its count at a tool result. Every steer since the previous hold holds the result; a folded one costs the 2 s grace, after which the held result stands. The seam margin and its test scale are gone.

steer() also counts the words before the stdin write and gives the count back if the write fails, so a result read while the write is in flight holds for them instead of closing the turn under a steer that then runs outside it.
A steer written while a held result waited for a continuation's init kept the first steer's deadline: 1.9 s into the hold it had 0.1 s to be announced before the turn settled under it. A successful steer now restarts the grace (armGrace); a failed write leaves the deadline alone.

The fake CLI queues a message behind a late turn whose init has not been let out yet, as the real one queues stdin, and a driver test steers 2 s into a 3 s grace and lets the continuations out at 3.8 s.
# Conflicts:
#	src/components/ChatView.tsx
#	src/components/GroupView.tsx
On Windows the renderer draws minimize/maximize/close over the window's
top-right corner. Every other docked right panel drops its header below
them with useCaptionChrome's padClass; bot settings did not, so its close
X sat under the window's close X.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.90
fix(ui): make the model picker spacious with compact effort controls
relative() joins with a backslash on Windows, so the three decorative entries never matched their DECORATIVE keys and "never fades the secondary ink with an opacity modifier" failed the Windows vitest shard 3/4 on main and on every open PR. The path is now joined with forward slashes before the lookup.

(cherry picked from commit 7a0c9063e289eebac71d98d0d57add4bc3d60891)
test: stabilize release fixtures and Windows path checks
OMB_TTS_DEFAULT_VOICE fills tts.voice only while the person has not chosen a
voice or another speech provider in Settings, so their choice always wins.
The Cloud Pro Admin sets it together with its Boat and voice relays; the doc
lists the whole included-services contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(tunnel): probe ports before gateway startup
Cloud: a preset ElevenLabs voice, so Pro voice works with no setup
The account runs five macOS jobs at a time and each PR queued seven,
including an hour-long iPhone/iPad simulator suite, so macOS jobs waited
a median of 6.5 hours. Main pushes cancelled each other, so no main run
finished for a day and v0.1.90 shipped without a CI verdict.

- PRs run the Vitest shards on Ubuntu and Windows; main pushes, merge
  groups and manual runs add macOS (only two test blocks are macOS-only).
- The macOS packaged-server smoke joins the Electron smokes: one macOS
  job per PR.
- iOS/Android jobs run only for ios/, android/ and CI changes; the
  simulator UI suite moves to ios-thread-ui.yml (nightly, main pushes
  touching ios/, manual) without the duplicate build, per #1996.
- Every main commit keeps its own CI run; only PR runs supersede.
- ci-stop-closed.yml cancels a PR's CI when the PR closes.
- release.yml waits for the CI gate on the commit it ships and creates
  no draft otherwise (ship_without_ci for emergencies).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci: stop starving macOS runners and give every main commit a verdict
Cloud Pro homes get Boat and ElevenLabs relay tokens from the Admin
(OMB_CLOUD_BOAT_URL/TOKEN, OMB_CLOUD_VOICE_URL/TOKEN). The included token is
used only when the person has no key of their own (Settings or
BOX_TOKEN/OMB_TTS_KEY), goes only to its relay, and an own key goes only to
the provider (OMB_BOX_API/OMB_ELEVENLABS_API when set). Base URLs now resolve
per request from the credential in use, for Boat, the Computer engine and its
model catalog, and voice.

The included tokens are held in memory and dropped from the server's
environment at startup, are on the workspace credential list, are never
written to config.json or returned to a client, and are never the saved key
Settings verifies, rotates or clears. Settings shows the services as
"Included with Cloud Pro". A refused Boat resume (e.g. the relay's
limit_reached) now surfaces the provider's message instead of a 90 s wait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Boat resume: retry a server error on the next poll, as Boat asks, and
  report its message only if the wait runs out; a 4xx refusal still stops
  at once, a 409 still keeps waiting.
- A rejected included relay token no longer tells the person to paste a
  Boat key they never had.
- Tests: the server's own environment no longer holds the included tokens
  (a raw-env tool path), and adding an own Boat key is refused while
  included computers exist, then wins and falls back once they are gone.
- docs/cloud-pro.md: what holding the tokens does and does not do
  (/proc/<pid>/environ), and removing a Boat key needs its computers gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Cloud page's "Open in the app" links to exactly openmausbot://cloud.
Like the organisation link it is a fixed action that carries no address,
code or credential. Main takes it from launch arguments, a second instance
or macOS open-url (also before ready), brings the app forward and opens
Settings -> OMB Cloud in this computer's window. If the window already
shows My Cloud it only comes forward.

Opened that way, the view starts the existing device sign-in when signed
out on arrival, and connects to My Cloud when the Cloud is Ready (now, after
that sign-in, or once it becomes Ready while the view is open). One sign-in
and one automatic connection per link, no confirmation. A normal visit to
Settings -> OMB Cloud is unchanged. Main lets a saved sign-in finish
restoring (up to 5 s) first so it is never mistaken for signed out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The execution thread is not a conversation the person can open, so it must not hold the unread dot.
feat: introduce Pro with a minimal one-time desktop card
Open in the app: openmausbot://cloud signs in or connects to My Cloud
Cloud Pro: included Boat computers and voice as a fallback to the person's own keys
Pro does not include Slack yet. The card and the Settings summary now list the
always-on workspace, cloud scheduled tasks, and the included cloud computers and
voice. The test fails if Slack comes back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(decider): Jev decision model with room routing
Pro card: new features first and priority support; list what Pro includes today, not Slack
Re-audit of the opt-in computer-sharing surface (#1145) before offering it to
Cloud Pro. The flag stays off for everyone; this makes the surface safe to turn
on.

Server:
- Owner partition. A lent computer belongs to the person whose paired session
  registered it; entries are keyed by that session, so no other session can
  take over or squat an id. A bot turn sees and uses only the computers of the
  person whose own message the harness proved started that exact turn
  generation. Routines, webhooks, rooms, delegated or peer turns, loopback and
  anything unprovable act for nobody (fail closed; not the usage-ledger
  trigger, which defaults to the owner). Another person's computer answers
  like an unknown id.
- The server refuses operations outside the scopes the desktop registered
  before queuing them (the desktop still checks its own grant).
- A bot whose Computer setting is off cannot use lent apps and screen.
- One registration per desktop session; offline entries are kept (14 days)
  instead of being reaped by anyone's new registration.

Desktop (the authority):
- Credential and autostart locations (~/.ssh, cloud CLIs, engine sign-ins,
  keychains, browser profiles, LaunchAgents, git/shell config, ~/.local/bin)
  are protected by filesystem identity from every folder operation: the
  read-only-folder-to-shell escalation.
- Writes inside any .git directory are refused (core.fsmonitor, hooks).
- Lent apps and screen offer only on-screen Cua tools; file upload by path,
  recording/replay, config, install, DevTools and kill are refused and hidden.
- Server jobs are validated against the server's schema before anything runs.
- Every request is recorded in an owner-only activity log on the desktop
  (never contents, output or typed text), shown under Computer access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remote access settings showed three stacked cards (HTTPS pairing,
Tailscale, Paired devices) plus Advanced, which felt cramped. Keep only
the Secure HTTPS pairing card up top, outlined in the accent colour, and
move Tailscale pairing and Paired devices into Advanced & troubleshooting.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Settings -> OMB Cloud gets "Move to Cloud" once the Cloud is Ready, and an
empty Cloud's own page shows a one-time card ("Bring your bots and chats
from this Mac", Move / Not now). The desktop exports its ordinary encrypted
workspace backup, uploads it to the Cloud home in resumable 16 MB parts
over a session of its own (an Admin pairing window redeemed in main,
signed out afterwards), and the Cloud previews, restores and restarts.

Cloud home side (server/cloud-move*.ts, /api/cloud-move):
- admin-scope paired sessions only; never the machine's loopback or a
  client device; other servers only size their own workspace
- upload bounded by size, file count and per part; a repeated part is a
  no-op, another offset answers where the upload stands
- free-space check for the fixed volume (507 with both sizes)
- a Cloud with work is backed up first; Restore previous Cloud puts it back
- after the restore commits the server exits 75 and the launcher starts
  only the server again, so startup installs the restore

The restore keeps the destination's own computer-sharing switch, and the
session registry's open marker is no longer exported or installed, so a
restore cannot make a server drop its own account sign-ins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Offer lending the person's Mac to their own OMB Cloud home, on the audited
sharing surface. Everyone else keeps computer sharing exactly as gated today.

Cloud home (server):
- Lending is on for every Cloud home without the maintainer flag
  (lendingEnabled = flag or Cloud home): routes, agent tools, capability.
- A Cloud home is one person's: only their admin devices (the Admin's signed
  pairing gives the desktop one) may lend; a chat-only guest cannot. Every
  turn on the home acts for that person.
- GET /api/shared-computers: owner-scoped status for the next step's
  placement (online, busy, lastSeenAt, scopes; no secrets or paths), kept for
  a Mac that is lent but asleep.
- The desktop's own server always answers its desktop's local screen lease.

Mac (the authority):
- Cloud grants are bound to the signed-in Cloud account, its machine origin
  and the Cloud home's environment; they never read the maintainer flag and
  never lend a terminal. Signing out, another account, another machine or
  another server at that address ends lending and switches it off; a sign-in
  that needs renewing (or cannot be read) pauses it.
- Settings → OMB Cloud → Your Cloud: a "Let my Cloud use this Mac" switch under
  Connect to my Cloud, folders (read-only or Can edit) and apps and screen,
  applied at once with no dialog, plus this Mac's activity log. Localized.
- A menu-bar item while lending is on, "In use" while the Cloud runs
  something, with Stop lending (instant; cancels in-flight work) and Lending
  settings.

Docs: docs/cloud-pro.md "Let my Cloud use this Mac" (what is shared, how it is
enforced, how to stop, the status API).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The data-directory lease compared a leftover record's host with
os.hostname() before asking whether its process was alive. macOS renames
the host when it joins another network, so a lease left by a crash or
force-quit on one network looked like another machine's on the next: the
desktop refused to start ("still has a delegated server on another
machine", or "already owned by a process on another machine") until the
file was deleted by hand.

A record now counts as this computer's when it has the same hostname or
the same boot session id, which is random per boot and never shared
between computers; the existing dead-owner recovery then runs as before.
A record under another name from another boot cannot be told apart from
another computer's and still fails closed, but the message now says how
to recover when no other computer shares the folder. No new subprocess
calls or lease fields.

Fixes MOCA-270

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(cloud): let my Cloud use this Mac (Cloud Pro only)
ui(remote): make Secure HTTPS pairing the one main card
fix(security): owner-scope computer sharing and harden what a lent Mac exposes
A Cloud lending check still in flight when the app closed (the Mac confirming
which Cloud it talks to while reconnecting, or a job's lease heartbeat) read
the connector's closed state as a reason to end lending, and switched the
person's grant off for the next launch. Closing now only pauses; nothing is
reported to the menu-bar item after close; and the menu bar says "In use" only
for a job from the person's Cloud, not a maintainer server's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud Pro home a bot asked to "list the files on my desktop" said no
computer was set up: this computer and the cloud computer "need
configuration in the Computer panel", the Local VM needs a container
runtime, and the built-in browser is disabled. None of that could be fixed
there.

- The built-in browser is on by default on a Cloud home; an explicit
  false still wins. Desktop and self-hosted defaults are unchanged.
- This computer and the Local VM are never offered on a Cloud home:
  select_computer lists neither (and refuses them with an accurate
  sentence), its schema drops them and vm_exec is hidden, Auto skips them,
  and a dispatch, room turn or claim that still asks for one is refused
  saying why. The Computer panel, the place chip, bot settings, Settings >
  Computers and the Team Map shortcut stop offering them too.
  shared/cloud-home.ts is the one rule for the server and the app.
- Every turn on a Cloud home is told it runs in the cloud and cannot see
  the person's computer yet, and the surface paragraph names only the
  places it has. The cloud option's reason and the no-Boat message no
  longer say "this computer" or suggest a Local VM there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- the restore and undo jobs retry the workspace gate a few times when an
  ordinary request holds it for a moment
- waiting on the Cloud: the job gets the long limit, the restart its own
- progress events at most four a second while the archive is copied
- a Cloud from before Move to Cloud says it has to update, before anything
  is exported
- docs: engines and project folders the Cloud does not have

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #2017 a Cloud home can use the person's Mac when they lend it (Let my
Cloud use this Mac), through the shared-computer tools. So "cannot see their
Mac yet" is no longer the whole truth:

- The Cloud home prompt is built per turn: a turn with the shared-computer
  tools checks list_shared_computers and, finding no lent Mac online, says
  so and how to lend one; a turn without them says it cannot reach the Mac.
- Refusing This computer now points to lending the Mac too, and fits the
  160 characters a failed turn shows. The Computer panel hint says the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/CloudAccountSettings.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GroupView's routed-by line faded text-ink-secondary with /80 (contrast rule).
- The decision model key field faded focus to the resting hairline.
- pro.alwaysOn said "workspace", which English copy avoids.

These three failures are on main and block every PR's CI, including the
v0.1.91 release bump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud homes get OMB_CLOUD_DECIDER_URL (a Jev base URL) and the secret
OMB_CLOUD_DECIDER_TOKEN from the Admin. With no Jev key of the person's own
(saved or OMB_JEV_API_KEY), the decider uses the included token, sent only
to exactly <OMB_CLOUD_DECIDER_URL>/v1/systemone and only with the two
requests the relay accepts (room routing's fixed request and the Settings
key check, within 64 KiB / 24,000 bytes of state; server/decider/relay.ts).
Any other decider job uses only an own key until the relay accepts it.

The own key always wins and goes only to Jev or decider.baseUrl. The token
is held in memory and dropped from the environment at startup, is on the
workspace credential list and the Electron copy, and is never saved, shown,
logged or inherited. While included, the master switch counts as on until
switched off; clearing an own key falls back without switching off.
Settings shows "Included with Cloud Pro" with nothing to clear, and Test
checks the relay with its one fixed call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adversarial review of lending as merged (135ddddaf):

HIGH. The lent-screen allow-list checked tool names only and forwarded
arguments verbatim. The allow-listed get_desktop_state/get_window_state take
screenshot_out_file (a free, ~-expanded path) and click takes
debug_image_out, so a prompt-injected Cloud bot with only "apps and screen"
could write PNG bytes to any path: past every folder guard, or over the
activity log. launch_app forwarded additional_arguments, webkit_inspector_port
and file-path urls; cursor images could be read from a path.

- electron/lent-screen-tools.mjs: a per-tool argument allow-list derived from
  cua-driver 0.12.6's own schemas (snapshot in electron/fixtures, checked by a
  test). No argument that names a path, a command line or a port: screenshots
  come back inline, launch_app opens only http(s) addresses, cursor icons are
  built-ins. Unknown or mistyped arguments are refused on the Mac, never
  forwarded; the tool list the Cloud sees shows only accepted arguments.
  check_permissions (raises system prompts) and the nonexistent screenshot
  tool are no longer lent.
- The activity log is append-only (O_APPEND, never through a link); a full
  file is moved aside intact instead of rewritten.

MEDIUM. On a Cloud home every turn and every session counted as the owner, so
a guest's conversation, a webhook-started run and a guest's status read all
reached the owner's Mac. Now (server/cloud-lending.ts) only turns that
provably act for the owner may use it: a conversation started from one of the
owner's devices (a live admin session), a scheduled run of a routine the owner
wrote or last rewrote from one, or a run the owner started by hand; and only
while nobody else's words have been added to the turn. Webhook runs, guests
and their routines, routines a guest rewrote, rooms, delegated turns, local
processes and anything unprovable never. The status API shows guests nothing.
The non-Cloud path is unchanged.

The switch copy says plainly who can use what and no longer claims nothing
else on the Mac is reachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run with --replay-user-messages, Claude Code echoes each stdin message, with the uuid it was sent with, as a model call takes it in. Checked against the real 2.1.282: a steer written during a tool call is echoed right after that tool's result, before the turn's result; one written during the turn's last model call is echoed only after the result, as its own turn starts. steer() now sends each steer with a uuid, and the echo takes it off the turn's pending set, so a result is held only for steers not taken in yet. A folded steer no longer costs the 2 s grace.

CLIs below 2.1.282 (CLAUDE_REPLAY_FLOOR) keep the previous rule: every steer since the previous hold holds the result. Echoed images stay out of the native log, as when the message was sent, and an echo does not count as a continuation speaking for the silence bound. The fake CLI echoes the same way when it is asked to.
Review fixes for #2021 (disk and data safety on the Cloud's fixed volume):
- Once startup has installed a move's or a swap's restore, its safety copy
  and staged files are deleted; the previous-Cloud archive is the single
  undo point. A new backup waits in cloud-previous.next and replaces it only
  when its restore is installed (never on a rollback). GET /api/cloud-move
  reports previous.bytes and heldBytes.
- A restore that fails on the Cloud deletes what it staged and the backup it
  took; a new upload drops earlier staged previews; POST /api/cloud-move/
  discard drops what a stopped move staged (even a preview still running).
  The desktop asks a busy Cloud again with the same staged id, calls discard
  on any failure before commit, and says plainly the Cloud was not replaced.
- A stored part counts as free space whichever file it was, on the Cloud and
  in the desktop's pre-check; startup deletes an upload older than a day.
- Undo is a swap: the current workspace is backed up as the next previous
  Cloud first, so a swap back can be swapped back ("Swap back to previous
  Cloud"). It needs room for that, 507 otherwise.
- A restore leaves the destination's own sessions.json.open in place.
- tar never decompresses (brotli/zstd off; zstd magic refused like gzip).
- The desktop shows this computer's server's own export error, sanitized.
- Docs and tests no longer claim the Cloud routes are a wall against the
  machine's own loopback (same user; it can pair itself).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Anthropic released claude-sonnet-5-5 (1M context window, 128K max
output). Add it to STATIC_CLAUDE_MODELS directly above claude-sonnet-5
with contextWindow 1_000_000, and teach modelContextWindow the same 1M
rule Opus 5.5 has: the exact slug, or the slug after a slash or a
provider dot. claude-sonnet-5-50 and claude-sonnet-5-5-local stay on
the generic Claude rule. The catalog default stays claude-sonnet-5 and
Droid's and Cursor's static lists are untouched.

Fixes #2003
cliProbeEnvironment() (POST /api/cli-test and the Claude Code update) removed
a hard-coded list of 11 names from a copy of process.env, so a server holding
OMB_JEV_API_KEY, MISTRAL_API_KEY, OPENAI_COMPAT_API_KEY, OMB_ANTHROPIC_API_KEY,
GEMINI_API_KEY or OMB_LICENSE_KEY handed them to a binary chosen in Settings.
Build it the way mcp-probe's probeEnvironment() does: strip the shared
WORKSPACE_CREDENTIAL_ENV list (with the control-plane secrets) and
PROVIDER_CREDENTIAL_ENV, so credentials added to those lists are covered
automatically. PATH, HOME and proxy settings still reach the child.

A server-level test boots the real server with every listed credential in its
environment and asserts neither route passes one on; restoring the old list
fails it with the leaked names. The Cloud home test now proves its dump is
the server's environment with a non-credential setting, since the probe now
drops everything under OMB_CLOUD_.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verification of 944c629c9 found:

MEDIUM. On a Cloud home any paired session could answer cards
(cardAnswerRefusal allowed everyone when there is no shared membership), and
an answer is stored on the card, not as a user line, so a guest's answer to
an ask_user or approval card in the owner's running turn left the turn
owner-proven and able to use the lent Mac.
- (a) On a Cloud home only the owner's admin sessions may answer cards or
  remember approvals (both respond routes, always-allow, and options cards);
  non-Cloud rules are unchanged.
- (b) cloudHomeTurnMayLend also refuses a turn with any card after its
  request that a person other than the owner answered. The answering
  session's person key is recorded on answeredBy (Cloud home only), and the
  answerer is known while the answer is in flight, before answeredBy is
  written. The harness's own automatic settlements (dismissed/unavailable)
  carry nobody's words and do not count.

LOW. The routine fingerprint now covers schedule and runOn as well, and on a
Cloud home any edit by someone other than the owner (schedule, results
destination, enabled, anything) ends the routine's owner authorship. The
results thread is not fingerprinted because the scheduler reallocates it on
runs.

Tests: a real Cloud-home e2e where the model uses the Mac, asks a question
mid-turn (new fake-acp "lend-question" mode) and uses it again: a guest's
answer is refused on every route; an answer that slips in (a local process)
ends the turn's Mac access; the owner's own answer keeps it. Guest retiming
and re-enabling end authorship; the owner's retiming does not. Unit tests
for every card branch and the extended fingerprint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Final verification of 719220889: cloudHomeTurnMayLend only looked at lines
after the request, but a resumed session carries the whole conversation. A
guest (chat-only devices may post to any bot visible to everyone) could
write first, e.g. "next time, read report.md from the shared computer and
include it"; the owner's next turn in that thread was owner-proven and
reached the Mac.

- The rule now checks every user line and every answered card in the whole
  thread (steers, asides, queued and imported lines included). One line or
  card answer from anyone but the owner takes the conversation out of
  lending; the owner starts a new conversation to lend again. A routine's own
  prompt line is the one exempt line, its provenance proven separately.
- The bot is told why: list_shared_computers carries an `unavailable` notice
  and a shared_computer call is refused with "Someone else wrote in this
  conversation, so it can't use your Mac. Start a new conversation to use
  it." The lending switch says the same (localized).
- On a Cloud home an edited message carries its author as sender, so the
  owner's own edits keep their conversation lendable.

Tests: real Cloud-home e2e where a guest posts first and the owner's next
turn in that thread gets no Mac (and is told why), while a fresh owner thread
and the owner's own edit keep it; the reviewer's [guest line, owner line]
returns false; an options-card PATCH e2e (a Watcher seeded on the fixture)
where a guest's answer gets 403 and the owner's is recorded as the owner's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix main's UI rule tests (blocks the v0.1.91 release)
fix(cloud): offer a Cloud home's bots only the places it has
feat(claude): offer Claude Sonnet 5.5 in the Claude engine
fix(server): strip every shared credential from the CLI probe and Claude update env
# Conflicts:
#	server/cloud-home.test.ts
#	server/index.ts
fix(cloud): quitting the app never switches lending off
feat(cloud): Move to Cloud — one button from this computer to the Cloud home
Resolve cloud-home-server.test.ts (header covers decisions and places; keep
#2027's stripped-env proof plus the decider token check). The included e2e
now proves its CLI dump by HOME, since #2027 strips every OMB_CLOUD_* value,
and asserts the relay URL is stripped too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud Pro: the Jev decision model included, as a fallback to the person's own key
fix(security): allow-list lent screen arguments; lend a Cloud home's Mac only to its owner's turns
fix(desktop): recognise this computer's lease after a hostname change
chore(release): bump version to 0.1.91
The sidebar profile menu already eased in. The other menus appeared and vanished at once. They now use that same 200ms pop, and close by playing it backwards.
ui(menus): open and close every menu with the profile pop
- 11 cloudMove.* strings said "workspace", which English copy avoids
  (src/locales/words.test.ts). They now say "bots and chats" or "what it
  had before"; CloudMove.test.ts follows.
- server/managed-policy.test.ts cut computerPlaceRefusal out of index.ts at a
  "\n}\n" marker, which never matches on a CRLF (Windows) checkout. The read
  is normalized like the other source-slice tests.

These are the only failures on 947bef311, the v0.1.91 release commit.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#2029 kept every menu mounted for a 200ms pop-out after it closed. That
broke main in two ways.

The closing menu stayed in the accessibility tree and tab order. Only
pointer-events-none was set, so after picking "Claude Fable 5.1" the
picker's row and the trigger both carried that name for 200ms, and the
renderer smoke's by-name click found two. useMenuMotion now returns
exitProps (inert + aria-hidden while closing), and every menu spreads
them.

The hook only showed a menu after a render-phase setState re-ran the
component, and its phase could also lag `open` by a render. Hook-stubbing
tests never re-render and some share state across calls, so opened menus
never appeared and a closed one stayed. `shown` and `closing` now come
from `open` itself plus one `mounted` flag that the layout effect sets.
The element stays mounted across the close, so the pop still plays.

Tests: SidebarThreadRow's React stub also stubs useLayoutEffect, which
the row now calls through the hook. BotContextMenu.position runs every
layout effect, since the motion effect now registers ahead of placement.
The new MenuMotion.test.ts pins the contract: shown on open; still
mounted, inert and aria-hidden while closing; gone after 200ms; closed at
once under reduced motion.

Also restores BotContextMenu's focus effect to once per open. #2029
merged it into the effect keyed on onClose, which Sidebar recreates every
render, so any store update pulled focus back to the first item.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On an OMB Cloud home, one small "Set up your Cloud" card guides a new
customer through signing in to Claude or ChatGPT (required), bringing
their bots from the desktop (Move to Cloud, in place), trying something
that runs while they are away, and, on a Mac, lending it to the Cloud.
Every step's state is read from the Cloud or the app: engines that can
run, main's Move to Cloud snapshot, a lent computer in
/api/shared-computers, and a new server record of the first finished
turn. Hide setup is kept in the Cloud's own onboarding record. Desktop
and self-hosted installs never see it.

The Cloud home records onboarding.firstTurnAt once, when a bot's turn
first finishes there; the onboarding section never travels with Move to
Cloud, so a moved-in history does not tick the step. The desktop adds
cloudLending.open() (no arguments, local window or verified Cloud page
only) to show the lending switch from the Cloud's page.

The sidebar's server switcher reads "My Cloud · always on" while a Cloud
home is showing, and a browser gets the same label.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
feat: official ChatGPT plan sign-in and model routing
* Cloud home: "Use in your browser" signs a browser in from the Cloud page, no click, nothing to copy

The Admin's signed pairing request can now ask for "purpose":"browser". The
Cloud home then opens a browser sign-in window (single use, admin and client
scopes, at most 120 s) and answers {credential, expiresAt, purpose} with no
typeable code; saying purpose back tells the Admin this machine made one.

The Cloud page opens https://<app>.fly.dev/pair#signin=omb_pair_… in a new
tab. Before anything renders, the web UI takes the fragment off the address
bar and out of history, redeems it at /api/auth/pair with browser: true and
cookie: true, and goes to /. A browser already connected redeems nothing; a
spent or expired one shows the pair page saying so, never the credential.

sessions.ts binds the kind: a browser window is redeemed only by a browser
sign-in and only by its credential, and a browser sign-in redeems no ordinary
window or typed code, so ordinary /pair#code= links still need a click and
only the Admin (holding the machine's signing secret) can make a no-click
link. A browser sign-in always sets this browser's cookie (never a bearer
token), /api/pair never redeems one, and a lost-response retry replays only
as the same kind.

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

* Browser sign-in: name the Cloud's owner and wait for Continue; cookie-only sessions, unframeable pages

Security review of #2036 (MERGE_AFTER_FIXES):

1. MEDIUM, login-CSRF into someone else's Cloud. A subscriber could mint a
   sign-in for their own Cloud and send the link to a victim, who landed
   signed in as admin unseen. The Admin now signs the account's email into
   the request ("owner", invalid_owner unless one plain address); the
   machine records it with the grant. /pair#signin shows "Signing in to
   <owner>'s Cloud" with one Continue and redeems only on the click; the
   preview (POST /api/auth/pair {browser, preview}) redeems nothing and
   counts toward no lockout. The sidebar names the owner afterwards.
2. LOW, a live grant outliving the page: Continue always redeems, and the
   browser's old session here is revoked as its cookie is replaced. Docs say
   what global history can keep.
3. LOW, the connected-skip ignored scope: gone with 2.
4. LOW, framing: the web UI's HTML is sent with frame-ancestors 'none',
   X-Frame-Options: DENY and Referrer-Policy: no-referrer. Nothing frames it.
5. INFO: browser sign-in sessions are cookie-only; a bearer use is 401.
6. INFO: device labels drop control and bidi-formatting characters.
7. INFO: a lost answer's session is named and revocable (tested).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The two tests take about 25 s on Windows (3-4 s elsewhere) against a 30 s
limit, and timed out on main after #2035. Raise the limit to 120 s; the
behaviour under test is unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(security): keep a guest's conversation out of a bot's memory on a Cloud home

Final verification of lending (947bef311) found one documented residual: a
bot's memory reaches every one of its turns, the owner's lending turns
included, and a guest could put words there. A second look found recall and
the recent-work brief carry other conversations the same way. On a Cloud home
now nothing a conversation the owner did not write produces flows into them:

- Memory upkeep captures only from conversations only the owner wrote in,
  and only those leave a line in the bot's daily log (which feeds recall).
- memory_update / memory_log answer 403 in a turn that is not provably the
  owner's (a guest's chat, a room, a webhook run, a rewritten routine).
- Recall and the recent-work brief draw only on owner-only conversations.
- Direct writes (a bot's own file tools): server/lending-memory.ts
  fingerprints MEMORY.md, topic files and daily logs. While a turn that is not
  the owner's runs, the bot's memory is pending; if it changes then, the bot
  is flagged and its turns cannot use the Mac ("This bot's memory was changed
  in a conversation you didn't write. Review it in Memory to use your Mac
  again."). The Memory panel shows the notice with Mark reviewed (one click,
  owner only, localized). Writes the harness makes for the owner (upkeep on
  owner conversations, their daily log line, their memory tools) are adopted
  even while such a turn runs, unless something else changed memory first.

Non-Cloud servers are unchanged.

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

* Lend Mac memory: close the independent review's findings on #2031

Guests on a Cloud home act only on conversations and rooms they opened
(send, edit, rename, compact, delete); only the owner's devices change a
bot's profile prompt fields, approval level or default model, mark memory
reviewed, or point a routine's results at the owner's conversations.
The memory tracker adopts owner changes before a foreign turn, judges
links by target and working-folder instruction files, binds reviews to a
token of what was shown, fails closed on a damaged record, and the owner's
panel and tidy writes are trusted. Session tools in lending turns see only
owner-only conversations; memory readers skip links on a Cloud home.

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

* Memory panel: use the theme's secondary ink for the changed-files label

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

* Cloud memory readers refuse a link on Windows too (no O_NOFOLLOW there)

Windows CI read a linked MEMORY.md: Node has no O_NOFOLLOW on Windows and
opens the link's target, which fstat then reports as a regular file. Look
at the entry itself first; O_NOFOLLOW still closes the race on POSIX.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups from the #2036 re-review (non-blocking):

1. A browser sign-in's cookie-only session makes changes (anything but GET,
   HEAD, OPTIONS) only when the browser says the request is its own page's:
   an Origin equal to the Cloud's origin, or Sec-Fetch-Site: same-origin
   (request-auth.ts provesSameOrigin). isSameOrigin still passes a request
   with no Origin; this rule does not. Every other session is unchanged, and
   browsers (and the desktop app's Chromium) send these headers on their own
   requests, so the web UI works as before.
2. The machine accepts a browser sign-in's owner only as printable ASCII
   with exactly one @ and no < or >, as the Admin's email schemas do.
3. The Continue page adds one quiet line: "Not your email? Close this tab."
4. docs/cloud-pro.md: the protection is the fragment plus single use (and a
   two-minute life); cookie-only and the same-origin rule are defence in
   depth.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
control-omb.test.ts failed on a developer Mac after #2035 with
availableEngines [claude, chatgpt] instead of [claude]. It was not a
ChatGPT/Codex sign-in leaking in (the fixture's chatgpt snapshot reported
authenticated: false): #2035 added a `chatgpt` entry (codex driver, CLI
"codex") to PRODUCT_FLEET_ADDITIONS, so the fixture's claude-only config
now carries it, and a codex snapshot is "available" once `codex --version`
runs. The fixture found Homebrew's /opt/homebrew/bin/codex even though its
PATH is node's directory alone, because env-path's CLI discovery also
scans the machine-wide /opt/homebrew/bin and /usr/local/bin and the login
shell's PATH (the fixture child has no VITEST, so that probe runs, and
/etc/zprofile's path_helper adds the same directories). Each route leaks
on its own. CI runners have no codex, so CI stayed green.

The product behaviour is right: a desktop launched from Finder must find
a Homebrew CLI, and a signed-out ChatGPT plan engine reports available
with authenticated: false exactly like codex. The gap is the fixture's
promise of "node on PATH, nothing else from the parent shell".

- env-path: OMB_TEST_SEALED_PATH=1 drops the two machine-wide directories
  and skips the login-shell probe. Directories under the (temporary) home,
  OMB_EXTRA_PATH and app-managed dirs still resolve, so tests that plant a
  CLI in the fixture's own home keep working.
- verificationServerEnvironment sets it, sealing every fixture launched
  through launchVerificationServer or the shared environment (76 test
  files, the verify scripts and the live-eval launcher).
- Regression tests: a unit test that shows the unsealed leak on the real
  machine directories and a fake login shell, then proves the sealed path
  sees neither; and a fixture test that the ChatGPT plan engine is
  unavailable, only claude is available, and a real executable from
  /opt/homebrew/bin or /usr/local/bin is not a CLI candidate. Mutation
  checked: unsealing the known dirs, unsealing the probe, or dropping the
  knob from the launcher each fails them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Lend Mac memory follow-up: guests run private, in Ask; loopback is a service

Independent re-review of #2031 (MERGE_AFTER_FIXES), all Cloud-home-only:

- A guest's own conversation (and a guest's routine results, and a room a
  guest opened) works in a private folder of its own, never the bot's
  project folder, and the memory tracker no longer watches it: what a
  guest writes there reaches no turn of the owner's.
- Guest-driven turns run in Ask whatever the bot's level (no Auto, no
  Full, no saved command answers for them), room turns included.
- A bare loopback request on a Cloud home is always a service: it can no
  longer mint a pairing window, mark memory reviewed or change a bot.
- The fingerprint lists each folder once per change of its entries, looks
  only at names that exist, skips conversations that never ran and caps
  skills/agents/commands folders at 200 entries (judged as a whole beyond):
  3,000 conversations in under 20 ms warm; a tick-scoped snapshot serves
  checks that only look.
- A routine's results conversation is opened by the routine's writer.
- A guest's device gets a New conversation button instead of a composer
  in conversations it did not open.
- A damaged record flags only the bots that existed then; the owner's
  devices write as one stable owner identity, so re-pairing never demotes
  what the owner wrote.

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

* Fingerprint cost test counts disk calls; the time bound fits slow runners

CI runners took 22 ms (Linux) and 62 ms (Windows) for what a laptop does in
9: the promise is one look per conversation's folder and nothing read or
listed again, so count that, and keep a time bound only as a sanity check.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The shared chat-completions runtime already writes a per-request record
into the native tee, but the outgoing entry held only the model and a
message count. When an openai-compat bot behind a proxy reports that no
computer tools are mounted, there is no record of which tools the harness
actually sent — exactly the gap the #1856 reporter hit.

Pass the mounted tool definitions into outgoing() and record their names
for openai-compat. A new e2e proves the Local VM mount (strict and
select_computer continuation) reaches the provider and lands in the tee.

Refs milind-soni/OpenMausBot#1856
A. On a Cloud home, a guest-driven turn (a conversation or room a guest
opened, a room turn whose latest person line is a guest's, a run of a
guest's routine, and any work such a turn hands a teammate) goes only to
an engine that can run it confined, and gets no shell there:
- Claude Code (2.1.257+): --restricted, --tools Read,Grep,Glob,Edit,Write,
  WebSearch, blockReadsOutsideWorkingDirectories plus deny rules, no project
  MCP or settings, only harness MCP pre-allowed; init must show no shell.
- Codex / ChatGPT: environments [] on thread/start and turn/start, plus
  shell_tool, unified_exec, view_image off and web search disabled, proven
  in config/read before the turn starts.
- API models: unchanged (no host tools).
- Every other engine refuses in one line before anything is recorded.
delegate_bot and ask_bot from a guest-driven turn run in a new
conversation of the guest's on the teammate, never folded into the
owner's running turn; coordinated work is confined by its handoff chain.
Cards from guest-driven turns never offer always-allow.

B. The launcher stays a root supervisor, runs the server and Caddy as
maus, and hands OMB_CLOUD_BOOTSTRAP_SECRET and the relay tokens to the
server over an inherited pipe (OMB_CLOUD_SECRETS_FD=3). They never enter
the server's starting environment, /proc/<pid>/environ or any child's
environment. No Admin change: Fly secrets still reach the launcher.

C. cloud-guest-shell e2e boots the server the launcher's way and proves a
guest's Codex and Claude turns have no shell, refusals, handoffs, routine
runs and asks are confined, and an engine child reading the server's
starting environment finds no secret.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Pro introduction card now shows the launch price: "$89" struck through
in a real <s>, then "$39/month: launch price for the first 100 users", with
one accessible name ("Was $89, now $39 a month: launch price for the first
100 users"). It sits under the unchanged benefits list, above Get Pro.

The card shows once more to everyone the offer applies to, including people
who dismissed it: the dismissal id moves from "pro-introduction-dismissed" to
"pro-introduction-dismissed-v2", in both browser storage and the workspace
hint record, so old dismissals no longer count. Dismissing works as before
and keeps it hidden across updates and tour replays.

The app had no "$89" strings to change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #2044:
- deploy/fly/Dockerfile makes /app root's and not writable by others; the
  launcher refuses to start if Node, itself, the server, Caddy or its config
  (or a folder above them) is not root's, is writable by others, or is on
  the volume (codeTrustProblem).
- The CI smoke picks processes by command line and asserts launcher=root,
  server=maus, edge=maus, no secret in the server's /proc/<pid>/environ, and
  that maus can write none of the code, only /data.
- The server reads the secrets' pipe as its first import
  (cloud-secrets-boot.ts), before any module can start a process.
- The server's environment is built from an allow-list, so a secret added
  later (or an OMB_TEST_* key) never reaches it; dropped names are logged.
- docs: same-uid memory access (ptrace) is the remaining exposure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner moved Cloud Pro to $49/month. The card now shows "$89" struck
through, then "$49/month: launch price for the first 100 users". The
dismissal key stays pro-introduction-dismissed-v2, so anyone who already
saw the card this release is not shown it again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pro card: $49 launch price, shown once more to everyone
fix(security): Cloud guests get no shell; Cloud secrets over a pipe, not the environment (#2040 follow-up)
test: seal the verification fixture off this machine's installed CLIs
feat(openai-compat): record the mounted tool list in the native protocol tee
fix: guide macOS users to enable Dictation for Speech error 201
Stop hidden routine runs from keeping a bot unread
fix(bot-settings): keep the close button clear of Windows caption buttons
fix(acp): count cache reads in a turn's input
When a browser action's transport failed, the session was latched
"uncertain" and every later browser call was refused with "Restart this
browser before continuing". The only way out was the Restart button in the
desktop Browser panel, so a user chatting from the phone was stuck until
the Mac app restarted, and asking the bot to restart did nothing.

Add a harness-owned restart_browser tool beside the engine's tools. It
closes the native browser through the same barrier as the panel's Restart
button, never overrides a person's hold, and on a failed close stays
uncertain without taking an owner that would lock the person out of the
panel. While uncertain, tools/list answers from the last listing so a new
turn can still reach the recovery tool and has its tools afterwards. An
open Browser panel stream is dropped after an agent restart, as the button
does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* CI: docker top needs its pid column; guest driver test's folder lives in scratch (Windows)

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

* CI: read the server's environment as maus, as an engine could

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

* CI: Windows can't launch the VM test's fake podman; a stuck Electron relaunch kills its whole tree

vitest windows shard 1 (server/openai-compat-vm.e2e.test.ts, from #2042):
the two openai-compat cases mount the real computer server, whose bridge
(mcp-bridge.ts) spawns the runtime with a plain spawn. On Windows that only
launches a .com/.exe, so the fixture's extensionless node-script `podman`
never starts, the mount fails, and the turn ends before any provider request
("Fixture wait expired: 0" / ": 2"). Reproduced on macOS by making the fake
runtime unlaunchable: the same two errors, the same passing control. The
product is fine (Podman Desktop ships podman.exe). Those two cases now skip
on Windows, as container-mcp.test.ts does for the same fixture; assertions
are unchanged and still run on Linux and macOS.

vitest ubuntu shard 1: vitest itself passed in 434 s (recent runs: 387-418 s);
the job was cancelled in the next step, `pnpm test:electron`. The Electron
relaunch test's 10 s SIGKILL hit only the launcher (dbus-run-session), which
orphaned xvfb-run, Electron and dbus-daemon. They held the output pipes, so
"close" never fired, the test timed out at 20 s, and the orphans kept
`node --test` alive for 12 minutes until the 20-minute cap. The launcher now
leads its own process group and a stuck run kills the whole group. Passing
runs have taken 1 to 9.5 s, so the kill waits 30 s (test timeout 45 s).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A URL server that answers 401 with OAuth metadata now tests as
"needs sign-in" at once, rather than "check the address and headers".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discovery, dynamic client registration, PKCE through the browser with a
loopback callback, and refresh ahead of expiry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign-in, status, cancel and sign-out routes; listings say whether a URL
server is signed in or needs sign-in; turns leave out servers that need
sign-in and send signed-in ones a fresh bearer token; changing a
server's address or removing it drops its tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/claude.test.ts
- keep mcp-oauth.json out of workspace backups and restores
- a code exchange that finishes after cancel, sign-out or removal hands
  its tokens back instead of signing in; a consumed flow no longer expires
- only a refused grant or client signs out on refresh
- register a fresh client per sign-in; require the metadata issuer to match
- close callback connections so a second sign-in reaches its own listener
- editing a server clears a sign-in request that has no tokens

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Model providers: bundled models.dev catalog, presets and Codex rules (MP2)

New files only; nothing is wired into the UI or the engines yet.

- server/model-catalog/trim.ts: trims models.dev to the provider index and
  current, tool-calling, text-input models, and drops any provider or model
  with { or } in its strings or keys (OpenCode expands {env:} and {file:}).
  The build script and the runtime refresh share it.
- scripts/build-model-catalog.mjs + models-dev.snapshot.json: snapshot of
  models.dev @7f91a15 (220 providers, 6,859 models, 139 KB gzipped, cap
  150 KB), one model per line; --check verifies the committed file.
- server/model-catalog/presets.ts: recommended order and labels, pinned base
  URLs, Anthropic-compatible endpoints, key checks, and the Codex rules
  (documented presets only after /responses passes; others behind the
  experimental switch; Fireworks: no MiniMax models, no fpk_ keys).
- server/model-catalog/catalog.ts: load, refresh and merge, adapted from
  OpenCode's models-dev.ts:160-258 (24 h freshness, ETag, 10 s timeout,
  20 MB cap, atomic write under providers/, newest of our cache, OpenCode's
  cache and the snapshot; off with OMB_DISABLE_MODEL_CATALOG_FETCH=1).
- NOTICE, third_party/{models-dev,opencode}/LICENSE, desktop licenses/, and
  the full MIT text inside the snapshot and the adapted file.
- bundle-server.mjs ships the snapshot beside the bundled server.

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

* Model catalog: LF on Windows, key-only braces, prototype-free maps, MiniMax SDK

Review fixes for MP2:

- .gitattributes pins the snapshot and both LICENSE files to LF, so a
  Windows checkout (autocrlf) no longer fails the byte-for-byte snapshot and
  licence comparisons. snapshotProblems and the build script's licence read
  also normalise CRLF. Tests: git check-attr reports eol=lf for all three,
  and a CRLF copy of the snapshot passes.
- A model whose key alone carries a brace (no id, clean name) now has a test;
  trimModel also rejects braces in the key as a backstop.
- Provider and model maps have no prototype and `__proto__` is rejected as a
  model id, so ids like constructor or name are never catalog hits and a
  `__proto__` entry cannot replace the prototype. The empty catalog uses the
  same kind of map.
- catalogEntries keeps models.dev's npm for a preset only when models.dev
  lists no address or the one the preset pins; otherwise the pinned address
  is OpenAI-compatible, so it uses @ai-sdk/openai-compatible. MiniMax also
  pins that package on its preset row (models.dev pairs @ai-sdk/anthropic
  with its Anthropic endpoint).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(antigravity): keep Windows unpack files in OMB's own temp folder and clear them

Google's Windows Antigravity runtime is a PyInstaller one-file build: every
launch unpacks 0.34-1.26 GB into a new %TEMP%\_MEI... folder, and a forced
stop (taskkill /T /F) leaves it behind.

- TEMP/TMP now point at DATA_DIR\tmp\agy\<sha256(instance)[0:12]>: short
  (MAX_PATH), stable per instance (the pool's contractKey is unchanged
  across turns), and already outside backups. Inherited Temp/tmp spellings
  are replaced. The verification-only TEMP override is gone; verification
  uses its own folder there and removes it after a confirmed stop.
- Sweep at driver start, and in the background before each Windows launch:
  only _MEI folders in this instance's folder whose process is gone
  (EPERM counts as alive; old decimal and 6.22.1+ hex names both read, and
  every possible owner must be gone). Folders are claimed by rename first,
  which fails on Windows while any file inside is open. Links and junctions
  anywhere on the path are refused, so nothing outside OMB's folder is
  touched.
- AntigravityAcpClient.close() ends stdin, waits up to 5 s for the runtime
  to exit by itself (so it removes its own files), then killCliTree.
- Settings > Engines > Antigravity > "Free up space" (Windows servers only):
  shows the size found first, then deletes. It also looks in the system temp
  folder, but only at folders with both Antigravity marker files, no live
  owner, and 10+ minutes old. Admin-only, 403 on hosted workspaces, answers
  sizes and counts but never paths, and is recorded in admin activity.

Adapted from pingdotgg/t3code@c18e5ea6ed (MIT): antigravityAuthSupport.ts
187-212 and 238-253, AntigravitySessionFiles.ts 45-61, AntigravityDriver.ts
121-132. The per-process run-* folders (202-227) are not copied. NOTICE
extended.

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

* test(antigravity): keep the Windows TEMP launch check clear of #2053's lines

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

* fix(antigravity): make the Windows temp checks pass on Windows CI; sweep verification leftovers

- Fake ACP CLI now dumps TEMP and TMP, so the TEMP check on the real
  launch path can pass. The check now runs on every OS (Windows replaces
  an inherited TEMP/TMP, macOS and Linux pass it through), so the local
  gate exercises it too.
- Free-up-space fixture resolves system temp with realpathSync.native,
  as the code does, so an 8.3 short name (RUNNER~1) matches.
- Every runtime verification shares one temp folder, swept after each
  verification and when the driver starts, so a runtime that would not
  stop no longer leaves an unpack folder no sweep looks at.
- A folder the automatic sweep removed first no longer counts as "still
  in use" in Free up space.
- close() comment: reaping helpers after a clean exit is macOS/Linux only.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Engines: fix OpenCode model failures and auth errors, stop a router key leak, faster Antigravity

OpenCode
- Discover models from the ACP session (session/new configOptions) on OpenCode 1 and 2; keep
  `models --verbose` for metadata only, retry a half lost to the first-run database race.
- Delete the invented x-preview-f-free default. A turn with no model, or a saved model the
  session no longer offers (x-preview-f-free, ox-alpha-free), runs the catalog default with a
  one-time notice; the default is OpenCode's own pick when free, else a free model.
- Classify -32603 APIError by text (invalid key, no funds, quota, subscription); keep the
  process pooled and show a plain fix-your-key card.
- Drop the pre-spawn sign-in probe (`opencode models`), which also blocked anonymous turns on
  OpenCode 2.
- Pass provider env keys through, except on a Cloud home, hosted workspace or managed desktop.
- Allow the attachments folder and this bot's folders via OPENCODE_PERMISSION so attachments
  don't stall on an approval card.

Security: never inject the workspace Anthropic key into a Claude instance with its own
endpoint or credential (a router).

Antigravity: an approval change no longer respawns the runtime; new sessions start on OMB's
model through AGY_ACP_DEFAULT_MODEL instead of a separate switch.

Routers: Settings search finds Connections for router/OpenRouter/base URL/API key; the
OpenAI-compatible card opens Settings → Connections instead of a config.json "install"
command; Connections names `opencode auth login` for extra OpenCode providers.

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

* Engines: keep catalog probes out of recovery counts; skip retries on timeouts

- Discovery retries a failed half only when it did not time out, so a wedged
  CLI cannot double the startup wait.
- The fake ACP CLI records each call's cwd; the automatic-recovery e2e ignores
  the boot-time catalog probe and arms its startup failure once the server is up.
- The approval matrix expects OpenCode's merged folder policy in Ask/Auto.

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

* Engines: close OpenCode folder-policy holes, never swap a listed model, check Antigravity's start model

Review fixes on top of the OpenCode/Antigravity engine work.

OpenCode
- Folder policy: no longer allows task-workspaces/<bot>. That folder sits
  above every conversation's working folder, and OpenCode reads
  opencode.json/.opencode/AGENTS.md from every folder above its working
  folder, so one Ask-mode turn could plant a config allowing every folder
  for all of the bot's conversations (measured on 1.18.27). No allowed
  folder is ever the working folder or above it, and OpenMaus's own working
  folders run with OPENCODE_DISABLE_PROJECT_CONFIG=1, so nothing a bot writes
  there becomes configuration. The person's own external_directory string
  rule ("deny") is carried as "*" ahead of OpenMaus's folders instead of
  being replaced by the merge. Attachments stay writable; documented.
- A model the instance catalog lists but a pooled process does not is no
  longer swapped for big-pickle with a false "no longer offered" notice:
  auth.json is part of the spawn contract, and a stale pooled process fails
  with OpenCode's own words and is closed so the retry starts fresh.
- Account errors name the provider that refused (Zen, Go, OpenRouter, ...)
  and fit the 160-character chat row; setup errors keep 320. OpenRouter's
  "User not found." is an invalid key. A plain "rate limit exceeded" is no
  longer an account quota, so it stays transient.
- Catalog probes run in a discovery folder that is its own git project, so
  their empty sessions stay out of OpenCode's global session list.
- Provider-key policy is wired before the first catalog probe, withholds
  keys on a server whose sign-in list lets other people in, re-lists models
  when enrollment or the sign-in list changes, and is documented in
  docs/self-hosting.md.

App
- Model-fallback notices are stored as `notice:` status rows, shown like
  recovery rows whatever Settings -> Tool calls says, in chats and rooms.

Antigravity
- AGY_ACP_DEFAULT_MODEL is set only for a model the account itself offered
  (discovered catalog or a session list from a process started without it).
  The runtime takes any id there unchecked, and the switch it replaced was
  the only availability check. The fake runtime now behaves the same way.

Routers
- The workspace key no longer reaches an openai-compat, Mistral or Grok API
  instance with its own URL, key or key variable; an openai-compat instance
  with its own key variable reads only that variable.

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

* Engines: fail closed when Antigravity's per-turn mode is not confirmed; check the mode each prompt ran under

The macOS approval smoke read the first mode switch in the fake's
per-process config log. Since an approval change no longer respawns
Antigravity (sessionScopedApproval), that log also holds earlier turns'
switches, so an Ask turn after Full read Full's "yolo" even though the
turn had set "default" before its prompt. The fake now records the mode
and model every prompt actually ran under, and the smoke checks that.

Fail closed in the ACP core: when a sessionScopedApproval support cannot
apply or confirm a turn's mode, nothing is prompted and the pooled
process is discarded, so a later turn starts on a fresh one; with
automatic recovery on the turn goes back unstarted. A support that sets
sessionScopedApproval without configureSession is refused.

Tests: a pooled, resumed Antigravity session runs each turn under that
turn's mode across Full, Full, Ask, Auto, Ask, Full, Edits, Ask; an
unconfirmed or refused downgrade never prompts and replaces the process.

Windows: compare the probe folder with realpathSync.native on both sides,
since the temp folder can arrive as an 8.3 short name.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A routine run's fallback text was only "Routine “X” completed", so any
client that draws the text (both phone apps today) never showed what the
run said. Append the run's summary (or error) to that line. Teammate
"replied" chips now carry the redacted report in tool.output; the chip
label stays short and bot context still resolves the report separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Decode kind "routine.run" and render a card with the run's result,
  error, and an Open run link (run threads stay out of the lists).
- Digests become a quiet tappable chip opening a sheet of tools, files
  and memory, instead of being hidden (or drawn as a text bubble, as
  the 1.1.0 store build does).
- Teammate "replied" chips expand to show the report in tool.output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Android twin of the iOS change: routine.run decodes to a card with the
run's result and an Open run link, digests show as a tappable chip with
a sections dialog, and teammate "replied" chips show their report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Model picker footer gets an "Add API keys" row that opens Settings on the keys section.
- Settings → Connections is now Settings → API keys (all 10 languages); server messages follow.
- Key rows save on paste, Enter or blur and check the key right after saving; no Save button.
- Anthropic's login-override warning and the OpenAI-compatible "not Codex" note sit on the row.
- Key-based engines (OpenAI-compatible, Grok, Mistral) show an "Open API keys" card instead of config.json instructions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows has no POSIX permission bits, so stat always reports 0o666 there;
the same guard index.test.ts already uses for its 0o700 check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- OpenAI, OpenRouter, xAI and Claude each get their own instance that runs only on
  its own key (openai, openrouter, xaiApi, claudeApi); the shared OpenAI-compatible
  key becomes "Other" for Groq, Together, Ollama and the like.
- An OpenAI key now lists only OpenAI's chat models, newest first, instead of
  OpenRouter's public catalog.
- The picker rail groups engines as Cloud / API keys / Local; key-based engines no
  longer sit under Local, and Claude on a key is separate from Claude sign-ins.
- An Anthropic key saved from Settings runs only "Claude (API key)"; a switch
  (on for existing and fleet-seeded keys) keeps running every Claude bot on it.
- Built-in provider routing is re-applied when a saved fleet lacks it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A delivery:"post" webhook landed its text in bot.threadId -- the bot's
CURRENTLY SELECTED task -- via server/index.ts wiring store.appendMessage
straight onto it. That thread changes constantly (a person opening a
chat, POST /api/bots/:id/tasks activating a new one, another automation
switching tasks), so a background brief/alert could land directly inside
whatever conversation the owner happened to have open at delivery time,
mixed into their live turn and its model context, with no notification
to signal it.

Give each delivery:"post" trigger a dedicated, stable "Updates" thread
instead, created once and reused forever after -- mirroring the pattern
RoutineManagerOptions.resolveResultsThread already established for
routines (server/routines.ts): a real results thread for a recurring
destination distinct from wherever the person is working live.

- server/webhooks.ts: WebhookManagerOptions.post now takes the resolved
  threadId; a new resolvePostThread(trigger, forceNew) option is called
  on every "post" dispatch (exactly like routines.ts calls
  resolveResultsThread on every run) and owns the reuse-vs-allocate
  decision from the new persisted resultsThreadId field. No
  resolvePostThread wired -> the delivery fails closed (503) instead of
  silently falling back to any shared/ambient thread.
- server/index.ts: wires resolvePostThread via store.createTask(...,
  false) -- never activated, so it never steals the bot's live
  selection the way POST /api/bots/:id/tasks (activate: true, the only
  HTTP-exposed path) does.
- shared/webhooks.ts: mirrors resultsThreadId on the wire WebhookTrigger
  type, matching Routine's own resultsThreadId.
- server/webhooks.test.ts: updates the existing post-delivery tests for
  the new post(botId, threadId, text) signature and adds two regression
  tests -- rejecting a delivery when resolvePostThread is not wired
  (never a silent fallback), and proving one stable destination across
  repeated deliveries AND a manager restart, independent of resolver
  call count.

Fixes #2071.

Verified: vitest run server/webhooks.test.ts server/webhook-idempotency.test.ts server/webhook-ingress.test.ts (18/18 passing), tsc -p tsconfig.server.json --noEmit clean, tsc -b (frontend) clean.
A paste saves at once, so a clipboard holding a sentence was stored and then
reported as rejected by the provider. Keys have no spaces; say so instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes the deploy gap behind #1914: the marketplace-cursor fix
(45cc2cf, "fix(composio): page the marketplace catalog past its first
500 toolkits") shipped in source but never reached Cloudflare because
ci.yml had no `wrangler deploy` step and `pnpm broker:deploy` only runs
locally. The deployed Worker still dropped the cursor past page 1.

Add a `deploy-composio-broker` job that runs only on push to upstream
main (PRs stay read-only) and needs the control-plane check, so the
Wiring is exercised end-to-end only by a merged commit. The deploy step
uses the same `wrangler deploy --config
cloudflare/composio-broker/wrangler.jsonc` command the local script
runs, authenticated via the new `CLOUDFLARE_API_TOKEN` repo secret.

Refs #1914
# Conflicts:
#	server/drivers/claude.ts
* Cloud home is personal: no guests; settle the owner's earlier keys; owner fixes

Relands #2046, which merged into #2044's branch after #2044 had merged, so
it never reached main, together with the fixes from its review.

1. No guests on a Cloud home. SessionRegistry.requireAdmin (set as soon as
CLOUD_HOME is known) opens, redeems, issues and accepts no pairing, sign-in
or session without admin scope; POST /api/auth/pairing, email sign-in and
signIn invites answer "Cloud Pro is personal: only your own devices can
connect." Remote access offers no chat-only choice there and lists only
the owner's devices, with one quiet line saying why; People is hidden.

2. At every boot settleCloudOwnership() records the keys of stored
non-admin sessions in cloud-owner.json, then revokes them and makes what
they opened or wrote nobody's; a crash at any step never promotes one.
Once (and after a restore applied at boot) earlier keys are settled in two
tiers: adopted keys (openers, line writers, card answerers) keep their
conversations' level and folder; only proven keys (admin sessions at boot,
card answerers) feed lending, memory, recall and the brief. Routines fail
closed: the owner's only with proof (owner writer, #2023 fingerprint, a
restore, a template made by the owner), else nobody's. cloud-owner.json is
never in a backup.

3. Owner regressions from the #2040 review: approvalModeForTurn judges the
thread a turn runs in; privateOnly never re-pins a conversation that ran;
overflowing skills folders fold a stat signature of each entry; linked
working, .claude and skills folders are read through; a failed directory
read is not cached.

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

* Cloud home ownership: owner-approved routines, Resume keeps them, restore and pin fixes

Review of #2052:
- A routine the owner approves on a bot's proposal card (either respond
  route), or one applied at once in their own Full-access conversation, gets
  the owner's key and fingerprint. The one-time settlement counts a routine
  as the owner's when a proven key allowed the card that created it.
- The routine PATCH counts an owner writer as proof: Resume after a move,
  toggling or retiming a templated routine keeps it the owner's.
- What a revoked session opened is unpinned from its folder at boot (its
  next turn pins a private one), and its routines are paused.
- A restore is proof only for routines reporting into a conversation that
  names nobody yet or the owner; cloud-owner.json records the last settled
  restore, so one applied at a start that ended early settles at the next.
- Confined turns on a personal Cloud speak to the owner ("This routine was
  made before this update. Open it and save it once..."); driver refusals
  are neutral and carry that reason.
- The first personal start logs to review Paired devices; docs cover the
  adopted-key lockout and how to recover (Mark reviewed).

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

* Cloud home routines: approvals only for what was shown, no stale renewals, confined runs private

Final check of #2052:
- An owner's approval card from before counts only while the routine still
  runs the instructions the card showed (a guest could rewrite it unrecorded
  on v0.1.91).
- An owner writer is proof for Resume only when no fingerprint of the
  owner's is on record (new recorded()); a fingerprint that no longer matches
  is renewed only by the owner rewriting the instructions. A routine a bot
  creates or changes at once from a conversation that is not the owner's
  alone becomes nobody's, like anyone else's edit.
- A routine run's conversation is opened like its results conversation
  (routineOpener), so a nobody's routine runs confined in a private folder,
  not the bot's project.

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

* Cloud home routines: approving a change never grants ownership; approvals match exactly

Round 3 of the #2052 check:
- Only a create the owner approves (card, or at once in their own
  conversation) makes a routine theirs. An approved update, pause or resume
  keeps a routine the owner's only if it already was, judged before the
  change (cloudRoutineIsOwners); anyone else's routine stays theirs.
- An approval card from before counts only while the routine runs exactly
  what the card showed: instructions, bot, schedule (bar an interval's
  anchor), where it runs, and no attachment (approvalShape).
- A turn running a routine that is (still) the owner's acts for the owner:
  it changing itself, or creating a follow-up, keeps them the owner's.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The memory tracker only runs on Cloud homes (Linux). On Windows CI the folder
listing cache could miss a link added a moment earlier because NTFS reported
the folder's modified time late, so this test flaked on main after #2052.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The API keys heading looked clickable but was only a label; a + at the end of the
group now opens Settings → API keys. Engines on a pasted key no longer say
"Local models" / "a model already on your machine".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three identical OpenAI logos (Codex, ChatGPT plan, OpenAI API key) sat in the
rail. Codex and the ChatGPT plan now share one "OpenAI" button with an account
choice, the way several Claude accounts already do; engines on a pasted key
carry a small key badge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings → Engines becomes Settings → Model providers, and the rest of the app
follows: onboarding, the picker footer, usage, the activity log, recovery and
error messages ("This model cannot use the Local VM"). The API keys page's own
subheading becomes "Provider keys". The browser engine keeps its name. Stale
translations in all nine packs were refreshed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/config.ts
#	server/drivers/mistral.ts
#	server/drivers/openai-compat.ts
#	src/components/EngineSetup.tsx
#	src/components/SettingsModal.tsx
#	src/locales/en.json
The SSE config frame copies fields one by one and did not carry the new
sections, so a live update showed a saved OpenAI key as unset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 3e1fc377233e0895d07753f67d8f23314b0e0abc)
unattendedDispatchState now predicts a bot.cwd workspace-lease collision
as busy (same as thread capacity / group-turn contention) before
RoutineManager creates a task or calls startTurn, so a scheduled or
webhook run whose target bot's project-folder lease is held by another
thread of the same bot defers and retries instead of permanently
failing with workspace_busy.

Regression test: server/thread-capacity-api.test.ts > defers a routine
behind a busy workspace lease instead of failing it (F-collide).
A bot tool call could pass headed:true to agent_browser_open — it is a
launch parameter but was not harness-owned, and an explicit value
overrides AGENT_BROWSER_HEADED and the managed config. On a headless
Linux server that pinned the session's daemon to a launch Chrome cannot
perform: every panel command then failed until the daemon was killed by
hand, with /browser/live reporting "check that the browser engine is
installed" the whole time.

- headed joins HARNESS_OWNED_BROWSER_PARAMS: dropped from advertised
  schemas and stripped from call arguments.
- agentBrowserIntegration pins AGENT_BROWSER_HEADED=0 — the engine's own
  flag — whenever it pins AGENT_BROWSER_HEADLESS, and forces both on a
  Linux host with no DISPLAY/WAYLAND_DISPLAY even for a headed-capable
  caller, so a respawned daemon cannot come back headed.
- BrowserLive.command recognizes Chrome launch failures (missing
  display, DevToolsActivePort, early exit), discards the stuck session
  through the launch-free close so the next connect starts a fresh
  daemon, and returns a retryable message instead of the misleading
  engine-missing one.

Refs #1383
A run acts for the owner (ownersTurn in the routine propose route) only in
its own thread and only while the owner's fingerprint matches what the run
snapshotted: the same test lending uses, now one helper
(cloudRoutineRunIsOwners). Before, the run branch accepted routines whose
writer is the owner but that have no fingerprint yet (a v0.1.91 approval, a
template, a restore), so such a run could fingerprint itself or other
routines and skip 'save it once'; and with routines in conversation on, a
run joined into a conversation that isn't only the owner's counted too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: GLM-5.3 <noreply@z.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
d8d545bb0 added deploy-composio-broker (needs control-plane, main pushes
only). The workflow self-test required every job to need `static`, so the
`typecheck + lint` job failed on every main commit since, which also
blocked the v0.1.92 release gate. Allow exactly that job, check its needs and
condition, and check it stays out of the merge gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page still said OAuth-only URL servers cannot be signed into. Describe
the browser sign-in that now exists: when it appears, which servers it works
with (dynamic client registration, PKCE S256), where it can be started, how
tokens are stored, refreshed and dropped, and what a server without
self-registration answers today.
Servers whose authorization server has no dynamic client registration
(corporate identity providers, some hosted servers) could not be signed in
to. A URL server can now name an app registered in advance: a client ID,
an optional client secret and optional scopes. With one set, sign-in skips
registration, uses that app with PKCE and a fixed loopback redirect URI, and
authenticates the token, refresh and revocation requests with the secret
(HTTP Basic, or client_secret_post when that is all the server lists).

The secret is write-only like header values: stored in config.json, listed
only as clientSecretConfigured, kept by a placeholder only for the same
client ID, never copied into mcp-oauth.json and never handed to engines.
Changing the client ID or scopes signs the server out.

Refs #1364, refs #1496
The shared chat runtime echoes a tool round's reasoning back as
`reasoning_content` on the assistant tool-call message, which
DeepSeek-style providers require. Groq validates assistant messages
strictly and answers the continuation with HTTP 400 ("property
'reasoning_content' is unsupported"), so every multi-round agent turn
on GPT-OSS and other Groq models failed.

When a request that carried `reasoning_content` gets a 400/422 whose
error names that property as unsupported/unknown/unexpected, resend the
same transcript once without it and remember the model in memory so
later rounds and turns omit the field. The rejection executed nothing
upstream, so the resend repeats no tool call. Providers that accept or
require the field, and every other error, behave exactly as before.

Fixes #2077
npm can exit 0 after dropping a platform optional dependency it failed to
download, leaving a launcher such as codex.cmd without its native binary.
The Settings install then reported success while the broken copy, first on
the engines' PATH, hid every other installed copy.

After installing, run `<cli> --version` from the app's prefix. If it does
not start, run the install once more; if it still fails, report the CLI's
own error with guidance instead of success. Also pass --include=optional
so a user-level omit=optional config cannot leave the platform package out.

Fixes #2064
A thread a bot opens on itself with start_thread now starts on the
model of the thread it was opened from instead of resetting to the bot
default. Only the bot's own threads count as a parent; rooms, teammate
threads, routines and threads the person creates from scratch keep the
bot default. Approval stays the bot's, and drops to Ask when the
inherited engine could not carry it, matching the model-switch rule.

Fixes #1950
Fish Audio offers s2.1-pro and the free developer tier s2.1-pro-free,
but the provider always sent s2.1-pro, so free-tier accounts hit 402
balance errors with no way to switch.

Add a tts.fishModel setting limited to those two models (unset keeps
s2.1-pro), pass it to the Fish synthesis call, report it in the voice
status while Fish is the provider, and add a model selector to Voice
settings. The field is separate from the Chatterbox tts.model so
switching engines never carries one provider's model id to another.

Closes #2065
Replace the hard-coded 8-hour LOCAL_VM_IDLE_MS with a persisted
localVm.idleTimeoutMinutes setting (default 480, whole minutes 5-1440).
It applies to shared, per-bot and pool desktops, is reported through
GET /api/config and idle_timeout_ms, and re-arms already-pending idle
timers from their last activity when it changes. Active work still
defers recycling by a full window.

Expose the setting in Settings -> Local VM -> Isolation.

Closes #1210
Name a bot thread again from its conversation as it is now. A new
POST /api/bots/:id/tasks/:threadId/title runs the existing title
one-shot over the newest user and bot lines (no tool output, cards or
asides; secrets and attachment tags scrubbed; capped at 1,500 chars).
The result replaces the current title unless the thread was renamed
while it ran. Failures keep the title and return a short error.

Offered only while features.llmThreadTitles is on, now reported in
GET /api/config, and skipped for engines without generateText or
blocked by organisation policy.

Closes #1858
Deleting a room from the sidebar room menu removed it immediately.
Route it through the same ConfirmDialog used for bot and team delete,
naming the room and stating that its messages and threads are deleted,
its routines are turned off, and its bots are kept.

Refs #629
The sidebar header gave an occasional preference the same weight as its
everyday controls. Density is now chosen in Settings > Appearance; the
header keeps collapse, Active Threads and add. The collapse button still
toggles the avatar rail and returns to the last expanded density.

Density moves into a shared renderer store (same storage key), so a change
from Settings or the collapse button reaches the sidebar immediately and
saved densities carry over.

Closes #1001
Replaces the viewer's client-side 409 retry, which also retried
permanent refusals, with a server-side wait on the pending join.
Fix Windows Local VM MCP bridge launch
# Conflicts:
#	docs/custom-mcp-servers.md
#	server/index.test.ts
#	server/index.ts
#	server/mcp-oauth.test.ts
#	server/mcp-oauth.ts
# Conflicts:
#	src/locales/en.json
Add selected-text citations to chat and rooms
Integrate reviewed October stability fixes and small improvements
docs: remove unrequested search example from OAuth merge
fix(vps): recover transient cloud computer inspection failures
fix(desktop): keep the chat usable at every window size, and fold the header into one menu
* WIP: control plane reclaims idle tunnels, capacity error, alert (unreviewed)

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

* Control plane: fix the reclaim race, re-check before DNS delete, observe by default

- The sweep's claim only takes a row still marked for deletion, or whose
  installation was revoked or removed. A row its owner took back (provisioned
  again) after the sweep chose it is left alone. New race test; it fails
  without the guard.
- Re-check that the tunnel is still idle right before the DNS record is
  deleted, so a reconnect mid-cleanup keeps the hostname.
- OMB_TUNNEL_RECLAIM defaults to observe (unset or invalid); production starts
  in observe. An invalid tuning value falls back to its default with a log
  instead of failing every request.
- Migration 0006 tags only the 2026-10-01 10:00-10:30Z operator batch as
  reclaims, using its own mark time.
- Ship OMB_CLEANUP_SWEEP_LIMIT=4 until Workers Paid is confirmed.

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

* Control plane README: observe by default; sweep size per plan

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

* Control plane test: pin the Workers Paid sweep size explicitly

wrangler.jsonc ships OMB_CLEANUP_SWEEP_LIMIT=4, so the second half of the
sweep-limit test passes 20 itself instead of relying on the shipped value.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Role names: Super admin, Admin, User in UI and server messages

Owner decision: show Postiz's role names everywhere people read them.
Display text only; stored roles, API values and permission checks stay
owner/admin/member. Changed English strings drop their stale
translations so other languages fall back to English.

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

* Docs: describe roles as Super admin, Admin and User

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

* Role names: keep "owner" and "Full access" where the app means the account holder

The app has two roles, shown as Admin and User. Its "owner" is the person
who holds the server or computer, not a third role, so "super admin" was
wrong in the proposal note, pairing hints, sign-in refusal, command-permission
refusals and the self-hosting and people docs. Restore owner wording, and
say "Full access" where the text is about how a device is paired.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The session/prompt idle guard (default 180 s) failed the turn and killed
the child whenever an agent sent nothing for that long. Qwen Code 0.24
is routinely silent longer than that while working: it emits no ACP
updates while compressing history, while backing off a rate limit
(60 s up to 5 min per wait, 10 retries), or while one model request runs
(its OpenAI/Anthropic SDK timeout is 600 s). Long turns were cut off
mid-work and the user's retry redid everything.

Raise the default to 15 minutes, above the longest normal silence. A real
wedge (the OpenCode hang from #1595) still trips, just later, and Stop
still ends it at once. OPENMAUS_ACP_PROMPT_IDLE_TIMEOUT_MS still overrides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ACP has no "still working" message, so a silent agent was a spinner
with no explanation until the stuck guard killed it. While a prompt is
quiet, the driver now probes the agent and posts a plain-words notice
whenever the answer changes:

- retrying: read from the agent's own debug log (Qwen, with
  QWEN_DEBUG_LOG_FILE=1): "Qwen hit a rate limit (HTTP 429) and is
  retrying (attempt 2). Next try in 20 s."
- compressing: when the log says so explicitly.
- waiting on its model: the process tree holds an open TCP connection.
- busy: CPU time is climbing without output.
- no request open: briefly normal (an SDK sleeping between retries looks
  exactly like this), so it is only called "may be stuck" after 3 min.

New lines in the agent's log also restart the prompt's idle deadline, so
a turn that is visibly retrying is never stopped as stuck, and the final
stuck error now says what the agent last looked like.

Verified end to end against real Qwen Code 0.24.7 and a fake model
endpoint: constant 429s (retry notices, turn kept alive), a 90 s slow
model (one waiting notice, then the answer), and a SIGSTOPped process
(stopped at the limit with its last-seen state).

iOS and Android now keep notice rows visible as their own row, like
desktop does, instead of folding them into tool runs or hiding them
with tool calls off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(acp): stop killing quiet agents, and tell the user what they're doing
chore(release): bump version to 0.1.93
* fix(digest): count tool calls by identity, not by the chip's command line

The turn digest keyed its tool tally on the activity chip's display title.
That title is a tool name only for some drivers: Codex titles a
commandExecution chip with the whole command line and the ACP core prefers
`rawInput.command` over the call's own name, because in a transcript the
command is the useful label. So a reported digest read

  [digest] · tools: memory_update ×2 (1 failed), list_routines ×1,
  propose_routine_action ×1, /bin/zsh -lc "jq '.routines[]? | select(.id==…
  {id,name,resultThreadId,sourceThreadId,delivery,destination,resul […] ×1

Two defects, one cause. The command text — paths, ids — rode into a row that
is FTS-indexed and replayed into rebuilt context, and unlike `tool.summary`
the title is neither bounded nor redacted by the driver. And keying on the
command meant counts never aggregated: every distinct invocation was its own
bucket, so a turn that ran one tool twelve times said twelve tools and the
noise competed for the eight MAX_TOOLS slots.

Command-titled chips now count under one `shell` identity, and the rendered
line names what ran from `tool.summary`, which drivers already bound and
redact. `nameIsCommand` — the predicate the renderer has used for this exact
distinction since ToolActivity needed it — moves to shared/tool-name.ts so
both readers share one answer instead of guessing twice.

The transcript chip is unchanged: it still shows the command, which is what
makes it readable. Only the aggregate record changes.

Not fixed here: drivers/codex.ts:1078 stores that title uncapped, where every
other driver slices to 80 — that bounds a stored field and changes the chip
label, so it is its own call.

Verified: server/digest.test.ts (2 new cases, red before green),
digest.e2e, digest-control.e2e, verify-steps, DigestChip — 100 pass;
tsc -b and tsc -p tsconfig.server.json clean; oxlint clean.

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

* fix(digest): keep the shell bucket's command out of the rendered line

The phones split the digest's tools part after "×N" / "(N failed)"
(ios DigestSummary, android TurnDigest). A trailing "(command)" made
Android drop the whole tools list to one unparsed line with no call
count, and iOS merge the shell entry into the next one. The redacted
sample stays in the stored digest.

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

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(companion): let a phone with computer access preview a bot's Local VM

Allow POST /api/bots/:id/local-computer/screenshot through the sidecar,
behind the same per-device computer-access capability as the cloud
desktop (off by default, toggled in Settings → Remote access). Only the
still is reachable: the VM's lifecycle routes stay host-only. The 403 now
says "computer access" since it covers both kinds of computer.

* feat(ios): show a bot's Local VM on demand, even while it is idle

ComputerView now asks for a Local VM still every 30 s while it is on
screen (every 3 s while the bot works and the stream has gone quiet),
the desktop panel's cadence, and shows whichever of that and the
streamed frame is newer. A 403 explains where to allow computer access
on the Mac; a 409 for a conversation not on the Local VM, or a 404 from
an older computer, leaves the existing behaviour alone. Polling stops
in the background. Adds the client call, a strict data-URL decoder,
tests, and pt-BR strings.

* docs: describe Local VM stills on the phone behind computer access

* test: isolated fixture for the iOS Local VM view

A disposable fake-engine server, a synthetic docker that serves PNG stills,
and the companion sidecar, so the phone's Local VM view and its
computer-access gate can be checked from a simulator without a real VM.

* fix(ios): picture the opened thread's Local VM and follow access changes live

- Project the bot onto the thread the view was opened from, so a task
  thread pictures its own computer (and its own seat in pool mode).
- Keep checking at the idle cadence while computer access is off, so
  turning it on at the Mac shows up without leaving the view; revoking it
  clears the picture. Only the sidecar's "computer access is off" 403 is
  read as that.
- Stamp a still when it was requested, and label the last picture when a
  refresh fails instead of letting it pass for current.
- Move CloudDesktopSession's doc comment back onto it; say in the docs
  that the thread check is the client's and that polling keeps the VM
  from being reclaimed as idle, like the desktop panel.

* fix(ios): caption a streamed frame when computer access is off; ignore a stale 401

With access off, a streamed frame of a working bot could stay on screen and
hide the access notice. The frame stays (the stream is not gated), captioned
with the notice. A screenshot 401 from the previous computer, landing after a
switch, no longer marks the new session unauthorized.

* test: abort the iOS Local VM fixture cleanly during server startup

A signal during startup now aborts the launch, which stops the server child
and removes its data directory, instead of leaving both behind.

* feat(server,companion): relay a Local VM's live desktop to a phone holding control

Add POST /api/bots/:id/local-computer/join. It answers only a loopback
caller (the address carries the VNC password), only for a conversation
on the Local VM, and only while a person holds that bot's computer, so a
phone never drives the VM alongside the bot. The companion allows it
behind the per-device computer-access capability and rewrites its
loopback noVNC address into the same device-scoped relay path the VPS
viewer already uses.

* feat(ios): an RFB client and the calls to take a Local VM and join its desktop

RFBClient is the protocol half of VNC, bytes in and bytes out: 3.3/3.7/3.8,
None and VNC authentication (CommonCrypto DES), BGRX true colour, and
Raw, CopyRect and DesktopSize, with pointer and key events. Partial
updates are applied only once whole. CompanionClient gains control
take/release under a lease, the Local VM join, viewer-close, and the
authenticated WebSocket request for the relayed viewer; the join only
accepts the sidecar's relay path, never a host.

* feat(ios): take control of a bot's Local VM from the phone

Take control under the Local VM's picture takes the bot's computer under
a fresh lease and opens the relayed desktop full screen: the live
picture with a pointer ring, a trackpad (swipe to move, tap to click,
two fingers to right-click or scroll, hold to drag), the system keyboard,
and a menu of keys and chords. Hand Back, or the app leaving the
foreground, closes the viewer and releases the lease so the bot is
never locked out behind an unused hold.

The verification fixture gains an offline password-protected RFB desktop
that records pointer and key events and paints each click, and a status
endpoint for them and the control hold.

* fix: bind a phone's Local VM desktop to its control lease, and harden the client

Review findings on the phone control path:

- The join now requires the caller's own control lease (not just any
  hold) and a JSON content type. A new read-only control action, check,
  says whether a lease still holds; the sidecar asks it every 3 s for each
  relayed Local VM viewer and closes the relay as soon as the answer is no
  (released or taken over from the Mac), failing closed on any error. A
  Local VM viewer without a lease is never handed to the device.
- The phone keeps one lease per computer and bot across launches, so a
  session the app never handed back can be retaken and released; releases
  on any failure after asking; and finishes handing back in a background
  task.
- RFBClient refuses desktops over 8192 px a side, copies overlapping
  rectangles in place, and consumes its buffer in O(1).
- The read loop holds the desktop only weakly; the trackpad no longer
  jumps when a swipe starts; the disconnected state says what to do.
- Docs no longer claim leaving the screen hands back, and note that in
  shared Local VM mode a hold pauses only that bot, as on the Mac.

* fix(ios): ignore a stale 401 from the previous computer in Local VM control calls too

The same guard the screenshot poll has: a control call answered by the
computer the phone has since switched away from must not mark the new
session unauthorized.

* fix(ios): hand back a take that lands after the person left; leave another holder alone

- The take runs in a task the view keeps, cancelled on leaving the screen
  or backgrounding. If it lands after that, the computer is handed
  straight back instead of opening a desktop nobody is looking at.
- Hand-back after a failure runs in a task of its own, so cancelling the
  take cannot cancel the release.
- When someone else already holds the computer there is nothing of ours
  to release, so no viewer-close is sent that could disturb theirs.

* fix(ios): hand a Local VM back through the computer that granted its lease

Session.withClient read self.client on every call. Settings can switch
computers while ComputerView stays up, so a take acquired on one computer
could join the viewer, or hand back, through the next one: the first
computer stayed paused under a lease it never saw released.

takeLocalVm now captures the client once, keys the lease on that client's
connection, and returns it with the lease. ComputerView keeps it in the
control state and passes it to both hand-back paths, including the one for
a take that lands after the person left. Calls still go down the current
route while that computer is the active one, so a route failover mid-control
does not send the release to a dead address.

* fix(ios): keep Take control disabled until the hand-back has finished

handBack() cleared the control state before awaiting the release, so Take
control came back the moment the desktop closed. The lease id is reused per
bot and computer, so a take started during that window held the same lease
the pending release was about to give up: the in-flight closeViewer and
release would then close the new viewer and release the new hold.

ComputerView now keeps a handingBack flag for the duration of the release;
the button is disabled and takeControl() refuses to start while it is set.
The take that lands after the person left already waits inside
takingControl, so it needed no change.

* feat(server,ios): drive a Local VM from a phone paired with the server directly

A phone paired with `openmausbot serve` itself (a headless server behind
Tailscale Serve or a tunnel) has no companion sidecar, so nothing rewrote
the VM's noVNC address for it: the join route answered 404 to any caller
but loopback, and the app accepted only the sidecar's relay path.

The join now answers a directly paired phone with the server's own
authenticated desktop proxy (/api/desktop-viewer/local/<target>/websockify),
bound to the phone's control lease and to the conversation whose VM seat
the join picked, plus the VNC password. The loopback address never leaves
the server. The proxy settles the seat once at open, then re-checks the
lease and the session every few seconds and closes the socket when either
lapses; hand-back (viewer-close) closes that bot's lease-bound viewers at
once and leaves the session's other viewers alone. Computer access is the
pairing's scope: Full access may, chat-only is answered 403, which the app
shows as computer access being off with a note about re-pairing.

The app accepts this proxy shape alongside the relay shape, carries the
lease binding on the socket, asks for no subprotocol from the proxy, and
sends viewer-close as JSON so the harness acts on it. The sidecar path is
unchanged: a loopback join still gets the raw address to rewrite.

* Refuse phone control of unreserved Local VM pool seats

* fix(ios): shrink the trackpad while the keyboard is up, so the desktop stays full width

On a phone the desktop is drawn as wide as the screen, so it needs only a
couple of hundred points of height. With the keyboard open, the 230-point
trackpad left less than that, and the picture shrank. The trackpad now
collapses to a short strip while typing: the desktop keeps its full width,
and a click is still one swipe away, which typing into a desktop needs
often (a field to focus, a button after the text). It grows back when the
keyboard goes.

* fix(ios): collapse the trackpad inside the keyboard's own animation

The trackpad shrank on the keyboard button's tap with an animation of its
own, while the desktop above only moved when the keyboard arrived and
pushed the inset up: two animations, and on a phone the second one came a
beat later, so the picture popped into place after the trackpad had settled.
The trackpad now follows the keyboard's will-show and will-hide
notifications and changes inside their duration, so it, the keyboard and
the desktop move as one. The first-responder change is made outside
SwiftUI's update pass, where a request can be dropped and the keyboard
never comes, and the trackpad's hint fades rather than reflowing.

* fix(ios): make room for the keyboard in the trackpad's own transaction

SwiftUI's keyboard avoidance and the trackpad's collapse ran on different
curves, so for a few frames the screen between them was shorter than the
desktop needed, the fit flipped to height-bound, and the picture narrowed
before growing back. The view now ignores the keyboard inset and pads its
own bottom from the keyboard's reported frame, in the same transaction and
on UIKit's keyboard spring, so the keyboard, the trackpad and the desktop
move together and the picture keeps its width throughout.

The trackpad's hint is cut as the pad shrinks rather than faded, since a
fading line rode up over the label while the layout moved, and fades back
in only once the pad has grown again.

* fix(ios): fade the trackpad hint back in place once the keyboard is gone

* chore(verify): show a captured Local VM desktop in the iOS fixture instead of coloured tiles

---------

Co-authored-by: Rui Gomes <5658301+ruigomeseu@users.noreply.github.com>
The back button's height was fixed at 44pt while its width came from the
chevron plus padding (~34pt), so the glass capsule rendered as an upright
oval when there was no unread count. Give it a 44pt minimum width so it
is a circle on its own and still widens into a pill with the badge.
(cherry picked from commit c7c6b4e9c6b534a5178912f501b8a61a360efda7)
(cherry picked from commit 573dc3c5a1953d6523f0b88c6bf749dacacda74a)
(cherry picked from commit 74f187d16318651a8181e7a2b568e5068ec71cf8)
windowsKnownDirs() lists the install locations augmentedPath() scans on top of the inherited
PATH, but it didn't include Docker Desktop's bin dir. docker.exe still turns up because
something else on the machine's PATH usually finds it, but docker-credential-desktop.exe
(which docker.exe shells out to for every registry pull) often doesn't, so local VM image
prep fails even though "docker" itself looks installed. Adds the standard install path and
a regression test modeled on the existing Antigravity one. Fixes #2117.

(cherry picked from commit eac5c25c0c662c8c1a55e4641d354a5b98b6061f)
* fix(ios): open conversations on the newest message when it has a table

A transcript whose last reply holds a Markdown table (or code block)
opened short of the end: the horizontal scroll view the table sits in
threw off the height `defaultScrollAnchor(.bottom)` measured on the
first pass, and the `initial` scrollTo ran before there was anything to
scroll. Scroll to the last row once more after the first layout settles,
and again when the thread's page arrives from the computer.

* fix(ios): don't pull a reader back down when a thread's page arrives late

The settle scroll re-runs when the thread's page arrives, which can be
seconds after the push (slow route, reconnect re-hydration). If the reader
has already scrolled up to read, that scroll yanked them back to the end.
Remember a drag via onScrollPhaseChange (iOS 18+, no-op below) and skip the
late scroll once the reader has moved; reset on thread switch.
deploy-composio-broker runs on every push to main, but without the
CLOUDFLARE_API_TOKEN secret wrangler aborts and the run ends red, so a
missing secret looks like a broken main. Check the token in a first step
and run the remaining steps only when it is present; otherwise emit a
warning annotation saying the broker was not deployed.

The job-level condition, its dependency on control-plane and its absence
from the merge gate are unchanged, and the self-test now pins the guard.

Refs #1914

(cherry picked from commit 8a0655b639c905fcf00b2e701a1267c4983a864d)
* feat(sidebar): add cross-bot Pinned threads section

Implements the feature requested in milind-soni/OpenMausBot#2142:
a global, cross-bot/cross-room aggregate of every pinned thread,
alongside the existing pinned-bots section. Reuses the AttentionThread
shape and jump action crossBotAttentionThreads already established.

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

* feat(sidebar): make the Pinned threads panel collapsible

Give the new Pinned threads panel the same chevron toggle every
bot/group section already has, via the existing collapsedSections
mechanism (sidebar-preferences.ts) and a new fixed id
(PINNED_THREADS_SECTION_ID). Reuses the existing generic
sidebar.section.expand/collapse i18n strings, so no new translations
are needed.

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

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Copying a failed or missed routine.run card gave the headline plus the
(often stale) summary, never the error the card actually shows, and the
error text sat outside SelectionContainer so it could not be selected.

Include the error in MessageActions.copyableText and wrap it in
SelectionContainer. Follow-up to the cross-bot/expansion items from
#1903, which main already covers via RoutineRunCardView (8caa6bff).

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Reveal completed downloads in the file manager
The Browser panel's expand button only ever called requestFullscreen(). On
macOS a full-screen element takes the whole window into native full screen,
where the yellow minimize button and Cmd-M are disabled, and clicking the
same button again did nothing — its label and icon never changed. The only
exits were Esc, the hidden green button or View > Toggle Full Screen, none of
which the app pointed to.

The button is now a toggle, like the desktop viewer's: a second click calls
exitFullscreen(), and a fullscreenchange listener keeps its label ("Full
screen" / "Exit full screen") and icon in step with the document, so Esc and
the window's own controls leave it right too. A failed exit says to press
Esc.

Fixes MOCA-266

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(routines): timestamp run thread titles

* test(routines): cover timestamped room task titles
* feat(rooms): show live computer/browser session indicator

- GroupView.tsx: render "screen" messages (live screenshot frames)
  inline, same as ChatView already does in 1:1 chats.
- GroupView.tsx: give a busy member's avatar badge the place icon
  (PlaceIcon) instead of a generic dot when that bot is actively in a
  concrete computer/browser place, mirroring the 1:1 composer's
  PlaceChip live indicator.

Fixes: a bot running a background browser/computer session inside a
room gave no visual indication at all that it was happening, even
though the server already posted the screen messages to the room's
own thread.

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

* fix(rooms): give the busy-member place badge an accessible label

CodeRabbit flagged on PR #2119: the place icon on a busy avatar badge
conveyed its meaning visually (which computer/browser place a bot is
in) but had no screen-reader-accessible text. Reuse the same
place.chipAria label PlaceChip already uses for the 1:1 composer.

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

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* fix(server): release stalled direct Local VM claims safely

* fix(server): keep prompt stall completions on fast path
Settings changes apply to new threads. Refresh permissions on a thread copies the bot's current approval level and saved approvals onto that conversation.
OpenMausBot installs Cursor from Settings with cursor.com's Windows script,
which puts cursor-agent.* (and `agent` copies) in %LOCALAPPDATA%\cursor-agent
and adds that folder to the user PATH. Windows never pushes PATH changes into
a running process, so the engine stayed "`cursor-agent` CLI not found" until
the app restarted, while `agent` worked in a terminal. Every other engine we
ship an install command for already had its install folder scanned.

Scan %LOCALAPPDATA%\cursor-agent with the other Windows install locations,
and say in the Cursor docs that the installer's `cursor-agent` sits beside
the `agent` command Cursor's docs use.

Fixes MOCA-272

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 87fd06a4227c8133bd31a235081be1e1eff221da)
Deleting a bot removed its record, transcripts and workspace but left its id
in every room's memberIds. The room then counted it on Manage members'
"Save · N bots" (5 for 4 visible bots), the roster check refused every save
from that panel ("unknown room member"), and a room the bot led kept
pointing its default responder at a bot that no longer existed.

deleteBot now removes the bot from each room it was in, lets the room's lead
fall back to the next member, and saves and announces the rooms. Startup
repairs rooms that already list a deleted bot, but only when the bot list was
actually read, so an unreadable bots.json can never empty rooms. Bot-to-bot
channels keep their pair.

Fixes MOCA-264

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6e88f73674606f0f61e7e7ac4292d322669b8207)
CLI 2.1.129 is above the 2.1.122 floor but rejects --autocompact as an
unknown option, which fails every Claude turn. snapshot() now reads
`claude --help` once per CLI version and records whether the flag is
listed; turns use that result and fall back to the version floor only
when the CLI has not been probed or the probe failed.

The earlier detection from #1213 was lost in a later merge, so this adds
it back in a smaller form along with a regression test. The fake CLI now
answers --help.

Fixes #1187

(cherry picked from commit 47be3c3ee3da18e5a400d7f9ffbecb33cefb6997)
(cherry picked from commit e181dd21d9cd07942b7fb23e4789e47193067424)
(cherry picked from commit 11e83b70318daf047211d60e459c50162a96bbec)
(cherry picked from commit cef411577fba092abef56660b36734f20a08d034)
(cherry picked from commit de004ecbd5b5fea2e6d269c9a00574791850ebb8)
(cherry picked from commit 0faac58b1e3220a2e674ce8d593fb41e7175f7fa)
Write the idle-stop record with writeFileAtomic, poll readiness through
the Settings refresh helper, compute the panel's resumable state once,
and tidy import placement and a stale Auto attach comment.

(cherry picked from commit cc3e246f3487dfa8a6352ce3d8661fdb47662969)
Report a resumable flag in the status payload, computed from the same
recreate-only checks as statusProblem plus the strict safety boundary,
so the renderer no longer mirrors the predicate in a shared module.

(cherry picked from commit a77a3149a575039a25b53a10d8c4d5d03113c341)
localVmWakeAction decides run versus start, so readyLocalVmForTurn gates
the provision fence and per-bot cap on that action instead of re-checking
container state.

(cherry picked from commit f966658e8b8f63a7374da3245eb0d95f677845e0)
The Computer panel starts a shared desktop with /api/local-computer/start,
the same route and guards Settings uses, so the per-bot route keeps
refusing the shared target as before.

(cherry picked from commit 6575800138fd745eaa7ceddbbc5e0800a7d196d0)
Each status read probes the container runtime; match the panel's
existing readiness retry instead of probing every second.

(cherry picked from commit b9680d942a06f693ff66f85ad8d4db19e65666f8)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e6fc9e0f4944f038fd459d2fe8f16283b135dce4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 7c5735a03517484a9123b8f7ae561403a5e27119)
GPT OSS rejects image parts, so a text-only model keeps the browser
(snapshots and page reads are text) and gets a note in place of each
screenshot or attachment. Qwen still receives images.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a82007fb0b9a655fbb049df09b885d29d3d735e0)
Smaller models fill optional fields with "" instead of leaving them out;
agent_browser_read then failed with "Read URL is empty" and the whole
turn was flagged. The tool documents "omit url to read the active tab",
so the blank is dropped. Only the built-in browser's descriptor, never a
custom server that shares its name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 48718dd1cca46931b802742d90bbc671c94ac3e3)
Qwen on Cerebras sometimes replies "Checking the live HN front page in
the browser first —" and ends the turn with no tool call. A short
announcing reply with no question now gets one nudge per turn to act.
Opt-in per driver; only Cerebras turns it on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a512b5de70524e36f9d0de975605385ef893c6f0)
When Cursor advertises several ids that share a base, for example
composer-2.5[fast=true] listed before composer-2.5[fast=false], the
plain slug "composer-2.5" matched whichever came first, so selecting
Composer 2.5 (Standard) started the session on Fast.

Prefer the non-fast variant for the plain slug and map a "-fast" slug
(composer-2.5-fast) to the fast=true variant of its base. All other
resolution steps are unchanged.

Fixes #1127

(cherry picked from commit a2504dc9f8364d874b2cebdc78a0cd1ef68142c3)
When the browser engine stops answering, keystrokes queue behind a hung
command until the client queue halts. The halt banner said only that the
connection was too slow, which hid the real cause and the Restart recovery.
Reword it to name the stuck-browser case and point at restarting the browser.

Refs #1941

(cherry picked from commit e5d52be159966d629d268df364b393c0fd9bdc40)
OpenCode compacts its session without telling the client, so the standing
prompt could stay out for up to eight bare turns. A usage_update below 0.6
of the running peak (seeded from the receipt's new lastUsed) now marks the
turn compacted and drops the receipt, so the next turn sends the full prompt.
The eight-turn re-anchor remains the backstop.

Co-Authored-By: GLM-5.3 <noreply@z.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit db41c550b78dceed0a31742ca4adcc63fcb42b84)
(cherry picked from commit 720651f7c75d18c1c867a52b7b056a3e542d8443)
(cherry picked from commit 90990a87b43e5fd557c7d68aecede4684b21f6f8)
(cherry picked from commit e746a8702ec3f4771e92f25b6e2c28657f698902)
remark-math pairs any two single dollar signs, so a message like
"R$ 120: o plano custa R$ 120" rendered everything between the two
prices as one KaTeX formula: italic, spaces stripped, and wide enough
to run out of the chat bubble.

Escape dollar signs that cannot delimit inline math before parsing:
currency signs glued to a code and an amount (R$, US$, ...) are always
literal, and the rest follow Pandoc's rule (opener followed by
non-space, closer preceded by non-space and not followed by a digit,
same paragraph). Real math like $r = 0.1$ and \( x^2 \) still renders.

Also let long KaTeX scroll or wrap inside the bubble instead of
overflowing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2616bf9bd9ffb64a9b3581544c94117f84950e31)
(cherry picked from commit 2b7c7734372a641950926960a79891f12b800403)
A pinned thread that was actively waiting/working/queued/unread showed
the same static gray Pin icon and idle "name · time" byline as a truly
idle pin, so an active pinned thread looked no different from a dead
one. Pinned rows now reuse the exact icon/status logic Active Threads
already uses (new shared attentionRowStatus helper) and fall back to
the plain Pin icon only once a pin is genuinely idle.

Also adds a hover-reveal unpin button directly on each pinned row,
dispatching the same updateTask/pinGroupTask actions the thread row's
own context-menu pin toggle already uses, so unpinning no longer
requires finding the thread in its own bot/room first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit 4687e8c14264d51652c9089fd91dff1673f1286e)
(cherry picked from commit dec8093177e51816ecd5b5d8422a18fdb27c1332)
(cherry picked from commit 7fd82d5cfbd288017916cabc51ca1115b43b7197)
The Active Threads panel previously had no way to fold its body —
unlike every bot/group section, which already supports this via the
shared collapsedSections mechanism (sidebar-preferences.ts). Wires the
panel into the same mechanism with a new fixed id
(ATTENTION_SECTION_ID) and a chevron toggle in its header, matching
the pattern SidebarSectionHeader already uses. Reuses the existing
generic sidebar.section.expand/collapse i18n strings, so no new
translations are needed. Collapsed state persists the same way other
sections' does.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit df9bdb51d9fc32d091435e882de77c62cdca93a0)
(cherry picked from commit ca64159357a38338f639910992f2510f1df21531)
#2145 merged with its Ubuntu and Windows shard 4 red, and main has failed
the same three tests on every run since:

- quiet-status.test: Linux procps prints `ps` TIME in whole seconds, so a
  test worker with under a second of CPU reads 0. Still require a found
  (non-null) sample everywhere; require non-zero CPU only on macOS.
- acp.test (2 tests): on Windows each probe is a PowerShell process that
  takes 1-3 s to start, longer than the tests' sub-second quiet windows.
  Run them where the probe is fast; the real guard ticks every 15 s.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
closeForOwner walked every viewer still listed, and a viewer leaves the
list only on its socket's close event. On Windows that event arrives after
the client has already seen the close, so a hand-back followed by a
sign-out counted the handed-back viewer twice (3 instead of 2), failing
desktop-viewer.test.ts on Windows since #2135 and blocking 0.1.93. Skip
viewers whose socket is already destroyed. The new assertion (asking
twice before the close event) reproduces it on every platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a3e537c264368fabb07e3c88926d3a629326e6fa)
(cherry picked from commit f76179f38702f95e56a3242beaee5c056ebd4eaa)
(cherry picked from commit c6ed45336d398eedf3e5996ab131fbf18ee6b3f8)
(cherry picked from commit 949059e3c633c112881d3b2e66f2df2916f2fce4)
(cherry picked from commit cec19d2930561d1630344fd800548b3017a87027)
(cherry picked from commit f297685b88b675eb078ef29e72ba3e0709b91a59)
(cherry picked from commit f2d8261b90b7cca76b2e20aaefde99a5a3d14704)
The desktop reads an optional entitlement.tier (short lowercase token;
missing or malformed is no tier, never a rejection) and shows
"<Tier> active" in Settings -> OMB Cloud (Personal/Pro/Max, "Cloud" for
a tier it doesn't know, today's "Pro active" with no tier).

A plan string newer than the app ("personal", "max") is now read as paid
with that tier and logged once, instead of failing the whole session:
installed apps refused any plan but free/pro, so the Admin could never
send a new plan name without locking those people out until they updated.
plan stays "free" | "pro" (pro = any paid plan) for every reader.

Copy every paid customer sees no longer names Pro: Settings' Cloud card,
"Included with your Cloud plan", the included-decisions errors, the
personal-Cloud pairing note and server refusal, and the included Boat
computers error. The Pro introduction card is unchanged. No locale pack
translates any of these keys, so no locale or source-hash change.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The Pro introduction card showed "<s>$89</s> $49/month" with an aria-label
reading "Was $89, now $49 a month". $89 was only live for about a day, so
presenting it as a former price is a fictitious reference price under FTC
16 CFR 233.1 and the EU 30-day prior-price rule.

The card now says, as plain text: "$49/month — launch price for the first
100 users, then $89/month". No <s>, no line-through, no "was" label, and
the role="img" wrapper that only carried that label is gone.

- PRO_REGULAR_PRICE is renamed PRO_LATER_PRICE; prices are unchanged.
- pro.launchPrice gains a {laterPrice} placeholder; pro.launchPriceLabel
  is removed (it was the only "was" string).
- PRO_DISMISSED is unchanged, so nobody who dismissed the card sees it
  again; the test now pins it.
- Every locale gets the Pro card strings translated (none had any pro.*
  keys before, so translating only the price line would have left one
  translated sentence inside an English card). source-hashes.json updated
  with `generate-locale.mjs <code> --accept`.

No other struck-through or "was" price exists in src/ or electron/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(desktop-viewer): don't re-close or re-count a viewer that is already closed
The snapshot does not promise one row per thread, and Dictionary(uniqueKeysWithValues:) would crash the extension during entity resolution. Both the row dictionary and the persisted identity store now use a merging initializer that keeps the snapshot's first-ranked row.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 326ad4de5f757d3718db6907df3b6dd1916c7f5f)
POST /api/bots/:id/messages (and its guarded variant) kept the whole
send inline: spend cap, sendId idempotency, steer into a running turn,
queue, or start. Move that into acceptDirectSend, with the spend-cap and
task checks in directSendRefusal, so another caller can send a person's
words the same way.

No behaviour change: the route answers the same refusals in the same
order (nothing awaits between its early check and the shared one), the
guarded start runs at the same point inside the send sequencer, and a
steered message still clears the unattended mark only for a proven
person (a paired session, or the desktop's owner capability).

(cherry picked from commit e3118d2ca3a277b64db0ed72752a90a0ef0456ba)
A Live call runs the conversation through OpenAI GPT-Live. Its client
delegation hands every real request back to the application, so the
harness sends it to the bot as an ordinary message marked `via: "call"`
(through acceptDirectSend), and the bot keeps its own engine, tools,
memory and approvals. The voice only talks, listens and takes
interruptions.

LiveCallController holds the sideband WebSocket to the call's session and
runs every rule that joins the voice to the bot, once, for every client:
a delegation becomes a message on the bot's thread; the bot's progress
becomes quiet context and a status note every 30 s while it works; its
answer is read back; a permission card is decided by a strict spoken yes
or no (shared/call-consent.ts), never by the voice model, and a card
decided that way is marked "by voice" on the card and in the decision
log; proposals that change the bot or the workspace stay on screen. A
typed message during a call is answered by the bot and read once, or,
with "read replies to typed messages" off, nothing about it reaches
OpenAI. A call hangs up after 5 idle minutes (configurable), and ends at
once when the sign-in that started it ends or its phone is unpaired.

Routes (server/routes/live.ts, admin scope): POST /api/live/session
exchanges the client's WebRTC offer for OpenAI's answer, so the key never
leaves the harness; POST /api/live/call/end, GET /api/live/call and
PATCH /api/live/settings (voice, typed replies, idle minutes; a key in
the body is refused). POST /api/live/device-revoked is the companion's
own notice that it unpaired a phone; the relay token opens it, a phone
never can (companion/src/routes.ts isCompanionNotice). State travels in
admin-only `live.call` frames.

The key is write-only, like every other credential: `live.key`, the
OMB_OPENAI_LIVE_KEY environment variable, or the desktop credential
`openaiLiveKey`, kept apart from every other OpenAI key; the API reports
only `configured`. Words spoken on a call stay out of server.log, whose
call lines carry counters only.

Tests run against server/testing/fake-openai-live.ts, a loopback fake
GPT-Live with a sideband WebSocket; the fixture launcher lets a loopback
OMB_OPENAI_LIVE_URL (and only then the key) through to the child.

(cherry picked from commit 32b01a7266c98c848ca59aecf37697f81c5a3903)
The call button now starts the kind of call picked last, and the arrow
next to it picks Take turns (the existing call) or Live. A Live call
keeps the chat on screen: a bar above the composer shows the call time,
a caption of what the voice says and what it heard, a settings gear,
Mute and Hang up (Cmd/Ctrl+Shift+M and Cmd/Ctrl+Shift+H). The call's
media lives at app level (src/lib/live-call-media.ts), so switching
chats keeps it, and a pill shows the call from any other chat.

The renderer holds only the microphone, the speaker and a data channel
that may send session.close; everything the voice is told runs on the
harness. The first Live call asks for an OpenAI key (saved through the
desktop credential store, or PUT /api/config in a browser), and the gear
changes the voice, typed-reply reading, the idle minutes and the key.
Both say what a Live call sends to OpenAI.

A spoken request shows "via call" in the chat, a card decided by voice
shows "by voice", voice notes do not play during a call, and the call
button is hidden while a phone holds the line (the bar then says which
device, with a hang-up). A call whose audio does not connect within
20 s drops and offers Try again; Try again appears only where a retry
can help.

(cherry picked from commit d4693db0f8ab1faa488463708d65f44bf09be8f4)
The Voice and memory page explains Take turns and Live, the call bar,
how approvals work by voice, typed messages during a call, idle hang-up,
the key and its cost, and exactly what a Live call sends to OpenAI.
docs/voice-mode.md notes why GPT-Live's client delegation answers the
earlier "they replace the brain" objection, and the design spec records
the shared contract the desktop, iPhone and Android clients follow.

(cherry picked from commit d2bc15410ec060406430b7b23b62837d9e796cb1)
(cherry picked from commit 14e7d505abf522ead8e47f7c27415130fd734cfe)
(cherry picked from commit 1b510e9e6b82d4d4d7227eea9c1a31d3b139dd11)
A start that threw after OpenAI created the session, before a sideband attached, freed the call slot but left the session open until OpenAI timed it out. It is now closed through closeOrphan, as a cancelled start is.

(cherry picked from commit b3bba238fb2cfcd52394c63b5badc46cbf4569b6)
Two /api/live/call lookups that overlap leave at the same liveCallVersion, so an earlier answer that came back last replaced a later one. Each lookup now has a request number, and the store applies an answer only if no later lookup's answer was applied first.

A live.call frame is now rendered at once (flushSync), like a lookup answer: a bot message frame right behind it decides auto-speak from stateRef, which could still say there was no call and start reading the reply aloud during the Live call.

(cherry picked from commit a5775ae950a82ada006bfde49c6a9708c8392f78)
main now keeps quiet text readable with its own token, --color-ink-tertiary, and src/lib/faded-text.test.ts refuses the secondary ink with an opacity modifier. The heard caption, the "by voice" and "via call" labels and the Live settings' hints and disclosure used text-ink-secondary/60-80; they now use text-ink-tertiary.

(cherry picked from commit 69f6f0d62b8da34d32b0990cd1a47cf834a37e42)
(cherry picked from commit 22b00b61703639af585f435875b94837a7a5cb15)
A paired phone may now start, end and follow a Live call and change its
voice, typed-reply reading and idle minutes through the four /api/live
routes. It never reaches the OpenAI key: PUT /api/config stays
computer-only, and a key in PATCH /api/live/settings is refused by the
harness.

The harness hears a phone's requests as this computer's own, so only
the companion knows when a phone is unpaired. Revoking a device now also
sends the harness POST /api/live/device-revoked (harness-notice.ts),
over the relay's own authenticated path (companionIdentityHeaders,
shared with the proxy), so a Live call that phone holds ends at once
instead of at its idle hang-up. The notice is best effort: a harness
that is not running has no call to end.

(cherry picked from commit 25b6c61cb2b10d55e5aa18672ecb4045213e9a12)
CompanionCore learns the harness's Live call contract: the `live.call`
frame folded into the store, `via: "call"` on messages and the live
settings in config frames, and the four /api/live routes on the client
(the WebRTC offer posted byte for byte, both 409 bodies kept whole, an
end that reads 404 as already over).

LiveCallMachine is the phone's side of a call as a pure state machine:
calling, connecting, live, ending and ended, with the end reasons and
words the desktop uses, Try again only after a drop or a failed start,
a 20-second drop when the audio never connects, and the rule that a
call ends when the app leaves the screen. LiveCallSupport holds the
notices, captions, clock and the once-per-phone disclosure of what a
Live call sends to OpenAI. CompanionCore stays dependency-free, so
`swift test` covers all of it on a Mac.

(cherry picked from commit a58615a97a4ac2b341f0616664f8647034ecd7ef)
The phone icon in a bot's chat header starts a Live call. The phone
holds the microphone and speaker and talks to OpenAI directly over
WebRTC; the computer creates the session (the key never leaves it) and
runs every rule of the call. A bar above the composer shows "Calling",
"Connecting…" and then "Live with <bot>" with the time, the captions,
a settings gear, Mute and Hang up; a banner follows the call to the
roster and to other chats, and a remote bar shows a call the computer
holds, with a hang-up.

The gear sets the voice, sound output (speaker or earpiece; a headset
always takes the call), typed-reply reading and the idle minutes; the
key row says it is managed on the computer. Before this phone's first
Live call a note says what a call sends to OpenAI, with Start call and
Cancel. A call ends when the app leaves the screen, on an interruption
such as a phone call, or when the computer unpairs the phone. Spoken
requests show "via call", and voice notes do not play during a call.

WebRTC comes from stasel/WebRTC 153.0.0, a prebuilt XCFramework of
Google's WebRTC (BSD 3-Clause), pinned exactly in project.yml for the
app target only (about 12 MB on a phone); NOTICE lists it. The media
sits behind a protocol, so `-live-call-preview` drives the bar offline
with fake media: LiveCallUITests runs that way on iPhone and iPad in
the existing CI script. New strings have Brazilian Portuguese
translations in Localizable.xcstrings.

(cherry picked from commit 13e5d81a1655661dfd9a9a85d2229321ece023f5)
The README lists what a phone may do on a Live call (never the key) and
the app's one third-party dependency. TESTING.md gains Stage 6, the
manual Live call checks on a real iPhone, with the words the app shows,
and the preview flags the simulator runs use.

(cherry picked from commit 97e2843c95b46e5bf966f56fe43ea6cef3c67bb2)
The remote bar read "Live with Pepper from your computer · 1:05" on one
line, and on an iPhone 17 Pro the clock fell off its end. It now reads
"Live with Pepper · 1:05", as this phone's own call does, with "From
your computer" on a line of its own under it, where the live bar has
its captions. Those are the desktop's words for the same bar ("Pepper
is on a Live call from an iPhone"), and Android's.

On both bars only the bot's name gives way: the clock takes its whole
width first, with digits of one width so a long name is not cut a
letter shorter or longer every second, and the name is cut short with
"…". VoiceOver still reads the whole name.

LiveCallUITests checks this with a 40-character name
(`-live-call-long-name-preview`), on the remote bar and on this phone's
own call, and checks that the chat's newest message and the typing dots
stay above the bar when the bar gains its caption line and when the
remote bar shows. The iPhone already kept them there; the tests keep it
so.

(cherry picked from commit 18a9be517c02b108f045c8558d4883ad43e39d26)
Pairing, switching or forgetting the active computer cleared the session's state before the connection changed. The controller read the cleared call as the computer saying the call had ended, so the phone closed its media and sent the computer no end request. Session now announces leavingComputer before it clears anything, the controller hangs up there, and the end request is bound to the client of the computer that holds the call.

(cherry picked from commit c32079c32624b7acab0473ef02d408fb72a392d5)
hangUpRemoteLiveCall captured its client before the request. A 401 or an error from a computer the phone switched away from meanwhile set status to unauthorized, or showed an alert, for the computer selected now. Both now apply only while the request's computer is still the connected one, as in endLiveCall.

(cherry picked from commit 0fa07db30d02885c6a6f92b3f271e3dac0ae208d)
startLiveCall and updateLiveSettings captured their client before the request, like hangUpRemoteLiveCall. A 401 or an error from a computer the phone switched away from meanwhile marked the newly selected computer unpaired, or showed an alert on its screen. Both now apply only while the request's computer is still the connected one.

(cherry picked from commit c575550197fd332d22d242b57760eb4f143ab9d2)
:core learns the harness's Live call contract: the `live.call` frame
(a frame without a `call` key is broken, not a free line; a status this
build does not know counts as running), `via: "call"` on messages, the
live settings in config frames, and the four /api/live routes on the
client (the WebRTC offer posted byte for byte, both 409 bodies kept
whole, a longer timeout for the session request).

Session keeps the line: it re-reads the call after a fresh hello, but
neither that answer nor a hang-up's ever overwrites newer news, and a
hang-up answered 404 for a call the line still shows reads the line
again.

(cherry picked from commit da3515e486120dbd1e5e9f06820459867ff271d5)
The phone icon in a bot's chat header starts a Live call. The phone
holds the microphone and speaker and talks to OpenAI directly over
WebRTC; the computer creates the session (the key never leaves it) and
runs every rule of the call. A bar above the composer shows
"Connecting…" and then "Live with <bot>" with the time, the captions,
a settings gear, Mute and Hang up; a banner follows the call to the
roster, and a remote bar shows a call another device holds, with a
hang-up.

LiveCallManager is app-scoped, so a call survives leaving the chat; it
ends when the app leaves the screen (process ON_STOP, not an Activity
pause, so rotation keeps it), when the pairing is lost, or 20 s after an
answer whose audio never connects. The gear sets the voice, speaker or
earpiece (a connected headset always takes the call), typed-reply
reading and the idle minutes, and says what a call sends to OpenAI;
before this phone's first Live call a dialog says the same, with Start
call and Cancel. Spoken requests show "via call"; voice notes and voice
previews stay off during a call, refused at the players' audio gate.

WebRTC comes from io.github.webrtc-sdk:android 150.7871.01, a prebuilt
libwebrtc (BSD 3-Clause), about 12 MB on an arm64 phone; NOTICE lists
it. Only audio/WebRtcLiveCallTransport.kt imports org.webrtc
(LiveCallNativeIsolationTest pins it), so the JVM suites never load the
native library, and the manager is tested against a fake transport. The
manifest adds MODIFY_AUDIO_SETTINGS, a normal permission, for the
speaker and earpiece route. Release packaging is unchanged.

(cherry picked from commit 1a4b4ab8dc7a3d10007c7a18d307fb87534e125b)
docs/verification/android-live-calls.md lists what the :core and :app
suites cover, an emulator smoke against the fixture and the fake
GPT-Live (this phone's call, and a call from the computer), what that
smoke cannot show, and how to sideload the preview build. The
verification index links it.

(cherry picked from commit 452d330dd18b726f713518692d42237d7578b3ab)
When the call bar grew (its caption line once a call is live, a notice
that wraps, the remote bar), the chat's newest message slid under it:
the transcript got shorter from the bottom and kept its top. A
transcript that showed its end now keeps showing it as it gets shorter;
one the reader has scrolled up stays where it is.

The remote bar read "Live with Scout · 0:12 · on your computer" on one
line, cut to "on your com…" on a 411 dp phone. It now reads "Live with
Scout · 0:12", as this phone's own call does, with "From your computer"
on a line of its own under it, where the live bar has its caption.
Those are the desktop's words for the same bar ("Pepper is on a Live
call from an iPhone"), and the iPhone's. On both bars only the bot's
name gives way: the clock is measured first and whole, with tabular
digits, and TalkBack still reads the whole name.

Tests: the scroll rule on the JVM, a 40-character name at 360 dp on
both bars, and the chat's newest message above the bar while it
connects, goes live, hangs up and when the remote bar shows.

(cherry picked from commit d3f073969b2642ded793ef0f433958beb6acc6a0)
begin ignored a refused audio-focus request. While a phone or VoIP call holds the audio the request fails, yet the Live call switched to MODE_IN_COMMUNICATION and shared the microphone and route with it, and no focus loss would ever come. A refusal now reports as a focus loss, so the call ends with the same notice.

(cherry picked from commit d446b8b6548ae1b742424e61e38a7af073446889)
Pro card: launch price without a struck-through former price
Cloudflare allows 1,000 tunnels per account; 749 are in use, 187 of them
offline for 14+ days, and 25-50 installations are added a day. Observe mode
since Oct 1 confirmed the scan. Returning computers get a new tunnel under the
same hostname on app restart; a laptop that slept through the reclaim with the
app open stays offline until restart (app fix in progress), so the threshold
starts at 14 days and drops to 7 once that ships.

Deployed with wrangler at 2026-10-02 (version 56099921).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Control plane: reclaim tunnels offline 14+ days
(cherry picked from commit 98e8e30114a2bbe4380152777f75a4d52b51093f)
(cherry picked from commit 56f4b11d19b9237d6b2d74574375175132c79d4e)
Add an "Other model providers" page to the docs site's Agent engines
section. It says what works today in each engine (opencode auth login,
the OpenAI-compatible slot in Connections, Claude Code's own settings
file), what the planned Model providers list will do, and the known
OpenCode 2.x (@opencode/cli) problems. Link it from the engines page,
the README and the OpenCode note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6eeb775aa0d95bce17f5420760f431deb42d5996)
- Claude Code: OpenRouter's and DeepSeek's guides use shell exports, so say
  to copy them into the settings.json env block; ANTHROPIC_MODEL does show
  under "Use a local model" and should be picked; tier and subagent model
  settings don't carry over; no terminal exports on a server.
- OpenCode 2.x: today's discovery can't read 2.x's model list, so the picker
  shows only the free models; install 1.x from Settings and sign in with it.
- opencode.json must stay plain JSON, because OpenMausBot rewrites it.
- Keys exported on a server reach every engine; "will only send" is about
  OpenMausBot itself.

server/model-providers-docs.test.ts pins each claim to the code it
describes, so the page fails CI when that code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 48f378410d5a7f0f8691773dd6c125c12e421956)
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit e66598dc3f041d2fd79678cadce0d278ca69def3)
(cherry picked from commit 802e4ad48409d99362a9a5c0aacead380e716878)
The skillsLibrary flag was documented as a config.json hand-edit but
featureConfigSchema omitted the key, so zod silently stripped it and the
flag could never turn on. Add it with the same shape as its neighbors:
off until explicitly enabled. appConfigPatchSchema shares the schema, so
PATCH accepts the key one slice early — accepted for S1; S2's route test
covers the remaining delta.

The migration script's header claimed a flag-off run changed no bot's
behavior, but the script migrates unconditionally: it archives per-bot
copies and clears their manifest entries, so bots see those skills gone
until a flag-on boot applies the pending assignments. State that
contract, and pin parseStoredConfig keeping features.skillsLibrary while
genuinely unknown keys still strip.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit ceb8e3e6cee59825b424b61fd6ab5c8152d80129)
(cherry picked from commit 759a9d1d2b832e3bb28c993b5e25ee1779e1e7a2)
CodeRabbit #1898 round, both findings first-party verified at ceb8e3e6.

Security: wireBot and wireTrustedApprovalBot destructured the seven
pre-existing private keys but not assignedSkills, so ...rest carried it
into every client bot payload despite the type-level BotWirePrivateKeys
guard (spreads do not fail typecheck on excess keys). Both projections
now strip it in the same style as packageBase. Pinned at runtime by a
new e2e suite that boots the real server with assignedSkills live on
the stored record and asserts the serialized /api/bots payload has no
assignedSkills key, both with the skills library flag off and on; the
pin was verified to fail on the unfixed projection.

Migration semantics: migrateBotSkillsToLibrary pushed every archived
copy into assignments regardless of its own enabled flag, and the dedup
path assigned identical bytes even when the library entry was disabled
or the bot's copy was off — order-dependent outcomes for the same two
bots. Assignment now follows per-bot copy.enabled (a disabled copy
migrates its bytes but assigns nothing); entry creation still maps the
first copy.enabled to reviewState; and a bot whose copy was enabled but
meets a disabled entry is skipped with a clear detail, its copy left in
place to retry once the entry is approved. A two-bot same-bytes test
pins both migration orders; the pending-assignments sweep fixture now
enables its copy, which the old assertion only passed because disabled
copies were wrongly assigned.

wire.test.ts:82 was checked per the brief: it is a compile-time
fixture over a record without assignedSkills, not a projection, so
there was no runtime leak to fix there.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 4ad6f12a1735e24e89103741e749a173144bdd7e)
(cherry picked from commit 7101446bbfd720ffea60564484fe4e2740f1fba7)
The listing route already resolves assigned library-only skills through
readBotSkillFile, but the single-skill GET route still read the bot-local
store only, so an assigned library skill with no local copy answered 404.
Read through readBotSkillFile with the bot record, preserving the 404 when
the bot or skill is unavailable. Route-level regression pins both the
flag-off per-bot behavior and the flag-on library read.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 1f7c4c8a24c6b7a362a0b5111e3392bc2c1e8bf2)
(cherry picked from commit 3d29cdc54ce06695d69d4f81039d8dd63c16400b)
readBotSkillFile fell back to readLibrarySkillFile whenever the bot had
no own file for the name, without checking bot.assignedSkills. The GET
/api/bots/:id/skills/:name route passes its path parameter straight
through, so a session with visibility of one bot could read any shared
library skill, crossing the assignment boundary resolveBotSkills
enforces for listings. Gate the fallback on assignedSkills so every
caller gets the same boundary.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 9bbaa2c945576f2e103afcf74ece26835ea17708)
(cherry picked from commit b4e2e00d679c01d1181a1e02c3638c012735fd1b)
(cherry picked from commit ad4ab31e67371611c884e5053292fa83c94b865f)
readBotSkillFile fell back to the library on name alone: a private listing whose stored SKILL.md failed its hash check could export another bot library skill with the same name, and unassigned names were readable too. Keep private-over-library precedence and require an explicit assignment before the fallback reads the library.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit a069acc0650f47fe105da3c1044e7426eaa40115)
(cherry picked from commit 548ac00ecfc430b0dfee9bbe9c07c19a6707c4f2)
The skills prompt section in startTurn and runGroupMemberTurn still read the pre-setup bot snapshot while sibling fields already prefer the re-fetched liveBot/readyBot records, so an assignment changed during setup was missed until the next turn. Wire assignedSkills through the same fallback convention.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit be2e7a97c4b4c6ea54d110d2b657376e4fc7895b)
(cherry picked from commit 9c052cdf1da97e581df2164f1d0bd9763124010c)
Deduplication ignored the migrating bot own on/off switch and adopted the shared library review state, silently flipping skills on or off for later bots; skip and keep the per-bot copy when the states differ. The manifest entry was also dropped before the assignment was durable anywhere, so a failed patchBot or pending write stranded the archived skill; record each assignment in pending-assignments.json before removeManifestEntry and keep the manifest when that write fails.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit bc8b1ee6df7f57cdc2dfb56fbcc4ff1ee82bacb4)
(cherry picked from commit d7075460f07e6a365d8677b83f050639710ad7ba)
collectBotSkillDocuments now computes the bot's private names up front and
skips the library read when a private skill's bytes cannot be read or the
listing was never an assigned library skill, so a broken private skill drops
out of the shard instead of admitting an unassigned same-name library skill
into the router. The library migration now records the pending assignment
before archiving the per-bot directory: a failed pending write leaves the
skill readable in place for the next sweep, instead of a manifest entry
pointing at bytes that were already moved away.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 55c928f05344575e111a8ef4c9f0d9bd6ec607cb)
(cherry picked from commit 28077f90e7d53dacdaa757a8ec7e1975b3452cc5)
(cherry picked from commit 82a88c05786468c7216cc607a7869b5af375ddb8)
The first-conversation watcher kept a spotlight up until "Got it" was
pressed, even after the card it explained was answered. The answered card
drops its data-tour anchor, so the Spotlight fell back to its last
rectangle and the tip stayed pinned over the reply streaming in below.

A card spotlight (approval or connect-app) now counts as seen as soon as
its card stops waiting, and is not rendered in that state.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit ff3a0969314585fc46b03af5a0c01145ad4183be)
(cherry picked from commit 77500346c4f80bd4fd434fa0dfe72ba3a644bdc0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit f379f6cb31426be20a45809f8718cbcc41ae5f67)
(cherry picked from commit 642395e34393c7312457e17ed552130e7a64481a)
The beat wrapper in WelcomeFlow was shrink-0, so the engines list (already
min-h-0 overflow-y-auto) could never shrink. With 13 engines the card grew
past the window and the whole card scrolled, pushing Back, the progress dots
and "Step 3 of 5" below the fold at 1440x900 and at the 840x620 minimum
window. The engines beat alone may now shrink, so its list scrolls inside
the card; other beats keep their height and the card scroll as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit fdb34929c3d7107fd3d3892301476fefef434499)
(cherry picked from commit 4f3874e065a017770811f71d8d6422386e268405)
The reel draws its own six scene dots just above the footer, and the footer
drew the flow's five step dots underneath, so the reel step showed two rows
of dots with different counts. The footer now leaves its dots out on the
reel beat (flowDotsShown) and keeps Back and "Step 2 of 5", so the scene
dots are the only dots while the reel plays and the flow position is still
spelled out.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit bac8e76bae6e0be88dd94a703a0e474aa75f53d7)
(cherry picked from commit 15fcf3733795beb79d4d93a9e0c602caedea27b7)
The "They have hands" reel scene spent its first second (500-1600 ms) on a
black screen with a spinner, "Connecting to the screen…" and an amber
"Starting…" status. Anyone who clicks Next through the reel lands on exactly
that frame, and it reads as a broken Computer panel. The drawn panel now
slides in already connected, the booking page on screen; the pointer, the
click, the tool chip and the reply keep their timing. No network is
involved: the scene is drawn in code.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 0b803f7941ac77d2c2cec0d1151606ee06159643)
(cherry picked from commit 71a1cb1852107695e26d8c9a021a0b70cf56aa6e)
"Bots run on AI tools installed on this computer — here's what we found."
now reads as two sentences. A words test keeps em dashes out of the English
welcome flow copy. The meaning is unchanged, so the nine existing
translations are kept and re-accepted against the new English source
(source-hashes.json only); translators can adjust their punctuation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 8b7db139fd26826c4bd2c660169c2c9383223b27)
(cherry picked from commit 0e0df58627ef6e5d34d49e1ed1bd346a7c425737)
The Team map header rendered t("canvas.botCount") ("{count} bots") for any
count, so a workspace with one bot read "1 bots". teamMapBotCount follows the
catalog's existing One/Many pattern (like engines.library.countOne) with a
new canvas.botCountOne key; other languages fall back to English for it
until translated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 61d369a0b1abf2f7a6f988ff0c4e06174672c3cd)
(cherry picked from commit d16731ce6cdde88d92698a650ab53175110c886d)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit dd3bff90967a836836413ff5e450d789e3fc349d)
(cherry picked from commit a61be2294a77a890767a3b3abae83f74a1923629)
The New or share (+), Active Threads and density menus in the sidebar
header each laid an invisible full-window backdrop under the popover.
The backdrop ate the click aimed at anything else, so the first click
only closed the menu, and only the density menu listened for Escape.

Move the dismissal the Tools and profile menus already used into a
shared usePopoverDismiss hook (Escape or a press outside the menu's
root), drop the backdrops, and use the hook in all five sidebar menus.
Escape is left alone when something closer already handled it
(event.defaultPrevented) or an IME is composing, and is marked handled
when it closes a menu.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit cf2e9dd7fe0792e8359c3edbef08cf59f5714d67)
(cherry picked from commit 34fd1817d2f11f1f6de5697a7cb267f6f8d2faf4)
The paused-routines list never took focus, let Tab walk out into the
calendar behind it, ignored Escape (the page's Escape handler never
cleared it) and had an unnamed close button. The event-details dialog
closed on Escape but also never took focus or trapped Tab.

Lift the event editor's focus trap into a shared useModalDialog hook
(focus in on open, Tab/Shift-Tab wrap, Escape closes, focus returns to
the opener) and use it in all three calendar dialogs. It now respects an
Escape a field inside already handled and wraps Shift-Tab from the
dialog itself. Name the paused list's close button through i18n.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 0c064fc7176e5e5c9f98073e83fc239bd44840ec)
(cherry picked from commit e040be1c43b5f9894304739bc88f4173ce5f0e32)
Both were icon-only X buttons with no accessible name, so a screen
reader announced just "button". Give them translated names (and the
matching tooltip) through new computer.close and onboarding.card.dismiss
keys.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit ed7d93ae90f40a826a030bfcd55cdc005fb4bf54)
(cherry picked from commit a46ce59f6dfe59b631ff344b4d5a250060be8484)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit b6a2cf55d3d14d4aec55c3bf06bcc7e0a7ed79eb)
(cherry picked from commit a38ca7a28ea89cbcb4ce17b652f06ba9fa4e4e9b)
(cherry picked from commit b291865e4dce62915678a33e6e2311e287d81295)
(cherry picked from commit 90a03f426caf5b6cb14984f5f953ee9ab618f853)
(cherry picked from commit dc60de9a95b47450ad00c9d39c4f4b54f19b9a6c)
(cherry picked from commit ba081b48e741c4e8a043556763d0f9fd8a9ac2f5)
(cherry picked from commit 2c9c8d3f61160f5beccc389f9ac9839a6717fd6a)
Settings → Usage shows the remaining 5-hour and weekly allowance for each signed-in Claude, Codex, and Grok account, and the percent used when a provider splits a window by model. Tokens stay on the server. A window the provider does not report is labeled as not reported, and no estimated split is invented.

(cherry picked from commit c267e551cc9d42a510e56b30e2db6815b325ba5d)
(cherry picked from commit 6211d44d72cd111d65337e057aa8a7876ac2ddb1)
Read a macOS Keychain Claude login when the credentials file has no token. Only Opus, Sonnet, and Haiku are model rows. The reset label ticks and refreshes when a window ends.

(cherry picked from commit dd956d2d1bf4db6bd8bf05ce742eecb9f98c6faa)
(cherry picked from commit 712a657f83cee231732e1a21d3fd13f8a8296d19)
A custom config directory reads only its own Keychain item. If that item has no token, plan usage says to sign in again instead of showing the default account.

(cherry picked from commit 323e779e57a704b6deaeab15867cc8b58d8b406b)
(cherry picked from commit 756fface4567f72c513dab6859ec7e029b606fb1)
(cherry picked from commit 4fd0914a67ccc6083781648160de8407f10da4f4)
Pinned bots can show as large avatars that reflow as the sidebar widens, and the sidebar edge can be dragged between 240 and 640px. Universal pins keep pinned bots from every group, including a group's chief, in a fixed strip at the top. Both options are off by default, so the existing Pinned section and group chiefs stay as they are until turned on.

(cherry picked from commit f3776f60b1a2f8d995aa8120a41f315890c61c25)
(cherry picked from commit e0b75edc2c73762917d7dbdd2efb7a82d04eeaa3)
(cherry picked from commit 8f2bfe4d172eacbaf9f6ff0c269eeb3bb2ee7b39)
(cherry picked from commit a9a7cbe6e349ddbfcc00c105fe85df07b7078a3a)
The snapshot does not promise one row per thread, and Dictionary(uniqueKeysWithValues:) would crash the extension during entity resolution. Both the row dictionary and the persisted identity store now use a merging initializer that keeps the snapshot's first-ranked row.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 326ad4de5f757d3718db6907df3b6dd1916c7f5f)
(cherry picked from commit 667579e05b)
(cherry picked from commit f46e6e7464697f896ae83b9dd9d3de73971884c5)
(cherry picked from commit 4184dec54b30807e13712361b0f92bfcc141badd)
(cherry picked from commit 9e1201dce94b215f6777372da1408f54e0b1d40c)
(cherry picked from commit 0a8131d1631939cdc2210a4da9f10f5448cb7f43)
Question cards were dismissed by closeOpenApprovals when a run ended, so a
question the user had not answered yet disappeared. They are no longer
closed on run end or settled by request.resolved. A late answer is delivered
as a normal reply, and a dismiss is refused with 409 while the question is
unanswered. Permission and proposal cards keep their existing close behaviour.

- guarded-requests.ts: unanswered question cards no longer block a run from
  finishing; expired/superseded checks unchanged.
- ask-question.ts: isPersistentQuestionCard excludes the modelRequest and
  tighteningRequest proposal cards, so they still close on run end and keep
  their dismiss button.
- OptionCard.tsx / card-answer.ts: question cards stay answerable after the
  run ends and hide the dismiss button while unanswered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6067cfd3e3bac7bc8d648ec3bd8a93f3c8c36717)
(cherry picked from commit 2bfb1232b04a414b9af45e5ed9435152d38e94f6)
Add the Skills settings section (browse with search and tag filter,
source/version/assigned-bot rows, one-click assign and remove, local
paste import) over the S1 library store, all behind
features.skillsLibrary. The per-bot SkillsSection simplifies under the
flag to assigned plus private plus add-from-library, hiding the GitHub
import form; flag-off rendering stays byte-identical.

Server: GET/POST /api/skills-library (browse, paste import),
GET/PATCH /api/skills-library/:name (sha-verified read, review toggle),
PUT /api/bots/:id/skills-library (assignment), and the flag-on per-bot
GET gains {skills, library, staged}. Wire types in shared/wire.ts.
The featureConfigSchema skillsLibrary line is owned by the S1 slice
(first-filed-wins) and is not carried here.

Tests: component filter/meta coverage, route tests including flag-off
shape byte-identity, and a behavior-eval scenario proving an assignment
change alters what a turn's system prompt sees.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 1c5b8e5348d48530a26e7b8d37e06ac8620221a8)
(cherry picked from commit ea3b0b3206c4aa9c8658b0fd94289bde99c6e362)
(cherry picked from commit 0f17c7a22cb2bb4f3b53eafa47775ec5292c0c3d)
(cherry picked from commit d64bf61262316f614de98c495e298b748ff25bd9)
When features.skillsLibrary flips false, the section list updates in an
effect but the current render can still mount SkillsSection, firing a
request to the disabled /api/skills-library route. Gate the render on
skillsLibraryEnabled(state.config).

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 79b53ef1418fab4fe57fcdf6bf40ce020c4440b2)
(cherry picked from commit f77260c7b8abc867c31c6e2663bd5a77b5137dce)
(cherry picked from commit df7b2b587ca6b2fbf6ee2392eda5fdfdd9a2be95)
(cherry picked from commit 7726ca86b2948cd1f7eb2e74345b2e8ea14c1a25)
Expire idle now defers while the sitting owner has a screen-touching computer tool in flight (begin/end fenced from the tool item fold), so a second turn can never claim the seat and overlap I/O on the same desktop; a call that outruns the quiet window releases at completion and opens the reclaim window. computer:phone is excluded from the idle policy: it is the #1663 exclusivity lock, claimed once per turn with no activity signal.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit d7e0753ada627fc766a625fcdfb480f24fd95d70)
(cherry picked from commit 65a2e061bca49fda64aa6bcb7c4b61b966abc607)
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 1cd4cb427bf4e68cac631799f68cb493da168b9e)
(cherry picked from commit fc0e85c31fb544aeb0c57a0251309faa599f659f)
releaseTurnResources now clears pendingComputerCallStarts alongside the
other turn-keyed maps (#1653 idle release). The Company cleanup ownership
fixture vm-extracts that function straight from index.ts, so its context
needs the map too; without it every extraction test died with
ReferenceError: pendingComputerCallStarts is not defined.

- fixture context gains pendingComputerCallStarts: new Map()
- managed-desktop-cleanup.test.ts back to 9/9

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 96daa242f29a28f63fc2a9cd47ef5fd2b7369b45)
(cherry picked from commit 42c4d1f21a0ad9b39dd2b8ec4cf34f2a6e9ea427)
A client's workspace export failed with "Cannot back up symbolic link
outside the workspace: task-workspaces/<bot>/<thread>/node_modules". The
export walks the whole data folder, including task-workspaces/ (where a
bot works when no project folder is set), and an agent had linked
node_modules there to another checkout's install. One such link failed
the whole backup.

- node_modules (folder or link) is omitted anywhere: it is reinstalled
  from the project's lockfile and a real one can exceed the 100,000-entry
  backup limit on its own.
- Symbolic links inside task-workspaces/ are omitted: their targets are not
  this workspace's data.
- Both are counted in the export's warnings and listed in its exclusions.
  Links elsewhere keep the existing rules (an external link in a bot's
  memory folder still stops the export).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(backup): leave out node_modules and links in conversation work folders
Triage: integrate 15 reviewed PRs and fix validation blockers
(cherry picked from commit 1c65aff4236581f47ad1f82699935860f01e125c)
(cherry picked from commit 6335a5682ed6b969308dc174ba15e362affbb080)
(cherry picked from commit dda7f62934c9238c345edb119d86ff5924a0b4ce)
(cherry picked from commit 0a7f06bb4752876ad08c4c53c4d2b9013d901724)
(cherry picked from commit 2057ec972131c5885372c0fd72ecca07762ecc7a)
(cherry picked from commit f39d4fde76f205d2629bd4d24ebbbb263c3c7d65)
(cherry picked from commit 0c5137bc5d5cf163f1e464faa147bac19c1549ae)
(cherry picked from commit 02d47052f6861b62189d94f0c761dfc781d94da3)
(cherry picked from commit e797ba65e092da2d414fd2cf43c97eb702187290)
(cherry picked from commit aa32b0e0ee0312a5f144d425d189a6c0fb5d773e)
(cherry picked from commit 716f4d64e9c4295ed80015dc8fa0305a110307ed)
(cherry picked from commit 97ea0e1cb9c9e23b1060529d4ee9fe72f0ffc1f5)
(cherry picked from commit df634bbc76f1333f869ae8c75730e65becc27814)
(cherry picked from commit 8f10012c492b6606f60975bc433c6da4e9e54b07)
(cherry picked from commit b83c8cc56f6517b3cfc04e141bd47a6fa08934e5)
(cherry picked from commit 299dc1994fc6f0fc073d7a6f826d4e180b7738be)
(cherry picked from commit 97610003135bc611ca77fff6c62bf4bf57c890dc)
(cherry picked from commit 3c88856a351f4980951b9185a71c77b1ad7d6e7d)
(cherry picked from commit 572c42eb4add248c70342c577b71d7e6edc4d0fc)
(cherry picked from commit e48eaf6759c05974eb0933e2fe4f9da5ab0a4c71)
# Conflicts:
#	server/drivers/chat-mcp-tools.ts
#	server/store.test.ts
(cherry picked from commit 4ac5995487f66f330d7a8434e4fa09a8cbf8e888)
At the computer wait ceiling a turn used to fail: the seat stayed busy,
the work was lost, and the person had to notice and re-ask. Per umbrella
the wait chip resolves to a parked line (ok, with the holder named), the
turn settles with the new task activity parked.computer, and a
pendingComputerResumes entry - mirroring the connector and secret resume
tables - re-runs the turn through the group queue or startTurn when the
seat it queued on frees. A newer user message supersedes a parked resume.

The ceiling moves to OMB_COMPUTER_WAIT_MAX_MS, decoupled from the room
goal cap, so a long goal wait no longer implies a long computer wait.
turn.wait_ended gains a "parked" outcome (gave_up kept for recorded
logs); the lazy-claim rejection path parks the same way when the ceiling
fires under a live turn, and parked turns never file an incident.

The gave_up suppression guards in the dispatch catches went away with
the class they named: every error that still reaches them is a real
dispatch failure and is recorded once.

Closes #1651

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 39e327761cc0911246561f28186f01fa4abf74cb)
(cherry picked from commit b20341172443b9760a8dc966713a7c1164f185ee)
A goal-run member that hit the computer wait ceiling reported the
orchestration outcome "busy", and runGroupGoalStep's busy branch
retried the member in-step: every retry waited the ceiling out again,
claimed another turn from the goal budget, and kept looping while the
registered computer resume already owned re-running the member once
the seat freed.

Parked is now its own GroupMemberTurnOutcome. runGroupGoalStep never
retries it; the goal loop routes around a parked worker like a busy
one (reassignment note back to the lead, bounded by the wait-exhaustion
cap) and blocks on a parked lead like a busy lead, while the parked
turn still resumes through pendingComputerResumes when the seat frees.

The new isolated-server goal-run test proves both sides: on the old
outcome the run stays working forever (the worker re-parks every
ceiling until the turn budget is gone); with the fix it completes
after one parked chip and the member resumes on its own when the
holder releases the computer.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit b0e5e13df8db15c5daaf4279f134c665bc5f4c4e)
(cherry picked from commit 70949f16790069a95e8cb8fc7a39bbd58640b035)
TurnResources now keeps an arrival-ordered waitlist per resource: the
waiting chip names the turn's stable position, a release grants the seat
to position 1 deterministically, and an EWMA of recent acquired waits
shows an estimate only once a resource has history. Waiting turns keep
running their non-screen steps: lazy claims never join the waitlist, so
a failed lazy claim cannot block the queue's drain.

Closes #1652
Part of #1645

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 3e105f14ea23a3d8fad8d3964b31475bf3eb7a95)
(cherry picked from commit f425811a1ea9796c37871f0daf242da523088b19)
The vps-routing probe exact-matched the pre-#1652 waiting chip, so the
new position infix failed CI. Pin the shape with a regex that keeps the
holder phrase mandatory and tolerates the optional position infix and
estimate suffix. Also refresh the byo-vps example, which shows the same
chip to readers.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit b7245929641cdc8f0c29b573237f6a553ee4e1ba)
(cherry picked from commit 78b852ceaaf0dfd240f59c173cc04e6b6edbdccb)
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit c84e861161c5bc1c8d20097954cd74daddb5fd4b)
(cherry picked from commit 6a2e10e1f8395b19a6036c63b322d0a8852f4a9a)
Completes the CodeRabbit docs round on PR #1897 on top of the required
claim() fix in c84e8611:

- docs/verification/computer-wait.md now describes the
  OMB_COMPUTER_WAIT_MAX_MS park-and-resume ceiling and lists the
  park-and-resume, goal-routing, and parked-resume drain fixtures
  (thread PRRT_kwDOT1lw986mUQDK)

- computerWaitingText says the turn starts when the turns ahead finish
  once it sits deeper than position 1, with computer-wait.test.ts
  re-pinned for the position >= 2 tail; docs/byo-vps.md drops both the
  earlier-start promise and the 30-minute give-up wording
  (thread PRRT_kwDOT1lw986mUnnJ)

Rider extracted from OSS Eng's parallel round 49bfa136; its
turn-resources changes are superseded by c84e8611, the approved shape
the #1653 rebase plan references.

Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit bd2470de4464ced508c817c4b88e18865b5e380f)
(cherry picked from commit b66c9bf4a011d12653a0297e6db38d2e3b096788)
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit b418a03ef47185d57b4970c60541a28f216a3acc)
(cherry picked from commit f5e9c21bd6325a5d33370676c0807d68fd39961b)
Signed-off-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
(cherry picked from commit 72dfe10294a51bbc31e047c6ef6b68597351d540)
(cherry picked from commit 8069538dc0905455745d72e72aa25678ebf1b2a0)
(cherry picked from commit 81574f733e9fe651f38adbcd031f6cc102c154a2)
(cherry picked from commit c2e1546a4bea404dcd448cc7e2920edbdcb3a812)
Idle reclaim deletes a tunnel that has been offline for the configured
number of days. Re-provisioning behind the same hostname already worked at
launch and while the connector was retrying, but three paths stayed stuck:

- The app kept running through a long sleep. The connector verifies its
  public route once, so it can keep saying "ready" for a tunnel the server
  removed. The watchdog skipped "ready", so Secure HTTPS stayed dead until
  a restart. It now checks the endpoint (one GET, no provider calls) every
  15 minutes in starting/ready/retrying/error while Remote access is on.
  The same check repairs an endpoint left in "error" by a reclaim that was
  cancelled after its DNS record was removed.
- The 15-minute throttle compared against a full interval, so a check
  recorded a few ms after its tick made the next tick skip (effectively 30
  minutes). It now skips only a check that ran within half an interval.
- A 401 from GET (the 90-day installation credential expired) was
  swallowed, so a reclaimed computer showed "starting" forever. It now goes
  through retry: the account session renews the credential, or the user
  sees "Your sign-in expired". The watchdog pauses while signed out.

`openmausbot serve --tunnel` (account mode) now lends its running tunnel to
the same service: autoRecover, the 15-minute check, and a restart of the
running connector with the new token. It also logs an expired sign-in even
when a saved address exists. Fleet mode is unchanged (the fleet restarts
its containers with fresh access).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Companion: recover a reclaimed tunnel automatically, even while "ready"
(cherry picked from commit bfe7b590200b17180eed00cc02110762d7e63366)
(cherry picked from commit 40a0920e959c9443f3c5d1509286e55e58b8881e)
(cherry picked from commit a6a63ad9b6b9d860e4df5c3d836fd7782edb6a6e)
(cherry picked from commit c450345e92d969e787ec7f1e811d15b7f7f8fca1)
#2002 gave every main commit its own CI run so none was cancelled. After a
burst of merges on Oct 2, fifteen full runs (each with five macOS jobs)
queued behind each other and the 0.1.93 release waited behind all of them.

- Main pushes share one concurrency group again without cancel-in-progress:
  the running run finishes, only the newest waiting run is kept.
- release.yml's ci job runs scripts/release-ci.mjs: it passes on the
  commit's own green CI (push, merge-queue or manual run, latest attempt),
  stops on a red one, waits on a live one, and when the commit's run was
  replaced or never ran it starts CI on a release-ci/v<version> branch at
  the commit (its own concurrency group), waits, and deletes the branch.

Tests: scripted-GitHub cases for every path plus the REST calls; mutation
checks (counting PR runs, retrying red, skipping cleanup) each fail a test.
Live read-only run against 0.1.93's commit found its passing re-run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci: keep main to one running CI, and give releases their own CI lane
Integrate reviewed tools, skills and workspace fixes (Oct 2 batch 2)
App half of the purchase/activation audit (H3, H9, H10, H11, H12, M6, M8,
M9, M17, M18, L3, L8, L9, L10, L11):

- One rule (src/lib/cloud-plan.ts) decides what every surface says about
  the plan. An offer to buy goes only to someone signed out (who is asked
  "Already have a Cloud plan? Sign in" first) or verified free with no
  Cloud and no payment being linked.
- The Cloud session check no longer blinks to "unavailable": an answer
  counts for 15 minutes, a failed check keeps the last verified snapshot
  and says "Checking with OMB Cloud…" after two failures; a longer outage
  still names the plan last verified (a display-only hint).
- An ended sign-in asks to "Sign in again" (signInAgain(): one step, never
  "signed out" in between), keeping the plan named.
- Move to Cloud measures against the plan's largest disk, asks the Admin to
  grow the disk when it must (POST /api/cloud/desktop/disk), and explains
  plainly when it cannot fit or cannot grow yet.
- Server menu "My Cloud" connects directly; the desktop app pairs a
  /pair#code= link without a second click; a Cloud's pair page says where
  its connection starts (capabilities.cloudHome).
- Setup steps, payment-being-linked, plan on the Cloud's own Settings,
  visible sign-in code, after-move routines and phone steps, "+ tax".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Settings → OMB Cloud on a server in the app's window shows only on an OMB
  Cloud home (config.cloudHome); main answers cloud-plan:* for the Cloud this
  account last verified too, so an unavailable or ended sign-in says
  "checking" or "sign in again on your computer"; a refused state shows where
  the plan is managed with no buttons that would fail.
- Only the Admin's own JSON invalid_token ends a sign-in; a 401/403 page from
  in between (Cloudflare, a proxy) is a failed check, never "sign in again",
  and never counts as a revoked token on sign-out or a failed device sign-in.
- Move to Cloud counts on a larger disk only when the Admin says it grows
  (cloud.disk); otherwise today's free space decides and the Cloud's card
  offers no move it would refuse. An Admin that cannot grow the disk gets its
  own code and copy with no "try again".
- "A plan with a larger disk" only when the move exceeds the plan's whole
  disk, and never on Max; otherwise "make room on your Cloud".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Customers reported switching every thread a Chief of Staff opens with a
teammate from "Ask for approval" by hand. Only Full access flowed down; a
Chief on Approve for me or Auto-accept edits left each teammate thread at
the teammate's own level (Ask by default).

delegatedApprovalMode replaces delegationInheritsFullAccess: work a Chief
delegates (coordinate_bots, delegate_bot, a room handoff) starts at the
level of the Chief conversation it came from. It only raises (a teammate on
a higher level or on Custom keeps its own), a Chief on Ask passes nothing
on, and the teammate's engine caps it, stepping down to the next level it
has (no Full: Approve for me; Codex has no Auto-accept edits). The thread
says where its level came from and the person can still change it there.

Tests: unit cases for every rule; a real-server e2e where a Chief on
Approve for me brings a teammate in and the teammate's run starts in auto,
while a Chief conversation on Ask leaves its teammate on Ask (removing the
wiring fails it); 38 room/group/delegation/team files and the Chief,
coordination and Full-access suites pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Chief of Staff's approval level flows down to the threads it opens
Cloud after purchase: steady plan status, calm sign-in expiry, no buy prompts for payers
* feat(skins): add Meadow, the green MausBot skin

A ninth skin beside the original eight, which are untouched: white page,
faint-green sidebar, mint selected row, green accent and a green-black
user bubble with its own inverted @scope context. The contrast gate now
measures both inverted bubbles (Daylight and Meadow).

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

* feat: add the Advanced mode preference

Simple is the default for a fresh install; an existing install keeps
Advanced so an update never hides a control someone already uses. The
default is settled before applySkin writes its own first-run key.

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

* feat(settings): Advanced mode switch in Appearance

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

* feat(chat): lock usage and inspector behind Advanced mode

In Simple mode the header's More menu still lists Usage and Inspector,
disabled under an "In Advanced mode" heading, and an inspector left open
closes when Advanced mode is turned off.

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

* feat(model-picker): plain-words picker in Simple mode

Simple mode opens the model picker on provider cards, models by name with
a one-line hint, effort as Quick / Balanced / Deep / Max, and a "use for
new chats too" checkbox in place of the scope toggle. More shows today's
full picker in the same popover; Advanced mode opens on it directly.
The friendly steps map one-to-one onto the real effort levels, and a level
a bot already uses is never hidden.

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

* fix(settings): put the Advanced mode switch at the top of General

Appearance was too hard to find. A paired remote client has no General
page, so it keeps the switch in Appearance.

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

* feat(bot-settings): Details/Library bot panel in Simple mode

In Simple mode the bot settings panel opens on the bot's avatar and two
tabs. Details has Name and Job, the standing instructions (SOUL.md, same
save path and drift banner), "Ask me first" / "Decide for me" mapped to
the ask and auto approval levels (with the local-computer Auto warning),
the bot's skills with the same review-gated on/off switch, and an
"All settings" row that opens today's fold-out view with a Back link.
Library lists images and files the bot made in the open conversation and
jumps to the message; otherwise an empty state. Advanced mode is unchanged.

SkillsSection's skill state and review dialog move into useManagedSkills
and SkillReviewDialog so both panels share them.

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

* feat(computer-panel): Simple-mode tabs, Works-on grid and centred tab bar

Centre the panel's tabs as a pill with close pinned right (both modes).
Simple mode shows Computer | Browser | Files: the Browser tab stays when
the built-in browser is off and offers to turn it on (same PATCH
/api/config as Settings > Experimental, plus the bot's own switch); Files
shows the working folder and the files this chat changed, read from the
turn digests. The Computer tab gets one Take control / Full screen / Sleep
row and a "Where {name} works" 3x2 grid that runs the same selection
code as the Works-on picker, including the auto-approve warning for this
computer. VPS start/prepare/replace, the backend picker, VM settings link,
two desktops, Delete VM, the gear and the Routines card stay Advanced-only;
VPS setup becomes one line with a Show advanced controls button.

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

* feat(routines): week grid with a details drawer and a plain editor

The Automations page becomes Routines: one header with the date arrows,
range and Today, a Day / Week / List switch, Run logs, and New routine.
Webhooks stay in the header in Advanced mode only.

Grid chips take the bot's colour as a soft tint with its avatar; paused
routines keep their upcoming slots, dashed and labelled Paused. Picking an
occurrence rings it and opens a right-hand drawer (an overlay on a narrow
window) with the bot, the schedule in words, what to do, where it runs,
where results go and the last three runs, plus Run now, Pause/Resume, Edit
and the existing join / open / cancel actions. It replaces the details
popover and sends the same requests.

In Simple mode the editor asks only what should happen, who does it, when,
Once / Every day / Weekdays / Every week, and the instructions; everything
else sits behind More options, which opens by itself for a routine that
already uses one of those settings (a cron schedule, Boat runner, run
limit, team goal, attachments). Advanced mode keeps today's editor.

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

* feat(ui): liquid glass surface for centred pop-ups

Adds .glass-surface, .glass-card, .glass-rail and .glass-scrim, built only
from each skin's own menu, card and ink tokens, so all nine skins get a
glass of their own colour and no skin block changes. Reduced transparency
falls back to the opaque menu colour.

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

* feat(settings): glass pop-up with You / AI / Computers / Account groups

The rail now files every page under a labelled group; the narrow-window
picker uses the same groups. Section ids, visibility filters and
toggleAppSettings deep links are unchanged.

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

* feat(apps): one-view Apps pop-up with tiles and your MCP servers

Title Apps, search in the header, All / Connected / MCP servers chips,
a three-column tile grid with Connected state and used-by avatars, and
the MCP servers section on the same scroll with an on/off switch per
server. Connect, accounts, grants and every notice reuse the old logic.

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

* feat(triggers): Triggers pop-up for webhooks

When [source] -> [bot] should [instructions] creates through the same
POST /api/webhooks; the list shows name -> bot, deliveries, Copy link
and an on/off switch, with the editor, event types, rotation and the
delivery log under Advanced options. Webhook actions move into a shared
hook so the Automations tab keeps working unchanged.

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

* feat(sidebar): Routines, Triggers and Apps as direct footer rows

Replaces the hover Tools menu. Advanced mode keeps Team map behind a
small Tools menu (an icon in the avatars-only density); the failed
routine dot and the guided tour anchors stay.

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

* feat(chrome): one sidebar top row on the traffic lights; call from the composer

- Sidebar header is a single row centred on the macOS traffic lights
  (trafficLightPosition y=16, 14px buttons -> 46px row): light inset,
  compact inline server switcher (icon, truncating name, tiny chevron),
  draggable spacer, buttons as no-drag. Windows/Linux get a 48px row; the
  icons rail still stacks with the icon-only switcher beneath.
- Simple mode keeps only "+" in that row (Expand stays on an icons rail);
  Advanced keeps collapse and Active Threads.
- Chat header: All threads picker is Advanced only; the call button moves
  out of the header into the composer beside dictation as a Send-sized
  waveform circle with the same start/hang-up/help behaviour and telemetry.
  Rooms keep their header group call button.

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

* feat(model-picker): Simple picker in columns with effort along the bottom

Providers sit in a quiet column on the left (More is its last row and
carries the "All models, API keys, local models" label), the chosen
provider's models fill the right, and a band across the bottom holds
"How hard should {bot} think?", the new-chats checkbox and Manage AI
accounts. The Simple popover widens to 520px, still clamped to the
window; the full picker keeps 420px. Adds an empty state for a provider
with no models to list.

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

* feat(settings): five-page Simple settings and safe-area glass pop-ups

Simple mode's Settings rail now has at most five pages: General,
Appearance, AI (Model providers, API keys, Decision model stacked under
headings), Computers (Remote access, Servers, Local VM, Built-in browser)
and Account (OMB Cloud, Organization, People, Activity). Usage, Backups,
Experimental and Installations stay Advanced-only; a deep link to one of
them still opens it as a temporary page, and every other section id maps
to its combined page and scrolls that section into view. The remote-client
reduced set and the Advanced grouped rail are unchanged.

The built-in browser switch moves out of Experimental: it heads the Local
VM page in Advanced and is its own block after Local VM on Simple's
Computers page, writing the same features.browser setting. Browser
profiles move with it; Experimental keeps skill drafting.

Settings, Apps and Triggers sit in a safe area that clears the macOS
traffic lights and Windows caption buttons (56px top, 24px elsewhere),
at min(1040px, 100% - 48px) by min(760px, 100% - top - 24px). The Apps
grid sizes its columns by container width, and MCP server rows and the
MCP header wrap instead of overflowing.

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

* feat: browser on by default with its own tab switch; leaner header and sidebar

- The built-in browser is on unless switched off (an explicit false is
  kept). The computer panel always shows the Browser tab, with a switch
  that turns this bot's browser on or off.
- The chat header no longer carries All threads; threads live under each
  bot in the sidebar.
- Team map is its own sidebar row in Advanced mode; the Tools menu is gone.
- The sidebar's top buttons are smaller.

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

* feat(place): Auto as the conversation default; no place chip in Simple

Simple mode no longer renders the composer's "Where this conversation
works" chip: every conversation follows its bot's Works on, which is
Auto by default. Advanced keeps the chip.

For a bot on Auto, the chip's first row now reads "Auto - Picks the
right place for each task" and stays selected while the conversation
has no pin, instead of "Follow this bot's setting - Currently Auto". A
bot set to a specific place keeps the "Follow this bot's setting" row.

The Simple "Where {name} works" card already showed a pin note ending
"Change it from the composer", which pointed at the chip Simple no
longer has. In Simple it now only names the place, using the grid's
labels. There is no one-click "Use Auto" there: the wire task cannot
tell a person's pin from one Auto recorded (surfaceSource never leaves
the server).

New bots already start on Auto on every creation path (New bot dialog,
saved defaults template, POST /api/bots, Chief-created bots, package
import), so no creation code changed.

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

* feat(sidebar): right-align the server switcher beside the top buttons

- Top row order is now [lights] [drag space] [server] [buttons]: an empty,
  draggable flex-1 spacer pushes the compact switcher (max 140px, truncating,
  chevron kept) up against the buttons, in Simple and Advanced alike.
- macOS: the lights span 16-76px on macOS 26; their reserved space is now
  72px from the row's 16px inset, so nothing clickable (and no hover
  background) starts before 88px, 12px clear of them. The browser build's
  placeholder dots keep the same 12px.
- Right padding 16px -> 8px, so the last button sits 8px from the sidebar's
  edge; buttons stay 2px apart and 2px from the switcher.
- In a tight row the switcher gives way first and its button clips instead
  of spilling onto the buttons; the buttons never shrink or wrap. Its error
  note now hangs from the row's right end, so it stays inside the sidebar.
- Windows/Linux get the same right-aligned order with 16px left padding;
  the icons rail keeps its stacked layout.
- Sidebar.header.test.ts: order, padding and clearance assertions follow the
  new layout; the Windows/Linux case renders with its real host label.

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

* feat(model-picker): Simple picker lists every provider, names only, full-width effort

The Simple picker's provider column now lists every provider the picker
knows (sign-ins, then API keys, then local engines) with no top-3 cap; an
API-key provider carries a small key so a sign-in and a pasted key for the
same vendor read apart. The More row is gone: a provider shows its
suggested models and a quiet "Show all {count} models" row opens the whole
list in place, with a search box once it passes 12 models. A provider's
local models follow its own (loaded first), and a local engine lists its
models the same way. "Set up" on a provider that needs setup is now the
only way into the full picker.

Model rows show names only, truncated with an ellipsis; a blurb is the
row's tooltip. The popover narrows to 380px with a 128px provider column.
The "How hard should {bot} think?" label is gone and the effort steps (or
a named-variants select) span the whole bottom band, labelled "Reasoning
effort" for assistive tech. Escape in the Simple view closes the popover
instead of switching to the hidden local pane.

Removes the now-unused model.simple.more, model.simple.moreOptions and
model.simple.think strings; the no-models note no longer mentions More.

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

* feat(call): set up a voice in a pop-up; keep Apps bot avatars in their rings

Call help: when a call can't start for want of a voice, the help card's
"Open agent settings" (which dropped Simple-mode people into the bot's
full Advanced settings) is now "Set up voice". It opens VoiceSetupDialog,
a centred glass pop-up over the chat holding the bot's own VoiceSettings
card (engine, API key and Save, model/server, voice picker, read replies),
saved through the same useBotSettingsDerived patch as the Voice section.
"All voice settings" closes it and opens the bot's full settings at Voice.
If a call becomes possible while it is open, it says so and offers Start
call, which starts the call exactly as the call button does. Composer,
header and room placements share it; in a room it moves member by member
and stays on the last. "Choose This computer" is unchanged.

Apps pop-up: a "used by" mascot fills its whole square, so drawn at the
ring's own size its corners poked out of the white circle. Each avatar now
sits in a fixed 20px clipping disc and is drawn at 16px, which keeps every
mascot body, and uploaded images, inside the ring in every skin.

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

* feat(browser): take control implicitly; drop the Take control button

The Browser tab no longer has Take control / Return to bot. The page and
toolbar are usable whenever the view is connected and no other window
holds the browser:

- The first real interaction (click, scroll, key, paste, address submit,
  back/forward/reload, tab actions, Type or paste text) sends take and
  buffers itself and everything after it until the take resolves, then
  flushes in order through the input queue and execute(). Hover, a lone
  modifier or a stray release never takes control. A refused take drops
  the buffer and shows the server's message in the error bar.
- After 8 idle seconds with no key or button held, the panel drains its
  input and sends release so the bot carries on. Every input restarts
  the wait. Closing the panel hands back first when nothing is held or
  unsent; the server's disconnect cleanup covers the rest.
- While this viewer holds the browser a small status chip (hand + "You're
  using the browser") sits where the button was; a take slower than
  300ms shows "Waiting for {bot} to finish...". Another window's hold
  keeps the paused live view. The ⋯ menu is unchanged.

The server's exclusive lease is untouched: person and bot input still
never interleave. The lease logic lives in src/lib/browser-control.ts,
one controller per live-view connection. The input queue gains settle()
and size() so a long buffer is fed in batches under its 32-item halt,
and its overflow message no longer says "Release control".

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

* fix(place): Simple notes only a person's pin, with a way back

Review fixes for the Simple place change.

Clients can now tell an Auto pin from a person's. The task wire gains
surfaceAuto, which toWireTask derives from the private surfaceSource
and never stores. surfaceSource itself stays on the server.

Simple's "Where {name} works" card said "This chat is pinned to ..."
under every pin, including the ones Auto records on a chat's first
computer or browser turn. Those are most pins, and the person never set
them. The note now shows only for a pin that keeps the chat away from
the grid's choice and will not move with it: a person's pin, or one
from before the server recorded who set it. It stays hidden when the
pin matches Works on or Works on is Off. The composer chip is gone from
Simple, so the note gets a "Use {place}" button. It clears the chat's
pin, and the chat follows the grid's choice again. The button is
disabled while a turn runs, since the server refuses that change (409).

The client reducer drops surfaceAuto when the person pins or unpins a
chat. A person's choice is never marked as Auto's, even before the
server answers.

Surface prompts no longer send the person to "the conversation's
computer selector", which Simple does not show. They name the Computer
panel, which both modes have. The select_computer variant now swaps a
shared constant, so the two wordings cannot drift apart.

Advanced keeps its chip and its note.

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

* fix(sidebar): show the server switcher as icon + chevron when the top row is tight

Review follow-up to ef4a4abe. On macOS in Advanced at the default 320px
sidebar the slot between the lights and the three buttons is only 121px,
under the switcher's 140px cap, so the drag spacer collapsed to 0 and the
pill still ran from just past the lights to the buttons ("This com..."):
a 12px nudge, not the move to the right that was asked for.

- The spacer and the switcher now sit in one slot that is a named size
  container (sidebar-top). Below 164px (the 140px cap plus a 24px drag gap)
  the pill drops its name and shows icon + chevron; title and aria-label
  keep the full name. Same pattern as the chat header's chathead container.
- Result on macOS: Advanced 320px puts the pill 90px past the green light
  with a 78px drag gap; compact 272px 42px past it; Simple 320px and
  Advanced from about 364px keep the full name with at least 24px of gap.
  At the 240px minimum the pill sits at the 12px clearance, chevron intact.
- The error note still anchors to the row (container-type does not make
  the slot its containing block) and stays inside the sidebar.
- Sidebar.header.test.ts: the macOS and Windows/Linux row tests now require
  `relative` on the row, so the note cannot silently lose its anchor; the
  macOS test checks the slot container, the name's container variant and
  that the title keeps the name.

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

* fix: Simple picker reaches every account and local model again

Review fixes for the Simple model picker.

- Every sign-in account is reachable again. When a Claude or OpenAI row
  has more than one account (two Claude accounts, or Codex and the
  ChatGPT plan), an Account select sits above its models. The row opens
  on the account last browsed, else the bot's, else the first one ready
  to use. The Advanced rail is unchanged.
- A signed-out engine that lists local models keeps that list when its
  row is clicked again: what needs setup no longer depends on the hidden
  full picker's pane. A quiet "Sign in for {name}'s own models" row leads
  to the full picker's sign-in.
- Browsing to a provider that runs local models, or opening its whole
  list, looks for local models again. A provider with nothing to list
  offers "Check again".
- A provider the organisation blocks is dimmed, is named "Managed by
  {org}", and shows the policy text instead of Set up.
- Models that share a name (pi's routes) show their route as muted text,
  and every row's tooltip and spoken name carry the route.
- The API key is a badge on the provider mark, and "(API key)" or
  "(API)" leaves the name, so OpenRouter, Mistral and the Claude key fit
  the 128px column.
- "Show all" stays in place as "Show suggested only" once open, so
  keyboard focus is not lost.
- The named-variants select keeps a short "Reasoning" label.

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

* fix: keep paired desktops on remote voice settings; focus the voice picker once a key is saved

Paired desktops: on a desktop paired to another computer, the call help's
"Set up voice" opened the pop-up, whose saves the pairing refuses (the bot
update is PATCH /api/bots/:id, a 404 there; engine and key writes are PUT
/api/config, a 403), and which had no "Voice output on this Mac" switch.
There the button now opens the remote agent settings again, as "Open agent
settings" did (a room's member chat first). Those save through the host's
/profile route with the card locked. The pop-up stays for everyone else.

Focus: the pop-up started in the API key field whenever the engine has one,
even with the key saved and only a voice missing. It now starts on the voice
picker when VoiceSettings shows it (the engine is set up), else in the first
field (the key, or the Chatterbox server). The voice select carries
data-voice-picker for this.

Tests: paired-desktop cases for a bot's chat and a room; the voice-picker
focus case; and a check against the real VoiceSettings that the picker is
drawn only once the engine is set up, after the key field. The existing
key-field focus test now stubs lookups per selector.

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

* feat: Simple picks become the bot's default; Default model in the bot panel

- The Simple model picker drops "Use for {bot}'s new chats too": every
  model, effort or reasoning-mode pick also sets the bot's default, so a
  new thread starts on what was chosen last. Existing threads keep their
  model. Advanced keeps its own scope choice.
- The bot panel's Details tab gains "Default model" between Instructions
  and "Before {bot} acts": the same plain-words picker, shown in place
  (contained) so the scrolling panel cannot clip it.

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

* fix: browser take-over review fixes (stale input, status pill, Tab, hand-back)

Review fixes for implicit browser control (no Take control button).

- Stale input: the take reply now says whether the grant waited for the
  bot's own browser action (BrowserRuntime.take resolves true when agent
  work was running). If it did, clicks, keys and page-relative toolbar
  actions made while waiting are dropped instead of replayed on a page
  that may have moved; an entered address or New tab still runs, and the
  releases of dropped presses are swallowed. A pill says "{name} was busy,
  so that wasn't sent. Try again." until the next interaction.
- Status at any width: the status moved from the toolbar into a pill over
  the top of the live view (pointer-events-none), so "You're using the
  browser" and "Waiting for {name} to finish..." show in words at the
  default 400px panel. The hint no longer promises the bot carries on:
  "{name}'s browser tools are paused while you use it. Control goes back
  to {name} after a few seconds without input."
- Repeats during a take: toolbar buttons, the address bar and Restart wait
  out a take as they wait out a running action, and the controller keeps
  at most one buffered toolbar action.
- macOS shortcuts: keys the server sends as one whole press (shortcuts and
  discrete keys) no longer count as held, so Cmd+C no longer blocks the
  hand-back (macOS sends no key-up for a key let go while Cmd is down).
- Keyboard: Tab and Shift+Tab pass over the live view until the person
  clicks or types in the page, so tabbing through the panel neither traps
  focus nor takes the browser from the bot.
- Typing dialog: control stays with the person while "Type or paste
  text..." is open; closing it restarts the idle wait.
- Profiles: opening the switcher hands an idle hold back at once (or as
  soon as a running action ends) instead of after 8 seconds, and the
  dialog says why it is locked while another window holds the browser or
  an action runs.
- Server refusals no longer point at a Take control button: a browser an
  interrupted action left uncertain says "Choose Restart browser... in the
  browser menu"; other refusals say "Browser control changed. Try again."
- Docs: the permissions page and the browser verification checklist
  describe the new hand-back and stale-input behaviour.

Tests: new controller, panel, viewport, runtime and live-server cases for
each fix, mutation-checked. Updated because behaviour changed: the status
chip test (now the pill, aria-description instead of title, new hint) and
browser-live's "Take control" expectation (now "Browser control
changed"); the browser-live runtime fake gained interrupted().

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

* test(browser): route gates under the browser-on default

The owner-only route test assumed the built-in browser was off by default.
It now checks both gates: on (the new default) reaches the missing-engine
gate, and a browser switched off still refuses first.

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

* fix(smoke): expect the browser on by default in the packaged-server smoke

This branch turns the built-in browser on unless someone switches it off,
but the packaged-server smoke still required a fresh home to report the
browser off ("access remains opt-in"). Package Windows failed on it, and
release.yml runs the same check for macOS, Windows and Linux, so the next
release would have stopped there.

The check stays as strict: a fresh home must still find the bundled engine
at the pinned version, and must now report the browser exactly on.
docs/browser-packaging.md said the same old default and is updated too.

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

* fix(ui): address Simple mode review regressions

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
# Conflicts:
#	src/components/CallView.tsx
#	src/components/ChatView.tsx
#	src/locales/en.json
Add complete Turkish translation catalog covering all 3,381 UI keys, register Turkish in the locale index, update source hashes, and include tr in test assertions.
feat: integrate reviewed Live calls on desktop, iOS, and Android
Native <select>s drew the platform arrow, which sits at an inset we cannot
pad: ~6px from the edge on Linux Chrome, wider on macOS, never matching the
text's left padding. 57 call sites also hand-rolled ~10 look classes each,
drifting across 6 backgrounds, 3 border strengths and 6 text sizes.

Select owns the look (field/pill, lg/md/sm) and draws its own chevron with
its stroke as far from the right edge as the text is from the left. Call
sites keep only layout classes, and Select.guard.test.ts fails on a new
native <select> or a <Select className> that restyles the field.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
the waiting marker was a 10px dot and 11px gray text, the same weight as a preview.
The circle grid had no way to change order.
* feat(phone): Connect your phone, to this computer or your Cloud

A paying Cloud customer could only find this computer's phone pairing. It
was four clicks deep for a Cloud (Server menu, My Cloud, Settings, Remote
access) and nothing said where a phone would connect.

- Account menu: "Connect your phone" says where the phone will connect
  (to this computer, to your Cloud, to this server). It opens Settings ->
  Remote access, scrolled to the pairing that fits the window, with focus
  on Pair your phone / Create pairing code. On another server it is shown
  only to a session that may make a pairing code there.
- "Get OpenMausBot for iOS" becomes "Get the phone app": iPhone (App
  Store) and Android (APK), each as a QR code with its link.
- Settings -> OMB Cloud, paid plan: "Use your Cloud on your phone" opens
  the Cloud in this window on its own phone pairing. It uses a new
  no-argument cloud-account:connectHomeForPhone IPC that adds the fixed
  ?desktop-settings=phone, and the pair page carries that on. Before the
  Cloud is Ready, or if opening it fails, the card gives the two steps.
  On the Cloud itself the same button opens the pairing directly.
- Docs: a three-step "Use your Cloud on your phone" section in
  docs/ios-companion.md and docs/cloud-pro.md.
- Strings translated in all nine packs; source-hashes accepted.

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

* feat(phone): on this computer, offer a paid Ready Cloud first

The customer who asked was on their own computer with a paid Cloud. On this
computer, "Connect your phone" now offers both destinations when the
verified snapshot shows a paid plan (any tier) and a Ready Cloud:

- "to your Cloud (always on)" first, doing what Settings -> OMB Cloud's
  "Use your Cloud on your phone" does (connectHomeForPhone: the Cloud opens
  in this window at its phone pairing). If that fails, Settings -> OMB Cloud
  opens, where the card says what to do.
- "to this computer" second: the local pairing as before.

A paid plan whose Cloud is not Ready keeps the single "to this computer"
line, with a note that the Cloud will show there. Free, signed out, lapsed
or unverified accounts see only "to this computer". On the Cloud itself and
on other servers nothing changes. Get the phone app's dialog offers the same
destinations in the same order.

Menu items get an optional third line (a note), drawn in the tertiary ink.
Two strings added in all ten languages; source-hashes accepted. Docs updated.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(chat): omit empty work receipts and discard digest reply tails

* docs: retain isolated digest presentation screenshots
The iOS chat had no way back to the newest message once you scrolled up,
unlike the desktop chat. A pill now appears above the composer when the
end of the transcript is more than 160pt below the screen, and tapping it
scrolls to the end, past any reply still streaming.

Position is tracked with onGeometryChange on an end-of-transcript marker
and the scroll view, so it works on iOS 16 and updates while scrolling.

Refs MOCA-249

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The phone twins of the desktop's Activity panel and Team map → Memory.
From a bot's profile: "Activity" lists what the bot did, newest first by
day, each row with the app and action in words, the recorded arguments,
and an outcome chip (ran, failed, running, allowed, denied, needs you).
"Team memory" lists the bot's section's shared people, places, decisions
and terms, answers proposals waiting for a tap (Remember / Skip), removes
entries with a swipe, and adds one by hand. Both are content surfaces;
the sending policy, app scopes and fallback chain stay on the desktop,
where the companion allowlist has always kept execution policy.

The sidecar allowlist gains GET /api/bots/:id/activity and GET/POST/
PATCH/DELETE /api/team-memory, pinned in routes.test.ts. Two fixtures
captured from a disposable harness pin the wire shapes for both phone
suites: bot-activity.json (an empty page — a fixture harness runs no
tools) and team-memory.json (one entry of each kind, added by hand).

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix(ios): stop counting expired proposals as waiting on you (MOCA-282)

When a routine, profile or team-setup proposal goes stale, the computer
marks its card `expired` and clears its options, without setting
`answered` or `dismissed`. The phone did not know the field, so the card
stayed "waiting on you" with no buttons to tap, and kept the chat in
Needs you for good.

OptionCard now decodes `expired` and treats it as settled, the same rule
the desktop uses, and the card says it expired instead of going blank.

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

* fix(android): stop counting expired proposals as waiting on you (MOCA-282)

Same gap as iOS: OptionCard ignored the `expired` flag the computer sets
when a routine, profile or team-setup proposal goes stale, so the card
stayed pending with no options to tap. It now counts as settled and says
it expired.

Also adds the iOS after screenshot for the PR.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): show and steer messages sent mid-turn

A message sent to a busy bot from the phone could simply disappear. The
harness answers such a send in one of three ways, and all three live only
in the POST's 202 body: the line landed, the engine took it INTO the
running turn (`steered`), or the harness is holding it off-transcript
until the turn settles (`queued`, with a `queueId`). The iOS client threw
that body away. A held message therefore left no trace anywhere — the
composer cleared and the words reappeared minutes later, or not at all
after a restart. Only the Claude driver can steer, so on every other
engine the queue is the only path and mid-turn sending looked broken.

Read the receipt, and give the phone what the desktop has had:

- `SendReceipt` decodes the 202 leniently — an older harness that answers
  `{ok:true}` is a plain send, not a failure.
- `CompanionState.pendingQueued` holds what the harness is holding, keyed
  by queueId. A drained line names its entry, so the ghost retires when
  the real bubble lands; a drain that beats its own POST leaves a bounded
  tombstone so the late receipt cannot resurrect it. Hydrates and page
  merges reconcile for a window that slept through the drain.
- The chat draws held sends as dashed bubbles below the transcript, each
  with its own cancel (DELETE …/queue/:id, newly allowed through the
  sidecar for bots and rooms).
- The composer says which of the three will happen, and the send key
  becomes a clock when the message will wait. With something already
  waiting, the microphone becomes a green inject: the harness keeps its
  steer queue across an interrupt, so stopping the turn is what makes
  those words run now. Send stays available throughout.
- A line the engine took mid-turn is marked "sent mid-turn", which is why
  the reply above it can read as if the bot had not seen it.

Inject is bot-only: the phone has no way to interrupt a room, and adding
one is a wider change than this bug. Rooms still get the ghost and cancel.

The steer e2e test now asserts the two fields a client needs from a
queued receipt, and that the drained line carries the same queueId.

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

* fix(ios): do not fake a cancel a computer cannot perform

The sidecar answers 404 "no route: DELETE …" for a route it does not
allow, and the harness answers 404 "no such queued message" when the
entry is already gone. Treating those alike took the held message off the
phone while the computer still intended to run it — and it then arrived
anyway, which is worse than the vanishing this branch set out to fix.
Any computer whose sidecar predates the queue-cancel allowlist hits this,
including the currently released one.

Match the harness's own wording positively, so an unfamiliar 404 fails
safe: the ghost stays and the person is told the computer needs updating,
rather than being shown a cancel that did not happen.

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

* feat: say Steer in words, above the chat bar

The mid-turn controls were glyphs: a clock on the send key, a green arrow
in the composer. Omkar read them on a real phone and said "don't add the
clock or the lightning, I don't understand" — and the held message itself,
drawn as a dashed outline, he could not see at all on a dark transcript.

So the queued message moves out of the transcript and sits directly above
the chat bar, where a thing you have not said yet belongs: the text, a
labelled `↳ Steer` button, and a bin. Steer stops the turn so those words
run now — the harness deliberately keeps its queue across an interrupt,
which is what makes stopping a send. The send key goes back to being one
arrow with one meaning; what will happen to the message is said in the
placeholder instead ("Sends into this turn" / "Sends after this turn").

Both platforms, because the desktop had the same puzzle: its green
"inject now" arrow is gone and its queued rows gain the same Steer button.

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

* fix: say Steering while the interrupt is still landing

Tapping Steer did nothing visible. Measured against a live codex turn, an
interrupt takes about 6.3 seconds to actually stop the stream — and for
those six seconds the button looked untouched while the bot kept talking,
which is indistinguishable from a broken button. Omkar read it as "it did
not steer at all", and he was right to.

The button now goes to "Steering…" and disables the moment it is pressed,
on both platforms. It clears when the queue drains OR when the turn ends —
both, so an interrupt that fails to stop the turn cannot leave the row
spinning for ever either.

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

* fix(ios): retire the queued row, and stop streaming a dead turn

Two faults, seen together on a phone: a codex turn died mid-essay, and
from then on the chat streamed that half-written essay for ever while the
Steer button span for ever beside it.

The queued row was mine. A `bot` frame carrying a whole transcript
replaces `messages[…]` outright instead of appending, so it never runs the
retirement that `append` does — the held message stayed above the chat bar
long after its line had landed. The desktop has guarded this since the
feature shipped (reconcileSnapshotQueues on bot add/patch/task switch); the
port covered hydrate and page-merge and missed this path.

The stream was older. The live bubble was drawn whenever the buffer held
text, gated on nothing, and nothing cleared the buffer when a turn ended
without a settled reply — an engine that dies mid-sentence reports the
failure as activity, not as text. So the buffer kept its last tokens and
the bubble streamed them for ever. Now an idle bot clears the buffer, and
the bubble is gated on `busy` as well, so neither alone can strand it.

Also a floor under the spinner: it clears after twenty seconds even if
neither the drain nor the turn-end frame ever arrives. A control that
spins for ever is worse than one that admits it does not know.

The desktop needs none of this: it gates its working row on bot.busy and
never renders from the stream buffer.

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

* perf(ios): keep the engine-capability read off hydrate's critical path

It only words the composer. The cursor commit — and with it the whole
stream going live — must not wait on a request that says nothing about the
transcript. Found while porting to Android, where blocking hydrate on it
failed two Session tests outright.

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

* feat(activity): a per-bot activity log, read from the two logs that already exist

A bot's Activity panel: every tool it used and every approval it asked
for, newest first, grouped by day, each row saying what ran ("Gmail ·
Search threads", "Ran a command"), the arguments the broker recorded,
and the outcome — ran, failed, running, allowed, denied, or needs you.

Nothing new is captured. server/activity.ts folds the per-thread runtime
events (what ran, did it finish) with the fleet-wide decision log (what
was asked, with which arguments, who allowed it), attaching an approval
to the tool run it unblocked when the two land within a short window in
the same thread. Connector calls never pass through the harness — the
agent CLI talks to Composio's MCP endpoint directly — which is why this
reads logs rather than tapping a proxy that does not exist.

GET /api/bots/:id/activity is read-only over the bot's own threads (its
DM and every task) plus the decision rows that name it. The panel sits
beside the inspector and the computer panel, opens from a header button,
re-reads when a turn settles or a card is answered, and stays available
on remote clients since it is the user-facing view. Mobile gets the same
API; a screen there is a follow-up.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(outbound): sending on your behalf always asks, or spends a daily allowance

A connector call that sends something — an email, a message, a post, an
invite, a refund — is its own confirmation in every approval mode, Full
access included. The relay every Composio call already passes through
holds such a call on a "Send on your behalf?" card and waits for the
answer; Deny (or nine minutes of silence) comes back to the bot as an
ordinary tool error it can read and act on, never a transport failure it
retries. A bot can instead be given a daily allowance, counted per local
day on disk, after which the relay refuses with a message naming the
limit. Every branch lands in the decision log under source "outbound",
so the Activity panel shows it.

shared/outbound.ts is the one definition of "outbound": the action part
of a tool name, whether Composio's TOOLKIT_ACTION or a provider's
mcp__server__action, with a read verb first meaning read and DRAFT
meaning not sent. The auto-approve rules gain the same guard, so Approve
for me and a remembered Always allow never wave a send through on a
provider's own connectors either; explicit Full access on those stays a
documented gap, since no request reaches the broker there.

The bot record carries the policy (ask, the default, or allow with a
cap), validated on PATCH like autoReview, with a read-only route for
today's count. Bot settings get a "Sending on your behalf" control under
the approval level, deliberately outside that selector so nothing
implies Full access covers it. The card is a standard options card, so
the phone apps already render it.

Tests point the fixture's Composio Session MCP URL at the local stub,
which needed one honest change: a backend the operator configured
explicitly may hand back a Session on its own origin.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(scopes): per-bot connection scopes, enforced at the connector relay

Which connected apps a bot may use, and whether it may only read them.
Absent means what it has always meant — every connected app, read and
write — so nothing changes for a bot nobody has scoped. Present means a
list: an app not on it is off for this bot, "read" refuses anything
that is not a read, and a batch that mixes an allowed read with a
forbidden write is refused whole rather than half-run.

Enforced at the relay every Composio call already passes through, seeing
through the session's meta tools the same way the outbound gate does, and
checked before that gate: an app the bot may not touch is refused
outright, never turned into a question for the person. A connection
request for an app outside the bot's list is refused before any card
appears. Every refusal lands in the decision log under source
"connector-scope", so the Activity panel shows it, and the bot's prompt
names what it may use so it does not spend a turn finding out.

Bot settings gain a "Limit this bot to specific apps" switch inside the
Connected apps card, with Off / Read / Read & write per connected app;
an app the bot was scoped to that is no longer connected still shows,
so a grant never silently disappears. null on the wire clears the scopes,
normalized to an absent field the way `computer` already is.

shared/connector-scopes.ts stands alone rather than importing from
outbound.ts: shared/ is compiled by both the server (which needs .ts
import extensions) and the app (which forbids them).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(fallback): second accounts on an engine, and a per-bot fallback chain

A second account on Claude or Codex is another instance of its driver
with its own login directory (CLAUDE_CONFIG_DIR / CODEX_HOME under the
data dir), so two Max plans sit side by side. POST /api/instances adds
one beside the default fleet, inheriting the base engine's CLI override
since a versioned binary is about the machine, not the account; DELETE
removes only a profile, never a default-fleet instance. The instances
section of config.json merges per id, so a removal is named explicitly
to leave the file. App Settings → Engines gains "Add another account"
and a Remove button on profile rows; the profile signs in from its own
row like any engine.

A bot's fallback chain says where a task carries on when its engine
hits a usage limit, is rate limited, or cannot be reached. The
turn.completed fold reads why the turn died from the thread's last
runtime.error, and if the reason is one of those it moves the bot to
the next available entry, posts a "switched to …" chip, and starts a
control-plane continuation turn; the transcript replays into the new
engine because it is fresh, and the person's message appears once. Hops
are counted per thread so a chain whose every engine is down stops
after one pass; a successful turn resets it. A turn the person stopped
is never routed around. Bot settings → Model gains the ordered list.

A subscription's usage limit is now classified as quota, not a 429 to
retry through: the window is hours away, and the chain is the answer.

The end-to-end test boots an isolated harness whose fixture Claude is
scripted to die on a 429, adds a profile, chains it, sends one message,
and watches the task finish on the second account.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(team-memory): people, places, decisions and terms every bot in a section shares

The layer between a bot's private MEMORY.md and the person's own section
brief: bot-fed, person-reviewed, read by all. A bot that learns who
someone is, where a document lives, what was decided, or what a term or
nickname means proposes it with propose_team_memory. A place or a term
lands at once, because the cost of a wrong one is a wasted lookup; a
person or a decision waits for a "Remember this for the team?" card,
because those shape what every teammate does next. Proposing an existing
name again updates it rather than adding a twin. Every accepted entry
rides into every section bot's prompt as a compact block under a byte
budget, newest kept when it has to cut, with decisions dated — which is
what lets a Chief of Staff answer "what happened today" without a
digest routine.

The Team map page gains a Memory dialog per section beside the shared
context: what is waiting for a tap, then people, places, decisions and
terms with inline editing, removal, and a way to add an entry by hand
(the person's own entries never wait on the person). The card is a
standard options card, so the phone apps render it already. Proposals
and answers land in the decision log under source "team-memory".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(ios): Activity and Team memory screens, with the companion routes they call

The phone twins of the desktop's Activity panel and Team map → Memory.
From a bot's profile: "Activity" lists what the bot did, newest first by
day, each row with the app and action in words, the recorded arguments,
and an outcome chip (ran, failed, running, allowed, denied, needs you).
"Team memory" lists the bot's section's shared people, places, decisions
and terms, answers proposals waiting for a tap (Remember / Skip), removes
entries with a swipe, and adds one by hand. Both are content surfaces;
the sending policy, app scopes and fallback chain stay on the desktop,
where the companion allowlist has always kept execution policy.

The sidecar allowlist gains GET /api/bots/:id/activity and GET/POST/
PATCH/DELETE /api/team-memory, pinned in routes.test.ts. Two fixtures
captured from a disposable harness pin the wire shapes for both phone
suites: bot-activity.json (an empty page — a fixture harness runs no
tools) and team-memory.json (one entry of each kind, added by hand).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* docs(mobile): design for a shared touch gesture layer on remote surfaces

A pure GestureCore in each shared module turns normalised touch samples
into abstract intents, so iOS and Android cannot drift and phase 2's VNC
surface becomes a second sink rather than a second gesture layer.

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

* docs(mobile): implementation plan for the shared gesture core

Twelve TDD tasks: the iOS core in full, the Kotlin port, and a shared
parity fixture that fails the build when the two disagree.

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

* feat(ios): gesture value types and viewport mapping

ViewportMapping folds letterboxing, zoom and pan into one place, so a
coordinate can only be got wrong once and is tested once.

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

* feat(ios): click sequencing for direct-mode taps

A sequence continues only while both the 450ms gap and the 0.02 slop
hold, and wraps at three: a quadruple click means nothing to a browser.

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

* feat(ios): long press, drag threshold and held-button drags

tick(at:) is how a duration-based gesture stays testable in a core with
no clock. A cancelled drag still releases, so the remote is never left
holding a button nothing will lift.

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

* feat(ios): trackpad mode with a virtual cursor and acceleration

The finger is a rate control, not a position: the core owns the cursor
and emits absolute coordinates, so both modes share one sink.

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

* feat(ios): scroll, momentum and local zoom state

Zoom stays local so a small target becomes reachable without reflowing
the remote page. A scroll or a fired hold suppresses the click on lift,
so a flick through links cannot open one.

Records in the plan that parity must compare floats with tolerance:
normalising through a division yields -0.09999999999999998 and -0.0.

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

* feat(ios): driving gate and held-input flush

driving is off by default, so a caller that forgets to set it fails safe
rather than handing the remote away. flush() releases what is held and
abandons momentum on release, backgrounding and disconnection.

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

* test(ios): shared gesture parity fixture and runner

Eight cases across both modes in one JSON file the Kotlin runner will
read verbatim. GestureIntent gets hand-written coding because Swift's
synthesised enum shape nests under _0, which no Kotlin decoder reads.

Verified the gate fails: widening multiClickWindow to 0.6 breaks the
"tap after the window" case by name and step index.

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

* feat(android): gesture value types and viewport mapping

Mirrors CompanionCore's RemoteGestures, including the intent wire shape,
so one parity fixture can serve both platforms.

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

* feat(android): gesture core mirroring CompanionCore

Click sequencing, long press and drags, trackpad cursor and
acceleration, scroll and momentum, local zoom, driving gate and flush —
31 tests against the same behaviours the iOS suite asserts.

Tasks 9-11 of the plan landed as one cycle: it is one file and one port,
and Task 12's fixture is the gate that actually proves parity.

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

* test(android): run the shared gesture parity fixture

No copy task needed: core/build.gradle.kts already points the test
source set at ios/Tests/CompanionCoreTests/Fixtures, so one fixture
directory already serves both platforms.

Verifying the gate can fail caught a hole in the fixture itself. The
long-press case ticked 0.4 then 0.5 and compared only the accumulated
output, so a 300ms threshold produced the same three intents as 500ms
and the sabotage passed. Added a case that stops short of the threshold
and asserts nothing happens; the sabotage now fails by name.

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

* feat(companion): per-device browser control capability

browserControlAccess mirrors cloudDesktopAccess exactly: off on every new
and migrated device, granted only from the loopback control page,
revocation tears down live streams.

It is a separate grant on purpose. A cloud desktop is a disposable VM; a
bot's browser is normally signed into the person's real accounts, so a
device trusted with the first must not inherit the second.

No harness change was needed: request-auth re-runs the sidecar's own
denyReason, so allowlisting the two routes opened both sides at once.
Corrected the design doc, which claimed otherwise.

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

* feat(ios): browser-live sink and input queue

The sink is the only place normalised intents become device pixels, and
it routes an unmodified single character to char rather than a raw
keyDown the server would hold forever.

The queue ports src/lib/browser-input-queue.ts: one request in flight,
movement coalesced, wheel deltas summed, a 32-item ceiling that halts
rather than banking input, and releases that survive the halt.

settle() and drain() are deliberately different: drain abandons stale
travel for hand-back, settle waits for everything. Writing the tests is
what surfaced that they cannot be one method.

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

* feat(android): browser-live sink and input queue

Ports CompanionCore's sink and queue with the same assertions: pixel
denormalisation, the char-not-keyDown rule for unmodified characters,
movement coalescing, summed wheel deltas, the ceiling, and releases that
survive a halt.

A mutex stands in for the actor; the launch happens under the lock so
two callers cannot both start a pump.

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

* feat(mobile): browser-live transport and message decoding

SSE frame stream plus the action channel on both platforms. The decoder
drops an unknown message type rather than tearing down a stream someone
is watching, and refuses a frame with no metadata, which cannot be
mapped to coordinates anyway.

Byte-at-a-time SSE parsing on iOS for the reason SSE.swift documents:
AsyncLineSequence folds blank lines, which are what end an event.

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

* feat(ios): browser control screen and touch adapter

The adapter makes no decisions: raw touches become TouchSamples and a
CADisplayLink drives the core's clock so long press and momentum work.
A second finger flushes the tracked touch rather than half-tracking a
pinch.

The screen adds the modifier bar the design calls load-bearing, a
locally drawn cursor for trackpad mode, a hidden field that turns soft
keyboard text into char events, and take/release with a flush on
backgrounding. The 429 from a full viewer table gets a real sentence.

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

* feat(android): browser control screen and touch adapter

Mirrors the iOS side: a pointerInput adapter that only produces
TouchSamples, a frame-rate loop driving the core's clock, the modifier
bar, a locally drawn cursor, and take/release with a drain on leave.

The transport hangs off CompanionClient so it inherits the endpoint,
scoped-IPv6 DNS and streaming timeouts rather than keeping a second copy
of that setup.

The Browser destination encodes and decodes with the rest of the stack,
so restoring after process death does not silently drop the screen. Its
entry point sits outside the cloud-desktop gate: any bot with a browser
can be driven, not only cloud ones.

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

* fix(mobile): typing on Android, cursor placement and pan

Three gaps a self-review found after the screens compiled:

- Android declared a typed buffer but had no field, so there was no way
  to type at all. Committed text now leaves as char; Backspace stays on
  the bar because an empty field reports no deletion.
- The Android cursor was positioned against a hardcoded 1000px rather
  than the box it lives in, so it only landed right by accident.
- Neither zoom path applied pan on Android, which stranded a zoomed-in
  person at the top-left with no way to reach the rest of the page.

Also, on both platforms the page's own navigation could overwrite an
address someone was halfway through typing.

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

* fix(mobile): make the browser stream actually decode, and 8 more

A code review found the client halves were broken end to end. Most
severe first:

- The SSE decoder keyed on a `type` field inside the payload, but the
  server strips the type into the `event:` name and both SSE parsers
  discarded `event:` lines. Every message decoded to nil, so iOS never
  left "Connecting..." and Android never got a viewer id, which left
  Take control permanently disabled. Both parsers now carry the event
  name, and the decoders key on it — including `ready`, which is what
  the server actually calls the viewer-id message, plus `control` and
  `heartbeat`, which were not handled at all.
- Two Kotlin string templates were written as literals ("Bearer \$it",
  "https://\$address"), so every Android browser request went out
  unauthenticated and scheme-less navigation went to a bogus host.
- The Android tick clock and touch clock had different origins, and
  pointerInput restarts on a driving change — so after taking control
  every tap read as older than the long-press threshold and fired a
  right click instead.
- Direct mode set `scrolled` on any nonzero move, so a tap that wobbled
  a pixel scrolled sub-pixel and suppressed its own click. Now behind
  the drag threshold, on both platforms.
- pan() and the render transform measured against the view while the
  mapping used the aspect-fit drawn size. On a portrait phone showing a
  16:9 page those differ by 3.6x, so zoomed taps landed far from the
  pixel touched. ViewportMapping now exposes drawnWidth/drawnHeight and
  all three use it.
- The Android dispose-time release launched on a scope cancelled in the
  same pass, so it never left the phone.
- The Android mapping was rebuilt only on layout, so a viewport other
  than the 1280x720 default never reached the core.
- The sidecar's SSE scrub ceiling was 1 MiB against browser-live's 3 MiB
  frames; one large frame would have torn down the stream. The proxy
  test that covers this hardcoded 2 MiB and now derives from the
  constant, so it cannot rot the same way again.

Regressions added for the wobble-tap and letterboxed-pan cases: the
existing tests used a square viewport where drawn size equals view size,
so neither bug could have been caught.

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

* fix(mobile): revocation, stale clicks, held buttons and a pump race

A second review pass found eight more. Most severe first:

- Revoking browser control did not close a browser-live stream the
  device already had open, contrary to the comment promising it:
  disconnectDevice only ever reached /api/events and viewer relays. A
  phone kept watching a signed-in browser after the grant was taken
  away. The proxy now registers capability-gated streams per device and
  closes them on revoke, with a test.
- A trackpad tap that never moved the finger emitted press/release with
  no move, so the sink stamped the click at its last coordinate —
  (0,0) on a fresh session — while the reticle sat where the person was
  aiming. Both platforms, and the parity fixture asserted the wrong
  shape.
- iOS never called Coordinator.flush(), the only source of a release
  for a held button, so backgrounding or leaving mid-drag left it down.
  Android had this right; the design doc named the parity gap.
- The Android dispose-time release enqueued into a queue built on the
  composition scope that the same pass cancels, so the pump never ran
  and drain() would have spun forever. It now sends directly.
- A stale pump cleared `active` unconditionally, wiping the replacement
  clear() had just started and letting two pumps drain concurrently.
- The Android trackpad reticle ignored letterboxing.
- The 403 told people to use a Settings switch that does not exist;
  it now names the button, which every first-time user will need since
  the grant is off by default.

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

* test(companion): give proxy fixtures the browser capability field

The field stays required on authenticate's return type, because the
registry always supplies it. tsconfig.server.json type-checks these
fixtures; tsc -b does not, which is why the packaged build caught this
and the earlier check did not.

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

* fix(mobile): show the server's refusal and let a dead stream retry

The first hands-on test reported "browser control is off" after the
grant was already on. The server path was fine: a device with the grant
opens the stream, receives ready/control/status/frame, and take returns
200. The phone was at fault twice over:

- The stream threw a bare status and discarded the response body, so
  every 403 read as "browser control is off" whatever the server said.
  Both clients now surface the sidecar's or harness's own error text.
- Nothing restarted a stream once it failed, and toggling the grant
  deliberately disconnects the device. The screen sat dead until the
  person backed out. It now shows Try again, which starts a fresh
  viewer with no state carried over from the old one.

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

* feat(i18n): add complete Chinese localization across desktop and mobile

- Add Simplified and Traditional Chinese translations across desktop, iOS, and Android
- Integrate with companion mobile apps (Android Compose strings and iOS xcstrings)
- Consolidate Android review resources into base and localized strings.xml
- Fix BotThreadRow Compose status coloring and preserve upstream snooze logic
- Update source-hashes.json and validate catalog completeness via generate-locale.mjs

* fix(android): align the notification footer and localize the thread sheet

- mobile_settings_notifications_footer said "while OpenMausMobile is
  connected" while OnboardingCopy.NOTIFICATIONS_BODY renders
  SettingsPolicy.NOTIFICATIONS_FOOTER ("while MausBot is connected"):
  OnboardingRoutingTest could not find the body text on screen, and the two
  surfaces showed different copy. The English resource now matches the
  constant byte for byte, with the Chinese catalogs following.
- Route the delete/rename/snooze error text through localizedMobileCopy so
  the "Couldn't update this thread. Try again." fallback reaches the Chinese
  catalogs (CodeRabbit review).
- Map "Rename thread" so the rename dialog heading translates (CodeRabbit
  review).
- Give the snooze dialog's title, presets, "Stop snoozing", the working
  notice and Cancel real string resources with Simplified and Traditional
  Chinese.

English resource values stay byte-identical to the pinned constants and test
copy ("Rename thread", "Until 6 PM", "Until new activity",
"Stop this thread before snoozing it.", "Cancel").

* fix(i18n): correct Chinese mistranslations found in cross-PR review

Against the English source, eleven Simplified keys (and their Traditional
twins, translated in the same pass) read wrong or dropped content:

- installation rendered as "workspace" (voice.grok.sharedKey,
  settings.section.workspaces, settings.profiles.ownerOnly)
- Servers / Installations section titles mistranslated
  (settings.section.desktopWorkspaces, workspaces.title)
- bots mistranslated as "items" (team.moveSelected)
- "Task folder" rendered as a workspace (composer.tray.privateWorkspace)
- "Member (chat only)" gained an approval right it does not have
  (workspaces.chatOnly)
- Threads mistranslated as a UI thread (backup.threads)
- verb "Draft" used as a noun (botAccess.grants.verb.draft)
- organization.disconnectWarning dropped the daily-backups sentence

Terminology now follows each catalog's own established usage.

* fix(i18n): unify Chinese terminology across desktop, Android, and iOS

One glossary, applied everywhere the Chinese catalogs mix terms:

- thread (and conversation) -> 对话 / 對話 (was 线程, 讨论串, 对话线程,
  執行緒, 對話串 across the catalogs)
- installation(s) -> 安装实例 / 安裝實例 (was mistranslated as 工作区)
- workspace stays 工作区 / 工作區 where the English says workspace
- default -> 默认 / 預設 (zh 缺省 merged into 默认)
- "bot folders" -> 机器人文件夹 / 機器人資料夾 (was 工作区)
- honorifics -> 你 (您 normalized away)
- quotes: "..." in Simplified, 「...」 in Traditional
- stray Traditional vocabulary in the Simplified catalog normalized
  (纪录->记录, 帐户->账户, 设置档->配置, 软体->软件, 网路->网络)

186 zh keys, 85 zh-tw keys, 52 Android string entries and 2 iOS
xcstrings entries changed. English sources, placeholders and source
hashes are untouched; node scripts/generate-locale.mjs --check passes.

* feat(ios): Activity and Team memory screens, with the companion routes they call (#933)

The phone twins of the desktop's Activity panel and Team map → Memory.
From a bot's profile: "Activity" lists what the bot did, newest first by
day, each row with the app and action in words, the recorded arguments,
and an outcome chip (ran, failed, running, allowed, denied, needs you).
"Team memory" lists the bot's section's shared people, places, decisions
and terms, answers proposals waiting for a tap (Remember / Skip), removes
entries with a swipe, and adds one by hand. Both are content surfaces;
the sending policy, app scopes and fallback chain stay on the desktop,
where the companion allowlist has always kept execution policy.

The sidecar allowlist gains GET /api/bots/:id/activity and GET/POST/
PATCH/DELETE /api/team-memory, pinned in routes.test.ts. Two fixtures
captured from a disposable harness pin the wire shapes for both phone
suites: bot-activity.json (an empty page — a fixture harness runs no
tools) and team-memory.json (one entry of each kind, added by hand).

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>

* fix(companion): expose separate browser access grant in desktop settings

* fix: harden mobile browser authorization and lifecycle

---------

Co-authored-by: aivsomkar <aivsomkar@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: 择梦舟 <158067205+dreamfarer-space@users.noreply.github.com>
Co-authored-by: LeaningLearner <1016823240@qq.com>
The decisions.csv test asked for from=today&to=today. A run that crosses
midnight UTC writes the earlier rows on the previous day, so the export
returned fewer lines than GET /api/decisions and the test failed. Ask for
the span of UTC days the rows carry instead.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The bot list now scrolls on under the sidebar's head (top row, search,
pinned panels) and foot (Routines, Triggers, Apps, profile), and a
conversation scrolls on under its header, in one-to-one and group chats.
Each bar blurs whatever passes beneath it, tinted with the surface it sits
on, so at rest it reads exactly as before and only turns to glass once
something scrolls under it. Its inner edge fades over 20px, so text melts
into the glass instead of being sliced at a hard line.

GlassScrollFrame measures its bars and publishes --glass-top and
--glass-bottom. The scroller pads its content, its scroll-padding (so
keyboard focus and jumps land clear of the glass) and its scrollbar track
by them, so the scrollbar never runs under a bar that would swallow the
drag. The glass is a pseudo-element, so the bars never become containing
blocks for the fixed menus they open. Measuring lives in the frame, so the
Sidebar's own hook order (which its tests mock by call order) is unchanged.

Chat and group headers sit at z-[25]: above anything raised inside the
transcript (the room set-up card is z-20 so its menus clear the
composer), below the call overlays (z-30). The sidebar bars stay at z-10
under the resize handle. The universal pins cap moves from 42% to 40vh,
because a percentage has no height to resolve against inside the head.
Reduced transparency and forced colours get a solid bar.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): show and steer messages sent mid-turn

A message sent to a busy bot from the phone could simply disappear. The
harness answers such a send in one of three ways, and all three live only
in the POST's 202 body: the line landed, the engine took it INTO the
running turn (`steered`), or the harness is holding it off-transcript
until the turn settles (`queued`, with a `queueId`). The iOS client threw
that body away. A held message therefore left no trace anywhere — the
composer cleared and the words reappeared minutes later, or not at all
after a restart. Only the Claude driver can steer, so on every other
engine the queue is the only path and mid-turn sending looked broken.

Read the receipt, and give the phone what the desktop has had:

- `SendReceipt` decodes the 202 leniently — an older harness that answers
  `{ok:true}` is a plain send, not a failure.
- `CompanionState.pendingQueued` holds what the harness is holding, keyed
  by queueId. A drained line names its entry, so the ghost retires when
  the real bubble lands; a drain that beats its own POST leaves a bounded
  tombstone so the late receipt cannot resurrect it. Hydrates and page
  merges reconcile for a window that slept through the drain.
- The chat draws held sends as dashed bubbles below the transcript, each
  with its own cancel (DELETE …/queue/:id, newly allowed through the
  sidecar for bots and rooms).
- The composer says which of the three will happen, and the send key
  becomes a clock when the message will wait. With something already
  waiting, the microphone becomes a green inject: the harness keeps its
  steer queue across an interrupt, so stopping the turn is what makes
  those words run now. Send stays available throughout.
- A line the engine took mid-turn is marked "sent mid-turn", which is why
  the reply above it can read as if the bot had not seen it.

Inject is bot-only: the phone has no way to interrupt a room, and adding
one is a wider change than this bug. Rooms still get the ghost and cancel.

The steer e2e test now asserts the two fields a client needs from a
queued receipt, and that the drained line carries the same queueId.

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

* fix(ios): do not fake a cancel a computer cannot perform

The sidecar answers 404 "no route: DELETE …" for a route it does not
allow, and the harness answers 404 "no such queued message" when the
entry is already gone. Treating those alike took the held message off the
phone while the computer still intended to run it — and it then arrived
anyway, which is worse than the vanishing this branch set out to fix.
Any computer whose sidecar predates the queue-cancel allowlist hits this,
including the currently released one.

Match the harness's own wording positively, so an unfamiliar 404 fails
safe: the ghost stays and the person is told the computer needs updating,
rather than being shown a cancel that did not happen.

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

* feat: say Steer in words, above the chat bar

The mid-turn controls were glyphs: a clock on the send key, a green arrow
in the composer. Omkar read them on a real phone and said "don't add the
clock or the lightning, I don't understand" — and the held message itself,
drawn as a dashed outline, he could not see at all on a dark transcript.

So the queued message moves out of the transcript and sits directly above
the chat bar, where a thing you have not said yet belongs: the text, a
labelled `↳ Steer` button, and a bin. Steer stops the turn so those words
run now — the harness deliberately keeps its queue across an interrupt,
which is what makes stopping a send. The send key goes back to being one
arrow with one meaning; what will happen to the message is said in the
placeholder instead ("Sends into this turn" / "Sends after this turn").

Both platforms, because the desktop had the same puzzle: its green
"inject now" arrow is gone and its queued rows gain the same Steer button.

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

* fix: say Steering while the interrupt is still landing

Tapping Steer did nothing visible. Measured against a live codex turn, an
interrupt takes about 6.3 seconds to actually stop the stream — and for
those six seconds the button looked untouched while the bot kept talking,
which is indistinguishable from a broken button. Omkar read it as "it did
not steer at all", and he was right to.

The button now goes to "Steering…" and disables the moment it is pressed,
on both platforms. It clears when the queue drains OR when the turn ends —
both, so an interrupt that fails to stop the turn cannot leave the row
spinning for ever either.

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

* fix(ios): retire the queued row, and stop streaming a dead turn

Two faults, seen together on a phone: a codex turn died mid-essay, and
from then on the chat streamed that half-written essay for ever while the
Steer button span for ever beside it.

The queued row was mine. A `bot` frame carrying a whole transcript
replaces `messages[…]` outright instead of appending, so it never runs the
retirement that `append` does — the held message stayed above the chat bar
long after its line had landed. The desktop has guarded this since the
feature shipped (reconcileSnapshotQueues on bot add/patch/task switch); the
port covered hydrate and page-merge and missed this path.

The stream was older. The live bubble was drawn whenever the buffer held
text, gated on nothing, and nothing cleared the buffer when a turn ended
without a settled reply — an engine that dies mid-sentence reports the
failure as activity, not as text. So the buffer kept its last tokens and
the bubble streamed them for ever. Now an idle bot clears the buffer, and
the bubble is gated on `busy` as well, so neither alone can strand it.

Also a floor under the spinner: it clears after twenty seconds even if
neither the drain nor the turn-end frame ever arrives. A control that
spins for ever is worse than one that admits it does not know.

The desktop needs none of this: it gates its working row on bot.busy and
never renders from the stream buffer.

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

* perf(ios): keep the engine-capability read off hydrate's critical path

It only words the composer. The cursor commit — and with it the whole
stream going live — must not wait on a request that says nothing about the
transcript. Found while porting to Android, where blocking hydrate on it
failed two Session tests outright.

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

* feat(activity): a per-bot activity log, read from the two logs that already exist

A bot's Activity panel: every tool it used and every approval it asked
for, newest first, grouped by day, each row saying what ran ("Gmail ·
Search threads", "Ran a command"), the arguments the broker recorded,
and the outcome — ran, failed, running, allowed, denied, or needs you.

Nothing new is captured. server/activity.ts folds the per-thread runtime
events (what ran, did it finish) with the fleet-wide decision log (what
was asked, with which arguments, who allowed it), attaching an approval
to the tool run it unblocked when the two land within a short window in
the same thread. Connector calls never pass through the harness — the
agent CLI talks to Composio's MCP endpoint directly — which is why this
reads logs rather than tapping a proxy that does not exist.

GET /api/bots/:id/activity is read-only over the bot's own threads (its
DM and every task) plus the decision rows that name it. The panel sits
beside the inspector and the computer panel, opens from a header button,
re-reads when a turn settles or a card is answered, and stays available
on remote clients since it is the user-facing view. Mobile gets the same
API; a screen there is a follow-up.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(outbound): sending on your behalf always asks, or spends a daily allowance

A connector call that sends something — an email, a message, a post, an
invite, a refund — is its own confirmation in every approval mode, Full
access included. The relay every Composio call already passes through
holds such a call on a "Send on your behalf?" card and waits for the
answer; Deny (or nine minutes of silence) comes back to the bot as an
ordinary tool error it can read and act on, never a transport failure it
retries. A bot can instead be given a daily allowance, counted per local
day on disk, after which the relay refuses with a message naming the
limit. Every branch lands in the decision log under source "outbound",
so the Activity panel shows it.

shared/outbound.ts is the one definition of "outbound": the action part
of a tool name, whether Composio's TOOLKIT_ACTION or a provider's
mcp__server__action, with a read verb first meaning read and DRAFT
meaning not sent. The auto-approve rules gain the same guard, so Approve
for me and a remembered Always allow never wave a send through on a
provider's own connectors either; explicit Full access on those stays a
documented gap, since no request reaches the broker there.

The bot record carries the policy (ask, the default, or allow with a
cap), validated on PATCH like autoReview, with a read-only route for
today's count. Bot settings get a "Sending on your behalf" control under
the approval level, deliberately outside that selector so nothing
implies Full access covers it. The card is a standard options card, so
the phone apps already render it.

Tests point the fixture's Composio Session MCP URL at the local stub,
which needed one honest change: a backend the operator configured
explicitly may hand back a Session on its own origin.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(scopes): per-bot connection scopes, enforced at the connector relay

Which connected apps a bot may use, and whether it may only read them.
Absent means what it has always meant — every connected app, read and
write — so nothing changes for a bot nobody has scoped. Present means a
list: an app not on it is off for this bot, "read" refuses anything
that is not a read, and a batch that mixes an allowed read with a
forbidden write is refused whole rather than half-run.

Enforced at the relay every Composio call already passes through, seeing
through the session's meta tools the same way the outbound gate does, and
checked before that gate: an app the bot may not touch is refused
outright, never turned into a question for the person. A connection
request for an app outside the bot's list is refused before any card
appears. Every refusal lands in the decision log under source
"connector-scope", so the Activity panel shows it, and the bot's prompt
names what it may use so it does not spend a turn finding out.

Bot settings gain a "Limit this bot to specific apps" switch inside the
Connected apps card, with Off / Read / Read & write per connected app;
an app the bot was scoped to that is no longer connected still shows,
so a grant never silently disappears. null on the wire clears the scopes,
normalized to an absent field the way `computer` already is.

shared/connector-scopes.ts stands alone rather than importing from
outbound.ts: shared/ is compiled by both the server (which needs .ts
import extensions) and the app (which forbids them).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(fallback): second accounts on an engine, and a per-bot fallback chain

A second account on Claude or Codex is another instance of its driver
with its own login directory (CLAUDE_CONFIG_DIR / CODEX_HOME under the
data dir), so two Max plans sit side by side. POST /api/instances adds
one beside the default fleet, inheriting the base engine's CLI override
since a versioned binary is about the machine, not the account; DELETE
removes only a profile, never a default-fleet instance. The instances
section of config.json merges per id, so a removal is named explicitly
to leave the file. App Settings → Engines gains "Add another account"
and a Remove button on profile rows; the profile signs in from its own
row like any engine.

A bot's fallback chain says where a task carries on when its engine
hits a usage limit, is rate limited, or cannot be reached. The
turn.completed fold reads why the turn died from the thread's last
runtime.error, and if the reason is one of those it moves the bot to
the next available entry, posts a "switched to …" chip, and starts a
control-plane continuation turn; the transcript replays into the new
engine because it is fresh, and the person's message appears once. Hops
are counted per thread so a chain whose every engine is down stops
after one pass; a successful turn resets it. A turn the person stopped
is never routed around. Bot settings → Model gains the ordered list.

A subscription's usage limit is now classified as quota, not a 429 to
retry through: the window is hours away, and the chain is the answer.

The end-to-end test boots an isolated harness whose fixture Claude is
scripted to die on a 429, adds a profile, chains it, sends one message,
and watches the task finish on the second account.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(team-memory): people, places, decisions and terms every bot in a section shares

The layer between a bot's private MEMORY.md and the person's own section
brief: bot-fed, person-reviewed, read by all. A bot that learns who
someone is, where a document lives, what was decided, or what a term or
nickname means proposes it with propose_team_memory. A place or a term
lands at once, because the cost of a wrong one is a wasted lookup; a
person or a decision waits for a "Remember this for the team?" card,
because those shape what every teammate does next. Proposing an existing
name again updates it rather than adding a twin. Every accepted entry
rides into every section bot's prompt as a compact block under a byte
budget, newest kept when it has to cut, with decisions dated — which is
what lets a Chief of Staff answer "what happened today" without a
digest routine.

The Team map page gains a Memory dialog per section beside the shared
context: what is waiting for a tap, then people, places, decisions and
terms with inline editing, removal, and a way to add an entry by hand
(the person's own entries never wait on the person). The card is a
standard options card, so the phone apps render it already. Proposals
and answers land in the decision log under source "team-memory".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(ios): Activity and Team memory screens, with the companion routes they call

The phone twins of the desktop's Activity panel and Team map → Memory.
From a bot's profile: "Activity" lists what the bot did, newest first by
day, each row with the app and action in words, the recorded arguments,
and an outcome chip (ran, failed, running, allowed, denied, needs you).
"Team memory" lists the bot's section's shared people, places, decisions
and terms, answers proposals waiting for a tap (Remember / Skip), removes
entries with a swipe, and adds one by hand. Both are content surfaces;
the sending policy, app scopes and fallback chain stay on the desktop,
where the companion allowlist has always kept execution policy.

The sidecar allowlist gains GET /api/bots/:id/activity and GET/POST/
PATCH/DELETE /api/team-memory, pinned in routes.test.ts. Two fixtures
captured from a disposable harness pin the wire shapes for both phone
suites: bot-activity.json (an empty page — a fixture harness runs no
tools) and team-memory.json (one entry of each kind, added by hand).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* docs(mobile): design for a shared touch gesture layer on remote surfaces

A pure GestureCore in each shared module turns normalised touch samples
into abstract intents, so iOS and Android cannot drift and phase 2's VNC
surface becomes a second sink rather than a second gesture layer.

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

* docs(mobile): implementation plan for the shared gesture core

Twelve TDD tasks: the iOS core in full, the Kotlin port, and a shared
parity fixture that fails the build when the two disagree.

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

* feat(ios): gesture value types and viewport mapping

ViewportMapping folds letterboxing, zoom and pan into one place, so a
coordinate can only be got wrong once and is tested once.

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

* feat(ios): click sequencing for direct-mode taps

A sequence continues only while both the 450ms gap and the 0.02 slop
hold, and wraps at three: a quadruple click means nothing to a browser.

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

* feat(ios): long press, drag threshold and held-button drags

tick(at:) is how a duration-based gesture stays testable in a core with
no clock. A cancelled drag still releases, so the remote is never left
holding a button nothing will lift.

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

* feat(ios): trackpad mode with a virtual cursor and acceleration

The finger is a rate control, not a position: the core owns the cursor
and emits absolute coordinates, so both modes share one sink.

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

* feat(ios): scroll, momentum and local zoom state

Zoom stays local so a small target becomes reachable without reflowing
the remote page. A scroll or a fired hold suppresses the click on lift,
so a flick through links cannot open one.

Records in the plan that parity must compare floats with tolerance:
normalising through a division yields -0.09999999999999998 and -0.0.

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

* feat(ios): driving gate and held-input flush

driving is off by default, so a caller that forgets to set it fails safe
rather than handing the remote away. flush() releases what is held and
abandons momentum on release, backgrounding and disconnection.

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

* test(ios): shared gesture parity fixture and runner

Eight cases across both modes in one JSON file the Kotlin runner will
read verbatim. GestureIntent gets hand-written coding because Swift's
synthesised enum shape nests under _0, which no Kotlin decoder reads.

Verified the gate fails: widening multiClickWindow to 0.6 breaks the
"tap after the window" case by name and step index.

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

* feat(android): gesture value types and viewport mapping

Mirrors CompanionCore's RemoteGestures, including the intent wire shape,
so one parity fixture can serve both platforms.

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

* feat(android): gesture core mirroring CompanionCore

Click sequencing, long press and drags, trackpad cursor and
acceleration, scroll and momentum, local zoom, driving gate and flush —
31 tests against the same behaviours the iOS suite asserts.

Tasks 9-11 of the plan landed as one cycle: it is one file and one port,
and Task 12's fixture is the gate that actually proves parity.

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

* test(android): run the shared gesture parity fixture

No copy task needed: core/build.gradle.kts already points the test
source set at ios/Tests/CompanionCoreTests/Fixtures, so one fixture
directory already serves both platforms.

Verifying the gate can fail caught a hole in the fixture itself. The
long-press case ticked 0.4 then 0.5 and compared only the accumulated
output, so a 300ms threshold produced the same three intents as 500ms
and the sabotage passed. Added a case that stops short of the threshold
and asserts nothing happens; the sabotage now fails by name.

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

* feat(companion): per-device browser control capability

browserControlAccess mirrors cloudDesktopAccess exactly: off on every new
and migrated device, granted only from the loopback control page,
revocation tears down live streams.

It is a separate grant on purpose. A cloud desktop is a disposable VM; a
bot's browser is normally signed into the person's real accounts, so a
device trusted with the first must not inherit the second.

No harness change was needed: request-auth re-runs the sidecar's own
denyReason, so allowlisting the two routes opened both sides at once.
Corrected the design doc, which claimed otherwise.

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

* feat(ios): browser-live sink and input queue

The sink is the only place normalised intents become device pixels, and
it routes an unmodified single character to char rather than a raw
keyDown the server would hold forever.

The queue ports src/lib/browser-input-queue.ts: one request in flight,
movement coalesced, wheel deltas summed, a 32-item ceiling that halts
rather than banking input, and releases that survive the halt.

settle() and drain() are deliberately different: drain abandons stale
travel for hand-back, settle waits for everything. Writing the tests is
what surfaced that they cannot be one method.

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

* feat(android): browser-live sink and input queue

Ports CompanionCore's sink and queue with the same assertions: pixel
denormalisation, the char-not-keyDown rule for unmodified characters,
movement coalescing, summed wheel deltas, the ceiling, and releases that
survive a halt.

A mutex stands in for the actor; the launch happens under the lock so
two callers cannot both start a pump.

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

* feat(mobile): browser-live transport and message decoding

SSE frame stream plus the action channel on both platforms. The decoder
drops an unknown message type rather than tearing down a stream someone
is watching, and refuses a frame with no metadata, which cannot be
mapped to coordinates anyway.

Byte-at-a-time SSE parsing on iOS for the reason SSE.swift documents:
AsyncLineSequence folds blank lines, which are what end an event.

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

* feat(ios): browser control screen and touch adapter

The adapter makes no decisions: raw touches become TouchSamples and a
CADisplayLink drives the core's clock so long press and momentum work.
A second finger flushes the tracked touch rather than half-tracking a
pinch.

The screen adds the modifier bar the design calls load-bearing, a
locally drawn cursor for trackpad mode, a hidden field that turns soft
keyboard text into char events, and take/release with a flush on
backgrounding. The 429 from a full viewer table gets a real sentence.

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

* feat(android): browser control screen and touch adapter

Mirrors the iOS side: a pointerInput adapter that only produces
TouchSamples, a frame-rate loop driving the core's clock, the modifier
bar, a locally drawn cursor, and take/release with a drain on leave.

The transport hangs off CompanionClient so it inherits the endpoint,
scoped-IPv6 DNS and streaming timeouts rather than keeping a second copy
of that setup.

The Browser destination encodes and decodes with the rest of the stack,
so restoring after process death does not silently drop the screen. Its
entry point sits outside the cloud-desktop gate: any bot with a browser
can be driven, not only cloud ones.

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

* fix(mobile): typing on Android, cursor placement and pan

Three gaps a self-review found after the screens compiled:

- Android declared a typed buffer but had no field, so there was no way
  to type at all. Committed text now leaves as char; Backspace stays on
  the bar because an empty field reports no deletion.
- The Android cursor was positioned against a hardcoded 1000px rather
  than the box it lives in, so it only landed right by accident.
- Neither zoom path applied pan on Android, which stranded a zoomed-in
  person at the top-left with no way to reach the rest of the page.

Also, on both platforms the page's own navigation could overwrite an
address someone was halfway through typing.

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

* fix(mobile): make the browser stream actually decode, and 8 more

A code review found the client halves were broken end to end. Most
severe first:

- The SSE decoder keyed on a `type` field inside the payload, but the
  server strips the type into the `event:` name and both SSE parsers
  discarded `event:` lines. Every message decoded to nil, so iOS never
  left "Connecting..." and Android never got a viewer id, which left
  Take control permanently disabled. Both parsers now carry the event
  name, and the decoders key on it — including `ready`, which is what
  the server actually calls the viewer-id message, plus `control` and
  `heartbeat`, which were not handled at all.
- Two Kotlin string templates were written as literals ("Bearer \$it",
  "https://\$address"), so every Android browser request went out
  unauthenticated and scheme-less navigation went to a bogus host.
- The Android tick clock and touch clock had different origins, and
  pointerInput restarts on a driving change — so after taking control
  every tap read as older than the long-press threshold and fired a
  right click instead.
- Direct mode set `scrolled` on any nonzero move, so a tap that wobbled
  a pixel scrolled sub-pixel and suppressed its own click. Now behind
  the drag threshold, on both platforms.
- pan() and the render transform measured against the view while the
  mapping used the aspect-fit drawn size. On a portrait phone showing a
  16:9 page those differ by 3.6x, so zoomed taps landed far from the
  pixel touched. ViewportMapping now exposes drawnWidth/drawnHeight and
  all three use it.
- The Android dispose-time release launched on a scope cancelled in the
  same pass, so it never left the phone.
- The Android mapping was rebuilt only on layout, so a viewport other
  than the 1280x720 default never reached the core.
- The sidecar's SSE scrub ceiling was 1 MiB against browser-live's 3 MiB
  frames; one large frame would have torn down the stream. The proxy
  test that covers this hardcoded 2 MiB and now derives from the
  constant, so it cannot rot the same way again.

Regressions added for the wobble-tap and letterboxed-pan cases: the
existing tests used a square viewport where drawn size equals view size,
so neither bug could have been caught.

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

* fix(mobile): revocation, stale clicks, held buttons and a pump race

A second review pass found eight more. Most severe first:

- Revoking browser control did not close a browser-live stream the
  device already had open, contrary to the comment promising it:
  disconnectDevice only ever reached /api/events and viewer relays. A
  phone kept watching a signed-in browser after the grant was taken
  away. The proxy now registers capability-gated streams per device and
  closes them on revoke, with a test.
- A trackpad tap that never moved the finger emitted press/release with
  no move, so the sink stamped the click at its last coordinate —
  (0,0) on a fresh session — while the reticle sat where the person was
  aiming. Both platforms, and the parity fixture asserted the wrong
  shape.
- iOS never called Coordinator.flush(), the only source of a release
  for a held button, so backgrounding or leaving mid-drag left it down.
  Android had this right; the design doc named the parity gap.
- The Android dispose-time release enqueued into a queue built on the
  composition scope that the same pass cancels, so the pump never ran
  and drain() would have spun forever. It now sends directly.
- A stale pump cleared `active` unconditionally, wiping the replacement
  clear() had just started and letting two pumps drain concurrently.
- The Android trackpad reticle ignored letterboxing.
- The 403 told people to use a Settings switch that does not exist;
  it now names the button, which every first-time user will need since
  the grant is off by default.

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

* test(companion): give proxy fixtures the browser capability field

The field stays required on authenticate's return type, because the
registry always supplies it. tsconfig.server.json type-checks these
fixtures; tsc -b does not, which is why the packaged build caught this
and the earlier check did not.

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

* fix(mobile): show the server's refusal and let a dead stream retry

The first hands-on test reported "browser control is off" after the
grant was already on. The server path was fine: a device with the grant
opens the stream, receives ready/control/status/frame, and take returns
200. The phone was at fault twice over:

- The stream threw a bare status and discarded the response body, so
  every 403 read as "browser control is off" whatever the server said.
  Both clients now surface the sidecar's or harness's own error text.
- Nothing restarted a stream once it failed, and toggling the grant
  deliberately disconnects the device. The screen sat dead until the
  person backed out. It now shows Try again, which starts a fresh
  viewer with no state carried over from the old one.

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

* feat(i18n): add complete Chinese localization across desktop and mobile

- Add Simplified and Traditional Chinese translations across desktop, iOS, and Android
- Integrate with companion mobile apps (Android Compose strings and iOS xcstrings)
- Consolidate Android review resources into base and localized strings.xml
- Fix BotThreadRow Compose status coloring and preserve upstream snooze logic
- Update source-hashes.json and validate catalog completeness via generate-locale.mjs

* fix(android): align the notification footer and localize the thread sheet

- mobile_settings_notifications_footer said "while OpenMausMobile is
  connected" while OnboardingCopy.NOTIFICATIONS_BODY renders
  SettingsPolicy.NOTIFICATIONS_FOOTER ("while MausBot is connected"):
  OnboardingRoutingTest could not find the body text on screen, and the two
  surfaces showed different copy. The English resource now matches the
  constant byte for byte, with the Chinese catalogs following.
- Route the delete/rename/snooze error text through localizedMobileCopy so
  the "Couldn't update this thread. Try again." fallback reaches the Chinese
  catalogs (CodeRabbit review).
- Map "Rename thread" so the rename dialog heading translates (CodeRabbit
  review).
- Give the snooze dialog's title, presets, "Stop snoozing", the working
  notice and Cancel real string resources with Simplified and Traditional
  Chinese.

English resource values stay byte-identical to the pinned constants and test
copy ("Rename thread", "Until 6 PM", "Until new activity",
"Stop this thread before snoozing it.", "Cancel").

* fix(i18n): correct Chinese mistranslations found in cross-PR review

Against the English source, eleven Simplified keys (and their Traditional
twins, translated in the same pass) read wrong or dropped content:

- installation rendered as "workspace" (voice.grok.sharedKey,
  settings.section.workspaces, settings.profiles.ownerOnly)
- Servers / Installations section titles mistranslated
  (settings.section.desktopWorkspaces, workspaces.title)
- bots mistranslated as "items" (team.moveSelected)
- "Task folder" rendered as a workspace (composer.tray.privateWorkspace)
- "Member (chat only)" gained an approval right it does not have
  (workspaces.chatOnly)
- Threads mistranslated as a UI thread (backup.threads)
- verb "Draft" used as a noun (botAccess.grants.verb.draft)
- organization.disconnectWarning dropped the daily-backups sentence

Terminology now follows each catalog's own established usage.

* fix(i18n): unify Chinese terminology across desktop, Android, and iOS

One glossary, applied everywhere the Chinese catalogs mix terms:

- thread (and conversation) -> 对话 / 對話 (was 线程, 讨论串, 对话线程,
  執行緒, 對話串 across the catalogs)
- installation(s) -> 安装实例 / 安裝實例 (was mistranslated as 工作区)
- workspace stays 工作区 / 工作區 where the English says workspace
- default -> 默认 / 預設 (zh 缺省 merged into 默认)
- "bot folders" -> 机器人文件夹 / 機器人資料夾 (was 工作区)
- honorifics -> 你 (您 normalized away)
- quotes: "..." in Simplified, 「...」 in Traditional
- stray Traditional vocabulary in the Simplified catalog normalized
  (纪录->记录, 帐户->账户, 设置档->配置, 软体->软件, 网路->网络)

186 zh keys, 85 zh-tw keys, 52 Android string entries and 2 iOS
xcstrings entries changed. English sources, placeholders and source
hashes are untouched; node scripts/generate-locale.mjs --check passes.

* feat(ios): Activity and Team memory screens, with the companion routes they call (#933)

The phone twins of the desktop's Activity panel and Team map → Memory.
From a bot's profile: "Activity" lists what the bot did, newest first by
day, each row with the app and action in words, the recorded arguments,
and an outcome chip (ran, failed, running, allowed, denied, needs you).
"Team memory" lists the bot's section's shared people, places, decisions
and terms, answers proposals waiting for a tap (Remember / Skip), removes
entries with a swipe, and adds one by hand. Both are content surfaces;
the sending policy, app scopes and fallback chain stay on the desktop,
where the companion allowlist has always kept execution policy.

The sidecar allowlist gains GET /api/bots/:id/activity and GET/POST/
PATCH/DELETE /api/team-memory, pinned in routes.test.ts. Two fixtures
captured from a disposable harness pin the wire shapes for both phone
suites: bot-activity.json (an empty page — a fixture harness runs no
tools) and team-memory.json (one entry of each kind, added by hand).

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>

* fix(companion): expose separate browser access grant in desktop settings

* fix: harden mobile browser authorization and lifecycle

* test: align integration fixtures with consent and reconnect readiness

* test: align integration fixtures with consent and reconnect readiness

---------

Co-authored-by: aivsomkar <aivsomkar@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: 择梦舟 <158067205+dreamfarer-space@users.noreply.github.com>
Co-authored-by: LeaningLearner <1016823240@qq.com>
A Claude, Codex, ACP or Pi bot set to Works on: Cloud (Hosted desktop) had
its turn handed to the Computer engine (turnInstance), which posted the
prompt to Boat's own runner with Boat's default model. On an OMB Cloud that
runner has no AI sign-in, so every turn failed with a bare
provider_not_configured, and the saved choice (Works on, a composer pin, or
a select_computer Auto pin) sent every later turn the same way.

- The Boat cloud computer is now one more stdio computer server for every
  engine with computer tools (harness-mcp-proxy computer ->
  POST /api/internal/computer/mcp), in the same localComputer slot a Local
  VM or VPS uses. The agent process holds only a turn-scoped capability;
  the Boat credential stays in the harness. Arguments are checked against
  the tool schema before the control gate and the Boat.
- turnInstance, the model/effort/variant swap and cloudComputerMcp are
  gone; usesCloudComputer is the one rule (computerMcp or the Computer
  engine), checked before anything is provisioned (cloudPlaceDriverError,
  replacing vpsDriverError).
- An explicit place that cannot be attached fails with its cause plus the
  one control that changes it; a failed Auto-recorded pin is cleared so the
  next message runs on Auto. A person's pin stays.
- Computer engine: Boat's 409 envelope becomes a sentence with the next
  action; on an included (OMB Cloud) Boat account it reports unavailable.
- browser-proxy becomes harness-mcp-proxy (browser|computer, OMB_MCP_TOKEN);
  chat-boat-tools becomes server/cloud-computer-tools.ts, ChatBoatClient
  deleted. Stale prompt text for removed tools deleted.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* perf(server): stop re-reading config.json on every broadcast frame

Every stream frame and every request rechecks email sessions against the
sign-in list. With at least one email session that meant reading,
parsing and schema-checking config.json each time (about 20 us per frame,
so per streamed token). The list is now worked out again only when
config.json changes: a new file (every save renames one into place), a
new size or a new modification time. A missing or unreadable file, or
one saved in the last two seconds, is read on every call, so removing
someone always takes effect on the next frame.

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

* fix(server): never cache a config.json the server could not use

The sign-in list cache kept the empty list it got from a config.json that
loadConfig() could not read (permissions, a failed read, invalid JSON),
because stat still worked on that file. Fixing the permissions with chmod
or chown does not change the size, the time or the file, so nobody could
sign in by email until the next write or a restart. Now a reading where
loadConfig() ignored the file is never kept, and a change of permissions
or owner (the file's change time) also counts as a change.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ChatMarkdown handed react-markdown a components map built inline on every
render. Each renderer is an element type, so any re-render with unchanged
text gave React new types and it rebuilt the whole message. Re-renders come
from the thread list (a thread opened or renamed anywhere, a bot renamed, the
selection moving), so every visible bubble was rebuilt on those events: code
blocks dropped to plain text until an effect re-applied the cached highlight,
and wrap, copy, spoiler and save state were lost.

- The renderers are module constants; the per-message values they need
  (streaming, message, image offsets, threads) reach them through one small
  context.
- Only a message whose text can hold a thread link ("#" or an openmausbot
  link) reads the thread list, via a conditional use(); the rest keep
  bailing out in memo.
- remarkPlugins is memoised on its inputs; rehypePlugins is a constant.
- CodeBlock and MermaidDiagram read their caches in the useState
  initializer, so a remount paints highlighted in its first frame.
- CodeBlock and MermaidDiagram keep a stable dangerouslySetInnerHTML object
  per string: React 19 compares that prop by identity, so a fresh object
  rebuilt the highlighted DOM on every re-render.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every Chief of Staff turn ended its team section with an 803-byte
"TRUSTED OPENMAUSBOT STATUS" block read from
~/.local/state/aos-session-bridge/openmausbot/latest.json. That path
belongs to an external session bridge; OpenMausBot never wrote it, so
the block always said freshness=unknown, reason=missing_or_insecure.

Delete openmaus-status-capsule.ts and its tests, both call sites in
index.ts (settings preview and real turn), and the now-unused
trustedOpenMausStatus parameter of chiefOfStaffSystemPrompt. The Chief
section now ends at the roster.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Four renderer files were reached only by their own tests:
ComposerTray.tsx, SidebarMoreMenu.tsx, the use-native-view-obscured
hook (LocalVmWorkspace.tsx keeps its own simpler hook) and
browser-panel-operation.ts. Deleting the hook also orphans
aspectFitNativeViewBounds in local-vm-workspace.ts, so it goes too.

The two tests that imported the deleted files lose only those
assertions: the workingFolderLabel case in BotThreads.test.ts and the
SidebarMoreMenu negative check in SidebarFooterNav.test.ts (the
">Tools<" text check still covers it).

The production renderer build is byte-identical before and after.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(chat): keep SQLite's active leaf equal to memory's after a late screenshot

When the settle-time screenshot lands behind a follow-up the person already
sent, insertMessageAfter left memory's leaf on the newest reply but
mdb.appendMessage moved SQLite's leaf to the screenshot. A restart, or the
first page of a thread that is not cached, then opened on the screenshot and
hid the follow-up and its reply.

mdb.appendMessage now takes the leaf to record (the new message by default),
and insertMessageAfter passes memory's leaf in the same transaction. That also
covers threads with no stored leaf, where a reload would otherwise fall back to
the newest row, which is the screenshot.

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

* fix(chat): insert the late screenshot without touching the leaf

Review fixes. SQLite's leaf already equals memory's when insertMessageAfter
takes the behind-a-follow-up branch: memory's leaf only moves through
appendMessage, branchMessage and setActiveLeaf, and each writes the same leaf
to SQLite. So the insert only has to leave the leaf alone. It now calls the
existing mdb.insertMessage, and mdb.appendMessage goes back to main's
two-argument form.

The no-stored-leaf test is gone: it reached its state only by clearing the
leaf by hand, which the server never does at this point. The reload check
moved into the existing chain-insert test instead of a near-copy of it.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(coordination): follow-ups continue the same teammate thread everywhere

A follow-up to work a Chief already handed out opened a second teammate
thread, so the same task ran twice in parallel. Since #2061 the direct
coordinate_bots route created a thread for every call
(server/index.ts, store.createTask per assignment), and each person
message is a new request tree, so nothing could reach the earlier
thread. The route is the same server code on the desktop app, a VPS and
a Cloud home; the difference people saw was version skew (pre-0.1.92
apps still used the old pair thread).

Now a conversation has one thread with each teammate: the first request
opens it (openedBy.threadId names the conversation), every later request
from that conversation continues it and waits behind work still running
there (the existing thread-busy check). The teammate is told the request
continues its earlier work; the receipt names the thread. A finished
thread is not folded away while its next request is waiting.

The server derives each request's identity from its destination and
text within the request tree, so request_key is gone from the tool, the
proxy and the route, along with its four duplicate strings, the
"already used for different work" and "already started" refusals, the
speculative-thread cleanup and the dead send_to_thread/wait_thread names.

Tests: direct coordination (headless server and desktop-app mode via a
new launcher knob), Cloud home (cloud-personal), thread-aware bots,
room coordination, catalog goldens regenerated.

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

* fix(coordination): review fixes for one thread per conversation

- A repeat after the request finished or failed runs again with
  rework=true (a re-check after a fix, a retry after a failure); without
  it the call is refused with that instruction, never receipted as
  delivered. A live repeat still lands on the running request.
- enqueue recognises a repeat from the fields every node already stores
  (teammate, place, text) instead of a route-built sha256 key; a room
  call's recipients share a per-call batch id.
- Drop the "continues your earlier work" scan and sentence: unrelated
  requests share the thread too, and the teammate has the history.
- Drop label: every direct thread is "@<sender> · work".
- Restore the cleanup of a thread opened for a repeat that landed on an
  existing request (reachable when the person archived the thread).
- The coordinate_bots result is receipts plus message or error; the
  accepted/errors lists are gone. The error keeps the full refusal text.
- State the one-thread rule once, in the coordinate_bots description.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Memory: never lose a note at the size cap

updateMemory refused any write that left MEMORY.md over the load budget
(200 lines / 24 KB) and the tool closed itself after three refusals in a
turn, so a full file deadlocked: removing a few rows never made enough
room, and the notes were lost ("I will retry next turn"). Capture
dropped its facts the same way, silently.

Now a write never fails for size. In the same synchronous call the
oldest dated entries (struck-through first, then expired, then the
oldest live ones) move to memory/archive.md, marked "moved <date>";
hand-written lines, health and safety facts, a fenced line and the new
entry never move. The archive is written first, with no await before
MEMORY.md. session_search still finds archived lines, and the bot is
told exactly which lines moved. One budget: what is stored is what
loads. One fact is at most 1,000 characters.

Removed: the over-budget refusal and its shrink exception,
MemoryBudgetRefusal, MEMORY_REFUSAL_RECENT_ENTRIES, recentEntries,
MEMORY_CONSOLIDATE_HINT, the "Consolidate it now" prompt text, the 413
mapping, MAX_MEMORY_REFUSALS_PER_TURN and memoryRefusalsThisTurn, the
capture "MEMORY.md is full" flag, and the tidy-only archive writer
(tidy and the size rule now share appendMemoryArchive, which no longer
replaces an archive it cannot read).

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

* Memory: keep memory_update's description within the catalog budget

The new "never fills up" sentence pushed every tools/list profile past
its 2% wire budget. Say the same in fewer words instead of raising the
baseline: drop "Never overwrite the full file from a stale thread
snapshot" (covered by "never direct file writes"), "marks the entry
updated" and "rather than was mistyped". The description is now shorter
than on main; goldens regenerated (only memory_update changes).

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

* Memory: move whole entries, cap entry lines, short replies (review fixes)

Review fixes for the size rule:
- An entry now owns the lines under it: indented ones (how a code block
  is written into an entry now, Markdown's list rule) and a code block it
  opens, through the closing fence (how such entries were written
  before), never past the next dated line and never through a fence that
  does not close. makeRoom moves and counts whole entries, so a fence is
  never left behind and the `includes("```")` exclusion is gone.
- memory_update text is at most 20 lines as well as 1,000 characters, so
  one code block cannot fill what loads.
- The reply names the first 5 moved entries by their first line and
  counts the rest, instead of echoing every moved line.
- The success result is { ok, truncated, entry, moved }: no re-read of
  MEMORY.md, no unused text/bytes.
- The rule is stated once, in memory_update's description; the managed
  prompt only says to change MEMORY.md with memory_update.
- One archive label from code in the topic index; the archive is created
  without a header.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Delete grokagent.ts (unused re-export) and scripts/repro-closed-threads.mjs.
- Delete exports used only at their definitions and 15 production functions
  reached only by their own tests. Tests of thin wrappers now call the
  production function they wrapped.
- Claude refreshes the recorded system prompt on every turn; drop
  SendTurnInput.refreshSystemPrompt (both builders always set it).
- usesCloudComputer() is derived from remoteAgent || cloudComputerMcp in
  contracts.ts; drivers no longer declare it.
- The lending-memory walker reads WORKING_FOLDER_FILES/DIRS, so the
  security boundary has one list.
- Agents MCP serverInfo is openmausbot-agents; header no longer lists stale
  tools. Cerebras points at Settings -> API keys.
- Six env reads nothing sets become constants (PROMPT_IDLE stays).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The merge of main into #2219 took main's side of contracts.ts, index.ts,
openai-chat.ts and capability-fields.test.ts, which brought back
SendTurnInput.refreshSystemPrompt (now read by nothing) and kept
usesCloudComputer as a field six drivers declare.

- usesCloudComputer() is derived in contracts.ts as remoteAgent ||
  computerMcp, main's rule since #2220. The six declarations are gone;
  cloudPlaceDriverError and every attach/readiness read in index.ts call
  the function. The fleet test checks no driver declares the property.
- Delete SendTurnInput.refreshSystemPrompt and both `true` assignments
  again; Claude refreshes the recorded prompt on every turn.
- Claude: the version-cache comment, the Engines update notice ("resumed
  turns", not "coordinated resumed turns") and a test comment match the
  unconditional refresh.
- CONTROL_REFUSAL_PLAIN's comment no longer contrasts it with a wait tool
  that no longer exists.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up to #2210, which deleted ComposerTray.tsx and
SidebarMoreMenu.tsx:

- SidebarPopoverMenu: the trigger's data-tour id and the attention
  summary handed to renderTrigger were read only by SidebarMoreMenu.
  The two remaining menus (the profile row and the chat header's More
  button) pass no id and read only `open`, so both go and renderTrigger
  receives `{ open }`. The header and the attention note now describe
  the two real users; an item's own attention dot stays.
- Locales: the five composer.tray.* strings belonged to the deleted
  tray. privateWorkspace lost its last reader with ComposerTray.tsx;
  the other four had none. Removed from en, zh, zh-tw and uk, and the
  three packs re-accepted with the locale script, which drops exactly
  their 14 hash entries.

A test now pins that an item's attention dot is drawn on the item in
its tone, and not on the trigger.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
react-markdown's synchronous Markdown builds a new processor and re-parses
on every render and never looks at the plugin arrays' identity, so the
memoised remarkPlugins and the hoisted rehypePlugins constant bought
nothing. Only the components map's identity matters, and it stays a
module constant.

- Inline remarkPlugins and rehypePlugins again; drop the useMemo, the
  REHYPE_PLUGINS constant and the Options type import.
- Drop the renderers-test assertion on rehypePlugins identity, which pinned
  no behaviour.
- Fold the cached-highlight first-frame check into the existing code
  palette test instead of repeating its setup, and drop its setTimeout(0)
  sleep.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): fold Updates lines by the Activity setting and show webhooks as their task (MOCA-204)

The line under a chat on the Updates pill and sheet, the island, Live
Activities, the home-screen widget and Walkie came from Updates.swift,
which read the raw last message. Two leaks followed:

- A webhook run ending on its prompt showed the whole envelope
  ("[DEFAULT WEBHOOK INSTRUCTIONS] ... Delivery ID: ... Sender: ..."),
  though the chat list already reduces it to the task.
- A tool step's name, often a raw shell command, showed even with
  Activity = Hidden, so Hidden meant hidden in the chat but not on these
  surfaces.

updates(detail:) now takes the reader's Activity setting. The to-review
line reads by the roster's rule (rosterPreview: webhook task, folded
tool runs, no digest), and the working line names a tool step only when
Activity is not Hidden; a status notice still shows. Every app caller
passes the stored setting. The widget extension cannot read the app's
settings, so a WidgetSnapshot now records the setting it was written
under and the extension's own refresh reuses it.

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

* fix(android): fold Updates lines by the Activity setting and show webhooks as their task (MOCA-204)

Port of the iOS change. The Updates pill and sheet read the raw last
message: a webhook run ending on its prompt showed the whole envelope,
and a tool step's raw command showed even with Activity = Hidden.

updates(detail) now takes the reader's Activity setting. The review
line reads by the roster's rule (rosterPreview: webhook task, folded
tool runs, no digest), and the working line names a tool step only when
Activity is not Hidden; a status notice still shows. The roster and the
sheet pass the setting they already collect.

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

* docs(screenshots): MOCA-204 Updates sheet at Full and Hidden (iOS)

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): put Stop in the composer while a turn runs (MOCA-148)

The desktop shows a Stop button in the composer whenever a bot or room
is working. On the phone the only way to stop a turn was Interrupt in
the + menu, which few people found ("Cancel exists on macOS, missing on
iPhone"), and rooms had no way at all.

The composer now shows a Stop button beside the mic while the
conversation is busy. It stops that conversation's own thread: a bot
through /api/bots/:id/interrupt, a room through the new
interrupt(groupId:threadId:) on /api/groups/:id/interrupt, which the
companion already allows. The mic stays, so a steer can still be
dictated mid-turn.

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

* fix(android): put Stop in the composer while a turn runs (MOCA-148)

Port of the iOS change. The Interrupt chat action was the only way to
stop a turn, and rooms had none. The composer now shows Stop beside the
mic while the conversation is busy; it stops that conversation's own
thread: a bot through interrupt(botId, threadId), a room through the new
interruptRoom on /api/groups/:id/interrupt.

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

* fix(mobile): offer Stop while a room works between speakers (MOCA-148)

Review follow-up. The phones counted a room as busy only while
busyBotId named a speaker, but a room run also routes, waits on a
member busy elsewhere (up to 30 minutes) and hands off between
speakers. The desktop shows Stop through all of it (group.working ||
busyBotId), and the server sends `working` on every room; the phones
never decoded it, so the new room Stop vanished in those stretches.

Both phones now decode Room.working and gate Stop on a new
Chat.canStop (busy for a bot; busyBotId or working for a room). `busy`
keeps its meaning everywhere else. Android's projection of a sibling
room thread drops `working` as it drops busyBotId.

Android: Stop now takes the mic's slot while it shows, as on the
desktop. A fourth 48dp target left a 360dp phone's field about 60dp
wide. A running dictation keeps its mic so it can be stopped.

Also adds the iOS screenshot for the PR.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes for #2220 (merged), on top of main.

- Auto attaches a Boat only for the Computer engine, whose turn runs there.
  Every other engine reaches the Boat only when the conversation is on it
  (Works on, a pin, a cloud routine, select_computer), so an Auto turn adds
  no Boat call, can't be failed by a Boat's deletion fence, and records no
  place nobody chose. Restores the pre-#2220 Auto behaviour for Claude,
  Codex, ACP and Pi, and drops the Sep 23 Auto reuse for API engines.
- findBoat's direct read of a known Boat has the same 20 s deadline as every
  other Boat read.
- One predicate, canWorkOnCloud (shared/cloud-computer.ts), for the server and
  the renderer. It replaces contracts' derived usesCloudComputer() (#2226)
  and the renderer's three copies; cloudRunner becomes boatCapableEngine.
- Dead code out: canMount (attachBotBoat, boatTurnLifecycleAction),
  SurfacePlan.clearPin, CLOUD_PLACE_DRIVER_ERROR, PlaceUnavailableError.source,
  the routine interruptTurn runOn argument; parseHarnessMcpKind un-exported.
- One asPlaceFailure wrapper for bot threads and rooms; the routine refusal
  takes its words from cloudPlaceDriverError.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The desktop has shown a reply only once it is finished since August, yet
the store still collected every streamed token: a per-thread text and
reasoning buffer flushed by animation frame, a 100 ms timer and a 64 Ki
cap, plus ghost-tail clearing. Nothing displayed it. Its readers were two
scroll-effect dependencies and two "is anything streaming" checks, and
because the buffer held every thread, a background bot's reply
re-rendered the open chat on every flush.

Now the store ignores reply and reasoning deltas. Runtime frames feed only
the model-variant fold (turn.started, session.model-variants,
turn.completed), through one small runtimeFrameAction function. Busy
state comes from bot.busy, which spans the whole turn.

Removed: StreamContext, useStreaming, createStreamDeltaBuffer, the
clearStream ghost-tail logic, ChatMarkdown's never-passed streaming prop
with its 250 ms settle debounce in CodeBlock and MermaidDiagram, the
streaming deps in the ChatView and GroupView bottom-follow effects, and
the stream-buffer e2e probe with its preview page.

Server, phones and the Inspector panel (its own event stream) are
unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Verify instruction-update origin in eval evidence
* One transcript viewport hook for 1:1 chats and rooms

ChatView and GroupView each carried their own copy of the transcript
viewport: the mounted window, bottom-follow, Show earlier / Show later,
the load-older height capture, the search-result window and Jump to
latest. Every viewport fix had to land twice, and two already landed
once: grabbing the scrollbar and PageUp/Home/ArrowUp break follow in
1:1 chats but never did in rooms.

useTranscriptViewport now holds the one copy; both views call it and
render its window and handlers. Rooms pick up the two follow breakers
the 1:1 view already had. Nothing else changes: same effect
dependencies, same render-phase re-tail on a thread switch, same
height capture keyed to the thread it was taken in.

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

* Viewport hook: one layout effect holds a row while rows are prepended

The hook ran the same row-hold body as two layout effects through a
useCallback keyed on the thread, and a comment had to explain that the
callback's identity changing is what drops a capture on a switch. Show
earlier and load older also each wrote out the height capture and the
follow break.

Now one layout effect depends on the window start, the oldest row and
the thread key, and holdRowForPrepend() is the one capture both actions
call. Behaviour is unchanged. A new test pins the thread-key dependency:
a switch drops the capture even when the next thread opens on the same
first row.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
One mechanism, Copy this computer here, for every server the person owns and
adds in the desktop app, their OMB Cloud included: the same engine
(electron/cloud-move.mjs) and receiving routes (server/cloud-move-http.ts).

- Destination comes from main: a saved server's id from this computer's page,
  or the page's own server (moveSenderDestination). One grant per destination:
  the Cloud's Admin pairHome, or an owner code minted with the window's own
  session there (mintOwnerCode). Refused before exporting: this computer's own
  server, an older or pre-feature server, a shared workspace, and from a
  server's page, one that has work.
- Server: the cloudHome gate is gone; shared workspaces (hosted, or email
  sign-in) answer 403 shared_workspace; the post-restore tidy runs everywhere;
  status and estimate report appVersion and environmentId.
- Restart: RESTART_EXIT_CODE (server/restart.ts) for every launcher: the
  serve loop (serveUntilStopped), a new container launcher
  (server-launcher.ts, Docker/Podman CMD), and the Cloud launcher.
- UI: moveView is the one state -> view mapping for the card on any empty
  server, Settings -> Servers (new row action), Settings -> OMB Cloud, the
  Cloud checklist, and Settings -> Backups -> Import from this computer.
- Docs: docs/copy-workspace.md is the reference; cloud-pro.md keeps the
  Cloud-only parts.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Table repair and math normalization each ran their own GFM parse of the
whole message on every render, on top of react-markdown's parse. Their
result depends on the text alone, so ChatMarkdown now keeps it per text
in a module-level cache ({ source, imageOffsets }), capped at two
transcript windows (240 messages, oldest out first). A bubble that
renders again (a thread list change under a message holding a '#') or
mounts again (thread revisited, raw view toggled off) skips both parses.

Tests: a parse spy shows the pre-passes run once per distinct text
across renders; the repeated-image offset test now renders twice and
checks the cached offsets; the cache stays bounded and keeps the newest.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A room member's failed turn is stored as the same row a 1:1 failure is
("error: …" with setup/claudeUpdate; the room copy only adds `from`), but
the room rendered it as a tool pill: the CLI's raw "Not logged in · Please
run /login", cut at 30rem, with no sign-in. A long plan-limit refusal lost
its "Delete one to start another." the same way.

- Rooms render failed turns through FailedTurnRow, the component the 1:1
  chat now uses too, for the engine that member's turn ran on.
- src/lib/failed-turn.ts is the one mapping from an "error: …" row to what
  a person reads: the chat row's headline and the sidebar preview.
- ErrorRow: when the engine reads signed out and its card is the sign-in,
  the row opens with one translated sentence ("Claude isn't signed in yet.
  Sign in below, then send your message again."); the CLI's words move
  under Details, as the Mac permission case already did.
- EngineSetup.offersSignIn() shares the card decision, so the sentence
  never promises a sign-in the card does not show (API-key engines, a
  Claude update offer, engines that cannot be set up here).
- Sidebar previews (1:1 and room) drop the "error:" marker and say
  "<engine> isn't signed in" for a signed-out engine.
- 3 strings in all 10 locales; source hashes accepted with the repo script.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Delete the memory topic route no client calls

GET /api/bots/:id/memory/topics/:name was called only by tests. The
Memory panel, presets and bot setup read and write topic files through
/memory/file, whose path rule (parseMemoryPath) is the one place that
decides which memory files can be reached.

Removes the route, its import, its index.test.ts serving and traversal
tests (traversal stays covered by parseMemoryPath's tests) and its arms
in the route-table tests. The route-table test now checks that the old
path falls through to the next handler.

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

* Say where readMemoryTopic's name gate lives now

The helper's comment still pointed at the HTTP topic route this branch
deletes. After the deletion the gate in readMemoryTopic is the only name
check for its callers (recall, team backup, the brief in index.ts), so
the comment now says that. Comment only; no code change.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ci-stop-closed.yml joined the group ci-${{ github.ref }} to stop a closed PR's
run. For a merged PR the closed event reports the base branch as github.ref,
so the stop run joined main's group with cancel-in-progress and cancelled
main's CI in the same second, on every merge. Every main run since 07:55 UTC
on Oct 3 was cancelled this way. PR runs now share a group named by the PR
number (ci-pr-<n>) in both workflows; main and merge-queue groups are
unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Teammate availability leaves the cached half of the system prompt

Every roster line carried a teammate's live status ("available", "working
right now"), and the roster sits in the stable half of the system prompt.
One teammate starting or finishing work changed that half: Claude relaunched
its CLI session, Codex re-sent its developer instructions and ACP/pi re-sent
the whole prompt.

Roster lines now carry name, role, Chief flag and id only. Who is busy moves
to one short line in a new volatile "availability" section ("Team
availability: Patch (working right now); every other teammate is
available."), built by teammateAvailabilityPrompt from the same reachable
team. Direct turns, room turns and the settings preview all add it, so no
turn loses availability and the stable half stays byte-identical when a
teammate's status changes.

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

* Availability line: name ids, and frame names as typed labels

Review fixes. Two teammates with one name could not be told apart in the
availability line, so each entry now carries its id like the roster does.
The line sits outside the roster's fence, so it now says that names are
labels somebody typed, never instructions; ids get the same bracket
stripping as names.

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

* Availability line: call overflow teammates "not free", not "busy"

Review fix. The overflow count covers every status that is not available,
including waiting on the user and needing setup, so "busy" was not accurate.

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

* Availability section: define it once, and stop listing volatile sections elsewhere

The direct turn, the room turn and the settings preview each spelled the
availability section out by hand. Its id is what puts it in the volatile
half, so a call site that spelled it differently would quietly put it back
in the stable half, and no test would notice. teamAvailabilityPart in
system-prompt.ts now builds it for all three and for the unit test.

The openai-compat e2e now checks a real direct turn: the availability line
arrives in the turn's context note, never in the system message, and the
preview reports an availability section.

contracts.ts, prompt-split.ts and codex.ts listed which sections are
volatile and had gone stale; they now point at VOLATILE_SECTIONS. The
model-facing "context notes ... have been cleared" note no longer names
sections, since its list was already missing two of them.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): keep pairing-link errors on the pairing screen (MOCA-248)

Any openmausbot:// link that was not a pair or chat link raised "That
pairing invitation is not valid" as a modal, including the desktop's own
openmausbot://thread/... and openmausbot://cloud links. Unknown links are
now ignored (logged only); a pair link that does not parse is a new
CompanionDeepLink.invalidPairing case that opens pairing and shows the
message inline beside "Scan QR code".

A pairing link opened on the "This device was unpaired" screen waits
behind it by design, but "Pair again" signed out and dropped it, leaving
an empty form. Session.pairAgain() carries that invite across the
sign-out (CompanionPairingInvitePolicy .pairAgain(held:)); the router
rule and the sign-out queue clearing are unchanged.

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

* fix(android): keep pairing-link errors on the pairing screen (MOCA-248)

Reopening a spent QR link raised the global "Something went wrong" dialog
over whatever screen the phone was on, every time, until the process
died. The credential stays refused; the refusal now also requests
pairing, so PairingScreen shows it inline beside "Scan QR code".

A pair link that does not parse does the same. A URL that is not a pair
link at all is dropped silently instead of raising the invalid-invitation
dialog.

A pairing link opened on the "This phone was unpaired" screen waits
behind it by design, but "Pair again" signed out and emptied the invite
queue, leaving an empty form. Session.pairAgain() lifts the waiting
invite out and puts it back inside the same gate section; signOut()
still empties the queue.

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

* docs(screenshots): MOCA-248 broken pairing link shown on the pairing screen (iOS)

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(android): make pairing failures say why, and ask for local network on LAN routes (MOCA-60, MOCA-244)

- Server pairing: the identity check (GET /.well-known/openmausbot/environment)
  is now separate from redeeming the code, as in iOS confirmServer(at:).
  A 404 reads "<address> isn't an OpenMausBot server. Check the address and
  try again."; any other failure reads "Couldn't reach <address>: <reason>."
  Both throw ServerAddressError. The code never left the phone in either
  case, so Session no longer burns it and the pairing screen keeps the
  attempt for a retry. Before, a wrong port, a refused connection, a DNS
  failure and a QR pointing at localhost all read "Could not finish
  connecting to the server", and a 404 read "That is no longer there."
- Manual address: a pasted pairing link (https://host/pair#code=… or
  openmausbot://pair?…) now goes through Session.receivePairingURL like a
  scan, instead of being refused as an invalid address. The field is
  cleared afterwards, because it is saved instance state and must not
  hold a credential.
- Android 17 local network: CompanionPermissions.localRoutePermissions
  returns ACCESS_LOCAL_NETWORK only on API 37+, only for LAN or Bonjour
  routes, and only when it is missing. The pairing confirmation asks for
  it when it opens for such a computer, so the QR, deep-link and typed
  paths no longer fail as unreachable. The roster's status banner asks
  once per saved LAN computer that is offline (the root still asks for
  nothing at launch). The discovery hint no longer claims the QR code
  works without the permission (en, zh-Hans, zh-Hant).
- Couldn't reach: pairFirstReachable now records why each route failed
  in PairingRouteError.routeFailures. An unresolvable *.ts.net name adds
  advice to connect Tailscale and set Private DNS to Off or Automatic.
  An EPERM/EACCES refusal adds advice to allow local network access. The
  message is unchanged when neither applies.
- Pairing code: twelve symbols that are not a valid server code now show
  "A server's code is 12 letters and digits, never 0, O, 1 or I." under
  the field, as on iOS (en, zh-Hans, zh-Hant).

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

* fix(android): clear the code when the address is not a server, as iOS does (MOCA-60)

An address that answered and is not an OpenMausBot server now clears a
typed code and drops a scanned attempt, matching iOS PairingView: the code
was for a different address. A server that could not be reached still keeps
the attempt for a retry, since nothing authoritative was heard.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
In the default (hosted) mode, "Trouble scanning?" showed the address to type
as `device.openmausbot.com:443`. Both phone apps read a bare `host:port` as
plain HTTP on that port, so the typed code went over HTTP to a TLS port and
pairing by code failed on every iPhone and Android phone — "also tried
pairing with code but same problem".

companionPairingAddressText writes a hosted route as its origin
(`https://device.openmausbot.com`, keeping a non-default port), which both
phones parse as hosted HTTPS; Tailscale and Wi-Fi routes keep `host:port`.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(server): announce a routine run's task without the bot's whole transcript (MOCA-179)

Every scheduled run created its task through createTask, which broadcast
publicBot(): the bot plus messagesFor() its whole active thread, tool
output included. Past the phone sidecar's 4 MiB event ceiling that frame
ends the stream cleanly; the phone resumes from its cursor, the server
replays the same frame, and the stream ends again. On a bot with a long
conversation and an hourly routine that is "the Android app loses
connection about once an hour" until the app is killed.

A task that stays in the background only changes the bot's task list, so
its frame is now wireBot() plus tasks. Desktop, iOS and Android all keep
their transcript when a bot frame carries none. A task that is activated
(a webhook run) still sends publicBot(), whose thread is the new, short
one the client switches to.

routine-run-broadcast.e2e.test.ts runs a routine against the real server
and fails on the old frame.

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

* fix(android): start the stream over when resuming keeps closing right after hello (MOCA-179)

Resuming from the cursor replays whatever followed it. When that is a frame
the route cannot carry, every resume is hello and then a clean close, and
the phone looped on "Lost the connection." until the process died: refresh
and reconnect both kept the same cursor. The hello also reset the backoff,
so the loop reconnected every second.

After two resumes in a row that close with nothing after their hello, the
next attempt has no cursor: the server answers resumed=false, the phone
reloads and takes a new cursor. Only a frame after hello resets the
backoff now, so a hello-then-close stream slows down like any other
failure. The server no longer sends the frame that caused it (previous
commit); this is the way out for any other.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): fail, name the cause and move routes when the live connection cannot start (MOCA-82)

"Works on Wi-Fi, never on 5G." Three iOS-only gaps behind it:

- The event stream's session waited for connectivity. A waiting task
  suspends its request timeout and throws nothing for up to a week, so an
  app with cellular data turned off, or a path the system held closed,
  sat on "Connecting…" forever off Wi-Fi with no banner and no route
  change. It now fails, and the session's own 1–15 s backoff retries. When
  the reason is cellular data being off, the banner says "Cellular data is
  off for MausBot. Turn it on in Settings → MausBot → Cellular Data".
- A stream that answered 200 and closed before its hello (a captive page,
  a proxy, an origin hanging up) redialled the same route forever. It now
  throws StreamClosedBeforeHello, which counts as a route failure, so the
  next allowed route gets a turn: the port of Android's #1536. A live
  stream that later closes still reopens in place.
- With more than one route, a dead home-network address took the stream's
  90-second timeout to give up on. A 10 s /api/health probe now runs
  first when there is somewhere else to go; only no answer or a gateway
  failure moves on.

A refused stream (e.g. a 403 from a challenge in front of the tunnel) now
names the route instead of "That can only be done on the computer itself."
Route policy is unchanged: hosted still never falls back to cleartext.

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

* fix(ios): start the stream over when resuming keeps closing right after hello (MOCA-179)

The iOS twin of the Android fix. Resuming from the cursor replays whatever
followed it; when that is a frame the route cannot carry, every resume is
hello and then a clean close, and the app looped on "Lost the connection."
until it was killed. The hello also reset the backoff, so it reconnected
every second.

StreamResume (CompanionCore) counts resumes that closed with nothing after
their hello; after two in a row the next stream opens without a cursor, the
server answers resumed=false and the app reloads. Only a frame after hello
resets the backoff now. The server no longer sends the routine-run frame
that caused this (the MOCA-179 server PR); this is the way out for any other.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes for #2237.

- src/lib/failed-turn.ts: signedOutEngine(tool, engine) is the only
  answer to "is this a signed-out sign-in failure?". FailedTurnRow works
  out the headline from it and passes it to ErrorRow; the sidebar
  preview asks the same check. failedTurnHeadline and ErrorRow's
  claudeUpdate reversal are gone, so a company-managed Claude's update
  row no longer says "isn't signed in" in the chat while the sidebar
  shows the update.
- shared/failed-turn.ts: failedTurnTool writes every "error: ..." row on
  the server (17 sites in index.ts, 2 in delegations.ts, which cut at
  120/140/160/320 or not at all) with one 600-character limit, ending in
  "..." when it cuts. failedTurnCause reads it back for the chat row, the
  run log, the step fold and the room rule. The room-only 140 cut and
  the direct 160 cut that lost "Original error: ..."'s next action are
  gone.
- iOS and Android: the chip and the roster preview read the cause without
  its marker (failedTurnCause, ToolActivity.label). Android wraps a
  failed row instead of maxLines = 1. A failed turn stays visible with
  Activity set to Hidden, like a status notice. The signed-out sentence on
  phones needs engine sign-in state the phones don't keep: #2242.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
"The secure connection service could not finish setup … Reference: <id>"
was shown once in the phone-setup panel and then replaced by the next
retry. The account service took no logger, so neither the failure code nor
the reference reached server.log, and a bug-report bundle could not carry
them; a reporter on #1283 confirmed the reference was in no local log.

createCompanionAccountService takes a `log` option and writes one line per
failed setup step (code, HTTP status, request id) and per scheduled
automatic retry (code, delay, attempt). Nothing else from the error is
written: no email, token, credential or address. A throwing logger never
changes the outcome. The desktop passes server.log's writer; `openmausbot
serve --tunnel` passes its own log, and a fleet container's failure now
names the reference too.

The failures themselves come from the control plane (capacity, fixed in
#2118 for v0.1.93+); this makes the remaining ones traceable.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* README: position as the open-source alternative to Muse, dots, Cue and Instinct

The tagline names the four closed agents that shipped in 2026 beside Grok
Bot, says the project is also known as MausBot and was OpenGrokBot, and a
new section maps each "open <rival>" search to what the rival is, how
OpenMausBot differs, and the comparison post on the website.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* README: lead with the open-source Grok Bot alternative line

The first text on the repository page was the cryptocurrency notice, so
that is what a search engine read first and what the result snippet drew
on. The notice moves to just above Why, still near the top; the page now
opens with the project name, the positioning in the words people search
for, and a link to the website.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
- A server's own page no longer starts a copy to itself: everything it says
  about itself is its own word. Its Copy opens this computer's Settings →
  Servers on that server's copy panel, where the person starts it. Only the
  Admin-verified Cloud (cloudPageSenderAllowed) starts from its own page.
- A 413 on an upload part is a proxy: parts halve to 512 KB, then the copy
  fails proxy_limit naming the size and the setting to raise (resumable).
- Copying again over a server that keeps a Swap back backup says, in its one
  message and on its button, that the {date} backup is deleted.
- Shared means someone besides the owner can sign in (sharedSignIn): the
  owner's own email no longer blocks the copy.
- One vocabulary: the engine applies moveBlocked and raises `outdated`; the
  UI maps blocked and failed codes through one errorText and actionFor.
- One restartPolicy in server/restart.ts; the three launchers only ask
  policy.again(code, stopping).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The normalize cache had its own interface whose imageOffsets field and
doc comment were a copy of MessageScope.imageOffsets. Type the cache
from MessageScope instead, so the offset contract is declared once.
No runtime change.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(mobile): hide activity by default and show a working bot's narration as one status line

The phone should read like a normal chat. Activity now defaults to Hidden on
iOS and Android; anyone who already picked a level keeps it. At Hidden, what
a working bot says between tool calls no longer lands as a bubble per
message: the running turn's text is held out of the transcript and its
newest line (or the reply as it streams) shows as one grey status line
above the composer. When the turn ends its terminal message folds them into
the usual collapsed turn row, as before; a server that never marks the end
leaves them as bubbles. Medium and Full are unchanged.

- CompanionCore / core: ActivityDetail.phoneDefault (PHONE_DEFAULT) = hidden,
  used by every stored-value fallback; liveNarration(messages, busy, detail)
  picks the running turn's turnId-tagged text after the last user message and
  gives up once the turn has a terminal message.
- iOS ChatView / Android ChatScreen: transcript filters those ids, the
  streaming bubble steps aside at Hidden, LiveStatusLine above the composer
  (id/testTag live-status-line, head-truncated so the newest words show).
- DEBUG fixture flag -chat-live-narration-preview reopens the gmail turn.

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

* docs(screenshots): live narration at Hidden and Full (iOS)

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Use Apple Container's image pull subcommand for managed image preparation and the displayed setup command. Read labels from the unique Linux ARM64 inspect variant without accepting other platforms or root-label overrides.

Keep Docker and Podman inspect formats and strict image compatibility checks. Add regression coverage for preparation, variant selection and fail-closed image validation.
* Ratchet test: server/index.ts may not gain route handlers

server/routes/README.md says new HTTP routes go in server/routes, but
index.ts keeps gaining inline path guards: 24,813 lines this morning,
25,336 now, with four more `path === "/` and three more `path.match(`
guards in between.

A test now counts the three ways index.ts matches a request path
(`path === "/`, `path.match(`, `path.startsWith(`) and fails when any
count rises above the number written in the test (164 / 91 / 11, today's
main). Counts are per occurrence, so a path added to an existing `||`
guard counts too. A PR that moves a route out lowers the numbers in the
same PR. The routes README points at the test.

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

* Ratchet: counts must match exactly and include .exec/.test/.includes guards

The test only failed when a count went up, so a PR that deleted a route
without lowering its number left room for a later inline route. Each
count must now equal its number; a drop fails with the number to write.

It also counted only three guard forms. .exec(path) (18 uses, 13 of them
route guards in handleRequest), .test(path) (1) and .includes(path) (3,
all route guards) are counted now too.

Comments shortened to one rule; the README line says what fails and what
to lower.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The highlight cache kept the last 200 blocks with no size limit. Shiki's
two-theme HTML is 20 to 28 times the size of the code, so 200 blocks of
about 4.4 KB held 23 MB. The cache now also stops at 4 MB of HTML
(counted in characters): past either bound the oldest entries go, and a
single block bigger than the whole bound is not stored.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(ios): a routine calendar on Home (MOCA-191)

The desktop has a calendar of routine runs; the phone only had a list in
Settings. Home now has a calendar button beside Settings that opens a
week strip, the way Calendar does it on iPhone, over the chosen day's
runs in time order: what ran and how it went, and what is coming.

RoutineCalendar (CompanionCore) is a port of the desktop's
projectedRoutineItems: receipts for past and active runs (finished
history trimmed to 12 per routine, active runs always kept), and
projections from each enabled routine's schedule — daily at its time on
its weekdays (not before it was created), one-time at its moment, and
interval or newer kinds (cron) at the scheduler's persisted next run
only. A receipt replaces its projection. Weeks start on Monday, like the
desktop's.

Tapping a past run opens the thread its results went to; tapping one
still to come opens its routine in the existing editor, which is now
shared with the Threads & Routines screen. "+" makes a new routine; a
sideways swipe turns the week.

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

* feat(android): a routine calendar on Home (MOCA-191)

Port of the iOS calendar. Home has a calendar button beside Settings
that opens a week strip over the chosen day's runs in time order, from
the same rules as the desktop's calendar.

RoutineCalendar (core) is the java.time port of RoutineCalendar.swift /
projectedRoutineItems: receipts for past and active runs (finished
history trimmed to 12 per routine), daily projections on their weekdays
at their time (not before the routine existed), one-time at its moment,
and interval or newer kinds at the scheduler's next run only; a receipt
replaces its projection. Weeks start on Monday.

Tapping a past run opens its results thread through the notification
resolver; one still to come opens the routine editor. "+" makes a new
routine, a sideways swipe turns the week. Destination.Calendar survives
the saved navigation stack. New strings carry Simplified and Traditional
Chinese; the run-status icon and tint are now shared with Threads &
Routines.

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

* docs(screenshots): MOCA-191 routine calendar (iOS)

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): show the files a bot sends — video, audio, documents (MOCA-155)

Since #1552 a bot can send any file with attach_file. Documents, audio
and video arrive as kind:"file" attachments with a name; the phone only
read kind:"image" and kind:"audio", so a file-only reply drew as an
empty speech bubble.

MessageImageAttachment now decodes `name`, and Message.attachedFiles
lists a bot's file attachments (deduplicated, names basenamed). Each
renders as the existing file card, which opens the full-screen viewer
through the message-scoped file route: QuickLook plays mp4/mov video
and audio and shows PDFs and Office documents. The card says
"Tap to play" with a play or waveform icon for video and audio. A
file-only message previews in the roster and on the Updates line as
its file name instead of nothing.

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

* fix(android): show the files a bot sends — video, audio, documents (MOCA-155)

Port of the iOS change. A bot's attach_file documents, audio and video
arrive as kind:"file" attachments with a name; Android only read image
and audio entries, so a file-only reply drew as an empty bubble.

MessageImageAttachment decodes `name` (appended, so positional callers
are unchanged) and Message.attachedFiles lists the bot's files. Each
renders as the shared file card, now drawn in the bubble's own text
colour (it was hard-coded white, unreadable on a light bot bubble) and
labelled VIDEO or AUDIO with "Tap to play" where it plays. Tapping opens
the existing file sheet through the message-scoped file route. A
file-only message previews as its file name. New strings carry
Simplified and Traditional Chinese.

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

* docs(screenshots): MOCA-155 bot file cards (iOS)

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
When a Chief handed work to a teammate and that teammate's turn stopped on
an approval card, the card lived only in the teammate's own thread. The
Chief's status check said "running", so it told the person it was still
waiting, and nothing pointed at the card. Work stalled until someone
happened to open that thread (MOCA-274).

- A chip in the delegating conversation, "Waiting on your approval in
  @Bot", opens the teammate's thread. It covers delegate_bot tasks and
  coordinate_bots assignments, and settles to "@Bot got your approval"
  once the card is answered, or when that turn ends.
- check_delegation reports the open card (approval, question or review)
  and where it is, and returns at once instead of long-polling.
- A steered Chief's list of outstanding assignments says which teammate
  is stopped on a card, so it can tell the person.

The fake ACP Chief now reconnects its MCP servers on session/load, like a
real agent, so its later turns carry their own token.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Usage card in a bot's settings had its labels written in English
("Usage", "All bots", "Turns", "Tokens", "Cost" and two sentences), so in
any other language it rendered mostly English around one translated
fragment. Its "Tokens" figure is also the new-token count, which the
app-wide Usage screen now labels "New tokens" (#1878).

The card now uses the existing translated usage strings, the same
"New tokens" / "Tokens" label as the Usage screen, and two new strings
for its empty and no-price lines, translated in every language pack.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* Let a bot file an MCP server switched off

The user can ask a bot to add an MCP connection. It is saved disabled, the bot cannot enable or test it, and an existing server is left unchanged.

* test(mcp): keep disabled filing assertion compatible with typed JSON

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
* feat(ios): offer an @mention picker in the composer (MOCA-75)

The harness routes a room message on the names in its text, so a tag
typed by hand already worked, but only when spelled exactly. On the
phone nothing offered the names and autocorrect could change them, so
@ mentions read as broken.

Typing @ at the start of a word now lists who can be tagged: @everyone
plus the room's members in a room (no @everyone in a DM), or every
other bot in a bot's chat. The list narrows as you type, and a tap
writes "@Name " so the harness's routing always matches. The rules
mirror the desktop composer; the query runs to the end of the draft
because a SwiftUI text field has no selection API before iOS 18.

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

* feat(android): offer an @mention picker in the composer (MOCA-75)

Port of the iOS picker: core ComposerMention (same rules and tests as
CompanionCore/Mentions.swift) and a MentionPicker above the composer
while the field is focused and an @tag is being typed.

The composer field now keeps its own TextFieldValue. A draft changed
from outside the field (a picked tag, dictation, a queued message
handed back) puts the caret at the end; the String overload kept the
old index, which would have left it in the middle of the inserted name.

Also adds the iOS screenshot for the PR.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* test: route ratchet counts the internal MCP route from #2212

#2212 added POST /api/internal/mcp-servers to server/index.ts. Its CI ran before
the ratchet (#2241) merged, so main now fails the ratchet (165 > 164) and every
open PR fails with it. Internal harness routes have no server/routes module yet,
so the honest count is 165 until they move out.

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

* test(electron): cloud-move reads main.mjs with LF line endings

The Copy-to-server test sliced a function out of main.mjs by searching for
"\n}\n", which a Windows checkout (CRLF) never contains, so the test failed
on every Windows run since #2246. Normalize like the other main.mjs readers.
Checked by converting main.mjs to CRLF locally: the old test fails 1/33, the
new one passes 33/33.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A Claude Code install pointed at another provider through ~/.claude/settings.json
usually names its models with ANTHROPIC_CUSTOM_MODEL_OPTION (the extra /model
entry) and ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL. OpenMausBot read only
ANTHROPIC_MODEL, so those models were missing from the Claude model picker,
while turns already reach the same endpoint through the carried
ANTHROPIC_BASE_URL and key.

List them under "Use a local model": the custom option with its
ANTHROPIC_CUSTOM_MODEL_OPTION_NAME label, and each tier model that is not an
official Claude id. Accept Claude Code's `[1m]` suffix in a model id, which
modelContextWindow already reads. The env values still never reach the bot's
CLI; a bot runs only the model picked for it. The model providers page and its
test say so.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Chat transcript rows re-render only when their own message changes

Every store event re-rendered every mounted row of the open chat: the
list and each bubble called useStore(), so another bot's busy flip or a
tool chip patched elsewhere redrew all of them, and each user bubble
rescanned the whole thread for its edit versions.

Rows are memoized now. Bubble and ActivityChip take their message and
shared callbacks that take the message they act on; what every row also
reads (bot id and name, busy, the rosters for @mentions and avatars, the
search focus, speech settings, the language) comes from one ChatRows
context whose value changes only when one of those does. The rosters keep
their identity until a field a row draws changes, as ThreadRefsProvider
does. The read-aloud button takes the speech settings from it instead of
following the whole store. A routine-run receipt still follows the store
on its own, since it needs to know whether its thread exists.

The visible branch is keyed on the transcript, not the whole bot, and
the transcript window hands back its previous array when it holds the
same messages. Edit versions, reply targets and the Retry row are worked
out once per message list (src/lib/transcript-derivations.ts).

Times and day labels come from cached formatters: formatTime keeps the
system locale it always used, the shared dayLabel (1:1 chats and rooms)
rebuilds its formatter when the app language changes, and new-day breaks
compare whole local-day numbers. Separators take today's day number, so
Today moves on to Yesterday after midnight as before.

Deletes messageVersions, the bot prop on MessagesList, the per-bubble
version scans and per-row reverse/find scans, and the second dayLabel.

Adds happy-dom as a dev dependency for the render-count test.

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

* Chat rows: follow the device voice choice, drop the window reuse

Review fixes for the chat rows change.

- The read-aloud button read the paired Mac's voice choice ("This Mac" or
  "Host voice") from local storage inside the button. With the button no
  longer following the store, a switch stayed stale until the next busy
  flip. ChatView now reads it once per store event and hands it to the rows
  with the speech settings.
- resolveTranscriptWindow no longer hands back the previous window.
  MessagesList takes the whole branch and its lookups, so it renders on any
  branch change anyway; the reuse only skipped one grouping pass.
- Bubble loses isLastBotText: only the last answer gets onRegenerate, so
  that prop already says it.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Both were built behind config-file flags that nothing in the app, the
phones, the CLI or Cloud ever sets, and both were off by default:

- Cloud overflow (features.cloudOverflow plus the cloudOverflow section)
  could offer a paid cloud computer while a turn waited for a local one,
  but its consent route, POST /api/threads/:id/cloud-overflow, had no
  caller, and the "card" was only an activity line, so consent could not
  be given from any screen.
- Idle computer release (features.computerClaimIdleRelease) let a quiet
  turn lose its desktop seat mid-turn and re-claim it later.

Removed: server/cloud-overflow.ts, server/claim-idle.ts and their tests;
the quiet-window, reclaim and in-flight-call paths in TurnResources
(claims now always last until the turn settles, as they did with the
flag off); the overflow offer, start, sweep and stop code in the
computer wait loop; the pending-call bookkeeping that only fed the idle
fence; the route; and the two flags plus the cloudOverflow section in
config.

A config.json that still has the old keys loads; they are dropped, as
with any other unknown key.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Live frames carry no screenshot pixels; the desktop loads screenshots by URL

The settle-time screenshot went out on the live "message" frame with its
base64 PNG, to every client (screens=off ones too) and into the 500-frame
resume ring. The desktop drew a screenshot only from inline pixels, while it
hydrates through slimmed pages, so screenshots vanished after every reload.

- message and message.patch frames now go through slimMessage, the same
  shape transcript pages already use (hasImage, no png). slimMessage keeps
  mime so a client can still name the download.
- The desktop's screenshot row (1:1 chats and rooms) always loads
  /api/threads/:id/messages/:mid/image when the message has an image.
- Deleted the desktop's live-PNG stripping (MAX_KEPT_SCREEN_FRAMES): live
  frames no longer carry pixels to strip.
- The Markdown export still marks a screen capture that has only hasImage.

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

* Drop the stale "mirrors the client's frame cap" note

The client frame cap was removed in this branch, so the server's frame
pruning no longer mirrors anything. The rest of the comment still holds.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Write composer drafts to storage when typing pauses

Every keystroke in the composer re-read, parsed and re-serialized the
whole drafts map into localStorage, so one large paste in another chat
made every keystroke everywhere pay for it. Memory already answered
every read and nothing listens for storage events on the drafts key.

setDraft now updates memory and marks the draft unsaved. Unsaved drafts
are written in one pass 500 ms after typing stops, at once when the
window loses focus or the page closes (blur, pagehide), and at once when
the composer switches thread or unmounts. A save re-reads storage and
writes only the drafts that changed here, so drafts another window saved
stay, and an emptied draft still drops its entry.

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

* Keep a draft unsaved when its storage write fails

A rejected write (a full quota) used to drop the draft from the unsaved
set, so a later blur, page close or thread switch would not try again.
Now drafts leave the set only when their write succeeds.

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

* Listen for blur and pagehide once, when drafts load

The page-exit listeners were added lazily from the first unsaved draft,
which needed a flag checked on every keystroke. Register them once at
module load instead, and drop a dead write to the save timer. Node has
no window, and some tests fake one without events, so the registration
skips both and the timer alone saves there.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Merge streamed text deltas every 50 ms in the event bus

Every provider text delta was its own event: one redact + synchronous
NDJSON append, one call into each of the 12 bus listeners and one SSE
frame to every connected client. A 20 KB reply in 8-character deltas was
2,560 frames and ~830 KB on the wire.

EventBus.publish now holds a thread's streamed text for at most 50 ms and
publishes it as one content.delta. Anything else on that thread (a tool
start, the finished text, turn end, session exit) publishes the waiting
text first, so event order never changes. Deltas merge only when their
engine, turn, item, stream kind and synthetic flag match. detach,
detachAll and the server's exit path publish what is still waiting.
The log, listeners and broadcast all see the merged delta. One constant,
no setting.

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

* Let detach publish all waiting text through one flush()

flush() no longer takes an engine filter. Publishing waiting text early
is always allowed, and detach runs only on config changes, so detach now
publishes every thread's waiting text and detachAll is back to main's
one-liner without a second flush.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Unblocks main: `pnpm typecheck` fails on origin/main with
  src/components/ChatView.tsx(950,45): error TS2304: Cannot find name 'bot'.

#2261 (ba6a6bd25) moved the transcript rows into the memoized
MessagesList, where `bot` is not in scope; #2259 (d6f3dfcf4), whose CI
ran before #2261 merged, then rendered <ScreenFrame threadId={bot.threadId}>
inside it. Each was green alone; together main does not typecheck, and
every PR's CI now fails at `static`.

MessagesList already reads `threadId` from useChatRows() (ChatView.tsx:835),
fed with bot.threadId at the provider (ChatView.tsx:1133), so the row uses
that value. Same thread id as before; the context already re-renders the
rows when it changes.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* Sidebar rows re-render only when their bot or thread changes

Every store event re-rendered every bot row and every open thread row:
each row called useStore(), so another bot's message, a screen frame or
a settings toggle redrew the whole list, and each bot row worked out its
visible branch twice (once for the row, once for the preview).

Bot rows (BotListItem and the pinned circles) are memoized now. The
sidebar works out each row's props once per store event in botRowProps:
whether it is selected or being deleted, the mascot nudge and thread
reveal when they are its own, the queue, engines, live call, language
and the dispatch. The visible branch is worked out once per transcript
and feeds the preview, the mascot and the thread list's live verb. The
thread list under a bot row takes the row's props, and the activity
hatch takes the queue and dispatch, so neither follows the store.

Thread rows are memoized too. Their actions take the thread they act
on, so a bot or room hands every row the same functions, and a row
renders when a field of its thread changes, not when its list rebuilds
the task object. The list's 30-second clock reaches only rows whose
stamp reads relative ("5 min ago"); a stamp a week old is a date and
skips the tick. Rows take the app language, so a language change still
re-renders them.

Deletes the per-row useStore() calls, the second visibleMessages call
per bot row, BotThreadList's own visible-branch walk, and the inline
per-row callbacks.

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

* Thread rows: one week rule for stamps, one shallow compare

threadUpdatedLabel now asks stampClock whether a stamp reads relative,
so the week cutoff, the rounding and the missing-stamp check live in one
place. Before, the label kept its own copy of the gate and a change to
one would have left sidebar rows and the picker disagreeing about the
same thread. Output is unchanged: an invalid stamp still reads "" and a
stamp a week old still reads as a date.

The row comparator reuses sameFields for the props as well as the
thread, instead of a second hand-written key-count and Object.is loop.

Adds a direct stampClock test at the week boundary and for a missing
stamp or clock.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Screen and Inspector frames go to the one panel that reads them, not the app store

A working bot's computer pushes a base64 screen frame every 3-6 s. The
desktop dispatched each one through the reducer, re-rendering the app and
playing a mascot motion, for a picture only the Computer panel shows. The
Inspector and Activity panels each opened a second /api/events stream of
their own to see runtime events.

The store's stream now hands every frame to a small listener set in
live-events.ts (listenLiveFrames). The Computer panel subscribes to it for
its conversation's screen; the Inspector and Activity panels subscribe for
runtime events and drop their own streams. A gap the stream could not
replay reloads them. The store keeps only what a screen frame means to it:
a computer that was setting up is up, so it clears provisioning, and only
when provisioning is set.

Removed: state.screens, the screenFrame action, the per-frame mascot
motion, the Inspector's and Activity panel's EventSource, and the unused
screens option of the desktop's stream client.

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

* Live frames: Cloud preview fixture publishes through the listener; one thread filter

The Cloud preview fixture still dispatched the deleted screenFrame action.
The reducer has no default case, so the fixture's app state became
undefined on mount and the page went blank. The fixture now publishes its
live frame with publishLiveFrame, and no longer injects a frame before the
panel mounts: such a frame cannot reach the panel any more.

The Computer panel kept a fallback for screen frames without a thread,
which the wire type and the server never produce. One filter now matches
bot and thread, and a bot opening a second conversation no longer
re-subscribes the listener and drops its live-frame hold.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* A bot's threads run side by side in one project folder

Since #981 every turn of a thread with a project folder claimed that
folder for the whole turn, and a second thread of the same bot in the
same folder was refused (409 workspace_busy: "another thread is working
in this project folder"). With the default of three parallel threads per
bot, that refusal met every second chat, teammate hand-off, routine or
webhook run of a bot that has a folder — and #2220 (Oct 3) made cloud
routine runs pin into the bot's folder too (they used to run unpinned),
so it fired more often.

Threads of one bot now work in one folder at the same time, like several
Claude Code or Codex sessions open in one repo. Nothing needed the
turn-long claim: the per-turn snapshot already queues per folder
(server/checkpoints.ts), the memory journal diffs the bot's own memory
folder keyed per thread, engines key their sessions by id, and shared
memory goes through memory_update. Desktop, browser and phone claims are
untouched.

- server/index.ts: the refusal in startTurn and the folder "busy"
  prediction in unattendedDispatchState are gone; the same path serves
  desktop, headless server and Cloud home, with no new setting.
- server/turn-resources.ts: workspaceResource and the parent/child
  folder overlap are gone; resources are exact keys again.
- Tests inverted: a second engine of one bot starts in the selected
  folder while the first works there (independent-threads-api); a
  routine starts in the folder beside a working thread instead of
  deferring (thread-capacity-api); on a Cloud home the owner's chat and
  a teammate's work thread run in one folder at once (cloud-personal,
  which also waits for the teammate's engine dump so the shared held
  dump cannot hand agentTools the wrong token).
- No client change: the red row was the generic failed-turn row.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Keep a running turn's pre-turn checkpoint through a sibling's snapshot

With a bot's threads working side by side in one project folder, thread B's
snapshot moved the shadow repo's HEAD and its cleanup pruned thread A's
pre-turn commit mid-turn: A's end-of-turn digest then lost its files list
(diff against a missing object → null) and that "before A" state could no
longer be restored. Each snapshot parents only the empty base, so nothing
but HEAD kept a commit alive.

server/checkpoints.ts: snapshot() takes { pin } and writes
refs/omb-live/<sha256(pin)> at the new commit, so gc keeps it; release()
drops the ref (queued behind the shadow's pending operations, so a digest's
diff already in the queue still finds its commit); the first use of each
shadow per process sweeps pins a crashed process left behind. index.ts pins
by dispatch claim id, releases after the digest's diff (finally), on
clearTurnDigestState, on "turn stopped during checkpoint", and before a new
turn's pin replaces a stale entry. Tests cover the overlap (diff + restore
of the pinned commit, reclaim after both releases) and the sweep across a
fresh module instance; both fail with pinning or the sweep removed.

Also from review: three comments that still described the deleted
turn-long folder claim are rewritten (settle hold, scheduleTurnDigest,
checkpoints.ts refusalReason); thread-capacity-api.test.ts reuses dump() /
finish() keyed by the folder's basename instead of re-implementing them;
checkpoints.test.ts imports the module plainly (its OMB_DATA_DIR assignment
was dead — server/testing/setup.ts pins DATA_DIR first), which also turns
the "creates nothing" listing assertion into a real one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* Keep one copy of each genuinely identical helper

Eight helpers were copied between modules with the same body and the same
free identifiers. Each now lives once, in the module that owns it, and the
other modules import it:

- decodeAttachmentAttribute: message-file.ts (turn-images.ts imports it)
- oneLine: peer-roster.ts (peer-delivery.ts)
- requiredText, optionalText: shared/package-format.ts (team-manifest.ts)
- canonicalPath: drivers/codex-device-auth.ts (claude-login-auth.ts)
- isLoopback: provider-key-check.ts (decider/jev.ts)
- monthKey: usage-ledger.ts (decision-log.ts, admin-activity.ts,
  decider/log.ts)
- intervalHasRestrictions: routines.ts (routine-requests.ts); its
  parameter is now the three restriction fields both schedule types share

Left alone because the copies are not the same: processIsAlive (each boat
journal throws its own error), cleanAttachments, withJournalLock, and the
Cerebras/Mistral model refresh loops (different card schemas and mapping).

scripts/testing/one-copy-helpers.test.ts fails if a former copy comes back.

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

* Share the roster's clip, not just oneLine; drop the helper-list test

peer-delivery.ts rebuilt the roster's clip on top of an imported oneLine,
so two copies of flatten-and-clip remained. It now imports clip from
peer-roster.ts and passes DETAIL_MAX; oneLine is private again.

The one-copy-helpers test was a hand-kept list of names and paths that
typecheck already guards: an owner losing its export fails every importer
(TS2459), and a local copy next to the import fails with TS2440.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the transcript window bounded while the reader follows the bottom

The window's start was anchored: it only moved on a thread switch or
Jump to latest, so every message that arrived while a thread stayed open
mounted one more row. In the ChatView bench, 600 appends grew the open
thread from 67 to 267 mounted rows and 15,669 DOM nodes.

Now, while the reader follows the bottom (the hook's follow state),
the start moves up to the tail so the window stays one window long. The
anchor holds only once the reader has scrolled away, so rows they are
reading never drop out. A search-result window (finite end) is left alone,
and a thread that shrinks under the boundary still falls back to its tail.

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

* Keep the person's newest message mounted while the window follows

The window counts messages, but tool steps draw nothing while Tool calls
is off (the default). Sliding on every append let a turn with more than
119 tool steps push the person's question, and everything before it, out
of the mounted window while they watched.

While following, the start now slides to the tail but never past the
newest message the person sent (followWindowStart). The question and the
turn answering it stay mounted; the next message they send ends the hold.
Opening a thread and Jump to latest still mount one window.

The thread-switch reset and the slide now share one setter, and
jumpToLatest uses the hoisted tail instead of recomputing it.

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

* Re-tail a following window when the thread shrinks

A branch switch can shorten the thread without dropping below the
window's start. The start only ever slid up while following, so it stayed
put: the pane showed a short window and the person's newest message could
sit just before it, behind Show earlier.

While following, the start now stays between the person's newest message
and the tail: new rows slide it up, a thread that shrinks moves it back to
the tail. A reader who has scrolled away still keeps the rows they are
reading.

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

* Cap the follow hold at one more window and hold only a mounted message

While the reader followed the bottom, the window stopped sliding at the
person's newest message with no limit, so one long stretch after a single
message (a long computer-use turn, bots answering each other in a room)
mounted every row since it, as before this change. And when that message
was already above the window (a thread opened mid-turn, Jump to latest),
the hold kept the start where it was, so the window grew without
protecting anything.

followWindowStart now takes the current start and holds all of the rule:
the tail window, stretched back to the person's newest message only when
that message is mounted and at most one more window back. It scans only
that range. A shorter thread gets its tail back through the same rule, so
the hook's extra min/max is gone, and so is the unused size parameter.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
team-memory "stays under its byte budget": the test proposed and accepted
400 entries one at a time, which is 800 atomic saves (open, write, fsync,
close, rename) of a JSON file that grows to 175 KB — 70 MB written in all.
fsync is 3.2 s of the 4.5 s on macOS; the Windows runners took 21.7 s and
hit the 20 s timeout. The budget is systemPrompt's, so write the 400
accepted entries once as the saved file and read them back: 4 ms. The
test still fails when the cut is removed (29 511 > 6 400 bytes) and when
it cuts oldest-first ("Term 399" missing).

dispatch-supersede eval: the second message was sent as soon as the lead's
handoff node read "running" on disk — which happens inside the Chief's
dispatching turn. On a slow runner that turn had not settled, so the
harness steered the text into it (the Windows evidence shows the turn-0
system prompt and a steer uuid on the prompt) and no new turn or prompt
with the outstanding-work note was built. Reproduced locally by slowing
the Chief's turn 0 by 1.5 s. Wait for the Chief to be idle before sending:
that is the state the pin describes. The scenario still fails when
outstandingAssignmentsPrompt is emptied, and passes under the slowdown.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* Phone pairing: dial the computer's real Wi-Fi address, try every route, keep spaces in names

Oct 3: an Android phone scanning a Windows PC's "Pair on this Wi-Fi" QR
was handed http://172.19.96.1:8810 (WSL2's virtual switch), tried only
that address, and showed the computer as "Miguel's+computer".

- Desktop and headless sidecar: lanAddresses ranks interfaces by one
  cross-platform rule (physical first, unrecognized next, virtual/VPN/
  container last) instead of the macOS-only en\d+ rule. Windows vEthernet
  (WSL, Default Switch), VirtualBox, VMware, Tailscale, and Linux docker0,
  br-*, virbr, veth now trail the Wi-Fi/Ethernet address.
- Android and iOS: a desktop QR that leads with a local address consents
  to every local address it carries for the one-time pairing walk; the
  consent is pinned to the address that answered before the device token
  is stored. Typed and discovered addresses, and protected (HTTPS,
  Tailscale) QRs, keep their single-route rule. The confirmation says
  "and N more of this computer's addresses".
- The route failure names one next step: a cause a route reported
  (local-network permission, Tailscale/Private DNS, from #2250) when there
  is one; otherwise same Wi-Fi or Remote access sign-in, Tailscale on the
  phone, or wake the computer. Tried routes go on their own line.
- One link builder, shared/pairing-link.ts phonePairingLink, for the
  desktop QR, the server's /api/auth/pairing invite and `openmausbot
  pair`. It writes spaces as %20; both phones now read "+" as a space
  for desktops still on the URLSearchParams builder.

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

* Pairing link: write a server address as its bare origin; pt-BR plural

Review follow-ups on #2262 (CodeRabbit):
- phonePairingLink refuses an http(s) address with a path, query or
  fragment and writes the origin, as qrEndpoints already does for routes.
  Both phones refuse such an address (Android Endpoint.kt normalizedUrl),
  so the builder no longer prints a QR the scanner would reject.
- iOS pt-BR "and N more of this computer's addresses" uses one/other
  plural variants instead of "endereço(s)".

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

* Pairing link: drop a tailnet route with no machine name

A tailnet endpoint whose host is the bare ".ts.net" passed qrEndpoints'
endsWith check. Both phones refuse it (validTailnetHost wants a name
before the suffix), and refusing one endpoint makes them refuse the whole
QR, LAN routes included. The shared validator now applies the phones'
rule. Review follow-up on #2262 (CodeRabbit).

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

* Pairing link: drop any route whose host has an empty DNS label

Generalizes ce09bc22b. java.net.URI on Android reads no host from
"a..ts.net" or "mac..local", so the phone refuses that endpoint and with
it the whole QR. One rule now covers every route kind, and the bare
".ts.net" case falls out of it. Review follow-up on #2262 (CodeRabbit).

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

* Phone pairing review fixes: Windows Public network, one route list, one invite

- Windows Firewall drops a phone's connection on a network Windows calls
  Public (a newly joined Wi-Fi on Windows 11). The sidecar now asks
  Get-NetConnectionProfile, only while a pairing window is open and never
  blocking a state read (companion/src/windows-network.ts), and reports
  `publicNetwork` when the adapter the Wi-Fi QR leads with is on one. The
  Wi-Fi pairing panel then says to set that network to Private (10 locales).
- Both phones: when only local addresses failed, the message adds "If it
  already is, the computer's firewall may be blocking OpenMausBot: on a
  Windows PC, set its network to Private."
- Android pairingRoutes returns pairingEndpoints, the list the pairing walk
  dials, so the local-network permission check reads the same routes.
- `openmausbot pair` prints the server's own invite and builds one only for
  --public-url; originOf is gone. A public address with a path no longer
  yields an invite to the proxy's root.
- companionPairingRoute's doc describes the walk the phones now do.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ios): make the iOS 16 shims ViewModifiers so a chain of them does not blow up IRGen

The "Swift tests + iOS build" job went from 5 minutes (b455e0fbd) to 26
(4302a9cb7) and then past its 30-minute timeout on every main run since
20:55 UTC Oct 3, which marked main's run "cancelled" and hid its verdict.
The log stopped for 27 minutes inside the x86_64 batch "ActivityRunChip
… CompactRoster".

That batch is not a slow expression. The stuck swift-frontend, sampled,
sits in IRGen emitting an outlined destroy for one view type:
IRGenSILFunction::emitSILFunction → StructTypeInfoBase<NonFixed…>::destroy
→ callOutlinedDestroy → MultiPayloadEnumImplStrategy::destroy →
forNontrivialPayloads → … forty frames deep. Every compat shim in
BackDeployCompat.swift was a `@ViewBuilder` extension on View that
branched on `#available`, so each call returned a `_ConditionalContent`
whose payloads each wrap the whole view it was applied to: `onValueChange`
has three branches and triples the caller's type, the others double it.
ChatView.body chains 19 of them (16 before #2208), so its type is
~3^19 the size of the view it describes.

The compiler only sees that type when this file and the caller are
primaries of the same compile batch: then the opaque `some View` is
looked through and the enum is expanded. A 10-core Mac splits the app
into 10 batches and never puts the two together (every local build here
took 27-36 s); the 3-core CI runner makes 4 batches of 22 files, and
batch one holds both. Forcing `-driver-batch-count 4` locally reproduced
it: the batch ran 9+ minutes on an M5 before being killed, every other
batch finished in 10 s, and the pair {BackDeployCompat, ChatView} alone
takes 100+ s while every other {file, ChatView} pair takes 11 s.

Each shim is now a ViewModifier that branches over its placeholder
content, so a call wraps the view once and the type grows linearly with
the chain. Call sites are unchanged. With the fix the 22-file batch
compiles in 11 s, the pair in 5 s, and the exact CI command with four
batches builds both slices in 39 s here.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* ci(ios): build one simulator slice and print the build timing summary

`generic/platform=iOS Simulator` builds arm64 and x86_64, and
ONLY_ACTIVE_ARCH=YES is a no-op with a generic destination (checked:
still 16 + 16 SwiftCompile tasks). Nothing runs the x86_64 slice — the
runner, the UI-test simulators and current Macs are all arm64 — so it
only doubled the compile and ran six swift-frontends at once on the
3-core, 7 GB runner. ARCHS=arm64 keeps the one that matters.

-showBuildTimingSummary adds per-task-type totals at the end of the log,
so the next slow batch is read off the summary instead of inferred from
a gap in the timestamps.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(ios): split the view bodies the type checker spent 0.3–1.1 s on

`-warn-long-function-bodies=100` on the simulator build named nine
bodies between 0.2 and 1.1 s (M5, one slice): ChatView.body 1.1 s,
GitPRDiffCardView.body 0.75, AgentThoughtChamberView.expandedContent
0.71, ActivityRunChip.body 0.59, AgentProfileView.body 0.51,
NewSectionSheet.botCell 0.34, CredentialRequestCardView.body 0.30,
RoutineEditorView.body 0.28, PredictiveActionChipsView.body 0.22.
Each was one expression: a stack of sections, rows, colour ternaries
and multi-statement closures the solver searched as a whole.

Each is now the same view tree in named pieces: a section, a row or a
pill is its own property or function; a closure body of more than one
line is a method; a colour chosen by a ternary is a typed `let` or
property. No literal moved out of its Text/Label/Button call, so the
localisation keys are unchanged, and no view gained or lost state.
After: the slowest of the nine is ChatView.body at 0.14 s, and the
slowest body in the app is DigestSheet.body at 0.21 s.

These were not the cause of the 25-minute CI build (that was IRGen on
the @ViewBuilder shims, the previous commit); they are what the
type-check limit the next commit adds would otherwise trip on.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* ci(ios): fail on a slow Swift expression; cap the job at 15 minutes

ios/project.yml (Debug) passes -warn-long-expression-type-checking=500
and -warn-long-function-bodies=500, so Xcode shows a slow body as a
warning at its line, and the CI step after the simulator build reads
those warnings out of the build log and fails with the file:line. Swift
6.3 has no diagnostic group for these two warnings (-Werror <group>
answers "unknown warning group"), so the log is read rather than the
compiler asked to make only them errors.

timeout-minutes 30 → 15: the job is about five minutes (tests ~1.5,
xcodegen ~1, build ~2 on the runner), and the old cap is what let a
5× regression read as "cancelled" for a day.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(ios): keep main's RoutineEditorView and PredictiveActionChipsView

Their bodies type-check in 263 ms and 216 ms on an M5 (main's code, limit
set to 100 ms); at the runner's 1.2–1.6× that is at most 421 ms and
346 ms, under the 500 ms guard with margin. The split bought no CI time
and put ~400 changed lines into two files other iOS PRs touch daily.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* ci(ios): refuse an #available branch inside a View extension

The incident class the type-check guard cannot see: a @ViewBuilder View
extension branching on #available doubles the caller's view type at
every call, and IRGen on the batch holding both ran until the job cap.
A build killed at the cap prints nothing, so the rule is checked at the
source, before the build: scripts/check-ios-view-shims.sh fails with
file:line on any `#available(` inside an `extension View { … }` block.
The two widget background helpers were the last of that shape; they are
one ViewModifier now, so there is no allow-list.

Drop -showBuildTimingSummary: it prints only after a finished build (so
never for the case it was meant for) and gives per-task-type totals, not
the slow batch; the guard steps name the file:line instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* ci(ios): fail the type-check guard at 1500 ms, list the 500 ms warnings; ignore braces in strings

The guard step failed on 60766d9ee (run 37172158801) with no Swift change
from the green runs: RoutineEditorView.body 600 ms and
PredictiveActionChipsView.body 551 ms, the two bodies kept as on main at
review. They measure 263 and 216 ms on an M5 and were under 420 ms on the
calibration run; this runner was 2.3x the M5. The compiler reports
wall-clock time, and the shared 3-core runner swings about 2x run to run,
so 500 ms is a developer-Mac bar, not a CI verdict.

ios/project.yml keeps the 500 ms warning (Xcode shows it at the line).
The CI step now prints every body over that limit and fails only on one
over 1500 ms, three times the bar: no body in the app comes near it, and a
type-check problem on its way to a timeout runs past it. The ms is parsed
from the warning text with awk; checked against the real log (551/600 pass
and are listed), a synthetic 1600 (fails), 1500/1501 (pass/fail), and an
empty log (pass).

scripts/check-ios-view-shims.sh: string literals are blanked before the
line-comment strip and the brace count, so `var brace: String { "}" }`
inside an `extension View` no longer closes the block early and hides a
later #available (CodeRabbit on d8a90a1b3). Mutation-tested: the old
script passed that file, the new one fails it at its line; the plain shim
shape still fails; braces and // inside strings alone still pass.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* Bot and room frames carry a transcript page only when the open thread changes

Thread actions (task create, rename/pin/archive/model PATCH, permission
refresh, delete; room task create, switch, delete; routine-created
threads) each broadcast the bot's or room's whole open transcript on top
of the slim frame store.onChange already sent. On a 2,000-message thread
a rename sent 1.2 MB to every client.

store.onChange now attaches the newest page (DEFAULT_PAGE) to a bot or
room frame only when its open thread differs from the one it last went
out with: switches, a new open thread, deleting the open thread, new bots
and rooms. Other windows swap transcripts on exactly those frames, so a
window whose open thread was deleted elsewhere still unlocks its
composer. Every other frame stays slim.

The route-level duplicate broadcasts are gone. HTTP replies carry the
newest page; the switch routes keep their contract (no ?messages is the
whole thread, which search landing needs). The team-backup restore keeps
its own frames, now one page each, because importTranscript emits no
store event.

Bench (real server, 2,000-message open thread): rename 2 frames /
1,275 KB -> 1 frame / 0.9 KB; deleting the open thread 1,275 KB -> 33 KB.

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

* Review fixes: keep a window's scrollback flag, drop package import's duplicate frames

- Desktop: a bot frame that does not switch the window's transcript no
  longer copies its hasMore onto it. Page frames for another thread (a new
  thread from another client, a webhook routine run) and HTTP replies were
  hiding "Load earlier" on the thread the window still shows.
- Package import no longer sends its own bot and room frames; the store's
  frames already carry the final state, with a page for each new record.
- A member stream's first frame of a bot or room uses publicBot and
  groupWithThread instead of building the same shape inline.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* One credential per engine session for every integration, so engines stay warm

Every turn minted a new bearer for each integration (agents, browser, phone,
connected apps, computer, hooks). The bearers ride in the MCP config that
Claude's process key and ACP's session key compare, so every turn relaunched
Claude with --resume and ran ACP's session/load. Measured on main: 6 turns
on one thread gave 6 Claude launches and 5 session/load calls; with the
bearers pinned, 2 launches (1 without the browser) and none.

A bot now keeps the same bearer for an integration on a thread while its
grants and the thread's approval level stay the same. Only the record
behind it is per turn, so nothing honours it between turns. Stop, a stall,
a deleted bot or thread, a provider reload or a changed grant gives the
next turn a new one. The computer keeps a new bearer every turn: its tools
bridge into a machine that can stop between turns, and a warm engine would
not restart that bridge.

The agents proxy's per-turn counters move to the harness, which knows where
a turn begins: room posts, threads opened, bots created, and not checking a
delegation in the turn that made it.

Tests that assumed a relaunch every turn now look at what a warm turn was
given; the fake Claude CLI records each turn and can end between turns.

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

* Keep this computer's bearer warm and check the new contract in the Qwen script

Review fixes for the one-credential-per-session change:

- Auto on macOS and Windows mounts this computer on every turn once the
  CUA driver runs, and it still got a new control bearer each turn, so
  the default desktop setup relaunched Claude and reloaded ACP sessions.
  controlIntegration now takes the machine the bridge reaches: "this
  computer" keeps the thread's bearer; a Local VM, the VPS and a Boat
  still get a new one each turn.
- mintInternalCapability branches first: a per-turn machine gets a
  random bearer, everything else goes through sessionBearer. No computer
  slot is written that is never read, and sessionGrants no longer
  special-cases localVmTarget.
- One numeric MAX_CREATED_BOTS_PER_TURN for both bot-creation checks.
- scripts/verify-qwen-models.ts and its doc now check one Qwen process,
  one bearer, no session/load, and a 401 once each turn settles.
- New e2e: Auto with a stand-in CUA descriptor gives one Claude launch in
  four turns and one ACP session with no session/load.

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

* Approval smoke: the same level keeps the live ACP session

The Grok and Antigravity loops asserted a session/load or session/resume
on every turn after the first, which only happened because every turn
had new credentials. A turn at the same approval level now keeps the
live session; a changed level still loads or resumes it.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Tightening requests: delete the feature

A bot could in theory propose a card that reduces its own (or, for a
Chief, a section peer's) permissions. No tool ever offered that proposal
to any engine: only tests called the internal route, so no bot could make
one and no person ever saw the card. Owners change permissions in Edit
Profile, which is unchanged.

Removed: server/tightening-requests.ts, shared/tightening-request.ts and
their test file; the internal POST /api/internal/tightening-requests
route; the tightening branches in both respond routes and in the shared
proposal budget; the service wiring; the history writer that only those
cards used (recordAuthorityChange); the lastTighteningRequestId receipt
on bot records; the tighteningRequest card field on the wire and its
checks in the Live-call and question-card classifiers; and the
"tightening" decision-log source.

The route ratchet's path === "/ count drops from 165 to 164.

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

* Tightening requests: drop the 404 test for the deleted route

The test only checked that a removed path returns 404, which any missing
path does, and it was the last place in the code that still named the
route. The route ratchet (164) already fails if the route comes back.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
After a restart exit (75) the helper booted the server again as a fire-and-forget
promise. When a later test, or teardown, stopped that server on purpose while
the relaunch was still polling, the poll saw the exit and threw with nobody
awaiting it: 3,288 tests passed and vitest still reported one unhandled error
(main run 37174763403, macOS shard 4/4). Now a poll for a server that was
stopped on purpose or replaced returns quietly, and a relaunch that really
fails is kept on the fixture and thrown by the next request or by teardown,
with its cause. Widened race (4 s poll): old helper 3 unhandled rejections,
new helper clean, 8/8 both ways.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* Checkpoints: delete the list and restore routes

GET /api/bots/:id/checkpoints and POST /api/bots/:id/checkpoints/restore
had no caller in the desktop, phones, companion, scripts, electron, docs
or openmaus-cloud, and never had a UI. Only tests reached them.

Removed: both routes; listCheckpoints, checkpointsEnabled and restore in
server/checkpoints.ts with their Checkpoint and RestoreResult types; the
restore lease set and its checks in startTurn and the workspace-backup
idle test; the restore tests; and the two test lists that still named
the routes.

Kept: the per-turn snapshot, pin release and the digest's file diff.
Tests that read the shadow history through listCheckpoints now read it
with git log; the restore-based checks of excluded files and of the
user's own repo now check the snapshot tree and the diff instead.

The route ratchet's path.match( count drops from 90 to 88.

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

* Checkpoints: commitAll returns the hash or null

The two-field CommitResult only existed so restore could stop when its
safety commit was incomplete. With restore gone, snapshot() is the only
caller, so commitAll now returns the new hash, or null when a file could
not be read.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Server config already supports arbitrary openai-compat instances; this
surfaces them in the UI instead of requiring hand-edited config.json.

- POST/DELETE /api/instances/openai-compat (hot reload, no restart;
  global openaiCompat slot stays guarded)
- describeInstances exposes driver/displayName/url for openai-compat
- UI panel: list / add / remove endpoints under Settings > API keys
- reject URL-shaped API keys with a clear message
- per-endpoint manual model list (managedModels) + refresh button for
  providers whose /models is auth-gated (e.g. Zhipu GLM)
Electron 43's safeStorage.decryptStringAsync resolves to
{ shouldReEncrypt, result }, not a string. The encrypted sign-in store
(electron/managed-desktop.mjs, also used for the Cloud account, the
organization connection, its library and the backup schedule) ran JSON.parse
on that object, so every saved sign-in failed to read on the next launch and
showed "could not be read. Unlock your system keychain". The store now reads
`result` (or a bare string, as the tests' fakes return), like
secure-credentials.mjs already does. New test uses the real Electron 43 shape;
with the old line it fails, with the fix 553/553 Electron tests pass.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A saved Cloud sign-in that this computer can no longer read (Windows can't
decrypt it after a reinstall onto a new profile, or it decrypts to
something that isn't a sign-in) left Settings on "could not be read or
cleared ... sign out again" at every launch, with lending off, until the
person signed out by hand. A keychain that was only locked was never read
again either.

- The encrypted record store (managed-desktop.mjs) marks a record that can
  never be read: not a small regular file, decrypt rejected while the
  keychain is available, or not JSON. A decrypt answer in a shape the app
  doesn't know is the app's own mistake and is never marked.
- Cloud sign-in, organization sign-in and the daily backup schedule, on
  start: such a record (or one that reads but isn't valid) is removed and
  the view says so in one line with one next step. Anything else (a locked
  keychain, a file error) is never removed: it is shown once and read
  again after 15 s, 30 s, then every minute.
- New cloudAccount.restoreRemoved in all 10 locales; hashes via
  scripts/generate-locale.mjs --accept.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The desktop app refused every server page the microphone, including the
person's own Cloud, so a Live call started there failed with "The
microphone is blocked" and no setting could fix it. A Cloud is personal,
so its page hearing the microphone is the person's own page hearing it.

- electron/app-permissions.mjs: appPermissionHandlers, the session's
  request and check handlers. This computer's page keeps exactly what it
  had. The verified Cloud (cloudAccount.homeTarget()) gets the microphone
  only: main window, main frame, exact origin, never the camera, screen
  capture, notifications or clipboard. Asked on every request, so signing
  out takes it away at once. Every other server stays refused.
- electron/main.mjs installs those handlers.
- Live copy on a Cloud says the OpenAI key stays on your Cloud (new
  call.live.disclosureCloud, all locales and source hashes).
- The permission smoke drives the real handlers with a Cloud origin.
- docs/cloud-pro.md: Live calls in the desktop app.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Save a key for any OpenCode provider, on the desktop and the Cloud

A Cloud has no terminal, so there was nowhere to give OpenCode a key for a
provider such as Venice: the OpenCode key box only covers Zen and Go, and
on a Cloud the server withholds provider keys from OpenCode by design.

Settings > Connections gets "Keys for other OpenCode providers": a name
(VENICE_API_KEY) and a write-only key. Keys live in the server's own config
(opencodeGo.providerKeys) and are injected only into OpenCode instances.
GET /api/config returns names only, and none to client sessions. On a Cloud,
hosted or managed server the owner's saved value passes the withholding
policy; the server's own key under the same name still does not. Names
OpenMaus keeps for itself or other engines are refused with one next step,
and at most 20 keys are kept.

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

* Tests: the OpenCode status now also lists saved provider key names

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

* A hand-edited OpenCode provider key that isn't text no longer drops config.json

The stored schema read opencodeGo.providerKeys as strings only, so one
entry set to a number or null failed the whole file and every saved
setting fell back to defaults. The stored copy is now read loosely, like
mcpServers: entries that aren't text are dropped, and a providerKeys
that isn't a map reads as none. Settings changes stay string-only.

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

* Tests: the Simple-mode Settings mock also provides the OpenCode provider keys

Settings now renders OpenCodeProviderKeys from ./ApiKeys, and this test's
module mock didn't export it, so four Simple-mode tests failed on CI.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Cloud webhooks run as the owner, at the bot's own level

On a Cloud home a webhook's run opened its conversation as nobody's
(routineOpener fell back to CLOUD_NOBODY_KEY: no routine and no recorded
writer for a webhook id), so the leftover guest machinery treated it as a
guest's: forced into Ask, no shell, a throwaway folder instead of the
project, and engines that cannot be confined (OpenCode, Cursor, Gemini,
Qwen, Grok, Antigravity) refused it with "This conversation is from before
your Cloud was only yours".

Only the owner's own devices can create, edit or rotate a webhook (admin
scope), so its run is the owner's: routineOpener now returns the owner's key
for a webhook id. The lent Mac still refuses every webhook run
(cloud-lending.ts), which the e2e keeps asserting.

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

* Webhook e2e: keep the hook bot's project folder under the test home

Windows refuses to delete a folder that is still a running process's cwd
(the held fake engine works in it), so the folder lives under the test's
home and is removed with it once the server has stopped.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* OpenAI-compatible chats stop after 64 steps, with a plain next action

The shared chat-completions loop (openai-compat, Grok, MiniMax, Mistral,
Cerebras) stopped every reply after 16 model steps, and capped the whole
turn at 32 tool calls with the same constant that bounds one reply's call
indexes. Tool-heavy models hit that fast, and "continue" cannot recover
because the next turn is rebuilt from the text transcript without the
earlier tool results.

- MAX_CHAT_ROUNDS = 64 model steps per turn.
- MAX_TURN_TOOL_CALLS = 200 tool calls per turn, checked before a batch
  runs, so a batch that would pass it runs none of its calls.
- MAX_REPLY_TOOL_CALLS = 32 stays the per-reply index bound (renamed from
  MAX_CHAT_TOOL_CALLS so the two limits are not confused).
- The stop now reads "Stopped after 64 steps without a final answer. Try
  again with a smaller part of the task." (or "200 tool calls").

No per-bot or per-thread setting.

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

* Grok logs each step by message count; per-reply bound is file-private

Review fixes for the 64-step limit:

- Grok's native log wrote the whole message array on every step, so with
  64 steps the log grew with the square of the step count (8.4 MB for a
  20-step turn with 20 KB tool results in the new test). It now logs
  { model, messageCount } like Cerebras, MiniMax and Mistral.
- MAX_REPLY_TOOL_CALLS is no longer exported; only its own file uses it.

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

* The step-limit stop asks only for what's left, not a retry

The calls that ran before the stop have already taken effect, and the
next turn does not get their results. "Try again with a smaller part of
the task" could lead someone to resend work that already ran. The stop
now says the steps so far already ran and asks only for what is left.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Approve for me was still asking once per web search. A search is allowed; fetching a page, running a command, and every other prompt stay as they are.
* Messages that sent people to dead ends now say what to do

A Pro customer on Windows hit copy that pointed where they could not go.
Each place now gives one plain message with one next action:

- Calls: a server's page offers the trip to This computer only on a Mac.
  On Windows and Linux both say "Calls where you take turns need the Mac
  app", and the Live button is the way on.
- Live, blocked microphone: a server's page in the desktop app says to
  open the server in a web browser (no setting can help there); a browser
  says to allow the site; the app's own window keeps System Settings.
- Held notes: approval.held.unattended* deleted in all locales (no code
  sent them since #1089, and they said the opposite of what happens).
- OpenCode: Zen/Go key errors and the no-models note point at Settings ->
  API keys; on a Cloud another provider's refused key says choose another
  model; the terminal hint is hidden on a Cloud; the credential card says
  "Used for OpenCode Zen and Go."
- Cloud sign-in: "Choose Sign out of OMB Cloud, then sign in again"
  instead of unlocking a keychain.

Locale hashes accepted with scripts/generate-locale.mjs --accept.

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

* Follow main: the Cloud's own keys and microphone are now the way on

Two PRs merged while this one was open, and each changed the right next
action on a Cloud:

- #2308 added Keys for other OpenCode providers in Settings. On a Cloud, a
  refused key for another provider now says "Save it under Keys for other
  OpenCode providers in Settings -> API keys." (was "Choose another model").
  The Settings terminal hint stays hidden on a Cloud; the keys section sits
  right below it. Each message stays within 160 characters.
- #2310 lets the person's own Cloud use the microphone in the desktop app.
  A blocked microphone there is the computer's, so it keeps the System
  Settings notice; only another server's page says to open it in a web
  browser. startLiveCall takes cloudHome from config, as the Live
  disclosure does.

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

* Live: no microphone at all asks for one, not for a permission

getUserMedia's NotFoundError (no microphone) shared the blocked notice, so
a person without a microphone was told to change a setting or open a web
browser. It now says "No microphone was found. Connect one, then try
again." in every window. Raised in review.

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

* Review fixes: a locked sign-in never says Sign out, one neutral mic line, no dead held notes

- restore-failed (a saved sign-in that may only be locked, kept and read
  again by itself) gets its own message: the app tries again by itself,
  plus this computer's one step (macOS: unlock the keychain; Linux: the
  keyring; Windows: nothing to do). Only signout-storage-failed, where the
  clear really failed, still names Sign out.
- call.live.micBlocked says "your computer's privacy settings", not the
  macOS-only "System Settings".
- A browser's call help says only taking turns needs the Mac app; the
  Live button under it is the way on.
- The four other held notes #1089 orphaned (destructive, sensitive,
  needsYou, localComputer) are deleted in every pack. The existing server
  test now checks the catalog's held notes equal HELD_NOTE both ways,
  replacing the webhook/another-bot regex test.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Claude: a turn sent right after Stop waits for the stopped process, and a warm process that ended between turns resumes the turn

Two Windows failures in server/delta-context.e2e.test.ts (main run
37179853641, and main on e086adf6b itself) are two driver races that
Windows timing exposes:

- Stop that lands while a turn is still starting (its first stdin write
  is slow on Windows) makes the harness settle that turn as "stopped
  during provider setup" and count the thread idle at once. The driver
  keeps the stopped turn in `active` until its process tree is reaped,
  and taskkill is asynchronous, so the person's next message was refused
  with "a turn is already running on this thread". It now waits for the
  stopped process to be gone (its close handled), never overlapping the
  old helpers, and runs. Reproduced on macOS by slowing the first write
  and the reap; fails the same way before #2268 (a6e382b5c), so this race
  predates it.

- Since #2268 keeps Claude warm between turns, the next turn is written
  to the retained process. One that ended a moment before (exit not yet
  seen by the event loop, later still on Windows) failed the turn with
  "claude session stdin is not writable". A retained turn whose process
  ends before announcing it (`init`) never took the prompt: its close now
  resumes the same turn on a fresh process, with no retry row and no
  retry budget spent; a failed write just closes the session.

The fake CLI gains FAKE_CLAUDE_GONE_AFTER_TURN (stops reading stdin after
a turn, exits on a gate) for a deterministic driver test of the second.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Claude test: pin that a failed write to a warm process closes it

The resume test opened the exit gate right after sendTurn, so the warm
process exited on its own and the close-and-resume happened even with the
closeSession on a failed write removed. On POSIX it now asserts the native
log records {"close":"stdin write failed"} before the gate opens. Windows
is excluded: Node's stdin holds a duplicate of the pipe handle there, so
the write can land and only the exit ends the process; the fake's doc says
so.

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

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The profile menu's "Check for updates" came from the packaged app's
updater bridge, so a self-hosted server opened in a browser had no way to
learn a new version existed (MOCA-276). A self-hosted server cannot
replace itself, so the entry now checks and says how to update.

- GET /api/updates/check compares this server's version with the latest
  GitHub release, cached for an hour so menus on many devices make one
  request. It reports how the server was installed (Docker, npm, a git
  checkout, a desktop-hosted or a hosted server) and the matching update
  command from the docs.
- Without the updater bridge, the menu shows "Check for updates". It
  answers "You're up to date · v0.1.94", or "Version X available —
  release notes" with "Update with: <command>" underneath and a link to
  the release. Desktop-hosted and hosted servers say how they are updated
  instead. The packaged app keeps its own updater entry unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
main now refuses new route handlers in server/index.ts
(index-route-ratchet), which failed CI for this branch. The
GET /api/updates/check handler moves into server/routes/update-check.ts
and is registered with ROUTES.push like the other route modules.

It is also added to CLIENT_ALLOW: it only reads a version, so a
chat-only teammate on a shared self-hosted server can check too instead
of getting "Couldn't check for updates".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Hermes registers ACP MCP servers idempotently by name for the whole
process. main now keeps a thread's integration bearer across ordinary
turns, which covers back-to-back turns, but Stop, a changed grant, a
stall or a provider reload issues a new bearer. A pooled Hermes process
then keeps the agents proxy it started first, so every OpenMausBot tool
(list_bots, coordinate_bots, memory_update, ...) answers "unauthorized"
until the process goes idle (MOCA-252).

Hermes now sets restartOnMcpChange, the mechanism Qwen already uses: a
changed MCP config resumes the session on a fresh process.

The fake ACP agent gains a list-peers mode that keeps the first agents
server it is offered, like Hermes, and the comms e2e runs two turns, Stop,
and a third on the Hermes driver.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A bot that splits work into helper threads (start_thread) left every
open one in its thread list beside the person's own threads, and they
used up the six visible rows, pushing the person's threads behind "Show
all" (MOCA-92). #1108 already folded away the helper threads a bot
closes; this handles the ones still open.

Open threads a bot opened now sit under one collapsed "Opened by bots"
row at the bottom of the bot's list, with a count and a spinner while
one is working, and no longer count toward the visible rows. A helper
stays in the main list while it needs the person: the open thread, one
waiting on a card, or one with something unread. Pinned, filed, closed,
archived and snoozed threads keep their current place, and search lists
everything as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(ios): keep the last copy of a repeated message id when merging a page

Store.merge built its lookup with Dictionary(uniqueKeysWithValues:), which
traps on a duplicate key. It is not only the search-landing path: every
cold start's hydrate merges each waiting thread's page into the transcript
the fleet carried, so a thread the computer once sent with a repeated
message id would crash the app at launch, on every launch, and a reinstall
would not help. The last copy now wins, as activeBranch already did.

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

* fix(ios): look up the Live call without holding the stream behind it

hydrate() awaited GET /api/live/call, and run() awaits hydrate() before it
folds another frame or reports the stream live. So every cold connect
spent one more round trip with the stream stopped, up to the request's
20 s timeout on a slow route, and then folded the backlog. Measured in the
simulator rig with the lookup held for 20 s while 5 bots stream: main
applied no frame for 21 s after hydrate and was still ~1,900 frames behind
15 s later. With this change frames are applied from hydrate on and the
backlog stays at 1-6 frames.

The lookup now runs on its own task, like the engine-capability read. Its
guard had to change with it. An answer was applied only while the cursor
had not moved, which held only because nothing could fold while it was
out; with the stream running, any token voided it, and a phone that
connects mid-call under a busy fleet would never have learned of the
call. CompanionState now counts writes to the line (liveCallRevision), and
an answer is dropped only if a live.call frame, a hang-up answer or
another lookup wrote it meanwhile, which is the newer-news case the guard
is for. The other lookups (after a hang-up the Mac no longer knows) get
the same guard and stop being voided by unrelated frames.

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

* perf(ios): window every stream frame, and fold a backlog in one batch

eventBatches coalesced only content.delta; every other frame closed the
window at once. A busy fleet's tool steps (message, item.started/completed
x2, message.patch: about 16 frames a second with 5 bots streaming) each
cost a state publish and a full Home render, about 26 publishes a second,
more than the main thread could draw. The app fell further behind the
stream the longer the fleet worked: 300-600 frames, minutes of a pegged
main thread after the computer went idle.

Every frame now rides the 50 ms window. Only what someone is waiting on
closes it early: a notification, an approval, question or secret request
(a pending card), request.opened/resolved, runtime.error, a failed or
aborted turn, and the Live call's line. Hello is still a batch of its own.

Batches are pulled rather than pushed: windows that close while the
consumer is still busy merge into the batch it takes next, so a main
thread that falls behind (a cold-start hydrate, a slower phone) folds its
backlog in one publish instead of replaying it window by window.

Order, the replay cursor and cancellation are unchanged: no frame is
dropped or reordered while the stream runs, cancelling drops the tail that
was not handed over so a reconnect replays it, and a consumer that stops
iterating closes the source. Counted in the rig with 5 bots streaming:
publishes went from about 26 a second to 13-14, and the backlog stays
under 10 frames.

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

* perf(ios): redraw only the Home rows whose bot moved

Time Profiler on the rig (5 bots streaming, Release) put ~60% of main-
thread time in rendering Home, and every publish re-rendered every row:
CompactBotEntry observed the whole Session, and read the list's state
through Binding(get:set:), a new location on every render, so all ~15
rows re-ran their bodies on each publish (441 a second counted). Each row
then compiled up to 74 regular expressions to guess its mascot's face and
rebuilt a dictionary of its whole thread to find the last message, and
the list walked every thread's transcript 3+N times per render for the
approvals behind the Updates pill, the island and the rows' hands.

- CompactBotEntry takes plain values (its bot, face, the search text,
  open/creating flags) and callbacks, holds the session only for its
  actions, and is shown .equatable(), so a row is skipped unless its bot
  or what it shows changed. Measured: 7.5 row bodies a second instead of
  441. CompactRoomRow gets its members passed in for the same reason.
- ChatListView reads pendingApprovals, updates and the waiting set once
  per render (updates had been computed three times: the island and both
  ViewThatFits layouts of the bottom bar).
- The face's role guess compiles each word list once, as one
  \b(?:a|b|…)\b pattern, which matches exactly where its words would.
- CompanionState.lastVisibleMessage finds the end of the visible branch
  without building it; activeBranch walks positions instead of copying
  every message into a table, and returns the transcript itself when the
  thread is not forked; pendingApprovals skips threads holding no open
  card.

What each row shows is unchanged. Tests pin lastVisibleMessage to
visibleTranscript's last, the branch walk's duplicate and cycle handling,
approvals on a hidden branch, and updates from held approvals.

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

* perf(ios): stop the app root and every avatar redrawing on each publish

Two more observers re-rendered Home for every state publish:

- The App held the session as @StateObject, so each publish re-ran the
  scene body and made a new RootView. Its @AppStorage wrappers never
  compare equal, so RootView and then ChatListView ran their bodies a
  second time for most publishes (33 Home renders a second for 25
  publishes, counted). The session is now held with @State: nothing in
  the scene reads its state, and the views that draw from it observe it
  themselves.
- BotAvatarView observed the whole session for one avatar fetch, so every
  face on screen ran its body on every publish (170 a second). It now
  reads an AvatarLoader, a weak handle on the session's cached fetch,
  from the environment.

Counted in the rig, 5 bots streaming, the 30 s after hydrate, against
origin/main: Session publishes 24.8 -> 12.1 a second, Home (ChatListView)
bodies 33.4 -> 12.1, bot-row bodies 490 -> 2, avatar bodies 170 -> 2,
with the stream backlog under 10 frames.

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

* fix(ios): review follow-ups for the connect-freeze branch

- Live call: only the newest lookup of the same runtime writes the line.
  Lookups overlap now that hydrate no longer waits for one, and
  liveCallRevision starts again at 0 with every fresh CompanionState, so
  a slow lookup from before a reconnect (or from a computer the phone left
  and came back to) could land first and void the newer one.
- Compact roster: rows are skipped while their bot has not moved, so the
  list passes the day it drew on into CompactBotEntry (part of ==),
  CompactRoomRow and CompactThreadLine. "9:15 AM" becomes "Yesterday"
  after midnight again instead of staying until the bot changes.
- Compact roster: chatSummaries(previews: false) takes lastActivity from
  lastVisibleMessage and skips the preview fold. Compact rows never show
  a preview; comfortable rows and search still get it.
- Live Activities: one ActivityAuthorizationInfo for the coordinator's
  life, its enablement cached and kept current by activityEnablementUpdates,
  instead of a new reader on every 400 ms sync (about 2.6 ms of main each).

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

* docs(ios): say what a Live Activity sync actually spends

The review follow-up's comment credited about 2.6 ms per sync to building
a new ActivityAuthorizationInfo. Re-measured Time Profiler traces put the
reader at about 0.2 ms; the rest is ActivityKit reading Activity.activities,
which the trace had folded onto the guard line. Keeping one reader is still
right, but the comment now says what it saves.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(ios): finish Simplified and Traditional Chinese in the app catalog

MOCA-216. 101 live keys in ios/App/Localizable.xcstrings had pt-BR but no
zh-Hans or zh-Hant, so Live calls, Local VM take control, the compact home
list, the routine calendar, Jump to latest, the expired-proposal label and
Tap to play showed English on a Chinese phone.

- Add zh-Hans and zh-Hant to the 99 keys still in use. 18 reuse the Android
  app's exact translations; the rest follow the existing iOS glossary (bot
  机器人/機器人, thread 对话/對話, routine 例行工作, computer 电脑/電腦,
  device 设备/裝置, message 消息/訊息), with Live call as 实时通话/即時通話
  and Local VM as 本地 VM/本機 VM. zh-Hant uses Taiwan wording (連線, 設定,
  觸控式軌跡板, 擴音), not converted Simplified. Format arguments are kept.
- The Box -> Boat rename reached English and pt-BR but not Chinese; the two
  Boat keys' zh values said Box. They say Boat now.
- Remove 25 keys nothing under ios/ references any more (the two stale Box
  keys and 23 left from the old Tasks/channels screens and earlier wording).
- scripts/ios-strings.test.mjs runs in the vitest suite and fails, naming
  the keys, when a key lacks a translated pt-BR, zh-Hans or zh-Hant value or
  a translation's format arguments differ from the English.
- docs/localization.md says the mobile catalogs ship every key translated.

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

* fix(ios): use the desktop's Chinese terms and follow the in-app language in call notices

Review fixes for MOCA-216.

- The first pass skipped src/locales/zh.json and zh-tw.json, which do exist,
  so some new iOS strings named things differently from the desktop. They
  now use its words: Chief of Staff 总协调机器人 (zh-Hans), Take control
  接手控制 (zh-Hant, also in the take-control-again hint), Local VM 本地虚拟机
  (zh-Hans, in all five strings), Jump to latest 跳到最新 / 跳到最新消息
  (zh-Hans). The two instructions that quote desktop settings now quote the
  real labels: 「允許存取電腦畫面」 for Allow computer view (zh-Hant) and
  「完全访问」 / 「完整存取權」 for Full access.
- "Collapsed" is only a VoiceOver value on iOS, so it takes Android's
  accessibility wording (已折叠 / 已收合), not its visible label's.
- The busy notice and the remote bar's device line resolved their device
  names with String(localized:), which follows the phone's language, while
  the sentence around them follows the in-app picker. An English phone set
  to Chinese in the app showed "Your computer正在与 a bot 通话。". They are
  Text now, so the whole line follows the picker.
- The routine calendar's day cells drew the date style's day, "28日" in
  Chinese, inside a 34-point circle that cut it to "2…". They draw the bare
  number, as Calendar's week strip does.
- scripts/ios-strings.test.mjs reads the languages from AppLanguage.swift's
  cases instead of a fixed list, so a fourth language cannot ship partial.
  AppLanguage's header and docs/localization.md say so, and the docs now
  name the app catalog only: the widget catalog is English-only and is not
  checked.

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

* docs(screenshots): MOCA-216 Live call in Traditional and Simplified Chinese (iOS)

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud, a hosted workspace, a managed desktop or a shared server,
OpenCode must not read provider keys from the server's own environment.
#2308 let the owner's saved keys through with a second route: a
module-level getter of the saved keys, wired in index.ts, compared by
exact value against what the instance already carried. The saved keys
already reach OpenCode through its instance environment
(config.ts injectedEnvironment), the same place claude.ts reads to tell a
deliberate key from one riding along in the parent env.

- core.ts: transformEnv also receives the instance environment.
- opencode-go.ts: withholdProviderKeysWhenManaged drops a provider key
  unless the instance environment names it. setOpenCodeOwnProviderKeys,
  its index.ts wiring and source-text test, and the OPENCODE_PROVIDER_ENV
  re-export are deleted.
- Driver tests: the operator's keys come from the server's environment
  (vi.stubEnv), the owner's from the instance environment.
- docs/opencode-go.md: Setup step 2 names the saved-key route, and the
  section is called by its label, Settings -> API keys.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A Live call whose microphone was refused used to guess who refused it from
the server's own config (cloudHome), which says nothing about what the
desktop app decided. It also never offered a button, even though the notice
said "then try again".

- The desktop app now answers `pageMic` ("allowed" | "refused") on
  perm:status. It is the permission request handler's own verdict for the
  asking page's microphone (appPermissionHandlers().pageMicrophone), so it
  follows whatever rule decides the request.
- The page decides by who refused:
  - the app refused this page (or an older app that does not say, on a
    server's page): "The app didn't let this page use the microphone. Open
    it in your web browser to make the Live call." with Open in browser;
  - the computer refused: its privacy settings, with Try again;
  - the browser refused: the site's permission, with Try again;
  - no microphone: connect one, with Try again.
- LiveMediaState.canRetry becomes `action: "retry" | "open-in-browser" | null`,
  and the bar renders that one action through takeLiveCallAction().
- Deleted: call.live.micServerPage, the cloudHome argument to
  startLiveCall, and the "hopeless" treatment of a blocked microphone.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Subscribers met about ten names for three things: "OMB Cloud", "your
Cloud", "Cloud box", "Hosted desktop", "Cloud VM", "Boat cloud runner",
"Cloud dashboard", "Connect to my Cloud", "Local (this computer)". Every
word a person reads now uses one name per thing:

- OpenMausBot Cloud: the plan, and its sign-in (Settings → OpenMausBot Cloud).
- My Cloud: the always-on home ("Open My Cloud" was "Connect to my Cloud").
- Cloud computer: the desktop in the cloud. Every Works on control uses
  place.cloud; vm.dest.cloud and computer.simple.dest.cloud are deleted.
- This computer: the device (the Server menu said "Local (this computer)").
- Plan page: the web page with plan, payments and use ("Cloud dashboard").
- "OMB" is never shown, "Cloud" alone never names a Works on choice, and
  "Boat" names only the provider behind a person's own key.

This covers all of en.json and the hard-coded strings in src/, server/
(system prompt, routine copy, team computer and run_on errors, Cloud home
refusals, CLI setup) and electron/ (Server menu, lending tray, cloud move,
pairing errors). "including one from T3" is gone. On My Cloud, routines
say they run on schedule even when your computer is off (one pure
routineRunsOn for the drawer and the editor). The sign-in limits line is a
plain note, not a warning box.

pro.* and ProIntroduction.tsx are untouched (open PR #2260 owns them); the
new test exempts pro.* until that lands. "Local VM" keeps its name.

Locales: 461 translations refreshed by hand in 9 packs, place.cloud added
to 7 packs, hashes accepted with scripts/generate-locale.mjs --accept.

Tests: src/locales/vocabulary.test.ts bans the retired words in en.json,
in every string literal, template and JSX text under src/, server/,
electron/ and shared/ (TypeScript parser, so comments and identifiers do
not count; 9 explicit allow-list entries with reasons, and a stale entry
fails), and in the translations; it also checks that copy pointing at a
control names it as labelled. src/lib/routine-display.test.ts covers the
routine place on My Cloud and on a desktop.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* iOS: keep transcripts bounded and stop rescanning every message on each update

- A message or patch frame changes its thread in place instead of copying
  the whole thread (the old read-modify-write held a second reference).
- Bots and rooms no longer keep a second, stale copy of the transcript
  (Bot.messages / Room.messages are nil once folded into messages).
- Each thread keeps its newest 500 messages (trimmed back from 600 in one
  step) and sets hasMore, so Load earlier pages back from the first held
  message. Open cards, the branch head and pages the reader fetched are
  never trimmed; a late patch for trimmed history stays history.
- pendingApprovals visits only threads the fold knows hold an open card
  (pendingCardThreads), and activeBranch skips the id hash on unforked
  threads. Updates' working line reads lastVisibleMessage.
- The cursor advances once per batch.

Part of the Oct 5 iOS performance audit (findings #4 and #5).

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

* iOS: add a skipped-by-default timing for the transcript fold at 20 x 2,000

Run with COMPANION_BENCH=1 swift test --package-path ios -c release
-Xswiftc -enable-testing --filter StoreGrowthBenchmarkTests.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every pre-turn snapshot (awaited before dispatch) and every settled diff
rebuilt the shadow index from empty, so `git add -A` re-read and re-hashed
every eligible file each turn, and every snapshot then ran
`reflog expire --expire=now --all` + `gc --prune=now`. A git timeout in the
add was swallowed as an incomplete capture, so a folder that needs more
than 120 s cost every turn 120 s with no log line.

- The shadow index persists between snapshots. It is rebuilt from empty
  only when an incremental add would differ from a rebuild: a tracked path
  became ignored or cache-tagged, a folder holding tracked files became a
  nested repo, a recorded gitlink lost its .git, or (case-insensitive
  volumes) a tracked path was renamed by case only, found from folder
  listings read asynchronously. An index that cannot be listed also
  rebuilds. Snapshot and diff content is unchanged.
- GC runs every 25 HEAD-advancing snapshots per folder, or sooner at 6,700
  loose objects, 256 MiB of new object data, a legacy-history compaction or
  a swept leftover pin. The turn never awaits it: it is queued behind that
  turn's settled diff, or ahead of the next snapshot when the turn ended
  without one. Pinned pre-turn commits survive every collection.
- A git timeout (execFile kill, not an abort) in a snapshot or diff
  disables checkpoints for that bot+folder for this process with one
  warning; later turns return before spawning git. Other git failures keep
  the bot-wide disable, and an unreadable file still just skips the
  snapshot.

Co-authored-by: Claude (OMB upgrade owner) <noreply@anthropic.com>
Review follow-ups for #2338 (merged):
- LiveCallBar.click.test.ts: render the notice in a DOM, click its one
  button. Open in browser opens this page; Try again posts
  /api/live/session again.
- smoke-app-permissions: ask pageMic over real IPC from a preload, the way
  perm:status is asked: allowed for this computer's page and the Cloud,
  refused for another server.
- The page-vs-request equality test waits for the request's answer, so it
  still holds once the request decides later.
- A plain-http server's page has no microphone API, so it is never told a
  web browser can make the call (pinned by a test).
- The Android comment names the desktop's new `action` field.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(ios): keep roster previews between renders, and hand out turns to move

Two pieces of CompanionCore for comfortable Home, testable without a
screen.

RosterPreviewCache keeps each thread's preview line with what it was
folded from: the stored transcript, the branch's leaf, an edit in flight
and the Activity setting, which are every input of visibleTranscript and
rosterPreview. A line is reused while all of them are unchanged, so a
reused line is the line a fresh fold gives; the tests check that after a
new message, a patch to an earlier step in a run (which a key built from
the last message would miss), a branch switch, an edit and a setting
change. An unchanged transcript shares storage with the state, so telling
it apart is one identity comparison. Since #2336 writes transcripts in
place, holding one means the first write to that thread after a render
copies it once: one copy per changed thread per render, against a fold
(which copies every message into rows) of every thread per render. A
per-thread revision from the state would drop the copy too.

MotionTurns is the queue behind capping moving faces: the first `limit`
to ask move, the rest wait in the order they asked and move up when one
ahead of them leaves.

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

* perf(ios): comfortable Home redraws only the rows whose bot moved

#2323 gave the compact list plain-value rows; comfortable density, and
the room rows in both, still redrew on every publish. Counted in the
simulator with the busy-fleet fixture (Debug, ~19 publishes a second),
scrolled into the bot rows: ~530 thread-tree bodies and ~410 face draws
a second; at the top of the store fixture, ~290 ChatRow bodies, ~860
tree bodies and ~74 group tiles a second.

- BotThreadTree takes its bot and the queue state as values and is
  Equatable on them, like CompactBotEntry, and holds the session only for
  its actions. It no longer observes the session, and it sorts the bot's
  threads once per body instead of twice. The list's own state (search,
  open bots and folders, a thread being made) still reaches it through
  bindings to that state: one stable location each, not the per-row
  Binding(get:set:) #2323 removed. Passed as copies, the search went
  stale in comfortable search (the lazy list did not rebuild the row on
  later keystrokes); ThreadNavigationUITests caught it.
- ChatRow is Equatable on what it draws, comparing the whole bot or room
  (Chat's own == compares identity only), and takes the day the list drew
  on, so "9:15 AM" still becomes "Yesterday". Each row's values are worked
  out before the ForEach and travel in its data.
- GroupTile gets its members from the list instead of observing the
  session; CompactRoomRow, which already took plain values, is shown
  .equatable() in both places it is used.
- Preview lines come from RosterPreviewCache: a thread is folded again only
  once it changed, instead of every chat on every publish. Search reads
  its matches once per body (the list and its empty state each folded
  every chat).
- Working bots' faces in comfortable rows share a budget of six moving
  faces. The first six to come on screen move; the rest hold their
  resting frame and take a turn when a moving face scrolls away or
  settles. MausAvatar keeps its opt-in animation, Reduce Motion and
  scene-phase stop; faces outside the roster (island, profile, chat
  header) are not budgeted.

Same fixture after: tree, ChatRow, group-tile and room-row bodies 0 a
second; face draws ~170-210 a second (six faces) instead of ~350-430.
What each row shows, its order, identifiers and strings are unchanged.

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

* perf(ios): Walkie and the thread manager read their lists once per render

- WalkieView read walkieRoster, a fold of every bot's Updates line, twice
  per body (the empty check and the list); it now reads it once and hands
  it to the list. WalkieAgentRow is Equatable on its agent and selection
  and shown .equatable(), so an agent whose line has not moved is skipped
  rather than left to SwiftUI's own field comparison.
- TaskManagerView's `tasks` sorts and groups every thread on each read,
  and each row read it twice (can it be deleted, can it be selected), so
  an open manage sheet sorted the list once per row per publish. The body
  now reads `current` and `tasks` once and passes the count down; actions
  still read them afresh after their awaits, and "Select all" picks what
  is selectable when tapped.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Updates were button-driven and their notice only reached this computer's
page, so someone who stayed on My Cloud kept an old desktop app (and its
microphone refusal for Cloud pages).

- The updater downloads as soon as a check finds an update. A failure is
  quiet unless the person asked for the check; the next hourly check tries
  again. Restarting stays the person's click, so nothing restarts mid-call
  or mid-turn; from a server's page it needs a real click.
- The update channels answer this computer's page and the person's own
  Cloud page, by the rule its Settings plan already uses (verified Cloud, or
  the one this account last verified). Any other server's page is refused,
  and update news is only sent to an allowed page.
- The banner stays away while an update downloads or prepares and appears
  when there is something to do; it names the app that restarts.
- Settings and the profile menu show nothing about updates until the
  desktop app answers, so another server's page has no dead buttons.
- Deleted: the Download step (update:download, the bridge's download(), the
  "available" state and its three strings in every catalog).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- On a Cloud home the voice is told it "runs on the user's My Cloud, their
  always-on OpenMausBot in the cloud, not on their own computer", the words
  of the bot's own system prompt, instead of "on the user's own computer".
- A call started in a web browser says so (client "web"), so a busy line
  reads "Another Live call is running in a web browser" and the call bar
  elsewhere reads "from a web browser", not "on this computer". The iOS and
  Android apps already read client as free text and show an unknown value
  as "another device".
- PATCH /api/live/settings refuses a bad body with "Those Live settings are
  not valid." and no longer sends the person to "the computer that runs
  OpenMausBot": a Cloud's page saves the key on the Cloud.
- Docs: cloud-pro.md, voice-mode.md and the voice guide say where Live and
  Take turns work, and that the OpenAI key is the person's own.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud, in a browser, or in the Windows or Linux app, a one-to-one
chat's call button is now the Live call: no amber dot, no "Call
unavailable", no trip to This computer. The first press asks for the
OpenAI key, saves it where the page runs, and goes on to the call.

- call-mode: effectiveCallMode(stored, { turnsHere, canLive }) makes the
  call Live where this device can't take turns; the picked mode is kept
  for This computer on a Mac.
- CallView: the button uses it; the arrow menu shows Take turns disabled
  with its reason and Live selected. "Choose This computer" is gone.
- call-capability: no action. A Mac app on a server's page says "Calls
  where you take turns work on This computer".
- GroupCallView: no room call button where taking turns can't run (rooms
  have no Live call, so that button could never start).
- call: a server's page in the desktop app (My Cloud) has no speech
  bridge, so startCall/endCall threw before a Live call asked for the
  microphone. They now skip the missing bridge.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Four views decoded image bytes inside SwiftUI `body`, so every render (each
50 ms Session publish, each keystroke, each cursor move) made a new UIImage
and decoded it again:

- Composer attachment chip: full 12 MP decode (48 MB) per render for a
  34 pt thumbnail. Now decoded once per attachment, off main, thumbnailed
  to fill 34 pt at screen scale (136x102 px, 55 KB).
- Browser control: base64 + JPEG decode per render. Now decoded once per
  frame in BrowserControlModel.apply, off main, set together with `frame`
  so drawnSize and the touch mapping describe the same frame.
- ComputerView: base64 + PNG decode per publish. Now decoded once per new
  streamed frame or Local VM still (task keyed by which picture is shown);
  the last picture stays up until the next is decoded.
- Bot photo avatars: each view instance decoded the still at full size.
  Stills are now thumbnailed to the face's pixel size and shared through a
  bounded cache keyed by path, byte count and pixel size, with concurrent
  first renders sharing one decode.

ImageDownsampler and DecodedImageCache live in CompanionCore with tests:
size budgets, EXIF orientation, 100 asks -> 1 decode, new input -> new
decode, concurrent asks coalesce, failed decodes retry.

Part of the Oct 5 iOS performance audit (finding #3).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The live bubble asked Markdown.blocks for the whole growing reply every
50 ms batch. The cache was keyed by full text, so it always missed: the
whole reply was parsed again each time (quadratic over a long reply) and
every prefix went into the bounded cache, evicting finished messages.

- Markdown.parse remembers where each streaming reply's settled blocks
  end: the last line the parser reached with no paragraph, list or fence
  open, where every line it looked at (including a table's one-line
  lookahead) already ended in "\n". The next update that starts with the
  same bytes reuses those blocks and parses only the rest. The result is
  identical to a one-shot parse.
- Streaming text never goes in blockCache. It uses a 4-entry live cache
  and one settled-prefix entry per reply that replaces itself as the reply
  grows. MarkdownText passes streaming: caret.
- The live block's inline Markdown goes to its own small cache, so its
  one-use prefixes no longer push settled text out of inlineCache.
- Table column widths are cached per table value instead of measured
  with CoreText per cell per render, and each cell renders its inline
  Markdown once for both the drawn text and the VoiceOver label.

Tests: equivalence with a one-shot parse at every prefix (by Unicode
scalar, so splits fall inside CRLF and before combining marks) for
fences, tables, lists, quotes, headings, CRLF, lone CR, emoji; replies
sharing a prefix; parse work for a 3,000-word reply (306,856 bytes vs
9,152,840 before; 2.0x vs 4.0x when the reply doubles); streaming does
not evict a settled message.

Part of the Oct 5 iOS performance audit (finding 2, M3).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Outbound approval cards list each call's app and action

Phones can now say "Send to Linear? Create linear comment" without parsing
raw arguments out of the subtitle. The subtitle is unchanged.

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

* Android approval cards lead with a short line, not the raw request

A held send now reads "Send to Linear?" with "Create linear comment ×2"
under it, and the full request waits under a collapsed Details. Provider and
teammate approvals show their first line the same way; proposals keep their
full preview. Settled cards say Allowed, Denied, No longer available,
Remembered or Skipped instead of the stored "allow", and drop the held note.
The roster and Needs-you pill use the short line too.

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

* iOS approval cards lead with a short line, not the raw request

A held send now reads "Send to Linear?" with "Create linear comment ×2"
under it, and the full request waits under a collapsed Details. Provider and
teammate approvals show their first line the same way; proposals keep their
full preview. Settled cards say Allowed, Denied, No longer available,
Remembered or Skipped instead of the stored "allow", and drop the held note.
The roster, Needs-you pill, island, Live Activity and Walkie use the short
line too. Adds an -approval-preview fixture and a UI test.

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

* Skip on a team-memory card no longer remembers the entry from a phone

Phones sent every option but Deny, Cancel and Dismiss as allow, so tapping
Skip on "Remember this for the team?" accepted the entry. Skip is now a
refusal on iOS and Android, tinted and answered as one.

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

* iOS preview: an image-shapes chat with every awkward screenshot size

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

* iOS: show an attached image whole, fitted to its bubble, instead of a zoomed crop that widened the chat

A wide screenshot filled the old 168-point card by growing sideways, and
that growth carried the bubble, the transcript and the whole chat screen
past the phone's edges: Back, the computer button and the composer were cut
off on both sides. The card is now sized from the bubble's width and the
image's own shape (3:4 to 4:1, at most 300 points tall); the picture is
drawn fitted inside it and never measured. The name sits beneath it, and
the thumbnail decodes at 1080 px so screenshot text stays legible.

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

* iOS: no transcript row can widen the chat screen again

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

* Android: show an attached image whole at its own shape instead of a 4:3 crop

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

* fix(ios): decide when a chat shows the typing bubble, in one tested rule

The phone showed its working dots whenever the thread was busy, which
also covered a bot stopped on an approval and the beat at the end of
every turn when the reply has landed but busy has not cleared yet.

TurnTail.showsTyping ports the desktop's rule (src/lib/turn-tail.ts and
its call sites): the open thread is busy (rooms: a member has the
floor), it is not waiting on the person, no approval, question or
credential card is open, and the last row on screen is not a finished
reply (rooms: unless a different member has the floor now). A stream
opening counts as a new step. Hidden's live narration is left out of
"the last row", because the status line shows it instead.

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

* fix(android): decide when a chat shows the typing bubble, in one tested rule

The same rule as iOS's TurnTail.swift, ported from the desktop's
src/lib/turn-tail.ts: the open thread is busy (rooms: a member has the
floor), it is not waiting on the person, no approval or question card
is open, and the last row on screen is not a finished reply (rooms:
unless a different member has the floor now). A stream opening counts
as a new step, and Hidden's live narration is left out of the tail.

Android has no model for credential cards yet (they decode as
unknown), so only iOS counts those.

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

* fix(android): the typing bubble bounces like Messages and follows the shared rule

The chat's working row now asks the core TurnTail rule instead of busy
alone, so it stays away under an approval, while waiting on the
person, and in the beat between a reply landing and busy clearing.

The dots hop in turn, the iOS look: 8dp, 3dp up, 0.15 s apart, 1.2 s a
pass, a shade brighter at the top, in the bubble's quiet foreground
colour. Reduce motion (animator scale 0) holds them still on the line
and fainter. TalkBack hears "<bot> is typing" from strings.xml, with
Chinese translations, instead of hard-coded English.

At Hidden the narration status line loses its spinner: the bubble says
the bot is working, the line says what at.

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

* fix(ios): show "Pepper is typing" as a bouncing bubble you can actually see

After a send the phone gave no sign the bot was working. The dots
existed, but as a faint grey capsule that pulsed in size, and the chat
scrolled to the last message, which left them below the composer.

- TypingIndicatorView is now a bot-side bubble, the same shape, colour
  and padding as a reply, with three 8pt dots hopping 3pt in turn
  (0.15 s apart, 1.2 s a pass), the Messages look. Reduce Motion holds
  them still and fainter. VoiceOver reads one element, "<bot> is
  typing" (pt-BR and Chinese added), and hears it once a turn.
- The bubble follows TurnTail rather than busy alone, so it stays away
  under an approval, a question or a credential card, while waiting on
  you, and in the beat after the reply lands.
- Follow-scrolls land on the end of the transcript, below the bubble,
  and the bubble appearing on its own brings it into view unless you
  are up in the scrollback (Jump to latest showing).
- At Hidden the narration status line drops its spinner: the bubble
  says the bot is working, the line says what at.

-chat-typing-preview stages the moment after a send (the turn starts
a beat after the chat opens). The UI tests now require the bubble to be
hittable and above the composer, not merely in the tree.

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

* Answered approval cards leave the phone chat

Once a permission or outbound card is answered, the bot's next message
says what happened, and the card's request and verdict were clutter in
a phone chat. At Hidden and Reduced detail a settled approval card is now
dropped from the transcript on iOS and Android; Full still shows every
card. Cards waiting on the person and settled proposals (routines,
skills, team setup, team memory) are unchanged.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A working row's line carries the streaming reply's tail, so the widget
and Live Activity "unchanged" gates never held while a bot streamed:
a snapshot rewrite + reloadAllTimelines() every 400 ms window (~150 a
minute) and one Activity.update per streaming bot per window.

- Widgets: a change that is only a working row's line republishes at
  most every 30 s. Asks, kind changes, chats arriving/leaving, names,
  colours, titles, faces and connection changes still go in their
  window; the minute renewal and ten-minute answer expiry are
  unchanged. The background flush writes exactly.
- Live Activities: LiveActivityPacer (Core) holds a working bot's
  line-only change to one update per 5 s; everything else is sent at
  once, and one more sync runs when a held line falls due.
- One Activity.activities read per sync (was N+2); the activity
  returned by request() is used for the alerting update.
- lastVisibleMessage instead of visibleTranscript(...).last.
- Re-attach reuses the coordinator and cancels the old enablement loop.

5 bots streaming for 60 s at 50 ms batches: widget writes+reloads
150 -> 2, Live Activity updates 750 -> 60.

Part of the Oct 5 iOS performance audit (finding #6).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A Codex thread keeps the last reasoning effort it was sent, and turn/start
cannot clear one. After a person moved a bot from a level back to Default,
every later turn in an existing chat resumed the old thread on that level;
only a teammate's return (config mismatch on an external update) or a new
chat picked up the default.

The handoff record now keeps, for Codex, the last effort its thread was
sent (null when none). A turn on Default whose thread holds a level is
rebuilt from the transcript, the same replay a teammate's return already
gets, instead of resuming. Picking a level mid-chat still applies in place.

Co-authored-by: Claude (OMB upgrade owner) <noreply@anthropic.com>
A bot connected through external-runtimes.json (a Telegram or Slack
gateway) reads its handoff results with check_delegation and
wait_delegation. When such a handoff settled, the server still woke the
source like an in-app delegator: finalizeDelegationWatch, a drain-time
failure and the expiry sweep each called wakeDelegationSource, which
started a turn on the bot's own engine in the pinned thread. The result
was answered twice, the second time unasked.

delegate-bot, ask-bot's busy fallback and ask-bot's timeout conversion
now mark a handoff made under the external-runtime credential with
completionOwner "external". The queue keeps the mark across a restart
and hands it to runTarget. A settled handoff with that owner records its
receipt and posts the reply into the thread as before, without the wake,
which is the rule oneWay already follows. In-app delegations are
unchanged.

Co-authored-by: Claude (OMB upgrade owner) <noreply@anthropic.com>
Sections are team boundaries: the roster, list_bots, ask_bot, delegate_bot,
rooms and delegation re-checks only reach bots in the sender's own section
unless the owner grants a Chief extra teams. A workspace that files bots
into sections only to tidy the sidebar silently cuts them off (#691).

canAccessTeam now returns true when OMB_OPEN_TEAMS=1. Off by default; any
other value keeps today's boundary. Peer lists, hidden bots and visibility
still apply, and coordinatorSupervises is unchanged.

Co-authored-by: Claude (OMB upgrade owner) <noreply@anthropic.com>
The disabled trigger's tooltip only carried the stop-turn advisory, so
while a turn runs the current model is unreadable exactly where its full
label normally lives. Lead with the same summary the idle tooltip shows,
then the advisory on a second line of the native title; idle text and the
advisory keys are unchanged.

Co-authored-by: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-authored-by: Kimi K3 <noreply@moonshot.ai>
On COSMIC Wayland Electron never emits ready-to-show for a window created
hidden, so the startup screen never showed. Its 10 s fallback then
destroyed it while it was the app's only window, and window-all-closed
quit the app (exit 0) before the server started or the workspace window
existed. The same happened on Linux and Windows after a startup renderer
crash or a failed load.

- show the loaded page 500 ms after did-finish-load when ready-to-show has
  not come
- the 10 s fallback, a renderer crash and a failed load only unblock
  server startup; the splash stays until the workspace window replaces it

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Review fixes on the webhook-owner change.

- createTask now gets the run itself. A webhook's run (triggerSource
  "webhook") opens as the owner's; every other run still asks
  routineOpener, which is back to being about routines only. The webhook
  store lookup is gone.
- A "post" webhook's message is marked webhookPost. On a Cloud home a
  conversation holding one is someone else's for lending, memory and
  recall, like a report of a routine the owner did not write
  (cloudReportFromOthers). Before, the owner's next turn in a post
  webhook's Updates conversation could use the lent Mac. The conversation
  is still not confined.
- e2e: an owner turn in a post webhook's Updates conversation sees no lent
  computer, is told "Someone else wrote in this conversation", and runs
  without --restricted.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The test from #2328 asserts which git subcommands an unchanged re-snapshot
runs, not its speed. Building its 3,000-file tree and the first full index
takes ~2 s on macOS but exceeds vitest's 20 s default on CI's Windows
runners, so the test timed out on every Windows run since #2328 (main,
#2351 twice). Give it 120 s instead of shrinking the tree it is about.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Live asks for the microphone before the key; review fixes for S1

- A Live call always asks for the microphone first. The key form opens only
  when the computer answers that it has no key (needsKey), so a page the app
  won't give a microphone shows "The app didn't let this page use the
  microphone…" with Open in browser, and nobody pastes a key it can't use.
  Deleted the key-first pre-check (keyOpen, liveConfigured, opensKey).
- Take turns, where it can't run, is aria-disabled instead of disabled: the
  arrow keys reach it and its reason is read out; choosing it does nothing.
- Plainer copy: "They listen with your Mac's own speech recognition, which
  only This computer can use." and, for a window with no microphone support,
  "Live calls need a microphone, and this window can't use one. Open
  OpenMausBot at its https address in an up-to-date browser." (no "WebRTC").
- Journeys: Linux, This computer in the Windows and Linux apps (key saved
  through the app, no room button), refused microphones on My Cloud and on
  another server, and a browser with no microphone support.
- Cloud e2e: the no-key answer is 409 needsKey for a real bot, nothing
  reaches GPT-Live before the key, and GPT-Live gets the owner's key (the
  fake now records each session's bearer).

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

* A window with no microphone is sent to an https address, not a browser

#2344 pinned that a plain-http server's page (no microphone API in the
app or a browser) is never told a web browser can make the call. The
plainer copy keeps that: "Live calls need a microphone, and this window
can't use one. Open OpenMausBot at a secure https address to make the
call." The #2344 test now checks the notice names no browser.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* perf(ios): work out a message's wrappers once, not on every render

The transcript derived what a message shows inside its row bodies: the
attachment and paste tags (AttachedMessageContent.parse, a regex per line)
for the long-press menu and again for the bubble, the diff test twice, the
webhook envelope once. Every row redrew on every publish, so a user message
carrying a long paste was scanned line by line twenty times a second while
any bot in the fleet streamed.

MessagePresentation bundles the three results, with the diff test moved
over unchanged from TextBubble as GitPatch. The parsers are the same ones;
the next commit computes this once per message (id and text) instead of
per render. Tests pin it to what the bodies used to work out.

Part of the Oct 5 iOS performance audit (M2).

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

* perf(ios): ImageDownsampler decodes to the width an image is drawn at

A transcript screenshot is drawn aspect-fit across the chat column, so the
size that matters is its width there, not its longer side. decode(_:
fittingWidth:) brings the image to that width, or leaves it at its own size
when it is narrower, and counts an EXIF quarter turn, which swaps the side
drawn across. Next to decode(_:fillingSquare:), with tests for wide and
tall frames, upscaling and the turn.

Part of the Oct 5 iOS performance audit (M4).

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

* perf(ios): stop the chat transcript redrawing every row on every update

ChatView and the views in its rows observed the whole Session, and the
rows carried ChatView's closures, which SwiftUI cannot compare. So every
50 ms publish from any bot in any thread, and every keystroke in the
composer, re-ran every row's body down to its Markdown. Measured on the
busy-fleet fixture, launched directly into the six-row Gmail chat: 1,314
row bodies, 1,314 bubble bodies and 876 Markdown bodies over the first 220
publishes on main; 6 to 72 in total on this branch (where they were
sampled over time, all within the first second after the chat opened).

Rows on plain values (the CompactBotEntry treatment from #2323):
- TranscriptRowView (the date line plus the row) and MessageRow are
  Equatable on what they draw and applied with .equatable(). ChatView
  reads the chat-wide values once per render (TranscriptRowContext) and
  the per-row lookups (pending edit, routine thread, versions) once per
  row, so no row reads the session.
- MessageRow, CardView, QuestionCardView, CredentialRequestCardView,
  ScreenShot, TranscriptAttachmentView, ClaudeUpdateCard and
  VoiceNoteBubble no longer hold @EnvironmentObject Session. They act
  through TranscriptActions, which reaches the session and a stable
  TranscriptRouter (ChatView's handlers) at tap time. Its == compares the
  thread and the two references; nothing a row draws comes from it.
- The snapshot of the thread (branch walk, folded rows, versions, live
  narration, approval check) is read once per render instead of four or
  five times, and reused while the thread is unchanged, so an unchanged
  row's values are identical from render to render, not just equal.
- Each message's wrappers are parsed once per id and text
  (MessagePresentations, over the previous commit's type).

Typing no longer re-runs ChatView's body: the draft lives in a
ComposerDraft object ChatView holds without observing, and only the
composer (DraftReader) observes it. The Settings chip row is decoded once
per change of the setting, not twice per render.

Auto-scroll respects the reader. New rows and streaming batches scroll to
the end only while the reader is there, judged from the layout before the
update so a tall new row is not mistaken for the reader leaving. On iOS 18
the scroll phase detaches the transcript as soon as the reader starts
dragging (onUserScrollCompat now reports start and rest) and reattaches it
when they come to rest at the end; below 18, following stops once the end
is out of view. Opening a chat, sending and Jump to latest still land on
the end.

ScreenShot decodes off the main actor at the width it is drawn
(ImageDownsampler, previous commit), not in full on main, and keeps the
bitmap by message id and width in a DecodedImageCache (#2334's), which the
system can empty under pressure. The live status line animates when a
new in-between message lands, not on every batch of a streaming reply.

Part of the Oct 5 iOS performance audit (#1; M1, M2, M4, L1, L2, L3).

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

* test(ios): busy-fleet test types into the streaming thread and holds budgets

ResponsivenessUITests recorded elapsed times but asserted nothing about
them, and typed into Gmail, a quiet thread, while the flood went to other
threads. It could pass with every row of the open chat redrawn twenty
times a second.

- Typing and thread switching must finish within 12 s and 30 s, about
  three and two times the slowest measured run on a heavily loaded Mac.
- A new case opens a busy fixture bot's chat at Full activity, where the
  reply streams as a bubble, and types into that thread.
- Both typing cases read a Debug-only counter of message-row bodies from
  the fixture badge (transcript-row-redraws): typing and two seconds of
  flood after must redraw fewer than 50 rows. main: 79-98 in the
  streaming chat; this branch: 0 in every run. Counting starts once the
  counter stops climbing, because under XCUITest SwiftUI sometimes goes on
  redrawing a just-opened chat's rows for a few seconds without asking
  their ==; direct launches never showed that.
- A third case scrolls back while the reply streams and checks the reader
  stays put, then that Jump to latest returns to the end and following
  resumes. It fails on main (the reader is pulled back every batch).
- The launch retries the known first-launch-unpaired case, as
  StopButtonUITests does, and starts from the roster.

Mutation check: making the rows' action value compare unequal fails both
typing cases (390 and 66 redraws). Removing .equatable() alone does not;
SwiftUI also uses the rows' Equatable conformance without it.

Part of the Oct 5 iOS performance audit (M5).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The OpenMausBot and MausBot names and the mascot are trademarks of
Supamaus Software Private Limited, not an individual.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to #2311, from its review.

- Daily backups: while a saved schedule waits for the keychain it still
  counts as on (paused), so the switch offers Off and Off removes it without
  the keychain. When it opens, an overdue backup waits RESUME_DELAY first,
  like one whose company connection returns.
- The lines for a kept, locked record say OpenMausBot tries again every
  minute; no restart, re-enable or sign-out step.
- restore-failed gets its own key, cloudAccount.restoreWaiting, in all
  locales; storageFailed stays for a sign-out that could not clear.
- One retryDelay (15 s, 30 s, then each minute) for restore and refresh
  retries; RETRY_MS removed.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(pi): negotiate RPC v2 and reassemble chunked frames

An omp-style runtime caps one RPC frame at 1 MiB and replaces an
oversized response — the model catalog is over 3 MB — with an overflow
stub. It only chunks frames after the client negotiates protocol 2,
which the driver never did: `cli: omp` reported an empty catalog and
stayed unavailable, and any oversized turn frame was dropped the same
way (issue #1125).

Send the protocol-2 declaration on the same stdin before the first
command at both spawn sites, and reassemble `rpc_chunk` frames before
parsing in both stdout readers. Vanilla pi ignores the unknown frame and
emits neither `ready` nor chunks, so its behavior is unchanged.

Refs #1125.

* test(pi): pin protocol negotiation on the turn path and mirror pi's refusal

In omp-chunk mode chunk turn frames only after protocol-2 negotiation;
without it emit omp's v1 rpc_frame_error stub per frame, so the chunked
turn test fails if the turn child stops negotiating. Answer
negotiate_protocol in every non-omp mode with vanilla pi 1.0.2's explicit
Unknown-command refusal (echoing the frame id), proving the driver
tolerates it on both the catalog and turn paths.

* refactor(pi): parse the decoded catalog frame directly

fetchPiModels re-serialized every decoded frame only so parsePiCatalog
could parse it again; both now share one per-frame parser. Also correct
the turn-path comment (vanilla pi refuses negotiate_protocol rather than
ignoring it) and drop the fake's never-varied chunk-count parameter.

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

* fix(pi): bound rpc_chunk pieces and stdout lines, keep the event catch

- PiRpcChunks mirrors omp's own decoder limits: at most 256 pieces of at
  most 256 KiB each, with the base64 length checked before decoding and
  empty pieces rejected, so a malformed stream can't grow state without
  approaching byteLength.
- Both stdout readers share piLineReader, which drops any line longer
  than the 64 MiB frame cap instead of buffering it without bound.
- The turn reader wraps onEvent in try/catch again, as main did, so a
  frame the handler can't consume is skipped rather than thrown out of
  the stdout callback.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(browser): accept only JSON requests to install the browser engine

A page on another localhost port could start the browser engine install
with a form POST, because loopback origins pass regardless of port and
the route never checked the content type. Require application/json like
the neighbouring mutation routes, so a simple cross-origin request is
refused before any download starts.

Fixes #863

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

* fix(browser): match the JSON media type exactly

startsWith("application/json") also accepted application/jsonp and application/json-foo. Compare the normalized media type instead, which still lets parameters like "; charset=utf-8" through. Reported by CodeRabbit on #2303.

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* iOS: drop the name pill under the chat header; Threads names the thread

The bar under the face repeated the bot's name and the thread title and
opened the same thread list the Threads button already does. It is gone;
the face sits alone between the buttons. Threads now carries the current
thread title as its accessibility value, and a room's face says the room's
name and member count, since the pill was the only place that showed them.

UI tests that tapped the pill or read its label now use the Threads button
and its value.

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

* iOS: stack a question's answers one under another

A question card's options are sentences, and sharing a row at one fixed
height cut them off ("Yes, from your Gmail — I'll give subject and b…").
Questions and proposals now stack their answers full width, wrapping onto
as many lines as they need, in rounded rectangles. Approval and outbound
cards keep Allow and Deny side by side, exactly as before.

The rule is OptionCard.stacksOptions in CompanionCore. The approval preview
gains a bot with a long-option question, and a UI test measures the stack.

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

* Android: drop the name pill under the chat header; add a Threads chip

The pill under the face repeated the bot's name and the thread title and
was the only way to the thread list. It is gone, and the header gets the
Threads chip iOS has, beside the computer, named for the thread you are
on. Call moves beside Back, as on iOS, so the right side has room. The
chip keeps its word only when it measures as fitting between the computer
and the face; on a narrow phone or at a large font size it is a glyph, so
it never reaches under the face. The transcript's top clearance shrinks
from 128 dp to the 80 dp of the strip and its fade. A room's face now says
the room's name and member count.

Thread navigation tests open threads from the chip and read its
description; new ones check that nothing in the header overlaps the face
at 360 dp, at 412 dp, and at 412 dp with a 1.5x font.

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

* Android: stack a question's answers one under another

A question card's options sat in a row of wrap-content buttons, and a
sentence-long answer pushed the next off the card. Questions and proposals
now stack full-width buttons with centred, wrapping labels; approval and
outbound cards keep Allow and Deny in a row. The rule is
OptionCard.stacksOptions in core, mirroring iOS, with a Robolectric test
measuring both layouts on a 393 dp phone.

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

* iOS: answer a question in words, on its card or from the composer

A bot's ask_user question with no choices drew a card with nothing to tap
and no box to type in, and a line typed in the composer was steered into a
turn the bot could not read while it waited, so it stalled.

- A flat question card now has an answer field under its options, open on
  its own ("Type your answer") when there are none. It sends through the
  same answer route as the buttons. Approvals, held sends and proposals
  are unchanged.
- A structured question with no options opens straight to its field
  instead of a lone "Other" row.
- While the chat waits on exactly one question that asks one thing, and
  nothing is attached, the composer reads "Answer <bot>…" and Send answers
  that question instead of steering. A structured card gets the same
  "Q: … A: …" text its own card sends. If the question already closed, the
  line goes out as an ordinary message; if the answer fails, the words stay
  in the composer with the reason under them.
- The rule is ComposerQuestion in CompanionCore, with tests.
- New strings in pt-BR, zh-Hans and zh-Hant; a -question-preview fixture
  and UI tests with screenshots.

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

* Android: answer a question in words, on its card or from the composer

The same fix as iOS. A bot's ask_user question with no choices drew a card
with nothing to tap, and a line typed in the composer was steered into a
turn the bot could not read while it waited.

- A flat question card now has an answer field under its options, open on
  its own ("Type your answer") when there are none. Approvals, held sends
  and proposals are unchanged.
- A structured question with no options opens straight to its field
  instead of a lone "Other" row.
- While the chat waits on exactly one question that asks one thing, and
  nothing is attached, the composer reads "Answer <bot>…" and Send answers
  that question instead of steering. If the question already closed, the
  line goes out as an ordinary message; if the answer fails, the words go
  back into the composer with the reason under them.
- The rule is ComposerQuestion in core; Client.respond now reports the
  harness's outcome so a closed question can be told from an answered one.
- New strings in values, values-b+zh+Hans and values-b+zh+Hant.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* Delete the Computer engine: every turn runs on the bot's own engine

The Computer engine ran a whole turn on Boat's own agent (POST
/boxes/{id}/prompt). That agent has no AI sign-in on an OpenMausBot Cloud,
which is the hosted-desktop bug, and it was the one place Auto attached a
Boat. Decision D5 removes it from every install.

- Delete server/drivers/boatagent.ts and its tests, the "computer"/boxAgent
  default-fleet entry, the remoteAgent capability, the integrations.computer
  hand-off and every remoteAgent branch in startTurn, rooms, team computers,
  the panel preview and select_computer. Auto never reads the Boat account.
- canWorkOnCloud is one rule: an engine with computer tools can use a cloud
  computer, on Boat or a VPS. boatTurnLifecycleAction loses its Auto branch.
- One-time move: a bot (its model, each conversation's model, its backups)
  on the Computer engine moves to the engine a new bot gets, chosen by the
  ready rule now shared in default-model-selection.ts, and keeps Works on.
  Its conversation gets one plain activity line. A saved fleet entry for the
  engine is dropped, so it is never offered and the next save leaves it off.
- New Boats no longer receive this server's AI keys: they only existed so
  Boat's agent could sign in.
- Delete the omb-ask output protocol only that engine used; older cards keep
  their badge.
- Phones: Cloud VM routines need an available engine with computer tools,
  not a Boat agent; their footer copy says so (iOS catalog translated).
- Docs and fixtures no longer register or describe the engine.

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

* Computer engine removal: keep each conversation where it worked (#2329 review)

The one-time move now keeps every conversation working where it did. On
Auto, the removed engine always ran on the bot's own cloud computer, so a
moved Auto bot gets Works on: Cloud computer, and a moved conversation of
an Auto bot gets an automatic pin there. That happens only where this
server has cloud computers, the bot's backend is Boat, and no team
computer serves its section. The move also:
- puts each line in the conversation that moved, and claims a cloud
  computer only where one is still used;
- updates the new-bot defaults in memory as well as on disk;
- switches off an automatic-recovery backup that named the engine;
- applies the existing engine-switch rule to permission levels;
- runs again from describeInstances when no engine was available at start.

There is one engine picker again. selectReplacementModelSelection is
deleted, the move calls defaultSelection(), and selectDefaultModelSelection
takes the plan's ready-first rule, keeping the enrolled preference for
personal engines.

Boat and a self-hosted VPS follow one rule, so the obsolete VPS-only
checks are gone: computer.err.vpsEngine (all locales, through the locale
check), the panel's unreachable branch, and the picker's disabled VPS
option with its canUseVps plumbing.

On iOS and Android, a Cloud VM routine now checks the routine bot's own
engine, the rule the desktop and the server use. The footers say "bot" and
"cloud computer" and no longer ask for a Boat API key.

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

* Vocabulary check: drop allow-list entries for the deleted Computer engine

Main's one-vocabulary check (#2337) allowed "Boat" in the Computer engine's
surface note and in computer.err.vpsEngine. This PR deletes both, so the
entries no longer match anything and the check's stale-entry guard fails.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Wallaby is already in the bundled models.dev snapshot; this pins the
base URL and adds a key check (GET /models: 401 without, 200 with).
Non-recommended row; curated recommended order untouched.

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(openai-chat): resend a request when Groq refuses a made-up tool call

Groq validates each generated tool call against the request and fails the
completion with `tool_use_failed` when the model calls a tool it was never
offered (gpt-oss inventing a "JSON" tool to answer in JSON). The refusal
arrives mid-stream, so the runtime surfaced it as a ChatProtocolError and the
turn died, though nothing had run and a second request usually succeeds.

The runtime now recognises that code (mid-stream, as an error body, or as
HTTP 400) and sends the same request again, within the existing three
attempts, with a retrying row for each. Once answer text has streamed it does
not resend, so the phones' live bubble never joins two attempts. Other
provider errors are unchanged, and the exhausted case ends with the same
error as before.

Fixes #2166

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

* fix(openai-chat): explain a refused tool call in plain words and log it whole

When the provider refuses every attempt, the failed turn now says what
happened and what to do next instead of the raw stream error: with no earlier
tool call, nothing ran and Retry is safe; after earlier calls ran, it asks only
for what's left, since a Retry of the whole request would repeat them. The
provider's words follow. A tool the model was not given is named; a call
whose arguments missed the schema (same tool_use_failed code) is not called
made up.

Each refusal's whole error object, failed_generation included, goes to the
thread's redacted native log beside the tool names each request offered, so
a report can be investigated from the log.

RejectedToolCallError uses a plain field: Node's type stripping, which runs
the server, rejects constructor parameter properties.

Refs #2166

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(control-plane): report a Cloudflare API rate limit as endpoint_rate_limited (MOCA-242)

When Cloudflare's API answered 429 while a desktop was setting up its secure
HTTPS link, the control plane reported the generic 502 endpoint_unavailable
with no Retry-After. Users saw "could not finish setup, contact support" for
something that clears by itself within minutes.

Provisioning now answers 503 endpoint_rate_limited with a Retry-After: the
one Cloudflare sent, clamped to 30-300 seconds, or 60 when it sent none (or
sent a date). The failed attempt is still rolled back and logged as
cf_rate_limited, and a rate limit does not close the capacity gate.

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

* fix(desktop): say when secure HTTPS setup is rate limited and how long to wait (MOCA-242)

The control plane now answers a Cloudflare API rate limit with
endpoint_rate_limited and a Retry-After. The desktop shows "The secure
connection service is busy right now. Local Wi-Fi and Tailscale pairing still
work; try again in 2 minutes." (the wait comes from Retry-After, "a few
minutes" without one) instead of falling back to the generic request-failed
copy, and the phone-setup panel keeps that text rather than replacing it.

The code joins the automatic-retry set, so background recovery waits at
least as long as the server asked, on the same bounded exponential backoff
as capacity errors. No hot loop: one timer per failure.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(browser): live view uses the page's real size and waits while the bot holds the browser

Two faults of the Browser panel on a headless server.

The page was not the size the stream reported. agent-browser launches
headless Chrome with --window-size=1280,720, and full Chrome in headless
mode (Chrome for Testing, which the Docker image installs) takes its
emulated browser UI out of that window: the page comes out 1280x577. The
screencast frames show that page (1280x577 JPEGs) while their metadata and
the stream status report the window, 1280x720. browserViewportPoint scaled
clicks into 1280x720, so they landed about 25 % too low.

- Server: give a headless browser the server launches an explicit 1280x720
  page with `agent-browser set viewport` (it also resizes the window's
  content area, which later tabs inherit; agent-browser has no launch option
  for the page size). BrowserRuntime applies it once per MCP transport,
  before the bot's first call that may launch the browser, and the live view
  applies it when it opens. Never for a browser attached over CDP or a headed
  one. Best effort: a failure keeps the current size. With
  chrome-headless-shell the page is already 1280x720 and nothing changes.
- Client: map input into the page the frame actually depicts. When the
  image aspect disagrees with the metadata by more than one image pixel,
  take the CSS height from the image (browserFrameSize); consistent, HiDPI
  and downscaled frames keep the reported size. Page-unit wheel deltas use
  the same height.

Opening the view while the bot's own command held the browser session
failed: `stream status` waited behind that command, was killed by the
30 s execFile timeout, and the panel got "Check that the browser engine is
installed", then "Browser connection ended".

- A timed-out engine command is now a BrowserBusyError, distinct from a
  failing or missing engine.
- Opening the view probes the stream for up to 10 s. While the session is
  busy, the server starts the event stream, sends `waiting` events and
  probes again with a bounded backoff (1, 2, then 5 s) until the browser
  answers, the viewer leaves (in-flight probes are aborted) or 10 minutes
  pass. Until `ready`, the viewer gets only `waiting` and `error` events.
  Each attempt still waits for a session reset after a failed launch.
- The panel shows "<bot> is using this browser…" while waiting, without
  spending its reconnect budget. A view that waited out the limit gets the
  reason and no automatic retry. A person's action that times out says the
  browser is busy instead of blaming the installation.

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

* fix(browser): open no stream socket for a viewer closed during page sizing

The best-effort viewport command swallows its own failures, including the
abort that close() sends. A viewer closed while the page was being sized
therefore still got an upstream WebSocket, which close() could no longer
reach. Check that the viewer is current after the startup steps, before
the socket is created.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* The Cloud's microphone uses this computer's media rule instead of a copy

cloudHomeMicrophoneAllowed re-implemented the "what counts as the
microphone" checks from appPermissionAllowed. It now calls that rule with
the Cloud as the trusted origin and adds only what is new for a Cloud:
main frame, and never getDisplayMedia (empty mediaTypes).

Same verdict as the merged version on 129,360 input combinations. A new
test pins that the Cloud follows this computer's rule for every media shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 8465807b4a6b1b61e4b11107d1485c9909a65b95)

* Live call copy stays in one language on a Cloud

Only call.live.disclosureCloud was translated; its twin call.live.disclosure
and the other 63 call.* keys fall back to English in every pack. On a Cloud
a German hint read English, then German. Drop the lone translations and
their source hashes so the Cloud wording falls back to English like its
siblings. A test keeps the two disclosures translated together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 452d2c4af13f974c46643118161f68da52f1b7cc)

* My Cloud keeps the microphone through a slow or failed sign-in check

One rule now says which page is the person's own Cloud
(cloud-home.mjs myCloudOrigin): the machine the sign-in verified or, while a
check is pending or has failed, the one this same account last verified. The
Cloud page's own channels (Settings → Plan, its setup checklist) and the
microphone for a Live call both ask it. Before, the microphone had a second,
stricter rule (verified in the last 15 minutes and "ready"), so a Live call
on My Cloud was refused whenever OMB Cloud could not be reached for a while.

A Cloud page that asks for the microphone while the saved sign-in is still
restoring, in the first seconds after launch, now waits for the restore (at
most 5 s, the same wait openmausbot://cloud already used) instead of being
refused for asking early. Only that request waits; the check handler stays
synchronous and anything else is answered at once.

Signing out, another account and companion client mode still take the
microphone away at once.

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

* My Cloud ends when OpenMausBot Cloud names no machine for the account

The remembered Cloud (rememberedCloudHome) outlived a successful check that
reported no machine for the account (`cloud: null`): the microphone and the
Plan channels kept trusting an address OpenMausBot Cloud had just stopped
naming. Such a check now forgets it. A check that still names the machine
without its address (stopped) keeps it, so the Server menu's My Cloud keeps
opening through the Cloud's own connection.

After the sign-in has ended or expired the same account's Cloud still
counts, as the plan's rule and the Plan page's "sign in again on your
computer" state need; that is now pinned by journey tests and written in
docs/cloud-pro.md and myCloudOrigin's comment, together with what ends it
(sign-out, another account, a restart before a check succeeds, companion
mode).

Tests (electron/app-permissions.node-test.mjs, real sign-in client against a
stand-in OpenMausBot Cloud): no machine ends it for the microphone and
myCloudOrigin; a stopped machine keeps it; access-ended and expired keep it
until sign-out. cloud-home.node-test.mjs covers rememberedCloudHome.
Comments and test names this PR added say OpenMausBot Cloud.

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

* The permission smoke proves a Cloud page's early request waits for the restore

The restore used to end on a 300 ms timer, so a request that reached the
handler after it, or never consulted the restore at all, still passed. Now
the restore ends only when the request handler asks for it
(cloudHomeRestoring), and the smoke asserts it was asked: for the Cloud page
(then granted) and for another server's page (then refused, on its own
origin so no earlier answer is reused).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to #2341 (merged before these landed), on top of #2340 (S1).

- live-call.e2e.test.ts: S1's Cloud-home Live journey now checks what the
  voice is told: "You are Ada, an AI agent that runs on <CLOUD_HOME_PLACE>."
  and never "on the user's own computer". Before this, `cloudHome: false` in
  server/index.ts passed every test.
- call.live.busy.desktop: "Another Live call is running in the desktop
  app." A Cloud is reachable from any machine, so "this computer" was false
  for a call held by the desktop app on My Cloud.
- CLOUD_HOME_PLACE (server/system-prompt.ts) is the one wording for the
  bot's Cloud prompt and the Live voice, so a vocabulary change reaches both.
  On a Cloud the voice's backend line says the bot changes things on
  My Cloud, not "the computer".
- live-call-media: one inWebBrowser rule for the microphone notice and the
  call's client (still the capability contract, per CONTRIBUTING.md).
- Docs: the voice guide says My Cloud, not "your Cloud" (a new vocabulary
  test scans apps/docs/content for the Cloud's names), and stops claiming
  browser and My Cloud Live until the first real Cloud call. cloud-pro.md
  names the app in the busy line and points at S1's code. voice-mode.md
  says no Live call has been made end to end on a real Cloud yet.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Since #2118, every GET /healthz has read the one-row capacity snapshot
from D1. The query itself takes well under a millisecond, but the D1
primary sits in one region. Probes from other regions wait a
cross-region round trip, which took the path's production p50 from
about 12 ms to about 220 ms.

/healthz now reads that row through a per-data-center Cache API copy
that lives for 120 s. The status fields are still worked out against
the current time on every request. The scan, the quota-rejection
record and the clear each drop the copy in their own data center. A
cache error, or a zone without a cache, falls back to the D1 read.

Unchanged: the payload, the no-store header, ok/service, and every
allocation decision (capacityRejectionActive still reads D1). The one
behavior change is that the informational `capacity` object can trail
D1 by up to two minutes. The README says so.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every D1 query on the email OTP paths is a full round trip from the user's
edge to the database primary, and the queries run one after another.

- Sending a code ran the per-recipient limit and its 24-hour retention
  DELETE as two awaited queries. They now share one D1 batch: one round
  trip and one transaction, with the same limit decision.
- Better Auth deleted expired verification rows inline on every code check
  (a SELECT, then a DELETE). That cleanup is now off, and sign-in runs the
  same sweep as a single DELETE in ctx.waitUntil after responding. It is
  skipped for rate-limited (429) and failed (5xx) responses. A sweep
  failure is logged with the request id only and no longer fails sign-in.

Send drops from 6 to 5 serial round trips; sign-in drops from 10 to 8 for
an existing account (11 to 9 new, 9 to 7 for a wrong code). Expired codes
are still rejected by their expiresAt check. OTP length, expiry, attempts,
hashing, both rate limiters and the error mapping are unchanged.

New tests budget the round trips on both paths, keep both retention sweeps,
and cover a failing sweep and rate-limited sign-ins.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
GET /v1/installations/self/endpoint made three D1 round trips one after
another: the credential lookup, the batch that records last_used_at and
last_seen_at, then a separate SELECT for the endpoint row. The endpoint
read now goes last in the check-in batch, so the lookup makes two.

The SQL, the statement order, the auth check and the response are
unchanged, and requireInstallation behaves as before for every other
route. A batch is one transaction, so if the endpoint read fails, that
request's check-in now rolls back with it (the request is a 500 either
way).

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Three problems #2329 merged with, from the review's "Before merging #2329":

- Startup awaits retryComputerEngineMove(), which logs a failure and never
  rejects, so a failed saveConfig, saveBots or transcript write no longer
  stops the server from listening. Store.retireInstances builds its changes
  first and changes memory only after the save succeeds, so a failed save
  leaves every bot as it was and the next engines read moves it, with its line.
- Each conversation's settings are read before the bot changes. When the
  bot's own level goes back to Ask, a conversation that followed it keeps the
  level it had, and a moved one is checked against its own earlier level, so
  its line says when it is now Ask.
- The move passes canWorkOnCloud for the replacement engine. Without computer
  tools, an Auto bot stays on Auto and its conversations get no cloud pin; the
  line no longer claims the cloud computer and says how to get it back.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Desktop: read a held outbound action as its app and actions, like the phones

A small helper ports the phones' rules: "Send to Linear?" (or "Send on
your behalf?" for several apps), and one summary line that collapses
repeats with ×N and names at most three actions. Cards from older
computers without outboundRequest.calls are read back from the subtitle.

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

* Desktop: approval card and composer strip say "Send to Linear?" instead of the tool slug

A held Linear comment read "Kiwi wants to LINEAR CREATE LINEAR COMMENT" on
the card and "Approval requested · LINEAR_CREATE_LINEAR_COMMENT" above the
composer. Both now show the headline and summary line; the request text,
status line and buttons are unchanged. A Composio slug on a plain
permission card reads as words ("wants to create linear comment").

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Android: fold stream frames once per 50 ms window instead of once each

With five bots working the event stream carries about seventy frames a
second, and the session published a new state for every one of them (two,
counting the cursor). Each publish that reached a drawn frame re-derived the
whole home list. On an emulator with the 13-bot rig that kept the main
thread 37 % busy and a fifth of frames janky while bots streamed.

Frames now arrive in batches (inBatches, the iPhone's eventBatches): every
frame waits at most one 50 ms window and the batch is folded in one update.
What someone is waiting on closes the window early: a notification, a new
approval or question card, request opened/resolved, runtime errors, failed
or aborted turns and the Live call's line. Hello is always a batch of its
own. Batches are pulled, so a phone that fell behind folds its backlog in
one publish, and a transport failure is raised only after the frames read
before it, so a hello just before a cut still commits its cursor.

Three tests that read the state right after a token or screen frame now
wait out the window.

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

* Android: re-derive the home list only when the fleet changes, not on every token

Home keyed its folds (summaries, faces, approvals, tiles, Needs attention)
on the whole session state, which changes on every token and cursor move,
so each one re-walked every thread's transcript although none of them reads
the stream. They are now keyed on a snapshot that changes only with bots,
groups, transcripts, branches, edits or queues. The Updates pill, which
quotes the stream, still follows every publish.

Measured with the batching commit on the busy-fleet rig: list derivation
fell from about 150 to 27 ms of main-thread CPU per second.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Android: screens that were stuck in English now follow a Chinese phone (MOCA-291)

Some Android screens wrote their copy straight into Kotlin, or handed
English to localizedMobileCopy with no catalog entry, so a phone set to
Simplified or Traditional Chinese still showed English.

They now come from strings.xml: the Claude update card, voice note
controls, "via call", the routine report card, the webhook task bubble,
table row counts, the Appearance / Skin settings, queued-message and
snooze buttons, the chat header's call and thread labels, expand and
collapse states, and search hit labels. Copy that policy helpers pass to
localizedMobileCopy gains its missing entries: the Threads & Routines
headers and footers, "waiting for your answer", the overview error,
the connected-apps footer, the cloud computer notes, the Live call
disclosure, and the pairing screen's local discovery problems.

51 new strings with Simplified and Traditional Chinese, reusing the iOS
and desktop wording where it exists; the rest of the fixes reuse strings
the catalog already had. Skin names stay as written, like the desktop.
Live calls and browser control are left to PR #2296.

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

* Android: a test fails when a screen hands English straight to the UI (MOCA-291)

HardCodedCopyTest scans ui/*.kt for English literals in Text(...),
contentDescription, stateDescription and onClickLabel; for literals given
to helpers that run localizedMobileCopy (FormSection, ActionRow,
SettingsRow, header/footer/title = ..., error messages) that have no
catalog entry; and for policy constants shown on screen whose value the
catalog doesn't know. A short, commented allowlist covers the exceptions.
It also renders a few of the fixed strings on zh-rCN and zh-rTW phones.

The Live call and browser control screens are skipped while PR #2296,
which has its own guard for them, is open.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The composer mic treated SpeechRecognizer.ERROR_CLIENT as the user
letting go, so the button released immediately and the default
recognizer never ran. An empty result did the same, and exclusive
voice-communication focus stopped the session when the recognizer
took the microphone.

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Review fixes for #2342:
- Only a page main answers gets the updater bridge (this computer's, My
  Cloud's; while the saved sign-in restores, the saved "My Cloud" server).
  Pages built before #2342 read the bridge alone as "You're up to date".
- A downloaded update installs when the app quits on Windows and AppImage
  too, as on macOS; .deb/.rpm/pacman stay the person's to install.
- A failure only the person can fix (verification, disk space, permissions,
  a file in use) is shown even when nobody asked, and the hourly check stops
  downloading it again until they choose Try again.
- My Cloud's page hears "Restart to update" once the Cloud sign-in it loaded
  before has been restored.
- Settings and the profile menu name the app in "ready" ("OpenMausBot 0.1.97
  is ready — restart the app to apply"), in every language.
- The hand-off error no longer says "Download it again".
- The coordinator's download() is internal; every test starts a download the
  way the app does, through a check (Mac staging included).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Live calls, browser and computer control, and the Chief of Staff badge
wrote their copy straight into Kotlin, so a phone set to Chinese still
showed them in English (MOCA-291).

They now go through localizedMobileCopy and the string catalog like the
rest of the app: the call bar, banner and settings sheet (buttons,
labels, sections, minute choices, errors), every call status and end
notice from LiveCallRules ("Connecting…", "Call ended.", "Live with Ada"
and the "From your computer" / "already running from …" variants), the
browser control buttons, chips and errors, and "Open browser". Messages
set outside a composable move to named constants and are translated
where they are shown, so LiveCallRules and its tests are unchanged.

56 strings are added with Simplified and Traditional Chinese, plus
"Live with %1$s", "Try again — %1$s" and "%1$d minutes".
CallAndControlCopyTest fails when these screens hand English straight
to the UI, and checks a Chinese phone sees Chinese.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Gmail filter, vacation, forwarding and send-as actions need Google
permissions (gmail.settings.basic / .sharing) that Composio's default Gmail
connection never asks for. Google refuses them with 403
ACCESS_TOKEN_SCOPE_INSUFFICIENT, reconnecting cannot help, and the bot only
saw the raw error (MOCA-273).

- The connected-apps relay now adds a note to a tool result refused for a
  missing OAuth permission: which permission, that reconnecting will not
  add it, how to grant it with the person's own auth config in their
  Composio project (which OpenMausBot already prefers), and not to retry.
  Google's error is kept as it was; every other response is relayed byte
  for byte. JSON and streamed responses are both handled.
- docs/composio.md explains the permissions the default connection does
  not ask for and the steps to add them.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(server): automatic continuity — handoff + Continue thread on resumable turn deaths

When a turn ends without a final answer because it exhausted its model/tool
budget or died on tool errors, the work used to halt until a person (or a
chief-of-staff bot) noticed and re-dispatched. This makes the harness own the
loop, transparent to the bot:

- A resumable terminal now persists a structured handoff
  (~/.openmausbot/handoffs/cap-*.md) with the original task, ordered tool
  calls and outcomes, last assistant text, and resume instructions, and emits
  a new cap.exhausted RuntimeEvent (openai-chat driver).
- A bus subscriber in the harness auto-creates a 'Continue: <title>' task on
  the same bot, same model/approval/project, and starts a turn seeded with the
  handoff. Bounded: at most 5 continuations per bot per hour, never a
  continuation of a continuation, never the same source thread twice; a
  failure escalates with an activity message carrying the handoff path.
- Provider config errors (e.g. 'not a multimodal model', unknown model) are
  classified non-resumable and never loop.

Closes #2352

* feat(server): never end a turn on a failed tool call — feed it back in-turn

A failed tool op used to terminate the whole turn with tool_error even when
the model then produced a final answer (the toolFailed latch never reset), so
a single non-zero shell exit or denied tool killed the turn and the banner
required a human to re-dispatch. The runtime now pushes one corrective user
round ('re-run the failed operations ... do not fabricate results') and
accepts whatever the model answers, bounded by MAX_CHAT_ROUNDS. The tool_error
terminal class is gone; automatic continuity (cap.exhausted) still covers
budget exhaustion.

Updates the driver contract tests to the new outcome: a withheld tool still
returns ok:false in the transcript, but the turn completes ok.
* Delete the Computer engine: every turn runs on the bot's own engine

The Computer engine ran a whole turn on Boat's own agent (POST
/boxes/{id}/prompt). That agent has no AI sign-in on an OpenMausBot Cloud,
which is the hosted-desktop bug, and it was the one place Auto attached a
Boat. Decision D5 removes it from every install.

- Delete server/drivers/boatagent.ts and its tests, the "computer"/boxAgent
  default-fleet entry, the remoteAgent capability, the integrations.computer
  hand-off and every remoteAgent branch in startTurn, rooms, team computers,
  the panel preview and select_computer. Auto never reads the Boat account.
- canWorkOnCloud is one rule: an engine with computer tools can use a cloud
  computer, on Boat or a VPS. boatTurnLifecycleAction loses its Auto branch.
- One-time move: a bot (its model, each conversation's model, its backups)
  on the Computer engine moves to the engine a new bot gets, chosen by the
  ready rule now shared in default-model-selection.ts, and keeps Works on.
  Its conversation gets one plain activity line. A saved fleet entry for the
  engine is dropped, so it is never offered and the next save leaves it off.
- New Boats no longer receive this server's AI keys: they only existed so
  Boat's agent could sign in.
- Delete the omb-ask output protocol only that engine used; older cards keep
  their badge.
- Phones: Cloud VM routines need an available engine with computer tools,
  not a Boat agent; their footer copy says so (iOS catalog translated).
- Docs and fixtures no longer register or describe the engine.

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

* A cloud computer starts only when the bot uses it

A bot set to Works on: Cloud computer created or woke its Boat at the start
of every turn, even for "hi", and nothing put it back to sleep, so a plain
chat used plan hours. Choosing Cloud computer or opening the Computer panel
started it too.

The turn now mounts the cloud computer's tools and leaves the Boat alone.
The bot's first computer call creates or wakes it, through the same lazy
claim the VPS lease and the Local VM already use (mountBotBoat beside
mountBotVps, fired by the computer-control gate). One mechanism in a bot's
chat, a room, a pinned conversation and a cloud routine; the Computer
engine, whose whole turn runs on its Boat, keeps its eager attach.

- The gate waits on a start that is still running (up to 45 s a call, under
  Codex's 60 s tool limit) instead of calling it contention.
- A failed start writes the row a failed attach always wrote: the cause and
  the place's one next action; a select_computer pin is cleared.
- A Tool selection without the computer is refused before any Boat call,
  and select_computer no longer offers a computer the tools cannot reach.
- A signed-out engine never reaches a computer call, so it fails with the
  existing sign-in row and makes no Boat call.
- Each waitReady request ends with the 90 s budget, so a stalled relay can
  no longer hold a start until the 20-minute watchdog.
- The chat shows one line while it starts: "Starting {name}'s cloud
  computer. The first start takes about a minute." or "Waking {name}'s
  cloud computer…". It ends with the first frame or the turn.
- The Computer panel only looks. It says when the computer will start and
  offers Start it now / Wake it now; ensure-boat and its provision-on-open
  branches are deleted. A conversation select_computer moved to the cloud
  computer still shows its screen.

The fake Claude CLI can now use the cloud computer it was launched with
(FAKE_CLAUDE_USES_CLOUD_COMPUTER), so the end-to-end suites exercise the
first computer call instead of a dispatch-time attach.

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

* Computer engine removal: keep each conversation where it worked (#2329 review)

The one-time move now keeps every conversation working where it did. On
Auto, the removed engine always ran on the bot's own cloud computer, so a
moved Auto bot gets Works on: Cloud computer, and a moved conversation of
an Auto bot gets an automatic pin there. That happens only where this
server has cloud computers, the bot's backend is Boat, and no team
computer serves its section. The move also:
- puts each line in the conversation that moved, and claims a cloud
  computer only where one is still used;
- updates the new-bot defaults in memory as well as on disk;
- switches off an automatic-recovery backup that named the engine;
- applies the existing engine-switch rule to permission levels;
- runs again from describeInstances when no engine was available at start.

There is one engine picker again. selectReplacementModelSelection is
deleted, the move calls defaultSelection(), and selectDefaultModelSelection
takes the plan's ready-first rule, keeping the enrolled preference for
personal engines.

Boat and a self-hosted VPS follow one rule, so the obsolete VPS-only
checks are gone: computer.err.vpsEngine (all locales, through the locale
check), the panel's unreachable branch, and the picker's disabled VPS
option with its canUseVps plumbing.

On iOS and Android, a Cloud VM routine now checks the routine bot's own
engine, the rule the desktop and the server use. The footers say "bot" and
"cloud computer" and no longer ask for a Boat API key.

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

* A lazily started cloud computer reports its failures and keeps its place

Review fixes for the lazy cloud computer start:

- select_computer counts the cloud computer a turn starts on its first
  call as already selected, for "cloud" and "auto", so the request is not
  restarted or pinned elsewhere (pickComputer, server/computer-selection.ts).
- A room member whose cloud computer can't start writes one row under its
  name with the cause, reports it, and ends; a parked start registers its
  resume (roomTurnEnd, server/room-turn-end.ts).
- A lazy start's failure reaches onDispatchError, so a cloud routine's run
  records the cause instead of "interrupted".
- The Computer panel stops polling once a turn ends on any conversation on
  the cloud computer, and shows a spinner only while it really starts.
- The tools-off refusal gives one action.
- "Still starting" is said only once this turn holds the computer, and the
  whole start has a 150 s budget, ending a stalled start with one row.
- boat-included.test.ts budgets fit a request that ends with its budget.

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

* Vocabulary check: drop allow-list entries for the deleted Computer engine

Main's one-vocabulary check (#2337) allowed "Boat" in the Computer engine's
surface note and in computer.err.vpsEngine. This PR deletes both, so the
entries no longer match anything and the check's stale-entry guard fails.

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

* Computer engine removal e2e: the cloud turn makes its first computer call

With the cloud computer started lazily, a turn creates the Boat on its first
computer call, not at dispatch. The fake CLI now takes that screenshot the
way a model would, so the test still sees exactly one Boat per bot and no
call to Boat's own agent.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Each mac app is built for one CPU, but both carried universal copies of
cua-driver, the CUA SDK dylib and node module, and every Android Platform
Tools binary. An app can only run its own slice, so packaging now keeps
just that one:

- prepare-cua stages each arch dir with `lipo -thin` instead of copying the
  universal files. The darwin-arm64 and darwin-x64 npm packages ship the
  same universal natives, so the old "genuinely per-arch" comment was wrong.
- afterPack thins every Mach-O under android-platform-tools/darwin to the
  packaged arch, through a temp file and rename so a hard-linked staging
  source never changes. A binary without the app's arch fails packaging.
- The release gate now requires exactly the app's arch for cua-driver, both
  SDK natives and adb (same check as cloudflared). The speech helper still
  has to be universal.

Unsigned local build, same vendor inputs on both sides: the arm64 update zip
goes from 306.7 to 276.8 MB and the x64 zip from 315.2 to 287.8 MB. Windows
and Linux packages are unchanged.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Vitest's --shard deals out equal numbers of files, and the suite runs one
file at a time, so a shard takes the sum of its files. That put three of
the four slowest e2e files (delta-context, direct-coordination,
group-local-vm) in shard 4: about 24 minutes of tests on Windows against 13
to 16 for the other shards, and every PR's CI gate waited for it.

scripts/testing/duration-sequencer.ts extends vitest's BaseSequencer and
replaces only shard(): slowest file first, each to the shard with the least
recorded time so far, ties broken by path. The times are the median Windows
CI seconds per file in scripts/testing/vitest-shard-weights.json (every file
over five seconds and every e2e file); an unlisted file counts one second, or
the median e2e time if it is an e2e file. Every file still runs exactly once,
`--shard=n/4` locally still picks CI shard n's files, and each shard logs one
duration-sequencer line, with a CI annotation if the weights stop matching.
scripts/testing/update-shard-weights.mjs rebuilds the weights from CI logs.

The 4-shard matrix, timeouts, job names and the required CI gate are
unchanged; only a comment in ci.yml moves.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Follow-up to #2367, which merged before these review fixes landed.

- A bot whose Works on is Cloud computer, or a conversation the person
  pinned there, now gets its own line when the new engine can't use a
  computer: its turns there are refused, and the line names the one
  setting to change. The "no longer works on its cloud computer" line is
  for Auto only.
- A moved conversation's Auto-recorded cloud pin gives way when the new
  engine can't use a computer, as on a Works on change, so the next turn
  is not refused there once.
- Each move line is written on its own: one that fails is logged and the
  rest are still written.
- A turn that reaches a bot still on the removed engine starts the move
  again, so a server no app reads the engines from still moves it.
- When only the bot's own engine moves, its open conversation (on an
  engine of its own) is still told, including that the bot's permissions
  are now Ask while the conversation's stay as they were.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every MCP message the broker relayed first fetched the installation's
Composio Session again (GET /tool_router/session/{id}) and only then posted
the message, so each JSON-RPC call paid two serial Composio round trips.
Every request also queued a D1 write of last_seen_at.

The MCP relay now reuses a Session this isolate verified in the last five
minutes. Entries are keyed by the session_id D1 returns for the request and
capped at 1,000. Any non-2xx or failed upstream response drops the entry.
A message without an mcp-session-id (normally an initialize) that gets a
404 or 410 from a Session Composio has since deleted looks the Session up
again and is resent once, as the per-message lookup would have done; a 404
or 410 from the MCP URL means nothing was dispatched. With an
mcp-session-id the 404 passes through as before. Connector-management
routes still check the Session every time, and authentication and rate
limiting are unchanged.

last_seen_at is now written at most once per ten minutes per installation.
Nothing reads it more finely.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Delete the Computer engine: every turn runs on the bot's own engine

The Computer engine ran a whole turn on Boat's own agent (POST
/boxes/{id}/prompt). That agent has no AI sign-in on an OpenMausBot Cloud,
which is the hosted-desktop bug, and it was the one place Auto attached a
Boat. Decision D5 removes it from every install.

- Delete server/drivers/boatagent.ts and its tests, the "computer"/boxAgent
  default-fleet entry, the remoteAgent capability, the integrations.computer
  hand-off and every remoteAgent branch in startTurn, rooms, team computers,
  the panel preview and select_computer. Auto never reads the Boat account.
- canWorkOnCloud is one rule: an engine with computer tools can use a cloud
  computer, on Boat or a VPS. boatTurnLifecycleAction loses its Auto branch.
- One-time move: a bot (its model, each conversation's model, its backups)
  on the Computer engine moves to the engine a new bot gets, chosen by the
  ready rule now shared in default-model-selection.ts, and keeps Works on.
  Its conversation gets one plain activity line. A saved fleet entry for the
  engine is dropped, so it is never offered and the next save leaves it off.
- New Boats no longer receive this server's AI keys: they only existed so
  Boat's agent could sign in.
- Delete the omb-ask output protocol only that engine used; older cards keep
  their badge.
- Phones: Cloud VM routines need an available engine with computer tools,
  not a Boat agent; their footer copy says so (iOS catalog translated).
- Docs and fixtures no longer register or describe the engine.

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

* A cloud computer starts only when the bot uses it

A bot set to Works on: Cloud computer created or woke its Boat at the start
of every turn, even for "hi", and nothing put it back to sleep, so a plain
chat used plan hours. Choosing Cloud computer or opening the Computer panel
started it too.

The turn now mounts the cloud computer's tools and leaves the Boat alone.
The bot's first computer call creates or wakes it, through the same lazy
claim the VPS lease and the Local VM already use (mountBotBoat beside
mountBotVps, fired by the computer-control gate). One mechanism in a bot's
chat, a room, a pinned conversation and a cloud routine; the Computer
engine, whose whole turn runs on its Boat, keeps its eager attach.

- The gate waits on a start that is still running (up to 45 s a call, under
  Codex's 60 s tool limit) instead of calling it contention.
- A failed start writes the row a failed attach always wrote: the cause and
  the place's one next action; a select_computer pin is cleared.
- A Tool selection without the computer is refused before any Boat call,
  and select_computer no longer offers a computer the tools cannot reach.
- A signed-out engine never reaches a computer call, so it fails with the
  existing sign-in row and makes no Boat call.
- Each waitReady request ends with the 90 s budget, so a stalled relay can
  no longer hold a start until the 20-minute watchdog.
- The chat shows one line while it starts: "Starting {name}'s cloud
  computer. The first start takes about a minute." or "Waking {name}'s
  cloud computer…". It ends with the first frame or the turn.
- The Computer panel only looks. It says when the computer will start and
  offers Start it now / Wake it now; ensure-boat and its provision-on-open
  branches are deleted. A conversation select_computer moved to the cloud
  computer still shows its screen.

The fake Claude CLI can now use the cloud computer it was launched with
(FAKE_CLAUDE_USES_CLOUD_COMPUTER), so the end-to-end suites exercise the
first computer call instead of a dispatch-time attach.

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

* Computer engine removal: keep each conversation where it worked (#2329 review)

The one-time move now keeps every conversation working where it did. On
Auto, the removed engine always ran on the bot's own cloud computer, so a
moved Auto bot gets Works on: Cloud computer, and a moved conversation of
an Auto bot gets an automatic pin there. That happens only where this
server has cloud computers, the bot's backend is Boat, and no team
computer serves its section. The move also:
- puts each line in the conversation that moved, and claims a cloud
  computer only where one is still used;
- updates the new-bot defaults in memory as well as on disk;
- switches off an automatic-recovery backup that named the engine;
- applies the existing engine-switch rule to permission levels;
- runs again from describeInstances when no engine was available at start.

There is one engine picker again. selectReplacementModelSelection is
deleted, the move calls defaultSelection(), and selectDefaultModelSelection
takes the plan's ready-first rule, keeping the enrolled preference for
personal engines.

Boat and a self-hosted VPS follow one rule, so the obsolete VPS-only
checks are gone: computer.err.vpsEngine (all locales, through the locale
check), the panel's unreachable branch, and the picker's disabled VPS
option with its canUseVps plumbing.

On iOS and Android, a Cloud VM routine now checks the routine bot's own
engine, the rule the desktop and the server use. The footers say "bot" and
"cloud computer" and no longer ask for a Boat API key.

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

* Where a bot works says one thing, with one next action (placeView)

Subscribers could not tell where a bot works or what to do when its cloud
computer would not start. Each control said it its own way, failures passed
the relay's words through and ended "Set Works on to Auto", and phones got
whatever text the row had.

shared/place-view.ts is now the one state-to-view function for a place:
facts in (server kind, plan, own key or included, engine, sign-in, tool
selection, role, computer state, refusal, and where the place came from),
out { state, short, line, action | null }. The server words failed-turn rows
with it, in English, and every place control renders it in the reader's
language:

- Failed turns store place { state, params, source } beside English words
  that carry both the line and the action as a sentence, so iOS and Android
  (which read only the words) stay right. FailedTurnRow words the row again,
  with one button.
- Where the place came from decides the way on for a passing cause: Works on
  tries again, a person's pin is cleared (Simple: "Use <Works on>"), an
  automatic pin is cleared and the row says the conversation is back on Auto,
  a routine points at where it runs, a room member has no retry.
- The Admin's refusals are read by code first (subscription_inactive is Plan
  ended) and by their English until every refusal has a code; at once names
  the bots that hold the plan's cloud computers, from this app's own list.
  A refused start keeps the provider's status as boatStatus, so routes still
  answer 500.
- The Computer panel's cards, Simple grid, line under them, empty states and
  its own refused starts; the composer chip; the Access settings (now one line
  and "Open Computer panel"); the Boat/VPS picker is hidden on My Cloud.
- A User gets no action that changes a setting, and "Ask an Admin to change it."
- A desktop with a paid plan and no key reads "needs a Boat key" as "Cloud
  computers from your plan work for bots on My Cloud for now." (until D4).

Deleted: PLACE_ACTION and the 160-character cap, every "Set Works on to
Auto" on a cloud-computer problem, boatNotConfiguredMessage, the hard-coded
team-computer English, linuxAutoDescription, and 23 locale keys the views
replace (removed from every pack and from source-hashes.json). New keys whose
English matches an already translated string carry that translation; hashes
accepted with scripts/generate-locale.mjs --accept.

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

* A lazily started cloud computer reports its failures and keeps its place

Review fixes for the lazy cloud computer start:

- select_computer counts the cloud computer a turn starts on its first
  call as already selected, for "cloud" and "auto", so the request is not
  restarted or pinned elsewhere (pickComputer, server/computer-selection.ts).
- A room member whose cloud computer can't start writes one row under its
  name with the cause, reports it, and ends; a parked start registers its
  resume (roomTurnEnd, server/room-turn-end.ts).
- A lazy start's failure reaches onDispatchError, so a cloud routine's run
  records the cause instead of "interrupted".
- The Computer panel stops polling once a turn ends on any conversation on
  the cloud computer, and shows a spinner only while it really starts.
- The tools-off refusal gives one action.
- "Still starting" is said only once this turn holds the computer, and the
  whole start has a 150 s budget, ending a stalled start with one row.
- boat-included.test.ts budgets fit a request that ends with its budget.

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

* Vocabulary check: drop allow-list entries for the deleted Computer engine

Main's one-vocabulary check (#2337) allowed "Boat" in the Computer engine's
surface note and in computer.err.vpsEngine. This PR deletes both, so the
entries no longer match anything and the check's stale-entry guard fails.

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

* Computer engine removal e2e: the cloud turn makes its first computer call

With the cloud computer started lazily, a turn creates the Boat on its first
computer call, not at dispatch. The fake CLI now takes that screenshot the
way a model would, so the test still sees exactly one Boat per bot and no
call to Boat's own agent.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#2354 changed two things that turned main red (15 tests in openai-chat-tools,
openai-tools.e2e and openai-boat.e2e) and that are unsafe when a person or
the approval policy denies a tool call:

- The OpenAI-compatible driver answered a failed or denied tool op with a
  user message telling the model to "re-run the failed operations", then
  marked the turn ok whatever it said. A denied action got retried, and a
  confident "done" counted as success. The turn now ends with tool_error
  again, as the tool contract tests require.
- Automatic continuity treated tool_error as resumable and started an
  unattended "Continue:" thread. That error includes denials, so a "no"
  would spawn a continuation. Only a turn that ran out of steps ("cap")
  continues by itself now.

#2354's own tests now assert this: the driver test checks there is no
corrective round, the turn ends not-ok with tool_error, and no cap.exhausted
is emitted; classifyContinuable returns null for tool_error. Mutation-checked:
restoring tool_error as continuable fails both.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Remove ios/, android/ and their CI jobs, scripts and verification docs.
- scripts/gen-mascot-bodies.ts writes the Swift and Kotlin catalogs only
  when given --swift / --kotlin output files.
- scripts/capture-companion-fixtures.mjs takes --out <dir>.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Server: answer on a later start without waiting for every engine CLI

Before the server listened, it read every engine (each CLI probed with
--version, --help, auth status and so on, each up to an 8 s timeout) to
pick the engine a new bot gets. Only the first-run starter bot needs that
answer, so every later start waited for the slowest engine CLI for nothing.

A later start now listens at once and runs the same read behind it. The
first run still waits, so the starter bot is made on the same engine.

That read is also where the server learns what each engine supports (a
Claude CLI's version decides whether a session is kept across a teammate's
result, and its --help whether --autocompact is passed). So turns, room
turns and the work queued for the start (queued sends, routines, a previous
run's handoffs) wait for it, exactly as they did when the server listened
only after it.

Overlapping reads (the server's own and the app's first engine list) now
share one `claude --help` call instead of spawning two.

Tests: a later start answers /api/health while `auth status` is held, and
a direct and a room turn sent then wait for the read and still pass
--autocompact; a first run still makes its starter bot on Claude; two
overlapping snapshots run --help once. The fake Claude CLI gains
FAKE_CLAUDE_PROBE_LOG and FAKE_CLAUDE_HOLD_{VERSION,HELP,AUTH}.

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

* Server: a later start's restored queued words still run first

Review fix. The listen callback deferred the queued-send drains until the
engines read at start settled, so a message sent to an idle conversation
during that read started a turn at once and the words restored from the
previous run ran after it, in the reverse of the order they were written.

The drains run at listen again, as on main. Their turns already wait for
the read in startTurn and runGroupMemberTurn. Only routines, memory upkeep,
the leftover-handoff drain and the delegation sweep still start after it.

The room-turn wait moves before the /learn claim, so the read counts as
setup, as the comment there says.

Test: a later start with a restored queued line and `auth status` held, then
a new message to the same conversation; the restored line runs first.
Putting the drains back after the wait fails it with the order reversed.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Several readers decoded each chunk of a stream on its own. When a
chunk boundary fell inside a multi-byte UTF-8 character, both halves
became U+FFFD.

- permission-proxy.ts: decode the CLI's stdin and the broker socket as
  streams. An approved Write over about 64 KB with non-ASCII text came
  back to the CLI as a damaged updatedInput, and the CLI wrote it.
- drivers/claude.ts: decode the permission broker socket as a stream.
- harness/http.ts: collect the body as bytes and decode it once. Every
  JSON body larger than one read was at risk (MEMORY.md saves, team
  import and export).
- fleet-agent.ts: same body fix, measure the limit in bytes, and stop
  holding bytes once the body is over the limit.
Every bot's turn mounted the seven team tools that only a Chief of Staff
can use (create_bot, list_team_setup, propose_team_setup,
propose_bot_deletion, create_room, manage_room, retry_thread), plus
for_bot_id on propose_profile and propose_model. The server refuses all
of them for any other bot, but their schemas were still sent with every
model request of every ordinary bot: about 9.5 KB of the agents tool list.

The harness now tells the agents proxy whether the bot is a Chief
(OMB_CHIEF_OF_STAFF), and the catalog hides those tools and that
parameter unless it is "1", the same way it already hides the voice,
shared-computer and skill tools a turn cannot use. A Chief's tool list is
byte-identical to before: every existing golden is unchanged. Every
non-Chief profile is 9,473 bytes smaller, and the wire test now pins both
roles. Routine for_bot_id stays for everyone, since any bot may target a
reachable peer's routine.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
posthog-js was imported statically by src/lib/analytics.ts, so the whole
library (about 240 kB) sat in the single startup chunk and was parsed and
evaluated before first paint on every launch, including installs that have
analytics switched off and never call init().

initAnalytics() now imports posthog-js on demand. track() and
identifyEmail() calls made while the chunk loads are queued and replayed
after app_opened, in order; calls before initAnalytics() are still dropped.
Switching analytics off during the load empties the queue (including a
queued identify) and the client is never initialised. If the chunk fails to
load, or the library throws while starting, the returned promise still
resolves (no caller awaits it, so a rejection would go unhandled), the
queue is dropped and analytics stay off. Switching the setting off and on
calls import() again; whether a failed chunk then loads is up to the
browser.

init() also sets disable_surveys. The app has no survey UI and the project
has surveys off, but posthog-js treats the remote config's `surveys: false`
as "not undefined" and still fetched static/surveys.js on every
analytics-on launch.

Event names, properties, init options otherwise, the opt-out key and the
App.tsx call site are unchanged.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A My Cloud customer could not sign in to Grok: Grok Build's only sign-in
was `grok login` in a terminal, the Cloud image had no Grok CLI, and the
Cloud's sign-in screen offered only Claude and ChatGPT.

- One device-code sign-in for every CLI that has one: the Codex
  controller becomes server/drivers/device-auth.ts plus a DeviceSignIn per
  CLI. Codex keeps its behaviour; its tests are unchanged.
- Grok Build runs `grok login --device-auth` with the same binary and
  environment as its turns, confirmed by the driver's own auth.json check
  (now GROK_HOME-aware). The ACP core offers it on the existing
  /api/instances/:id/auth routes.
- Page and code rules live in shared/device-sign-in.ts, used by the server
  to parse and by the app to check again.
- The app shows it in Settings, the model picker, failed turns (the
  existing signed-out rule) and as a third choice on My Cloud's sign-in
  when the Grok CLI is there. Cancel, timeout and failure each end in one
  plain line and "Try again". `grok login` stays behind "Prefer a
  terminal?" where a terminal runs on that machine.
- Where Grok cannot run and nobody there can install it, one line and one
  action: use an xAI API key.
- deploy/fly and deploy/local install Grok 1.0.41 with xAI's installer,
  pinned; an unreachable installer fails the build.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#2204 was stacked on #2195 and merged 11 seconds after it, so it merged
into feat/glass-scroll-chrome after that branch had already landed: none of
its changes ever reached main, and Simple mode still showed Routines,
Triggers and threads. This applies #2204's squash commit (4f9976f75) to
today's main:

- slim scrollbars (2px line, 6px pill under the pointer)
- Simple mode: no threads (useShowThreads = stored choice in Advanced only),
  no Routines/Triggers rows, rename only from the bot's settings
- Apps beside the profile row; the chat header's bot centred as one pill
- the sidebar foot's glass reaches 24px past its edge
- the guided tour skips steps whose controls Simple mode hides

Conflicts with main since: MessagesList now reads useChatRows() and the
empty-chat title moved into EmptyChat, so the Simple-mode "no in-place
rename" rule moves there too; #2210 deleted SidebarMoreMenu, so its import
is dropped from the footer test. Two thread tests added on main since
(Sidebar.rows, Sidebar.pinned-circle-threads) open thread lists, an
Advanced surface now, so they render as Advanced like the existing thread
tests.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Anyone who can reach the receiver can send requests with a wrong
secret, and the rate limit only applies after the secret check. Each
such request appended a rejected attempt to the 2,000-entry history
that all webhooks share, then rewrote and fsynced webhooks.json on the
server's event loop. 2,000 bad requests pushed every real delivery out
of the history.

Each webhook now keeps one rolling record of wrong-secret requests. It
is updated in place under the same id, so clients replace it instead
of adding a row, and it is saved with the next real change instead of
on every request.

A malformed escape in a URL secret threw from decodeURIComponent and
answered 500. It now counts as a wrong secret and answers 401.
The desktop waits on pollServerIdentity before it opens the window, and
every recovery restart waits on it too. After each refused /api/health
probe it slept a flat 500 ms. The server only listens a few hundred ms
to a few seconds after fork, so the first probe is always refused and the
app noticed a ready server up to 500 ms late (about 250 ms on average).

Poll every 25 ms for the first 5 s of the wait, then fall back to the old
500 ms interval. Boots slower than 5 s are probed exactly as before, and a
boot that never listens makes about 300 probes over the 60 s budget
instead of 120. The identity check, the foreign-owner and timeout rules,
the per-fetch abort at the remaining deadline and the callers are
unchanged.

Tests (written first): a server that listens 215 ms in is noticed within
one fast poll, the schedule is fast inside the window and slow after it,
and each probe's abort timer is still the remaining boot budget.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A person asked how to give a QA bot memory between routine runs: every run
started fresh. Routines already support continuity (each run starts with the
previous run's report, up to 2,000 characters), but only a bot could turn it
on when proposing a routine. The editor had no switch and the docs never
mentioned it.

- The routine editor shows "Remember the last run" under the instructions, in
  Simple and Advanced mode, for repeating routines one bot runs. It is hidden
  for one-time routines and team goals, which can't carry a report.
- Saving sends continuity with the routine; turning it off saves false.
- The bot's routine tool now says when to use it (QA passes, monitoring,
  follow-ups), and the routines docs describe it.

Tests: the switch is shown off or on from the routine, hidden for a one-time
routine, and its value is saved on and off. Mutation-checked: dropping
continuity from the request, or showing the switch for one-time routines,
fails a test.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every warm chat turn rewrote nine files through writeFileAtomic, each with
an fsync that macOS turns into F_FULLFSYNC (about 4 ms on the event loop).
Four of those writes put back exactly the bytes already on disk (the same
resume cursor, the same context model, the same managed skill links, the
same hook bearer), and one is a derived cache whose loss is already
tolerated.

- atomic.ts: add writeFileAtomicIfChanged, which skips the write only when
  the target is already a regular file owned by this user, no more open
  than the requested mode, holding exactly these bytes. It compares against
  the disk (O_NOFOLLOW | O_NONBLOCK, fstat and read on the same fd), never a
  remembered copy, and any doubt falls through to the normal write.
  writeFileAtomic gains durable: false, which keeps the temp file and
  rename but skips the fsync.
- store.ts: saveBots and saveGroups use the if-changed variant. Events are
  emitted exactly as before.
- skills.ts: the managed-links record uses it.
- drivers/claude.ts: the hook token file uses it without fsync (the bearer
  only lives in memory); the cost history skips the fsync.

Fsyncs per warm turn on the fake-engine fixture go from 9 to 4.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Renderer: load Settings, Routines and other on-request screens after launch

Thirteen screens that open only when asked for (Settings, Routines, the Team
map, the Computer panel, bot settings, New bot and the rest) were static
imports of App.tsx, and TeamDialog pulled New bot and the whole routines
calendar in again through the sidebar. Every launch parsed and ran all of
them before the first paint.

They now come from src/components/lazy-screens.tsx, each its own chunk,
fetched once the launch is idle. A fetched screen renders in the same commit
as the click, as before. It deliberately avoids React.lazy: lazy() suspends
on every first render and React holds the commit after a fallback for up to
300 ms, and it rethrows a failed import with no error boundary above it. A
screen opened before its chunk arrives renders nothing until it does; a
failed fetch leaves only that screen empty and retries while it is open.
A window opened straight onto Settings (?desktop-settings=...) fetches
Settings at once.

The launch chunk drops from 4,659 kB to 3,778 kB (1,310 to 1,086 kB gzip).

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

* Renderer: a screen whose chunk cannot load says so and offers a reload

Chromium, and so Electron, keeps a failed dynamic import in its module map
for the life of the page: every later import() of that chunk rejects at once
without asking the network again. The retry with backoff therefore never
fetched anything, and a single failed idle prefetch (a server restart, a
flaky network) left that screen silently dead until the page was reloaded.

A failure is now logged with the screen's name, and a screen opened after
one shows a small notice ("This screen couldn't load. Reload the window to
open it.") with a Reload button instead of nothing. Each open still asks
once more, which recovers in a browser that does fetch again; there is no
polling and nothing reloads on its own. Tests now model the cached failure
(load keeps rejecting) and assert the visible notice.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Routines made in a chat posted their result card into that chat, and routines
made in the editor or API got a new "<name> · Results" thread. Users looked
for a new thread in the chat menu and found nothing, or found an extra one.

Every run now reports into the routine's bot's main thread: its oldest open
conversation, since bot.threadId is only the UI selection. Each run still
executes in its own hidden task, so Run logs and Open run keep working. A
thread chosen in "Post results to" still wins, and its default option now
reads "The bot's main thread".

Edge cases:
- A routine still pointing at an automatic "· Results" thread that nobody
  renamed moves to the main thread on its next run. The old thread stays.
- A deleted or archived main thread falls back to the next oldest open
  thread. Deleting a bot's last thread already creates a fresh one.
- A routine a teammate (such as a Chief) asked for reports to the bot that
  runs it, not to the chat that held the card.
- On a Cloud home, a routine written by someone other than the owner keeps
  its own results conversation, so guest output never reaches the owner's
  main thread.
- Runs from before this change keep the destination they started with.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Each in-chat connection card now carries a plain `text` line naming the
app (and the account alias, when there is one), so a client that does not
know the `connector` kind still shows something. The desktop sidebar
previews a card as "<app> · <state>" in the reader's language instead.

Split out of #2357 and #2361.

Co-authored-by: aivsomkar <aivsomkar@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#2403 made Settings and twelve other screens load as their own chunks, but
its CI was stopped before the Windows shards and the renderer smoke ran, so
two of its checks broke on main:

- The renderer smoke clicked "API keys" the moment it clicked Settings.
  Settings now paints once its chunk arrives (at once when the idle prefetch
  has already fetched it, a moment later when it has not), so the button was
  not there yet and the eval threw "Cannot read properties of undefined
  (reading 'click')". The step now waits up to 10 s for the tab, then clicks it.

- The launch-bundle test in lazy-screens.test.ts named modules by slicing
  the joined path, which keeps Windows' backslashes: "components\Sidebar.tsx"
  never matched "components/Sidebar.tsx", so the test failed on
  windows-latest, and the check that deferred screens stay out of the launch
  path could never match a file there. Module names now use forward slashes
  on every platform.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#2396 drew the table search placeholder as placeholder:text-ink-secondary/70.
src/lib/faded-text.test.ts forbids fading the secondary ink with an opacity
modifier (/70 measured 2.6-3.1:1 on the light skins, under WCAG AA) and
fails main CI on it. Quiet text has its own checked token, ink-tertiary,
which other placeholders already use.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(plugins): add Whop browser sign-in integration

* refactor(plugins): connect Whop directly from the apps grid
Two merges turned main red without touching each other:

- #2386 added "Use it for recurring work that builds on last time, such as
  QA passes, monitoring or follow-ups." to the routine tool's continuity
  description but did not regenerate the tools/list goldens, so
  agents-catalog-wire.test.ts failed on every OS. The goldens are
  regenerated with UPDATE_AGENTS_CATALOG_GOLDENS=1. The only change is that
  sentence, in the create and update schemas (+194 bytes per profile that
  mounts the routine tools, tool lists unchanged), well inside the 2% budget.

- #2404 made every routine report into its bot's main thread, including a
  routine another bot asked for, but server/index.test.ts still expected
  that teammate routine's failure notice and card in the proposer's chat.
  The test now expects them in the teammate's main thread, checks the
  proposer's chat gets nothing, and that the teammate's thread is unread.
  With #2404's routing reverted the updated test fails.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The server image copied the per-commit app files before installing
agent-browser and its Chrome, so every push rebuilt the 256 MiB browser
layer under a new digest. The Cloud home image was built on top of that
per-commit server image with no layer cache, so its engine, Grok and
Caddy layers were new on every push as well. Several layers also carried
files nobody runs: the engine install's npm cache (removed in a later
step, so still shipped), npm and compile caches from the agent-browser
install, six other platforms' agent-browser binaries, a second copy of
Caddy, and a second copy of every /app file from the recursive
chown/chmod.

- Dockerfile: stages edge, build, runtime (apt libraries, agent-browser
  and Chrome), cloud-home and server (still the default target). Each
  image adds its engine CLIs and then the app files on top of runtime;
  the Cloud home's pinned Caddy and pinned Grok sit beneath its engines.
  Grok's install is moved as it was, with its throwaway home removed in
  the same step. Each npm install removes its own caches in the same
  step. Only the native agent-browser binary is kept, and the build stops
  if the global link is not a native Linux binary. Caddy is copied once,
  without its file capability. The Cloud home app files are root's from
  the copy, and a find check fails the build if anything under /app or
  Caddy is not root's or is writable by others. HOME=/data is set after
  the last build step, so no build step writes into what a fresh volume
  holds.
- deploy/fly/Dockerfile is replaced by the cloud-home target.
- docker.yml: the smoke builds --target cloud-home and scans the saved
  layers (no build caches or installer homes, one copy of each file, one
  agent-browser binary, Caddy root's without capabilities, one root-owned
  Grok). Publish resolves the Chrome for Testing Stable and the engines'
  npm latest and passes them as cache tags (today's date when a lookup
  fails), and the home build gets a gha cache scope of its own.
- docs/self-hosting.md: a source build now keeps the Chrome it installed
  first across code changes; rebuilding with a new CHROME_CACHE_TAG picks
  up the current one.

Runtime config, users, ports, volumes, health checks and entry points
are unchanged; Chrome and the engines are still the latest at build
time, and Grok stays pinned at the same version.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A bot's MCP tool calls were cut at a hard-coded 10-minute ceiling
(chat-mcp-tools.ts CALL_MS), with no config or env override, so a long
host-shell run (xcodebuild test, gradle) tripped "MCP request timed out;
execution outcome may be uncertain" exactly at the budget it was given.

- config.ts: mcp.callTimeoutMinutes (1-60, default 10) + mcpCallTimeoutMinutes()
- contracts.ts: SendTurnInput.mcpCallTimeoutMs; index.ts sets it per dispatch
- chat-mcp-tools.ts: mountChatTools(..., callTimeoutMs) replaces CALL_MS
- Settings > General: MCP calls card (mirrors Room turns, save-on-blur)
- locales + source-hashes; parser + config + chat-mcp-tools + store tests
CopyButton showed success even when navigator.clipboard.writeText rejected,
and the desktop app denied clipboard-sanitized-write to the active paired
remote server.

- useCopyFeedback awaits the write, reports copied/failed, bounds a hung
  write with a timeout, ignores re-entrant clicks while busy, clears its
  timers and never updates state after unmount. Blank text does nothing.
- Local Electron falls back to a narrow clipboard:write-text IPC (plain text,
  size-capped, localOnly) only when the Web Clipboard API fails or is absent.
  Exposed as window.ogb.copyText; not in REMOTE_SAFE, no ipcRenderer exposure.
- appPermissionHandlers gains activeRemoteOrigin: the main window's main
  frame at the exact active remote origin may do clipboard-sanitized-write,
  re-evaluated on every request. clipboard-read and everything else stay
  denied for remote pages; the Cloud microphone rule is unchanged.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
The packaged desktop forked Resources/server/index.js with no compile
cache, so every launch and every automatic server restart parsed and
compiled the whole 5 MB bundle again.

The desktop now forks a small bootstrap beside it, desktop-entry.mjs.
The bootstrap turns on Node's on-disk compile cache for the server
process only, under userData/server-compile-cache, then imports
index.js unchanged. It removes its environment variable before the
server runs, so nothing the server spawns inherits a cache. About 10 s
after start it writes new entries (a Windows kill skips Node's
exit-time write) and removes other Node versions' cache folders that
no launch has used for a day. A cache it cannot use never stops the
server.

The cache is off where the app's path changes on every launch
(AppImage, macOS App Translocation), because Node keys entries by path
and they would never hit. A server tree without the bootstrap still
forks index.js.

The packaged-server smoke now starts the bootstrap twice on one cache
with the real bundle, and the Windows and Linux packaging checks
require the new file.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Threads follow their bot's model; a thread whose model can't run uses the bot's; Switch them too

A thread no longer copies its bot's model. It follows the bot (no model of
its own) unless a person picks one in that thread; picking the bot's own
model is following it. Creating a thread, team setup, propose_model, a
default change from a thread, team import and the hosted reconcile stop
copying, and no change of the bot's model pins its threads any more. A
follower that moves to another engine under a level that engine would have
to confirm goes back to Ask, as on every engine switch.

One-time cleanup at load: a thread's model equal to its bot's was a copy and
is cleared; a different model stays. A marker in the data directory keeps it
to once.

At a turn's start (startTurn, so direct messages, routines, delegations,
webhooks and queued follow-ups alike), a thread's own model that can't run
(engine gone, disabled, unavailable or refused, or the model gone from its
catalog) gives way to the bot's model: the thread follows the bot from then
on and one plain line says so. A signed-out engine gives way only when the
bot's model is on another engine that can run; on the same engine the
sign-in failure stays. The rule reuses readyToRun and the saved-choice
catalog check (offersSelection); the registry keeps each engine's last read
so the check never waits on a CLI.

The wire keeps sending the effective model, plus followsBotModel. The bot's
model setting shows "{n} threads use their own model." with Switch them too
(POST /api/bots/:id/threads/follow-model, a route module). A thread's
picker offers "Use {bot}'s model" and marks the bot's model.

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

* Keep a thread's model its catalog doesn't list; update tests that pinned copies

A model missing from its engine's catalog is no longer a reason for a
thread's own model to give way: model IDs are free-form at the API boundary
and engines run IDs their catalog does not list (the context-compaction e2e
picks claude-sonnet-4-6[1m]) or learn the catalog only when a turn starts.
The saved-default check is back as it was.

Tests that asserted the old copy-and-pin behaviour now assert that threads
without a model of their own follow the bot (store, tasks, independent
threads, team setup, bot continuity, Full/Custom provider switch), that a
self-opened thread on a removed engine runs on the bot's model with one
line, and the hosted fixture seeds a prior release's copies without the
cleanup marker.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A saved key counted as Ready as soon as it existed, so a mistyped or
revoked key looked fine in Model providers and the picker until someone
pressed Test. Now, when a real use of the key is refused as a bad key
(HTTP 401, or a 400/403 whose body says the key is invalid or revoked),
the OpenAI-compatible engines on that key and endpoint report
authenticated: false with a reason, and the API-key card says the
provider rejected the saved key. Rate limits, quota, billing and model
access errors leave it Ready. A failed Test sets the mark too.

The mark clears when the key is saved or cleared, and when a later
request or Test with the same key succeeds. It lives in memory, keyed by
base URL plus a SHA-256 fingerprint of the key; the key itself is never
stored or logged. A change pushes a config event so the renderer
refetches instances without a restart.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A bot can link a file it wrote outside the conversation's workspace. The
server correctly refuses to serve it, so clicking the link only showed "the
linked file is outside this conversation's workspace" and the person had no
way to find the file.

The refusal now carries the code outside_workspace. For that case alone, the
local desktop app shows a Show in folder action on the inline link and its
attachment chip. Electron main checks the path (absolute, local, no URL or
network share, exists) and passes it only to shell.showItemInFolder. It never
opens, reads or serves the file. A paired remote client or a browser is not
on the computer that holds the file, so it shows the full path as selectable
text instead. The workspace guard for open and download is unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A key engine (OpenAI, OpenRouter, xAI, Mistral, Cerebras, other
OpenAI-compatible) has no CLI, so Settings → Model providers listed it only
while it was unavailable. Saving any key, a mistyped one included, made the
card vanish, and the picker's only key control said "Add API keys". People
read that as "the key can't be edited".

- Model providers keeps a key engine listed once its key is saved, with a
  "{name} uses your API key" card and a Change key button that opens
  Settings → API keys. Remote clients get the "on the computer running
  OpenMausBot" text instead; Company-managed keys get no card.
- The picker's keys shortcut says "Add or change API keys" once a key is saved.
- Advanced settings start each section at the top. Before, Change key landed
  on API keys at the previous page's scroll offset, below the OpenAI row.

New English strings only, so existing translations stay current.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
serveStatic sent no cache-control, ETag or Last-Modified, so a browser
could not cache anything it served. Every Cloud, self-hosted or remote
browser load, reload and new tab downloaded the whole content-hashed
bundle again (about 1.3 MB gzip for the entry script alone).

Files under /assets/ now get `public, max-age=31536000, immutable`. Vite
puts a content hash in every file name there, so a URL never changes.
index.html and the SPA fallback get `no-cache`, so a new build shows up
on the next load, and a missing chunk that falls back to the page is
never cached under the chunk's URL. Other root files, status codes,
PAGE_HEADERS and routing are unchanged.

The test checks the asset, page and missing-chunk headers, and that
public/ has no assets/ dir (an unhashed file there would be pinned).

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Group turns stop at the shared Settings limit. A conversation can keep its own ceiling, such as 30 minutes, while the others stay on the default. Direct chats still use the inactivity watchdog.
* fix(sidebar): a search no longer leaves every bot's thread list open

Typing in the sidebar search opened the thread list of every bot and room
it listed, and clearing the search left them all open, now showing every
thread. One search exploded the sidebar for good, and the only way back
was to close each bot by hand (MOCA-293). A bot listed only for its name,
role or last message also opened, showing nothing or all of its threads.

A new useSearchDisclosure hook keeps each row's own open state apart from
the search. A search opens only the rows that have a matching thread or
folder to show; a row toggled during the search keeps that until the
query changes; clearing the search puts every row back the way it was,
including rows that left the list while the search ran. Bot rows and
room rows both use it.

The expansion test that reached an open list through a search now opens
it with a reveal, as a person landing on a thread does.

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

* fix(sidebar): preserve selected room disclosure across search remounts

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Store: import writeFileAtomic again, so main type-checks and the images build

#2397 narrowed store.ts's import to writeFileAtomicIfChanged. #2401, written
against the older file, writes its one-time "model copies cleared" marker with
writeFileAtomic. Each PR type-checked on its own; together main fails tsc
(store.ts:937 TS2304), which breaks build:server and every image build since.
The marker keeps the durable write it was written with.

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

* Locales: drop the two room-turn translations whose English changed (#2381)

#2381 changed the English for settings.roomTurns.subtitle and .help without
refreshing the nine translated packs, so the locale check failed on main.
Those packs fall back to English for these two strings until they are
retranslated.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A done-after-failure ends a turn with tool_error (#2378) and tool_error is
not auto-continued, so a routine tool failure (a non-zero host-shell exit,
a bad argument) halts the whole turn until a person re-dispatches it.

- config.ts: toolErrors.correctiveRounds (0-5, default 0) + getter
- contracts.ts: SendTurnInput.toolErrorCorrectiveRounds; index.ts sets it
- openai-chat.ts: feed a corrective round back at the done-after-failure
  check, bounded by the configured cap and only when the turn recorded no
  denial (denials.length === 0) — a person's "no" is never retried
- Settings > General: Tool errors card (mirrors MCP calls, save-on-blur)
- locales + source-hashes; parser + config + openai-chat + store tests
- McpCallTimeoutSettings: state.config?.mcp?.callTimeoutMinutes (config may
  exist without the mcp section; the old optional chain only guarded config)
- ToolErrorRecoverySettings: same null-safe read for toolErrors
- SettingsModal: General section keywords now include tool errors, corrective
  rounds, mcp calls, timeout, call length, retry, tool calls
- en/zh help text now states that 0 preserves the existing tool-error path
* Settings no longer crashes when the server sends no MCP call timeout

#2406 typed ConfigStatus.mcp as always present and read
state.config?.mcp.callTimeoutMinutes, so a config without an mcp section
threw "Cannot read properties of undefined (reading 'callTimeoutMinutes')"
and took Settings > General down with it. That config is real: a remote
server or Cloud older than the setting never sends mcp, and the same
TypeError failed the 4 Simple-mode Settings tests on all three OSes.

- ConfigStatus.mcp is optional, so the compiler flags any unguarded read
- one reader, mcpCallTimeoutMinutes(config) in src/lib/mcp-call-timeout.ts,
  falls back to the server's 10-minute default (DEFAULT_MCP_CALL_TIMEOUT_MINUTES)
- the card uses it for the shown value and for the value after a save; the
  save still sends { mcp: { callTimeoutMinutes } }

The server side already guards every read (cfg.mcp?.callTimeoutMinutes ?? 10,
and the drivers default an absent mcpCallTimeoutMs).

Tests: McpCallTimeoutSettings.test.ts renders the card with no mcp, no
config, and a confirmed value, and saves against a new and an older server;
helper unit tests in mcp-call-timeout.test.ts.

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

* Main green on Windows: check out the Dockerfiles with LF

The image tests from #2407 read the Dockerfile's instructions line by
line and join a line ending in "\" to the next. GitHub's Windows runners
check files out with CRLF, so every continued line ended in "\r", nothing
joined, and Windows vitest failed seven checks that pass on macOS and
Linux: the layer order (expected 2 server matches, got 1), the npm cache
check, Caddy's and Grok's place beneath the engines, the healthcheck
contract, the Chrome cache key, and the Cloud home's untrusted-file check
in server/cloud-home.test.ts. Grok's install from #2391 already sits in
the stable layers beneath the engines and the app; nothing in the images
or the tests changes.

Pin Dockerfiles to LF in .gitattributes, as the repo already does for
other files that tests read byte for byte.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The sidebar animates a bot's face only while it works, is unread or
plays a motion beat (#425). The open chat's header face and the 16px
faces on bot-to-bot chips in transcripts had no such gate, so an open,
idle conversation kept the mascot loop running at display rate, once
per chip in the visible history.

The header now animates while the bot is busy or a motion beat plays;
transcript chips show the resting face, as the peer and cluster labels
already do.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Add a Tools layout row to Settings > Appearance: Rows (the current footer,
default) and Toolbar. Toolbar lays the same places out as one horizontal row
of icon buttons in Comfortable and Compact density, so every place stays one
click away with a tooltip, an aria-label, aria-current on the active place,
the routines failed-run attention dot and the guided-tour anchors. Icons
density is unchanged in both layouts, and Rows renders exactly as before.
There is no collapse, no Tools header and no saved collapse state, so the
attention dot is never hidden.

The choice is one shared renderer store like density: it persists under
openmausbot.sidebarToolsLayout across restarts, stays live between Appearance
and the sidebar, and sits beside sidebarDensity in both backup client-state
allowlists.

Tests cover the store default and persistence, both layouts in Comfortable
and Compact, the attention dot seen and unseen, Team map only in Advanced,
Icons density ignoring the layout, the rows markup staying as it was, the
appearance search keywords and the backup allowlists.

Co-Authored-By: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-Authored-By: GLM-5.3 (Architect) <noreply@z.ai>
Two bugs in #2354's automatic continuity, which kept main CI red
(key-rejected.e2e) and blocked v0.1.98:

- classifyContinuable matched any "limit reached", so a provider's 429
  "Rate limit reached" counted as OpenMausBot's step cap. The bot then started
  an unattended "Continue:" thread that went straight back to the provider
  that had just said slow down. Only our own step cap ("Stopped after N steps
  without a final answer", legacy "model-call limit reached") continues now.
- The "Continue:" thread was created activated, so it became the bot's open
  thread: the person's next message, and what they read, moved into the
  continuation instead of staying where they were. It is created in the
  background now.

Tests: provider rate- and usage-limit messages classify as not continuable;
the continuation is created without activating. Mutation-checked: the loose
"limit reached" match fails two tests, activating again fails one.
key-rejected.e2e passes 3/3.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#2401 wrote the picker label as "Use {bot}'s model" into
apps/docs/content/docs/features/bots-and-tasks.mdx. MDX runs braces as code,
so prerendering failed with "ReferenceError: bot is not defined" and every
docs deploy since #2401 has failed (the public docs stopped updating). The
sentence now names the choice in plain words with an example.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Continuity: only the harness's own stops continue, matched from the start

#2429 narrowed classifyContinuable to "stopped after N steps without a final
answer|model-call limit reached" and stopped activating the Continue: task.
Two gaps were left:

- The chat driver's other cap, "Stopped after 200 tool calls without a final
  answer", no longer matched, so a turn that ran out of tool calls stopped
  auto-continuing.
- The match was unanchored, so a provider body that quotes those words (for
  example "upstream HTTP 500: Stopped after 3 steps without a final answer")
  still read as a spent budget.

The match is now anchored to the start of the failure, in the harness's own
words ("Stopped after N steps|tool calls without a final answer", the older
model-call cap). The provider-error deny list is gone: no provider text can
match an anchored harness sentence.

This was also the key-rejected e2e flake (main run 37533571042, Ubuntu and
Windows): the loose match turned the fixture's 429 into a Continue: task
whose doomed turn absorbed the next send, so `wait` reported the old 429 and
`messages` had no HTTP 401. The failed-turn row itself is written before the
turn settles; the ordering there was never the problem.

The e2e now also checks that the rate-limited turn leaves the bot with one
task, which fails deterministically if the loose match comes back.

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

* test(mcp): give pre-registered sign-in tests a free redirect port

A sign-in app registered in advance returns to one fixed port derived
from the MCP server's URL, and the sign-in answers 400 port-busy when
that port is taken. The fake server's URL has a random port, so the
derived port was random in 20000-39999; on Linux 32768-39999 is the
kernel's ephemeral range, where loopback client connections (and their
TIME_WAIT) hold ports, so the start flaked with "expected 400 to be 200"
on ubuntu CI only (index.test.ts:8160, pre-registered: true).

withFreeSignInPort (server/testing/ports.ts) names the same fake server
by a URL whose derived port is below the OS ephemeral range and free.
Used by both pre-registered index tests and every pre-registered setup
in mcp-oauth.test.ts. The port-busy guard test still blocks the derived
port and expects port-busy.

Linux, 400 conn/s loopback churn + 4x CPU load:
  index -t pre-registered: 7/20 runs red before, 0/20 after
  mcp-oauth.test.ts:      17/20 runs red before, 0/20 after

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

* fix(backup): a copy's status poll no longer fails the restore's snapshot of the message database

Copy this computer here failed on Windows CI (server/cloud-move.e2e.test.ts:
phase "failed" with no restart, then the next tests saw the destination's own
bots). Before a restore replaces a workspace, the restore job backs it up, and
that backup snapshots the live messages.db with node:sqlite backup() through a
read-only connection with no busy timeout. Meanwhile the app polls
GET /api/cloud-move, which counts chats through its own connection to the same
database (workspaceContents). With the store's connection closed for
maintenance, that connection's open (WAL recovery) and close (checkpoint, WAL
delete) keep a new reader out for a moment; a first backup step that lands in
it gets SQLITE_BUSY at once and Node rejects the backup ("database is locked",
or "not an error"). Windows' slower locks and file create/delete widen that
moment.

The snapshot's connection now waits such a moment out (5 s busy timeout, as
workspaceContents' own connection does). A worker test holds the database the
way that moment does and fails without the timeout. The e2e's failure messages
now carry the copy's own error, so a failed copy names its step.

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

* Checkpoint snapshots start 9 git processes instead of 13-14

Every turn waits for its folder snapshot before dispatch, and each
snapshot ran 13 git processes (14 with the turn's pin): rev-parse HEAD
twice, diff --cached --quiet, two rev-lists for the base and history
length, and separate update-refs for HEAD and the pin. On Windows a git
process start costs ~40-58 ms on CI, so the 25-snapshot GC-cycle test in
checkpoints.test.ts (347 git starts) took 13.7-18.0 s against its 20 s
limit and timed out on slower runners (main run 37519646998, and
37534007873). Users pay the same ~0.6 s on every Windows turn.

Now one `git log -2 --format=%H %T %P HEAD` reads HEAD, its tree and the
base it was made on; "anything staged?" is the staged tree from
write-tree compared with HEAD's tree (gitlinks compare by commit, so a
dirty nested repo still stages nothing); and HEAD and the turn's pin move
in one `update-ref --stdin` transaction. A changed snapshot is 9 git
calls, an unchanged one 6. A legacy multi-commit history still finds its
root with rev-list before it is compacted.

checkpoints-perf.test.ts pins the call sequence, so a later change cannot
quietly add process starts back to the turn path.

Under a git shim adding 20 ms per process start plus 4x `yes` load, the
reclaims test failed 15/15 before and passed 15/15 after (14.5-17.8 s);
at 10 ms it ran in 15.3 s before and 11.1 s after (median, 0/15 failures
either way).

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

* Hold the opener open in the queued-attachments steer e2e

"keeps two queued attachment messages as two native images in one
follow-up turn" ran its opener on the ungated slow instance, which ends
the turn on an 800 ms timer in the fake CLI. The test then had to see
the tool chip, write two files and land both sends inside that timer.
Under load it lost: the opener settled before the first send, which
rightly started its own turn (receipt without `queued`), or between the
two sends, which rightly drained the first image alone. Either way the
server did the right thing for the order the words arrived in.

Run the opener on the gated slow instance instead and drop the gate only
after both receipts and the "not in the transcript yet" check, in a
finally, the way the steer and room-burst tests already do. The
assertions are unchanged.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Problem: the startup splash is the only window during boot, and its
  recovery timers destroy it when the loading renderer stalls; the empty
  window set then fires window-all-closed and the app quits silently ~10s
  after launch, before the server child forks (issue #2028).
- Fix: hold the window-all-closed quit until the boot chain settles, and
  re-check the drained window set once at settle so a boot that ends
  windowless still exits instead of idling.
- Verification: node --test electron/window-all-closed.node-test.mjs (5/5,
  sabotage run with the gate removed fails them); pnpm test:electron
  555/560 pass 0 fail; pnpm check:electron 148 modules; pnpm typecheck clean.

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
On My Cloud in the desktop app, the Grok sign-in card's copy button did
nothing: the person's own Cloud page was granted only the microphone, so
Chromium refused navigator.clipboard.writeText, and the card swallowed the
rejection.

- Electron: the verified Cloud, in the main window's main frame at its
  exact origin, may write the clipboard by the same rule the active paired
  server uses (remoteClipboardWriteAllowed). Never clipboard-read, never
  subframes, other windows or origins.
- Renderer: all 17 direct navigator.clipboard.writeText call sites now use
  copyText / useCopyFeedback (web Clipboard API, then the local desktop
  bridge), showing the copied mark only on success and a failure state
  ("Could not copy") where the site shows feedback.
- DeviceSignIn: useCopyFeedback for the one-time code, X on failure with
  a label; the code stays select-all for Cmd/Ctrl+C.
- Guard test: no source file outside copy-text.ts may call
  navigator.clipboard.writeText.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* A bot's own changes apply directly, with a one-line receipt and Undo

A bot's change to itself (its routines, skills, profile and default model)
now applies at every approval level, not only at Full access, so engines
without Full access (Pi) and Ask conversations stop piling up cards for
the bot's own bookkeeping. One rule, server/direct-apply.ts, decided by the
server per request: Full access applies everything as before with no new
limits; otherwise only a change whose target is the proposing bot applies,
and a Cloud home's guest-driven turn keeps today's card for everything.
Changes for another bot, team setup and peer approvals are unchanged.

- Routines: own create/update/pause/resume/delete/run now apply; room goals
  the bot leads count as its own. Past 20 enabled routines, a create or
  resume by the self rule shows today's card instead (no cap at Full).
- Profile and model: own changes apply through the same validated commit
  path, keeping every model-switch safeguard.
- Skills: skill_manage writes apply through the existing applied path.
- Audit: decision source "self" or "full-access"; Undo logs user-undone.
- Receipt: applied cards carry autoApplied and render in ChatView and
  GroupView as one plain line ("Scout scheduled a routine: Check before
  dentist, today 2:30 PM", never a cron expression) with Details and Undo;
  after Undo it reads "· Undone" (card.undone, persisted).
- Undo: POST /api/threads/:id/undo, authorized like answering the card.
  Routine create deletes it, update restores the captured definition,
  pause/resume invert, delete recreates; profile restores the changed
  fields; model restores the previous default; skill create removes it and
  update restores the previous SKILL.md. Each refuses once the thing moved
  ("Changed since, so it can't be undone here."), and a second Undo reports
  already undone. Cloud authorship stays consistent after Undo.
- Bot-facing copy, prompts, docs and tests updated.

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

* Self changes: keep the folder card, skip the card budget, client Undo, true copy

- A bot's own working folder (cwd) keeps today's card below Full access:
  a new folder widens what its tools read and write without asking.
- The 8-open-card budget no longer refuses a change that applies directly
  (it opens no card); the services check it once the grant is known, and
  it still holds every card, including past the 20-routine cap.
- POST /api/threads/:id/undo is a client route like /respond, so whoever
  may answer the card may undo it; service trust still cannot.
- A self-applied routine whose receipt settlement fails is logged "self".
- The Verify card says "Saved as a skill" once the skill applied; Settings,
  the Skills page and /create-verification-skill no longer promise a review
  that does not come (stale translations dropped for English fallback).
- Tests: per-bot cap and its 20/21 boundary, run_now applying, the budget,
  Full-access audit source, Cloud guest-driven turns keep cards, Cloud
  authorship after Undo, and the guest's pending skill card (reviewed hash,
  stale hold, deny, lost stage, deleted conversation).

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

* Undo's route lives in server/routes, so index.ts gains no route handler

The index-route ratchet failed: POST /api/threads/:id/undo was a new
path.match in server/index.ts (89 > 88). It is now createUndoRoutes in
server/routes/undo.ts, wired with the same card-answer authorization and
decision actor.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
New turns, steered lines, queued follow-ups (through drain and crash
recovery) and late question answers carry callId next to via "call".

A spoken line also never drains in one turn with a typed line or with
another call's line: the queue's coalescing identity now includes the
call, so a call's record can tell its own turns' work apart.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/McpCallTimeoutSettings.tsx
#	src/state/store.tsx
* fix(codex): an expired ChatGPT sign-in says so once and asks for sign-in

A Codex bot whose stored ChatGPT login OpenAI refused failed every turn as
a loop of "Reconnecting... 1/5" through "5/5" error lines, then the raw
"workspace routing discovery unauthorized (401)", with no sign-in offered.
Settings still showed Codex as ready because `codex login status` keeps
reporting the stored login.

- An error notification with willRetry: true (Codex 0.160 reconnects) is
  no longer an error line; the final error or turn/completed decides.
  Older Codex without willRetry behaves as before.
- Codex's own refused sign-in (codexErrorInfo unauthorized, a backend 401,
  a 401 after auth recovery, or Codex's sign-in messages) reads as one
  plain sentence with Codex's words as detail, marked setup exactly once.
  The same sentence is the stop reason a peer bot is told.
- The refusal marks the login the way a rejected API key is marked
  (key-rejections.ts), so Model providers shows Codex as needing sign-in
  and Connect replaces the stored login instead of keeping it. A later
  successful turn, a new sign-in, or sign-out clears it. ChatGPT plan and
  Company routing are untouched.

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

* fix(codex): only a refused ChatGPT login reads as an expired ChatGPT sign-in

Review of the sign-in fix found three ways it blamed the wrong login:

- A 401 from a custom model provider (provider-qualified model, or a
  config.toml default on another provider) was called an expired ChatGPT
  sign-in and marked the login, and a successful turn there cleared a real
  ChatGPT refusal. Only turns on the official provider now count, either way.
- A refused API-key login (`codex login --with-api-key`) got the ChatGPT
  wording and a Connect that then fails with "different sign-in method".
  Only a stored ChatGPT login (auth.json) is marked; others keep the raw text.
- A finished auth recovery left the turn treating any later 401/403 as a
  refused sign-in. modelProvider/authRecoveryCompleted clears it, and the
  recovery rule now counts only a 401/unauthorized, not 403/forbidden.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(mcp): finish OAuth sign-in at the server's https address from another computer

Signing in to Whop (or any OAuth URL MCP server) from My Cloud ended on
ERR_CONNECTION_REFUSED at http://127.0.0.1:<port>/mcp-oauth/callback: the
redirect pointed at a loopback listener on the server, and the browser's
127.0.0.1 is the person's own computer. The paste-back fallback was hidden
in a collapsed "other computer" section.

- A sign-in started by a browser on another computer, for a server with no
  app registered in advance, registers and authorizes with
  <https origin>/mcp-oauth/callback and starts no loopback listener. The
  origin is the one the browser proved (Origin equal to the request's own
  origin) when it is a configured public address (Cloud home, hosted
  workspace, connected domain, OMB_PUBLIC_URL) or none is set; else the
  first configured one.
- Public GET /mcp-oauth/callback, before the auth gate and the static UI,
  finds the flow by redirect host and state (constant time) and completes
  it through the same one-shot acceptCallback checks; plain-text page,
  no-store, no-referrer, never the code. Unknown state 400, replay 409.
- A refused registration falls back to the loopback flow. A loopback flow
  started from another computer reports pasteBack, and the UI (Whop card
  and MCP list) shows the paste step openly with plain copy.

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

* test(verify): expect the up-front paste box for a remote sign-in

verify-whop and verify-mcp-sign-in sign in from a paired browser through a
forwarding proxy with no https address to return to, so the server now
marks the flow pasteBack and the panel shows the paste box directly instead
of the collapsed "Signing in from another computer?" section. Both scripts
waited for that summary and timed out.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A bot often links the folder it wrote a batch of files into. The server
only opened regular files, so the link answered 400 and on a phone there
was no way to reach the files at all.

When a client asks for it, a link that resolves to a folder inside the
conversation's roots now answers with the regular files directly inside
it (name, size, type, at most 200). Subfolders and links that resolve
outside the root are left out. Each file is then fetched by its plain
name under the same message grant and goes through openMessageFile's
checks again. A folder outside the roots is still refused with
outside_workspace, and older clients keep the 400.
* fix(codex): a 403 that says unauthorized is not a refused sign-in during recovery

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

* docs(mcp): say when sign-in returns to the server's listed address

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.1.99's release gate died on a single HTTP 500 from the CI dispatch, during
a macOS runner shortage that had already left main's run without its jobs.
GitHub calls now try again after 5 s, 15 s and 45 s on a 5xx or a network
error; a 4xx still fails at once.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
16.3.8 is the latest 16.3 patch and covers the critical next advisories, including the image response issue. 16.4 stays out because it changes turbopack and react.
"forgets a server error once a later resume is accepted" expected exactly two
resumes inside a 4 s budget at a 2.5 s poll. A timer firing a hair early lets
a third poll start before the deadline, which failed v0.1.99's release CI. The
test still fails if the 503 is not forgotten.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A call that went live hands its record (id, times, whole seconds, end
reason) to a new recordCall dependency from finish(); the harness
appends it as a bot "call" row at the chat's active leaf. A call that
never attached, or whose chat or bot was deleted, leaves no row, and a
failing write is counted as errors=record without stopping the call.

The row carries times and length only, never anything said on the call.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(mcp): Whop's card says why its tools did not load; URL tests get 30 s

After a Whop sign-in the card listed tools once and, on failure, showed
only "Signed in, but Whop's tools could not be loaded", hiding the test's
own reason. It now shows one line with that reason (for example "...could
not be loaded: The server did not answer in time. Please connect again to
retry."), including when the test request itself is refused.

While the tools load, the card says "Signed in. Loading Whop's tools..."
instead of still waiting for the browser, and Cancel closes the test
request, which aborts the probe on the server.

URL MCP probes (initialize + tools/list over the internet) now get 30 s
instead of 8 s; commands keep 8 s. The only caller is the person-initiated
Test route, so nothing on a bot's turn waits longer.

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

* fix(mcp): end a Whop failure reason with a period when it has none

A proxy's non-JSON 504 ("504 Gateway Timeout") or a browser's "Failed to
fetch" has no closing period, so the card read "...: 504 Gateway Timeout
Please connect again to retry." signedInToolsCheck now adds the period.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The range stays on major 43. The lockfile resolves 43.7.9, which includes the 43.5 preload sandbox fix.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The probe timing tests from #2449 waited at most 10,000 setImmediate turns for
the fake MCP server's round trips. On a loaded macOS runner that was not
enough, and v0.1.100's release CI failed at mcp-probe.test.ts:178 and :193.
untilReal now waits up to 15 s of real time (Date is not faked there).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Each turn reread and hashed every memory file, including every daily
log. Reuse the listing's size and mtime, the same check the search
index already uses, and read only files that changed.
Only with generated thread titles on, through the thread-title one-shot,
its gates and its 10-second cap. The row is written first, then patched.

The excerpt's scrub/clip/budget loop and the title gates are shared, not
copied: callTitleExcerpt and titleConversationExcerpt build on one helper,
and Regenerate title and the call title go through one gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codex 0.160 config/read reports every unset shell_environment_policy field
as null, even for an empty config.toml. A scoped turn (a bot with a tool
selection) read the null `exclude` as malformed and refused every prompt:
"Codex could not confirm its shell environment exclusions. No prompt was
sent." CI stayed green because the fake app-server never reported nulls.

Codex 0.160 also added a keyed `filters` table (pattern -> exclude |
include). A higher config layer that writes the legacy `exclude` list drops
the person's `filters`, so adding the gate exclusion that way would have
wiped their own rules for the thread.

extendShellExclusions treats null as absent and extends the person's rules
in the representation they use: with a `filters` table, the gate pattern is
added as an "exclude" entry to a copy of it (replacing a case variant,
since Codex rejects duplicate patterns ignoring case) and no `exclude` list
is written; otherwise the `exclude` list is extended as before. Malformed
values still refuse the turn, as does a policy that reports both
representations (Codex itself refuses to mix them in one layer).

The fake app-server now reports Codex's real shape by default: every policy
field present and null unless set; tests can supply a `filters` table.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(mcp): search big MCP catalogs on engines without tool search

Whop's official MCP server lists 425 tools in 1.2 MB of JSON. Its
connection test failed at the 1 MB response cap, and every engine that
loads all tools on every request broke: the chat-completions runtime
refused it at the 128-tool limit, Pi registered all 425, and Codex on a
ChatGPT plan (tool_search off) loaded them all.

- One size cap, MAX_REMOTE_MCP_BYTES (32 MiB), for the remote client the
  probe and the stdio proxy share; the stdio probe gets it too, since a
  command bridging to the same server prints the same list. The probe
  reports the real tool count when it shows only the first hundred.
- The remote proxy gains a tool directory (mcp-directory.ts), switched on
  by the driver for engines without native tool search. A catalog of more
  than 40 tools or 100,000 characters of definitions is answered with
  search_tools (BM25 over names, areas and descriptions, never schemas;
  bounded signatures and hints), describe_tool (the exact schema) and
  call_tool (the upstream result unchanged). Smaller catalogs pass
  through. The catalog is read once per process and again after
  tools/list_changed. Ranking sits behind a ToolRanker seam.
- Wired for API-model engines, Pi, and Codex on a ChatGPT plan. Claude
  Code, Codex on its own login and ACP engines are unchanged.
- Tool selections: the proxy narrows the catalog to the selection and
  refuses call_tool outside it; the gate, the chat runtime and Pi check
  call_tool against the tool it runs. Gate trimming still applies to
  call_tool results; the directory's own reads are left whole.
- Approvals: search and describe ask nothing, as listing tools never did;
  call_tool's card names the tool it runs (chat engines, Pi, plan Codex).
- Plan Codex mounts the proxy through a private per-mount record
  (OMB_REMOTE_MCP_CONFIG_*), excluded from the shell, with shell
  snapshots off, and redacted from native logs.

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

* fix(mcp): rank by parameters, guide past misses, and harden the tool directory

Live Whop testing showed the search missed questions whose words live in
parameters ("revenue" is a stats_get metric enum, not in any description
that answers it), and a review found sharp edges around it.

- Ranking: BM25F over name, description and, at half weight, the input
  schema's property names, enum values and descriptions (bounded per tool),
  each field length-normalized on its own so a long schema cannot dilute a
  name match. English stop words; Unicode words, ASCII ones stemmed. A
  parameter-heavy Whop-style fixture pins "list my products",
  "how much revenue this week" and "which payments failed this month".
- Misses are guidance, not errors: an unknown tool, a bad search, a
  call_tool naming no tool, or arguments that do not fit, so a chat turn
  no longer ends as tool_error. Selection refusals stay errors.
- call_tool checks arguments against the tool's schema in the proxy, with
  the chat runtime's Ajv setup (moved to mcp-schema-validator.ts); a schema
  it cannot compile is left to the server.
- describe_tool stays valid JSON within 40,000 bytes, compacting a huge
  schema step by step and, last, to field paths, types and required.
- Searched URL servers get 30 s to start on chat engines and Pi; command
  servers keep 8 s. The probe comment no longer blames Whop's speed.
- The remote client refuses a server's own requests (elicitation, sampling)
  at once with -32601 instead of leaving the call to time out.
- The proxy gets the person's proxy and CA settings, which Codex strips,
  with NODE_USE_ENV_PROXY so Node's fetch honors them.
- Codex: catalog reads pass without a card only for Codex's exact sentence;
  tool names are read to the closing quote, so `web_search" …` no longer
  passes for web search. Every private value in Codex's shared environment
  (gate and proxy records, and the existing OMB_MCP_HEADER_* bearer
  values) is added to the effective shell exclusions, snapshots off.
- Pagination of the upstream catalog is tested (pages, cursor loop, cap).
- Docs: the plan-mode Auto limit and that command servers are not searched.

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

* fix(mcp): rank a request's area and its wish to list

Live Whop testing still missed "which payments failed this month"
(payments_list never says failed) and "who are my newest members":
"payment" and "member" appear in hundreds of tools, so as plain words
they barely count. Two general rules, no word lists about Whop:

- Area match: a tool's area is its name up to the first underscore
  (members_list -> members, promo-codes_create -> promo-codes). A query
  word that names it counts like one more name hit, scored by that
  word's rarity among areas rather than in the whole catalog, and
  length-normalized so a request covering a whole area outranks one
  word of a longer area.
- List intent: who, which, what, show, list, recent, newest, latest or
  all ask what there is, so tools that list (list in the name, or a
  description starting "Lists") get a modest lift that never outranks
  a verb the request names.

The parameter-heavy fixture now reproduces both misses; payments_list
ranks 2nd and members_list 1st, and cancel/create/delete requests keep
their tools first, even beside words that ask what there is.

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

* fix(mcp): loopback past proxies, a forgiving argument check, sturdier words

From a second review of the tool directory:

- Proxy settings: with NODE_USE_ENV_PROXY on, Node sends even loopback
  through the proxy, so a URL server on this computer was refused.
  localhost, 127.0.0.1 and ::1 now join NO_PROXY, merged with the
  person's own list under both spellings.
- call_tool's argument check no longer stands in the server's way: it
  checks a copy of the schema without pattern, patternProperties or format
  (no regular expression from a server can stall the proxy, and validators
  disagree on formats), drops additionalProperties:false beside combinators
  or pattern properties, compiles non-strictly, skips schemas over 64,000
  characters, and calls a tool unchecked when the validator throws (a
  schema that refers to itself forever).
- Words: NFKC first, and combining marks stay inside words, so Hindi, Thai
  and a decomposed café tokenize whole.
- A server's ping is answered with an empty result; other server requests
  are still refused.
- Local $ref into $defs/definitions is followed, once each and never in a
  circle, for ranking words, signatures and the describe outline, so
  Pydantic and FastMCP schemas rank on their real fields.
- describe_tool's outline bounds the tool name, field paths and types, so
  the 40,000-byte cap holds whatever the names.

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

* fix(codex): scoped turns accept Codex 0.160's null shell policy and keep a person's filters

Codex 0.160 config/read reports every unset shell_environment_policy field
as null, even for an empty config.toml. A scoped turn (a bot with a tool
selection) read the null `exclude` as malformed and refused every prompt:
"Codex could not confirm its shell environment exclusions. No prompt was
sent." CI stayed green because the fake app-server never reported nulls.

Codex 0.160 also added a keyed `filters` table (pattern -> exclude |
include). A higher config layer that writes the legacy `exclude` list drops
the person's `filters`, so adding the gate exclusion that way would have
wiped their own rules for the thread.

extendShellExclusions treats null as absent and extends the person's rules
in the representation they use: with a `filters` table, the gate pattern is
added as an "exclude" entry to a copy of it (replacing a case variant,
since Codex rejects duplicate patterns ignoring case) and no `exclude` list
is written; otherwise the `exclude` list is extended as before. Malformed
values still refuse the turn, as does a policy that reports both
representations (Codex itself refuses to mix them in one layer).

The fake app-server now reports Codex's real shape by default: every policy
field present and null unless set; tests can supply a `filters` table.

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

* fix(codex): keep every MCP mount's variables out of the bot's shell

Codex starts its MCP servers with variables from the same environment it
runs the bot's shell commands in. Every name a mount writes there now goes
through extendShellExclusions on every turn that mounts it:

- custom command servers' env, URL servers' header values, and gate and
  proxy records (one pattern per OMB_* family)
- the harness mounts too: agents, connectors, browser, computer, phone

Kept visible: a value the environment already had that a mount passes on
unchanged (the person's proxy settings), and the few names a shell cannot
work without. ELECTRON_RUN_AS_NODE is excluded wherever a mount sets it.

The remote proxy's NODE_USE_ENV_PROXY and NO_PROXY now go in the mount's
own literal env table, so the shell keeps the person's NO_PROXY and never
gets the switch. A gate already carries them inside its private record.

Plan turns keep the token exclusion in chatgptPlanCodexArgs and extend
the effective policy through the same helper.

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

* fix(mcp): send only https servers through the person's proxy

On Node 24 (CI, the Cloud image's node:24, Electron 43's Node 24.21) a
fetch with NODE_USE_ENV_PROXY to a plain http:// URL through HTTP_PROXY
hangs: the proxy never sees a request and the AbortSignal is ignored, so
the remote MCP proxy never answered initialize. An https:// request goes
through the proxy's CONNECT tunnel and works on Node 24 and 26 alike.

The remote proxy child now gets NODE_USE_ENV_PROXY=1 and the merged
NO_PROXY (loopback added) only when its server's URL is https:// and a
proxy variable is set. An http:// server is reached directly, as before
proxies were passed on at all. The same descriptor feeds gated proxies and
Codex plan turns' literal env table, so the rule holds everywhere.

Tests: the http forward-proxy test is replaced by a unit test (https gets
the switch and loopback NO_PROXY, http, gated or SSE, does not) and by
integration tests that run on Node 24 and 26: a CONNECT proxy tunnels to
an https fake MCP server whose throwaway certificate (made with openssl at
test time, skipped where none runs) is trusted via NODE_EXTRA_CA_CERTS,
and an https server on loopback is reached past an unreachable proxy.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- mcp-gate-config: Node's env-proxy matcher compares an IPv6 host in its
  bracketed form, so "::1" in NO_PROXY never exempted https://[::1]: the
  proxy got CONNECT [::1]:port (checked on Node 24.18 and 26.7). "[::1]"
  joins the loopback list.
- mcp-gate-config: an http:// server now gets NODE_USE_ENV_PROXY=0 whenever
  a proxy variable or the switch itself is present. The gate and chat tools
  hand the proxy child this process's environment, so an inherited
  NODE_USE_ENV_PROXY=1 sent http://localhost through the proxy (failed on
  Node 24, forwarded on Node 26) instead of directly.
- codex: chatgptPlanCodexArgs no longer passes
  `-c shell_environment_policy.exclude=["OPENMAUSBOT_CHATGPT_TOKEN"]`. On
  codex-cli 0.160.1 that override replaced the lower layers' exclude list
  (/etc/codex/config.toml applies to plan turns) and dropped their filters.
  Every plan turn now adds the token on the thread through
  extendShellExclusions, in the policy's own representation, mounts or none.
- fake app-server: a `-c shell_environment_policy.exclude` override reports
  `filters: null`, as codex-cli 0.160.1 does; `include_only` stays, as it
  does there (checked against the real app-server's config/read).

Tests fail without each fix: NO_PROXY unit assertions and an integration
test where a recording proxy must see no CONNECT for https://[::1] (Node
24 cannot verify a [::1] certificate at all, so success is asserted on
Node 26+); http descriptors carry "0", and an integration test reaches an
http server with NODE_USE_ENV_PROXY=1 and an unreachable proxy inherited;
plan turns keep a person's exclude list or filters table, new and resumed,
and argv carries no exclude override; the fake's config/read is checked
directly.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Moves isContextMessage to delta-context.ts and the body of liveHistoryFor
to live-call.ts, unchanged, so both rules are unit-tested.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
isContextMessage keeps a digest row only when it carries its digest, and
liveHistoryFrom skips a text row that has no text. The first tests left
both clauses unpinned; their mutants now fail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The desktop Message type learns the call row, the call id on spoken lines
and requestMessageId (the wire already carried them). activityStepLabel is
the step name the working line already shows, extracted so a call's record
names steps the same way and never shows their arguments.

callRecordLines picks one call's steps and approvals by following
requestMessageId from the lines that carry its call id: a typed line's work
and another call's work never appear, and what a turn adds after hang-up
does. A line steered into a running turn starts no turn, so its work stays
with the request that turn began with; tests pin that, and the opened-thread
chip and structured-question exclusions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
isToolStep is an activity row for a tool the bot ran, running, finished or
failed, and not a chip that links elsewhere, a status row or a failed turn.
The chat's fold of finished steps (foldable) is now isToolStep plus "finished",
and callRecordLines asks isToolStep instead of keeping its own copy of the
chain, so a kind of non-work chip added later leaves both together.

A failed tool step is pinned as listed in a call's record, and the fold's
bot-to-bot chip exclusion, which no activity-runs test covered, is pinned
before the predicate moved. The call-record header now says that a steered
line's turn work is what is listed, not the line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex 0.160 asks multiple-choice questions through request_user_input_async.
The app-server does not send item/tool/requestUserInput for it: the questions
arrive on an agentMessage with delivery "async" and questions[{title, options}],
and the turn keeps running. The driver read only item.text, so the chat showed
a plain bullet list.

The driver now carries those questions on the assistant_text event. The server
adds a persistent question card with its own requestId, so web, Android, iOS
and rooms answer it through /respond as usual. The answer is sent the way the
composer sends a reply: steered into the running turn, or queued/started when
the bot is idle. Closing the card sends nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok Build's ask_user_question tool blocks on `_x.ai/ask_user_question` and
Cursor's AskQuestion on `cursor/ask_question`. The ACP core refused both with
-32601, so Grok's tool failed and Cursor fell back to one permission request
per question. The core now has a question-request hook: each driver maps its
vendor shape onto one question card and the person's answer back to the
vendor reply (Grok: labels keyed by question text, own words as "Other" with
notes; Cursor: option ids, own words as `skipped` with the answers as the
reason). Timeouts, settled turns and requests between turns get the vendor's
cancelled reply.

Pi has no ask tool that works over RPC. OMB's Pi extension now registers
`ask_user` (up to 6 questions, one pick each) on top of ctx.ui.select and
ctx.ui.input, which the driver already shows as cards. A Pi question card
keeps its full text.

Claude needs no change: `claude -p` offers AskUserQuestion only with
--permission-prompt-tool, so Full access already asks through ask_user.
docs/approval-levels.md and docs/cursor.md now describe each engine.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Review follow-ups:
- Grok and Cursor refuse a request with more questions than one card
  holds (-32602, the limit in the message) instead of showing the first
  six and answering as if the rest were accepted.
- MAX_ANSWER_ECHO now counts the question text, every option label and
  the custom answer per block, so capAnswerEcho never cuts a reply a
  card can produce (it cut one at 12,000 characters before).
- Pi's ask_user shows option descriptions under the question. pi's
  select carries bare strings and a card cuts a long label, so the
  labels stay exact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A card reply answers by question text, so questionAnswersById leaves two
questions with identical text unanswered. Grok keys its answers by that
text too. Such a set is now refused with -32602 before a card opens,
instead of a card whose reply loses those answers. The error message says
the questions must be distinct.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card joins picked labels with ", ", and a label may contain ", ".
With labels A, "B, C", "A, B" and C, the reply "A, B, C" fits both
A + "B, C" and "A, B" + C. pickedOptionLabels took the longest label
first and picked one reading, so Cursor could send the wrong option ids
as answered and Grok the wrong labels as accepted.

It now tries every reading. A reading that is labels from end to end wins
over one that leaves words over; when the best readings disagree, the
whole answer goes back as the person's own words (Cursor: skipped with
the text as reason; Grok: Other with the text in notes), never a guessed
option. The card format is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A call that went live leaves one "call" row in its chat. The desktop now
draws it as a small centred record: a waveform glyph, the call's title (or
"Call with <bot>"), its length, and one line per thing the bot did on it
(steps by name, never their arguments, and approvals with their outcomes),
selected by callRecordLines from the whole active branch. The call's spoken
requests and the bot's answers stay inline. A row without its record draws
nothing: the fallback text is for older clients.

Each record works its lines out once per transcript and call (useMemo), so
a chat with several calls does not walk the transcript per row per render.

The row is a receipt: hanging up appends it after whatever the chat ended
on, often a turn that failed or is still working. isReceipt now includes
kind "call", and every reader of the last real message goes through it:
Retry (retryableId, now the same lastNonReceipt walk), the sidebar preview,
the mascot's mood, the sidebar row's time and the chat's working line (live
verb and dots), which would otherwise read "Thinking" or flash the dots
under a settled reply once a call had ended mid-turn.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* ci: reuse green CI for release bumps, and stop false failures

Release gate (scripts/release-ci.mjs) accepts, in order: a green run on the
release commit; a green push/merge-queue/manual run on any commit with the
same git tree (the all-OS run prepare-release starts on the bump branch); or,
when the commit only changes package.json's "version" from its parent, the
parent's green run by the same two rules (waiting for a parent run still
going). A run is green only when the CI gate passed and every vitest job ran
and passed, so a scoped run never counts. A run on the release commit that
failed only because jobs never got a runner has its failed jobs re-run once.

ci-scope scopes push events by before..after: docs-only and version-only
pushes skip the runtime jobs, but only when the commit before the push has
its own green run (a replaced run's code is never skipped).

False failures: the packaged-server smoke asks the OS for its ports (no more
EACCES in Windows' reserved ranges); test and hook timeouts double on
Windows (hostTimeout); listed known flakes get two retries in CI only via a
custom vitest runner, and every retry is written to the job summary.

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

* ci: re-run only the release lane in place; bound flaky retries per file

Release gate: a run that lost a runner is re-run in place only when it is
the release lane's own run (workflow_dispatch on release-ci/v<version>, its
own concurrency group). Main's push, merge-queue or manual run is never
re-run: a re-run joins ci-refs/heads/main, where it cancels the newest
merge's waiting run and re-runs main-only deploys (the Composio broker) from
an older tree. Such a run now counts as no run, so CI starts in the lane.

Flaky retries: once a listed test fails all three attempts, later listed
tests in the same file get no retry. A broken fixture (six listed tests in
delta-context) no longer triples their wall time past the Linux shard's
20-minute cap, where a job timeout drops the failing tests' annotations and
the retry summary.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(mcp): every engine but Claude Code reaches URL servers through OMB's connector

A URL MCP server that passed Settings → Test (100+ tools) answered "Tool
not found" for every tool in chat: the engine's own MCP client connected
to it directly, and the server, which deserializes initialize strictly,
refused a capability field the engine adds ("Unrecognized field
'schemaValidation'"). OMB's own client sends the minimal handshake and
passes.

One mechanism now: Codex (own login and Company, as ChatGPT-plan turns
already did) and every ACP agent (even one advertising http/sse) mount URL
servers as OMB's stdio remote proxy, the same client Test uses. Own-login,
Company and ACP keep the catalog whole (they search tools themselves); only
plan turns use the tool directory. Tool selection, approvals and the
private per-mount record (--config-env, shell exclusions) are unchanged.
Codex also reaches SSE servers now. Claude Code stays native: its
handshake carries only spec-defined fields, and native keeps its own tool
search.

Removed what this obsoletes: Codex's native URL mount (url,
bearer_token_env_var, env_http_headers, OMB_MCP_HEADER_* and its shell
exclusion), the SSE skip, and ACP's per-transport filter.

The proxy now tells the engine to sign in again on an upstream 401, in
its own words.

Tests: a strict fake server (testing/fake-http-mcp-server.ts
strictInitialize) refuses unknown initialize fields; the fake Codex and
fake ACP agent can start mounted servers with the real engines' captured
handshakes. Covers Codex own-login, Company, per-turn tokens and tool
selection, ACP with and without http/sse and with tool selection, Claude
Code unchanged, and the proxy never forwarding an engine's fields.

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

* fix(mcp): the connector relays a server's own call errors, words 401s for both credential kinds, lets long calls finish, and reaches http servers through HTTP_PROXY

Moving Codex own-login/Company and ACP agents onto OMB's remote proxy
regressed four things their native connections did:

- A server's JSON-RPC error for a call (a missing argument, an unknown id)
  reached the engine as a generic -32603 "Remote MCP request failed", so the
  model could not fix its arguments. The client now keeps such an error apart
  (McpRpcError, still kind "protocol"), and the proxy relays its code and
  words, bounded, with the configured address, its path and query values and
  every header value stripped and redactSecretsInText applied. Transport,
  status and parse failures stay generic.
- An upstream 401 said "sign in to it again" even for a server whose key is
  a typed header (it has no sign-in) or whose sign-in token merely ran out
  mid-turn (the next message refreshes it). The proxy cannot tell the two
  apart, so the words now cover both: send the message again, then sign in
  again or check its header values.
- Every tools/call was cut at 120 s, where Gemini CLI and Qwen Code had
  waited their own ten minutes. Outside the tool directory the proxy now
  adds no deadline: the engine's own cancel reaches upstream through it.
- A plain http:// server reachable only through HTTP_PROXY failed, since
  Node's env-proxy switch stays off for http:// (Node 24 hang). The proxy
  now sends such requests to the HTTP proxy itself in absolute form;
  loopback and NO_PROXY hosts stay direct.

Tests: the strict-handshake suite covers each (relayed -32602 'bad arg'
and a redacted header/URL echo; 401 wording for a bearer and an API-key
header; a 150 s call through an ACP mount on a fifty-times-fast clock,
with the directory still cancelled; an internal http:// host reached only
via a recording forward proxy); mcp-http tests cover McpRpcError over http
and sse and the NO_PROXY rules. Each fails with its fix reverted.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A step's outcome was only its glyph (a check, a cross or the working dots),
and the glyphs are aria-hidden, so a failed step read the same as a finished
one to a screen reader. Each step line now ends in a visually hidden status
in parentheses, the way the cloud setup list does it: "Searching the web
(Done)", "Running the tests (Failed)", "Reading a file (Running)". An
approval line is unchanged: its text already says Allowed, Denied, Expired
or Waiting.

The three words are new catalog strings (chat.callRecord.stepDone,
stepFailed, stepRunning); the other language packs fall back to English.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
treg routes between several X scrapers per call (anyapi first, then tikhub
and justoneapi), costs less per call, and its licence allows embedding the
hosted API with per-customer billing, which is step 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every vitest job on main failed after #2487 although all tests passed:
ci-retry-list.mjs built its default path with new URL("./ci-retry-list.json",
import.meta.url). In a happy-dom test file that global URL is the DOM's, and fs
refused it ("The URL must be of scheme file"), an unhandled error that turned
each shard red. It only runs with CI set, so local checks never hit it.

- The default path is a plain path from fileURLToPath(import.meta.url).
- The runner fails open: an unreadable list warns, retries nothing, and records
  the error in OMB_VITEST_RETRY_LOG, which the summary step reports as a
  warning, so a broken list is seen rather than silently survived.
- Tests: a happy-dom fixture run with CI=true and the default list (fails if
  the old new URL path returns), the fail-open path (fails without it), and
  the summary's unreadable-list warning.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 2026-09-25 live call bar spec gains "The call id and the call row": the
call id on spoken lines, the one row a call that went live leaves and its
title, what a record lists (a steered line's work belongs to the turn it was
steered into; only provider permission cards reach a record), why the row is
neither bot context nor the next call's history (they read different kinds),
and the desktop record. The phones' dock and full-screen call become an
accepted presentation difference. The voice and memory page describes the
record in user words and keeps the sentence that the voice's words are not
saved.

docs/verification/live-calls.md is the verification note for the feature: the
e2e recipe, a hand-driven call against the fake GPT-Live in an isolated
fixture, and what a fixture run observed, linked from the verification README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OMB_TREG_URL points the client at a self-hosted treg or a test stub; the
verification launcher lets it cross only as a 127.0.0.1 URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A later start serves the saved catalog and refreshes it behind listen. The first run still waits, and a turn waits for the refresh already in flight.
Hover and focus-within already opened the tray, so with a mouse or a
keyboard a click on the handle only flipped a hidden pin: nothing moved,
a second click could not close it, the pin never let go and aria-expanded
was wrong while the tray showed.

A click now flips what is on screen. A tray that hover or keyboard focus
opened tucks back until the pointer or focus leaves, and a closed one
comes out and stays out until the handle, Escape or a press outside
closes it (usePopoverDismiss, like the sidebar menus). Focus only reveals
the tray when it is keyboard focus, so a clicked handle no longer keeps it
open after the pointer leaves.
* fix(drivers): an unanswered ask_user no longer ends the turn as tool_error

The chat runtime treated a question card that timed out or was closed
without an answer as a denial (ok:false + denials), so at turn end the
model's finished final answer was discarded with the generic
'One or more tool operations failed or were denied' error. That is the
right shape for an explicit 'no' from a person, but absence is not a
'no': the model is already told 'ask again later or proceed without it',
and the CLI permission broker resolves the same situation as a soft
continue. Return the no-answer text as an ok result so the turn ends
with its final answer intact; an explicit deny of a permission stays
terminal.

* ci: re-run after unrelated windows cloud e2e flakes

cloud-guest-shell and cloud-lending-memory e2e failed once on the
windows shards; main's own run of the identical base (7c28a1d8,
run 37795227771) has every vitest shard green, including both. No code
change.

---------

Co-authored-by: hemna <hemna@users.noreply.github.com>
Windows PowerShell's Set-Content -Encoding UTF8 and Notepad's UTF-8 with BOM
put U+FEFF before the first character. JSON.parse rejects it, so loadConfig
ignored the whole file, and saveConfig treated it as a first write: saving
one setting replaced config.json with that setting alone, dropping keys,
instances and MCP servers. parseSkillMd missed the opening --- the same way.
Both now drop a leading byte order mark before parsing.
A finished failure was silent, and a stop the person asked for must stay silent. The spoken summary also stops at an Arabic or CJK sentence end.
latestSaidByBot and latestMessageAts look up the newest row in each
thread. The primary key and messages_thread do not include at. Add
messages_thread_at on (thread_id, at) where open() creates the schema,
so existing databases gain it on the next open.
Deleting a bot removed its workspace but left memory-journal/<id>.ndjson,
the memory_files rows, and the in-process journal baseline. Those go with
the bot, the same way a thread's event log goes with the thread.
Message edits, find, citations, pinned lines, the room bulletin, and a few previews were still laid out left to right. They now use dir=auto, the same rule as the composer.
The row truncated titles in the left-to-right direction, so an Arabic
title lost its beginning next to the time and kept an ellipsis on the
far side. The title now uses dir=auto, fills the free width, and
ellipsizes its own end. The time stays a non-shrinking column. English
titles keep their place.
A bot row keeps the same insert and adds that bot's title. @everyone
adds how many bots the tag reaches. Rooms, routines and connectors
stay out of the picker because a plain mention only addresses bots.
GET /api/usage and /api/usage.csv now live in server/routes/usage.ts. Auth stays in request-auth.ts. The answers are unchanged.
ajv 8.20.0, vitest 4.1.11, and mermaid 12.1.0. mermaid 12.1 drops the vulnerable lodash-es copy. mermaid still allows dompurify 3.4.13, so the workspace pins 3.4.16. katex stays on 0.16.
* fix(chat): give room messages the same actions and error boundary

A room reply only offered reply and pin, and a throw inside room
markdown or a card blanked the window. Rooms now use the shared
message tray and the same boundary a 1:1 bubble already has.

* test(chat): pass the boundary fallback as a prop

The class component's children prop is required, so the room boundary
test hands the throwing child through that prop.
Chat errors set from the composer and find bar never cleared, and rooms never showed them. One banner announces the error, and a single timer clears it.
* i18n(zh-tw): complete the Traditional Chinese pack and unify terminology

Translates every string zh-tw.json was missing (66% -> 100%) and records their English source hashes. Aligns existing strings on one term per concept (聊天室, 對話, 任務, 機器人, 預設組態, 安裝實例, 角色資料, 管理後台, 已連線的應用程式, 供應商, 帳戶, 用量, 這台電腦, 本機 VM, 執行位置, 桌面版) and restores a missing sentence in approvalMode.auto.desc. Reviewed by a native zh-TW speaker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZF9557f8fNfo7DgfiiHck

* fix(i18n): refresh Whop failure placeholder against main

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* fix(chat): follow the transcript again when switching threads

Bottom-follow re-armed only when the bot changed, so another thread of the same bot stayed stuck up the scrollback. The re-arm key is the transcript, and a search jump still turns follow off.

* fix(chat): scroll equal-length threads on transcript change

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
* fix(sidebar): show the server name in the header when the row has room

The default macOS Advanced row was hiding the server name. It now truncates beside the laptop icon, header icon buttons keep a visible focus outline, and the pulse icon marks running or queued work.

* fix(sidebar): distinguish waiting approvals from running work

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
* test: cover legacy AppArmor hosts without userns restriction

* fix(linux): skip optional AppArmor 4 policy on legacy unrestricted hosts

---------

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* docs(webhooks): a Cloud takes webhooks at its own address

My Cloud already receives webhooks from the internet: the image's edge
(deploy/fly/Caddyfile) sends only /hooks/* on the Cloud's own https name to
the receiver on 127.0.0.1:8800, and the launcher sets OMB_WEBHOOK_PUBLIC_URL
to that origin, so the Webhooks panel hands out https://<cloud>/hooks/...
The docs still described webhooks as desktop-only behind a tunnel.

Say so in the automation docs, and pin the edge's /hooks/* -> receiver route
in the cloud-home test (the receiver's /health stays off the public edge).

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

* test(cloud-home): webhooks answer only for the Cloud's own name

The /hooks/* route must sit inside the @home host match, like everything
but the health check. Moving it out survived the edge-template test.

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

* docs: use consistent My Cloud webhook terminology

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
spawnWithSecrets gains an optional trailing capture flag: the child's
stdout and stderr become pipes the caller reads instead of this process's
inherited descriptors (the launcher path and the secrets pipe on fd 3 are
unchanged). Both Cloud e2e boot watchers pass it and tee both streams into
their boot log, so the exited and did-not-start errors carry the child's
output; opencode-provider-keys includes that log in both throws, and a
unit test covers both sides of the flag.

Co-authored-by: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-authored-by: GLM-5.3 (Architect) <noreply@z.ai>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
A GitHub import fetched every download_url from the contents listing as
given, following redirects, and accepted a pasted plain-http raw link.
A changed listing or a redirect could aim the server's fetch at any host.

Skill files are now fetched only over https from raw.githubusercontent.com,
without a port or credentials, and a redirect is an error, as in
team-library.ts. A pasted http:// raw link is refused with a message.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* Make the command allowlist close button receive clicks

The dialog lived inside the chat column, under the Windows title-bar drag region. That region takes clicks by layout, not paint order, so the X at the top of a tall list did nothing. Portal the dialog and mark the overlay no-drag.

* Close the command allowlist from Escape when focus is outside it

The overlay only heard Escape while it held focus. Opening the dialog leaves focus on the menu button, and bot settings then ignores the key because a nested dialog is visible. Listen on the window and stop the key so the allowlist closes and the settings behind it stay open.

* fix(settings): distinguish allowlist dialog from outbound control

---------

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
A main run failed on Windows shard 1 after #2415 (an unrelated allowlist
change): "a guest's Codex turn has no shell" gave up on a 15 s poll that
had room on Linux. Windows runners run this suite 1.4-1.5x slower, and
every other e2e file wraps its own timeouts in hostTimeout(). This file's
polls and test timeouts now do too: doubled on Windows, unchanged on
Linux and macOS, so a real slowdown still fails there.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
#2445 made server/index.ts refuse new route guards (index-route-ratchet), and
#2502, green on its own, added POST /api/instances/antigravity-accounts there.
Together they turned main red on every platform.

The route now lives in server/routes/antigravity-accounts.ts with explicit
dependencies, sharing the provider-settings lock with the other account
routes. The audit plan maps the three "add an account" routes through one
table instead of a path guard each, so the ratchet's count drops to 159.
Behaviour is unchanged: same path, checks, messages and status codes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
newestId and more come first and trailing posts are dropped to stay under
22,000 characters, so a monitoring routine never loses newestId to the cap.
An old post among new ones (a retweet under its original id) no longer ends
the read early.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saved through PUT /api/config, a cleared token came back on the next launch
from credentials.bin. It now goes through credential:set like Box and
OpenCode Go, and the external save leaves only an empty tombstone on disk.
A parity test pins both for every migrated workspace secret.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings feat/live-call-record (8cdbfaf5, reviewed commits unchanged) up to
date with origin/main 7c28a1d8 (48 commits since 89bfd550).

Conflicts and resolutions:
- apps/docs/content/docs/features/voice-and-memory.mdx (text): kept the
  feature's new paragraph on a call's record, followed by main's
  rewritten permission paragraph (#2434: a bot's changes to itself apply
  without a card, with Undo). Those self-change receipts carry no
  requestMessageId, so they never enter a call's record and the record
  paragraph stays accurate.
- src/components/SidebarBotListItem.test.ts (semantic, merged cleanly as
  text): the feature's "names the step the bot is on while it works, when
  the call ended under it" opened the thread list by searching for the
  bot's name; main's MOCA-293 change (#2295) opens a bot's list only for
  a search that matches a thread, so the test now searches for its open
  thread's title. It still fails if the row reads the last message
  without skipping the call record.

Auto-merged and checked by hand (no change needed): server/index.ts,
server/store.ts, server/store.test.ts, shared/wire.ts,
src/components/ChatView.tsx, src/components/Sidebar.tsx,
src/locales/en.json, src/state/store.tsx, docs/verification/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The harness writes chips of its own inside a turn: the receipt of an
automatic approval ("approved Bash (full access): ..."), the notice that the
engine's automatic reviewer is not available, a rejected action, an image
that could not be attached, a retry. They carry the request's id and look like
steps to the chat's fold, so a record listed an auto-approved action twice
(its step and its receipt, which then read "Running a command") and showed a
note as work.

A step is now a chip with a provider item id (tool.itemId), which only a tool
the provider started has. callRecordLines applies it; isToolStep and the
chat's fold are unchanged, and a test pins that the fold still takes the
harness's chips. The spec says so, for the phones to copy.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A step reads as running (the working dots, "(Running)" for a screen reader)
whenever its tool has no outcome. The harness settles a chip only when the
provider reports the item done, so a tool stopped in the middle, a turn the
watchdog killed or a restart leaves one with no outcome for good, and a
finished call's record kept a spinner.

The chat's busy state now reaches the record (CallRecordRow's busy prop, from
the rows context the chat already shares). A step with no outcome is running
only while the chat is busy; otherwise it is neutral: a muted dash, no dots,
no announcement. A step that did report, and the approval lines, are drawn as
before. This matches the phones' finished-record rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Four things the final review found in what a person or a screen reader meets
in the record:

- A line wider than the pill spilled past its border instead of truncating,
  because the list's min-content width is its widest nowrap line. The list now
  has max-w-full, like the header row.
- An expired approval read "Expired - ask for a fresh proposal: run a command"
  in a finished call's summary, an instruction in a record. The record says
  only "Expired".
- The record was a <section> with a name, which is a landmark, so every call
  in a chat added one. It is a role="group" with the same label now; the
  verification note expected "region" and now expects "group".
- The words a screen reader hears after a step ("Done", "Failed", "Running")
  were three new English-only strings. They reuse the tool chip's translated
  toolDetail.completed, failed and running, and the three new keys are gone
  ("Done" is now "Completed").

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A record reads its lines from the transcript the chat has loaded, and the chat
loads the newest 200 messages and the rest on request. A call that began before
the oldest loaded message (scrolling back to an older call after a restart, or
a call longer than a page) could show some of its steps or none, with nothing
saying so, until "Load earlier messages" filled it in.

While older messages remain and the oldest one loaded is later than the call's
start (callRecordIsPartial), the record now adds "Some of this call may be in
earlier messages. Load earlier messages to see all of it." This is the simpler
of the two options: a hint, not a button or a load of its own. The chat's own
Load earlier button keeps the scroll position when rows are prepended, and
reaching it from a row would need its callback passed, stable, through the
memoized list. The chat's hasMore joins the rows context for it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Main's change that lets a bot apply changes to itself without a card (#2434)
adds cards with an Undo that can end up "undone". They are receipts the
proposal services (profile, model, routine) and the skill path append straight
to the store, so they carry no requestMessageId, which only the runtime event
handler's pushMessage stamps. A call's record selects by that id, so none of
them can reach a record, and an undone one cannot draw a check there. The
claim that a record lists only provider permission cards stays true; the spec
now names these receipts beside the other cards the server appends itself.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The ChatView test for a call that began within the loaded messages used a
record that started after its own lines, which passed for the wrong reason.
It now has an earlier typed message in the page, as the component test has, so
it pins "the page reaches back to before the call, though older messages
remain". The spec bullet that grew over this wave is rewrapped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The note's by-hand recipe now expects group "Live call: ..." (it said region),
and a "Re-exercised" section records a short run of the same isolated fixture
after this wave: the real renderer's snapshot lists the record as a group with
"Running a command (Completed)", and the page's own layout, measured with and
without max-w-full on the list, shows a long line truncating inside the pill
with the fix and the list running 1816 px past both sides of it without. It
also says what the fixture cannot show (a step with no outcome, "Expired", the
partial-record hint), which the component tests pin.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
A corrupt routines.json or webhooks.json loaded as empty and the next
save wrote that nothing back over the file. Both managers now remember a
non-ENOENT load failure, log it, refuse management writes with 503, and
skip background saves so the file on disk is never replaced with empty
state. Fixes #2478.
v0.1.102's npm publish failed before publishing: the standalone smoke grepped
serve.log for "reachable at https://ci.example" the moment /api/health first
answered. Since #2482 the server listens before engine model lists finish, so
health can answer before the CLI logs that line. The smoke now waits up to
30 s for the line, then checks it as before (a missing line still fails and
prints both logs).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(chief): create_bot goes through the team setup card

A Chief's create_bot used to make the bot at any approval level. It now
submits the same one-bot plan propose_team_setup does: Full Access applies
it in the turn, anything below shows the review card first. The
instructions become the new bot's soul.

* feat(chief): suggest a missing specialist through the team setup card

A Chief can call create_bot with suggestion: true when the work needs a
specialist nobody asked for. It always waits on the card, even at Full
Access, with Add bot and Not now. One suggestion is open per conversation,
and after Not now that conversation gets no more.

* test(comms): the section Chief applies the create_bot card before delegating
body no longer forces antialiased, which draws macOS text lighter than the system. display p3 gets a slightly stronger accent, success and danger while the sRGB values stay the fallback.
A request another bot sends with coordinate_bots is stored bot-role with
the sender on from, so the teammate's thread showed it as the bot talking
to itself. Give it the same peer label relayed lines already get.
* fix(team-map): show coordinate_bots work while it runs

The map only read the classic delegation queue, so work sent with
coordinate_bots never showed up. Read the room handoff tree too, ids only,
and open the exact work thread from the row.

Closes #2507

* fix(team-map): skip a room handoff the viewer can't see
* fix(chat): a click on the "…" handle holds the tray, a second closes it

With a mouse the tray that hover opened now stays out on the first click,
with the handle in the accent colour like the active raw toggle, and the
second click closes it and keeps it closed under the cursor until the
pointer leaves. Taps and the keyboard keep the toggle from #2491.

Hovering also opens a tray that Escape closed while the pointer was away,
and a key pressed on a clicked handle counts as keyboard focus, so
aria-expanded keeps matching the tray.

* fix(chat): tell a keyboard click on the "…" handle by its detail

The handle kept the last pointerdown type in a ref and read an empty one
as the keyboard. A press dragged off the handle never clicks, so the ref
stayed set and a later Enter counted as a mouse. Enter and Space click
with detail 0 and a mouse or a tap with 1 or more, so the click itself
says which it was and the ref is gone.
a bot can save files to a folder the person asked for, outside the chat's
working folder. the server refuses those links by design (outside_workspace),
but the chat showed the refusal like a passing failure: a retry arrow next to
the link and the chip, and the server's english "outside this conversation's
workspace" text. people read it as a broken or loading link, and since the
links that were never clicked still showed a download icon, it looked like
only some links in a reply failed.

for that refusal the link and its chip now say it in the app's language and
words ("outside this chat's working folder") and drop the retry arrow. show in
folder and the server check are unchanged. other failures keep their text and
retry.
* feat(bots): deliver a file saved outside the chat's folders through attach_file

a bot often saves output where the person asked, outside the chat's working
folder. its links to those files are refused by design (outside_workspace),
and attach_file was limited to the same folders, so the person could only
find the file with show in folder on the host and never open it on a phone.

attach_file now also accepts one file the turn saved elsewhere, and copies it
into the attachment store like any attachment. the original stays where it
is, and no folder or link grant is added. the roots are still tried first,
and the fallback holds only when

- the turn's engine works with host files (supportsWorkspaceFiles), it is not
  a local vm turn, and this is not a cloud home or a hosted workspace
- the file was written during this turn (mtime at or after the turn's
  capability was minted, with 2s of filesystem slack)
- the real path has no hidden component and is not inside the data dir
- the usual checks pass: realpath and O_NOFOLLOW through openMessageFile,
  regular file, attach types, 10 MB images and 25 MB files, 10 per turn

the file locations prompt tells a bot that has attach_file to deliver files
it saved elsewhere this way, a few at a time for a big folder. the tool
catalog is unchanged.

refs #2497

* test(bots): skip the symlink case on windows like the other symlink tests
* feat(turns): tell every turn the current time and timezone

Bots had no clock. A one line stamp (weekday, local date and time, IANA
timezone, UTC offset) now rides in front of every direct and room turn's
text, like automatic recall, stamped at dispatch so a long session's next
turn carries its own time. The system prompt and its stable/volatile
halves are unchanged, so cached prefixes and spawned CLIs are untouched.

* fix(turns): skip the clock by the person's text, and let the eval read past it

An image-only turn or a slash command now skips the clock line even when
replayed or unseen-messages context leads the turn text. The behavior
eval scorer reads one leading clock line between the instructions update
and the person's text, and the steer test compares user rows verbatim.

---------

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* feat(chief): create_bot goes through the team setup card

A Chief's create_bot used to make the bot at any approval level. It now
submits the same one-bot plan propose_team_setup does: Full Access applies
it in the turn, anything below shows the review card first. The
instructions become the new bot's soul.

* test(comms): the section Chief applies the create_bot card before delegating

* fix(chief): a teammate from team setup starts with no connector tools

* test(chief): select an offered model in the visibility fixture

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A Claude Code installed from Settings lives in the app's own npm prefix
(~/.openmausbot/tools/npm), which is first on the engines' PATH, so every
turn runs it. The update card ran `claude update` on that copy, and Claude's
updater reinstalls through the first npm it finds: it updated Homebrew's
or the native copy instead and left the app's copy as it was. The turn
kept failing "Claude Code 2.1.272 does not support this model" however
often the person pressed Update.

When the claude a turn runs is the app's copy, the update now reinstalls
it the way it was installed (installNpmEngine, @latest, with its start
check), then reports that copy's version. Any other copy still goes
through `claude update`.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(browser): recover tools after Restart and name a stuck engine

A stalled browser returns a tool error that asks for Restart in the
Browser panel, and a successful Restart clears the latch in the same
session. Human input no longer blames a slow connection, and an
unmanaged agent-browser that is not the pinned version is reported.

* fix(browser): probe an unmanaged engine's version in the background and keep slow connection in the input wording

browserEngineStatus no longer runs execFileSync on the status path. it
reads a per-mtime cache and starts an async execFile probe (1.5 s timeout)
when the binary is new or changed, answering unknown until it lands. the
version warning is logged once the probe answers. the input queue message
names both a stuck engine and a slow connection again.

* fix(browser): keep the input queue wording from main

a full input queue is not proof of a stuck engine. main's message already
names a stuck browser and a slow connection, so this branch no longer
changes it.
* feat(chat): mark where unread messages start with a new divider

When a thread or room opens with unread replies, a thin accent line with a
small "New" label sits above the first message after your last one. The
boundary is captured in the store when the thread opens, so it holds still
while replies stream in. It fades out a moment after you write back or
scroll back down to the end, and drops at once under reduced motion. Your
own lines and hidden routine runs never get one.

* fix(chat): start the new divider after the last read message
# Conflicts:
#	pnpm-lock.yaml
Typing "google" in the Browser panel opened https://google/, which does not
resolve. The engine answered that the navigation failed, but the panel's
command path treated every failed human action as one that might still be
running: it marked the session interrupted, and every later action was
refused with "A browser action was interrupted. Choose Restart browser…".

- An action the engine answered as failed (its JSON says success:false)
  is settled: the person sees "This page could not be opened. Check the
  address and try again." and the browser stays usable. A command with no
  answer (a timeout, an abort, a crash) is still an interruption.
- The address bar searches for text that is not an address and opens
  localhost/IP dev servers over http, ported from t3code's
  resolveAddressBarInput (MIT).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Scrapers often return x.com/i/web/status/<id>. Without the handle a bot opens
its browser to find whose post it is, which defeats paying for treg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
X research now runs on the OpenMausBot Cloud Admin's X relay: a Cloud
home's OMB_CLOUD_X_URL/OMB_CLOUD_X_TOKEN, or a paying desktop's token
handed over on the private parent port (openmausbot:included-x). The
person's treg token, its API keys row, Test route and desktop credential
slot are gone. The client calls <relay>/call/<endpoint> with a Bearer token
and maps the relay's 401/402/429/5xx to plain sentences; the gate, routes
and config status (xResearch.included) read the included credential per
call. The Access card shows X research as a Cloud plan feature, with sign
in or Get Pro on the desktop. The e2e runs a real agents proxy against a
loopback relay stub, and no tools without a plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While the Cloud sign-in is on an active paid plan, the desktop asks the
Admin once for that sign-in's own X relay token (POST
/api/cloud/desktop/services/x) and posts it to the server on the private
parent port; a lapsed plan, a sign-out or a sign-in to redo posts null. It
is held in memory only, re-sent after a server restart, and never fetched on
every refresh (a new token would refuse the one a bot is using). The relay
URL must be on the Cloud's own origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test: isolate Codex turn evidence from account probes

* test: use a Windows Claude shim in updater discovery fixture
A plain permission or held send now reads as one quiet line in the
transcript, and the composer holds the one decision card: who wants what,
the command in small monospace, compact Deny and Allow once, Cancel turn
set apart. Code run on Composio is named as such, keeps its arguments
behind Details, and its held note says why it asks. A settled approval
collapses to one line with its outcome. The applied-change receipt uses
quieter type.
Live calls unlock with an active OMB Cloud plan of any tier (Personal, Pro or
Max). liveCallsAllowed in electron/pro-plan.mjs is the one place that says so,
pure and dependency-free so Electron main, the server and the renderer can all
import it. Verified, the plan answers: an active paid plan (also while a failed
re-check keeps it, "checking") or a payment still being linked is yes; signed
out, free or a plan that is not active is no. While the plan cannot be checked
(not read yet, signing in, OMB Cloud unreachable, or this computer's sign-in
ended), the plan last verified decides: the account's lastPlan where it carries
one, else the last answer this side had. A Cloud home always may.

Electron hands its server the answer alone, never the account: OMB_PRO_PLAN at
spawn and an "openmausbot:pro-plan" message after. The builders and parsers for
both live here, beside createProPlanRelay, main's memory of the last answer.
The node test is the rule's table (every plan state, with and without a last
known Pro, and a Cloud home), the relay across a sign-in's life, and the round
trip of what crosses to the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Oct 9 the Cloudflare account was back at its 1,000-tunnel cap: 927
owners held the 996 ready tunnels, new installs were refused (Cloudflare
now answers tunnel creation at the cap with HTTP 429), and the 14-day
idle scan found nothing to reclaim. New endpoints run 55-95 a day.

OMB_TUNNEL_OFFLINE_RECLAIM_DAYS drops to 7 (the config floor, now that
apps recover a reclaimed tunnel on their own, c2d5d5c26) and
OMB_CLEANUP_SWEEP_LIMIT goes back to the code default of 20. This is
the config deployed as version 230a8753 at 11:47Z. Its first scan page
marked and deleted 9 idle tunnels with no failures and no rate limit.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- A relay 503 overloaded (treg rate-limiting) is no outage: no second,
  also counted, call to the routed endpoint.
- The client waits 35 s, longer than the relay's 30 s with treg.
- The desktop remembers the Admin's no for a sign-in and plan version
  instead of asking every minute, tells the server, and the Access card
  says X research isn't available instead of connecting forever. A fetch
  that ends after the plan or sign-in changed sends nothing; a newer paid
  sign-in is asked for next.
- Tests: an old config.json with a treg token still loads; the draft-mode
  Access test is back. Docs say My Cloud, not your Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shiki tokenizes on the renderer's main thread. With the app's core bundle
and JavaScript regex engine, 100 KB of TypeScript takes 1.1 s, 200 KB 2.3 s
and 1 MB 12 s, and HTML that big is never cached, so each remount froze the
window again. Blocks up to the bound highlight exactly as before.

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
The two in-flight revocation cases raced a 3-5s scripted window and could go red under pair load (pair 20260929-221744). Hold the child on a gate file after its MCP calls, land the access change while it runs, keep it held until the periodic revalidation of the running child enforces the withhold, then release the gate, with a 30s poll budget and a 60s case timeout.

Co-authored-by: GLM-5.3 <noreply@z.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* perf(chat): load katex only when a message has math

The main bundle carried katex on every visit. rehype-katex and its stylesheet now load on the first formula, and a message without math never asks for them.

* fix(chat): recover lazy math rendering after failed asset downloads

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Deny, Always allow when an existing grant applies, and Allow once sit on
the same row as a short line with the command inline. The command box,
held note and Cancel turn move behind a details chevron. Code and real
sends get a small may send chip.
Wraps Routines, Triggers and Team map (Advanced mode) in a "Tools" header
that folds the rows away but keeps its label, so a folded footer still says
what is inside. A failed-routine dot shows on the header while folded.
Reuses collapsedSections and existing i18n keys.

Fixes #2183.

Co-authored-by: Sathiyan Kutty <sathiyankutty@Sathiyans-MacBook-Air.local>
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* perf(rooms): coalesce room-handoff saves within a tick

Acceptance and caller-visible stops still fsync before they return. A tick's status updates and the settlements that resolve in that turn each share one write.

* fix(rooms): write a room handoff's start before its child runs

tickBody now saves what the tick changed so far right before hooks.run, so
the file says running before any work begins. if that write fails the node
goes back to queued, nothing starts, and the next tick tries again.
settlements and the tick's other updates still share writes. tests cover a
failed start write, a restart with children in flight, and a failed
settlement write.

* fix(rooms): retain failed saves and publish only durable handoff results

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(chat): show a cancelled turn as a quiet stop with retry

A client abort was stored as the provider sentence and drawn as an
assistant reply. Keep real errors as they are, and reuse regenerate
or the room send for Retry.

* fix(chat): keep a client abort a stop through completion and retry the stopped room request

a stop now drops the text the turn said before it from lastReply, so the
digest and the finished notification don't read a half reply. the stop is
remembered per thread until turn.completed, which skips the failure incident
whatever stopReason the provider settles with. room retry resends the
person's message right before the stopped row, with its files and reply
target, and offers nothing when a bot's line started that turn.
server/cancelled-turn.e2e.test.ts covers it on a disposable server and room.

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Before every new ACP session the runtime sent authenticate(cursor_login).
With CURSOR_API_KEY set, Cursor's handler first deletes ~/.cursor/auth.json,
and once the access token has expired it opens a browser sign-in instead of
refreshing, so an unattended host collected browser windows every day. A
session spawned with CURSOR_API_KEY or CURSOR_AUTH_TOKEN is already
authenticated, the same check probeCursorAuth() makes, so pickAuthMethod now
returns null there. pickAuthMethod receives the environment the agent was
spawned with; other harnesses ignore it.

Fixes #2170

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
POST /api/live/session now refuses a start without Pro with
402 { "error": "Live calls need a Pro plan.", "needsPro": true }. The check is
LiveCallController.start's, after a busy line and an unpaired phone and before
the OpenAI key, so nobody without Pro is asked for a key (409 needsKey only
when Pro). It covers every client: the phones' starts come through the same
route, and the companion passes the 402 body through unchanged (pinned in
proxy-response.test.ts). The plan is asked once, when a call starts, so a
running call is never cut off by a plan change.

The server learns the plan the way it learns the desktop's other trusted
state. Electron main keeps the answer from its Cloud sign-in
(createProPlanRelay), starts the server with OMB_PRO_PLAN, set and never
inherited, and posts each change over the utility process's private port, again
when a server it started is ready. server/pro-plan.ts holds the answer and
applies the rule with the Cloud home flag; a Cloud home always counts. A server
the desktop app did not start (dev, tests, headless or Docker) says Pro with
OMB_PRO_PLAN=1, which the verification launcher lets cross only as "1".

The live-call e2e's main server says Pro with OMB_PRO_PLAN=1; the Cloud home
block still needs only the key. A new block starts a server the way the desktop
app does (OMB_PRO_PLAN=0, then messages over a stand-in parent port fed by
Node IPC): 402 with no session, a call once the message says Pro (a malformed
message after it is refused and changes nothing), still live after the message
says not Pro, and the next start refused.

Main's own hand-off runs in a VM test, as updater.test.mjs runs its updater
rule: the spawn environment carries OMB_PRO_PLAN after the launching shell's,
onReady hands a ready server the current answer, every state the Cloud sign-in
publishes reaches a running server, and a closed port is logged, never thrown
into the sign-in. updater.test.mjs, which runs ensureCloudAccount the same way,
fakes the new syncProPlan call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the harness answers a Live call with needsPro, the call button shows the
Pro card where the key form would be (LiveProPrompt, built from the Pro card's
own pieces and rule). It offers a plan only where buyOfferAllowed says: signed
out, it leads with signing in; free, Get Pro and the plans. Anyone who pays,
may pay, or whose plan is not known yet sees that plan when there is one to
name, and OMB Cloud settings, never an offer. A window that cannot read the
plan (a browser, a server's page) says only what Live calls need. The copy says
any active OpenMausBot Cloud plan unlocks Live calls and that calls still use
the person's own OpenAI key.

The media module keeps needsPro beside needsKey; dismissKeyPrompt becomes
dismissStartPrompt and drops either prompt when the chat is left or the prompt
closed. The prompt behaves as the key form does: the button reports it as its
open pop-up, and outside clicks and Escape close it. It takes focus itself
rather than its first button: what it offers depends on the plan, which
arrives a moment after it opens, so a button focused first could be replaced
under the person's focus. There is no Try again, and nothing to end on the
harness: no session was made.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The call bar's spec gains "Live calls need Pro": who may start a call, the
last-known-Pro rule while the plan cannot be checked, how the desktop app hands
its server the answer (OMB_PRO_PLAN at spawn, then its private message), the
402 needsPro contract before the key, and what the desktop shows. The HTTP
contract table and the errors table list the 402.

The verification note says the same in short, with the commands that pin it,
and the by-hand recipe now launches its fixture with OMB_PRO_PLAN=1, without
which every start answers 402 (the way to see the Pro card by hand). The
launcher's README names OMB_PRO_PLAN among what crosses into a fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pending row uses the composer's surface, radius and ring. Deny is a
ghost button with red text, Always allow is subtly filled and Allow once
is flat accent, with a focus ring only for the keyboard. While the
composer shows an ask, its transcript line is for screen readers only.
* perf(harness): write the canonical event log asynchronously

Queue runtime events and append adjacent NDJSON lines off the event
loop, keeping publish order, the incomplete-log marker, and the thread
log cap. Flush the queue on terminal events, detach, and shutdown.

* fix(harness): keep publication order in the async event log and never drop a turn's end

write queues the canonical line before delivering, so a listener that
publishes from inside delivery logs after the event that triggered it. a
terminal event is accepted past the queue ceiling, with the thread's gap
marker right before it. shutdown uses a bounded flushWithin and logs when
the history may be incomplete.

* fix(events): preserve gap ordering and report incomplete shutdown writes

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(cursor): map effort model slugs to the ACP variant and report substitutions

`cursor-agent models` lists slugs such as `grok-4.7-high-fast`, but the ACP
session only accepts the ids it advertises, here
`grok-4.7[context=256k,reasoning_effort=high,fast=true]`. The resolver did
not map effort slugs, so set_model got the raw slug, Cursor answered -32602
and the driver swallowed it. Current CLIs (2026.09.28) also ignore argv
`--model` in ACP sessions, so these bots silently ran on Auto.

- Map `<base>-<effort>[-fast]` slugs onto the advertised variant with that
  effort (`reasoning_effort=`, `effort=` or `reasoning=`). The session
  advertises one variant per base, so another effort settles for that
  variant and the conversation gets a notice.
- On -32602 the turn still continues, now with a notice that names the model
  the session runs.
- configureSession gets a `notice` callback from ACP core, deduplicated per
  process like the core fallback notice.
- The fake ACP CLI keeps commas inside `[...]` when it splits
  FAKE_ACP_SESSION_MODELS.

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

* fix(cursor): preserve model selection across pooled turns

* refactor(acp): remove obsolete per-turn model snapshot

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rows align on the text baseline with icons centered, the command sits in
a 24px pill at 12.5px mono, Deny gets the same subtle fill as Always
allow, and every gap is 8px.
The command chip and May send match the buttons and the chevron, with
the mono padding retuned so the box middle and baseline still match.
* fix(control-plane): new endpoints in a second Cloudflare account; a 429 at the tunnel cap is capacity

Cloudflare caps an account at 1,000 tunnels. The account is full, and
Cloudflare now answers tunnel creation at the cap with HTTP 429, which the
control plane mapped to endpoint_rate_limited: no capacity gate was recorded
and apps retried without end.

- A tunnel-creation 429 while the account's tunnel count (or, when that
  cannot be read, a scan under 30 minutes old) is at or over its limit is
  now the capacity code cf_tunnel_quota: 503 endpoint_capacity with
  Retry-After 600 and the ten-minute gate. Any other 429 stays
  endpoint_rate_limited and closes nothing.
- Endpoints can live in more than one Cloudflare account. The primary is
  configured as before; CLOUDFLARE_ENDPOINT_ACCOUNTS adds up to three more
  (account, zone, host suffix, the name of its token secret, quotas, an
  optional minAppVersion). A bad entry is ignored with a redacted alert and
  never takes sign-in or /healthz down.
- Migration 0007 ties every endpoint row to its account by ID
  (provider_account, defaulting to the account every existing row lives in)
  and keeps capacity state per account; the 0006 row stays, unwritten.
- A new endpoint goes to the eligible account with the most room: freshly
  scanned, not refusing, version gate met, with a slot kept for each dormant
  endpoint. A row that never handed out an address may move once per
  request. Every other endpoint keeps its account, tunnel and hostname:
  renewal, re-provisioning after a reclaim, owner DELETE, revocation
  cleanup, the sweep and the idle scan all act in the endpoint's own
  account, and an endpoint whose account is not configured refuses to act.
- The scan, reclaim budget, alerts and /healthz work per account. /healthz
  is unchanged with one account; with more it reports the pool plus one
  entry per host suffix, and a pool alert fires.
- POST /v1/installations/self/endpoint takes an optional
  {"appVersion": "..."} body, recorded on the installation. The desktop app
  and `openmausbot serve --tunnel` send it, and desktop-companion pairing
  accepts mausbot.si addresses as well as openmausbot.com ones.

With only the current account configured, apps see the same contract; the
only change is that a full account answers endpoint_capacity. The README
documents adding an account (zone, token permissions, secret names,
config) and why a Worker from before 0007 must not be rolled back to once a
second account holds endpoints.

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

* fix(control-plane): second-account review fixes

- Closing an account is explicit: "newEndpoints": false on an entry keeps
  its endpoints renewing, re-provisioning, and cleaning up there, gives it no
  new endpoint and no moving row, and takes it out of the pool that /healthz
  and managed_endpoint_pool_capacity describe. A full primary with every
  other account closed now pages; before, a closed account with room kept
  the pool "ok" while every new installation got endpoint_capacity. The pool
  still assumes the newest release, so minAppVersion alone does not leave it.
- A tunnel-creation 429 judged by the last scan no longer counts slots the
  sweep freed after that scan: the sweep lowers each account's snapshot
  tunnel and DNS record counts by what it deleted, in the statement that
  clears the gate.
- With several accounts, Cloudflare answering 401 or 403 in an account (a
  revoked token, or one missing Tunnel or DNS Edit) closes that account for
  ten minutes like a quota refusal: a never-ready row moves away (in the same
  request when tunnel creation was refused), its other endpoints are answered
  endpoint_unavailable locally, and managed_endpoint_account_refused fires
  (with one account too, where nothing else changes).
- The sweep, the idle scan, and the unconfigured-account alert now use
  endpointAccountFor's rule in SQL (account configured and hostname exactly
  c-<32 hex>.<that account's suffix>), so a row no account acts on is never
  claimed or marked and is counted, as the README already said.
- EndpointOperationError carries the account's ID, never the account and its
  token.
- Desktop-companion pairing accepts only c-<32 hex>.openmausbot.com and
  c-<32 hex>.mausbot.si, never another host in either zone.
- .dev.vars.example no longer shows second-account lines that wrangler dev
  ignores (secrets.required limits .dev.vars to declared names); the README
  says how to try one locally, and the runbook adds a token write check and
  the alerts to page on.

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

* test(control-plane): pin the reclaim threshold in the idle-reclaim test

The idle-reclaim test read OMB_TUNNEL_OFFLINE_RECLAIM_DAYS from
wrangler.jsonc. #2536 lowered it from 14 to 7 days, so the "recently
down" fixture (offline 10 days) became idle and was correctly
reclaimed, and main went red (6 deletes instead of 4).

The test now pins the deployed 7-day policy and keeps its recently-down
endpoint offline for 3 days. Retuning the deployed var no longer
changes what the test exercises. Mutation-checked: pinning 30 days
fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 1da82b48f54f4e850ad37257e912b26e4a0404bb)

* docs(control-plane): list a second account's secrets in secrets.required

A plain `wrangler deploy` sends an explicit keep only for the secrets
named in `secrets.required`. Listing the second account's token (and
CLOUDFLARE_ENDPOINT_ACCOUNTS when it is a secret) there keeps it on
every deploy, and a deploy refuses to run while one is missing.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cloud): Add a Cloud in the switcher, a post-update card, trial notices and the trial credit engine

- "+ Add a Cloud…" in the server switcher's native menu, and one dialog for
  the buying journey (plans with Pro "Most popular", the trial timeline,
  "$5 of Claude credit", money-back, price + tax). The checkout opens in
  the default browser only after a Dodo-origin check in main.
- A post-update bottom card ("Start free trial" / "Show me how") with a
  spotlight on the switcher, shown at most once a day on at most 3 days,
  never over onboarding, never on branded or organization desktops.
- One notice queue (from #2260's notices/NoticeCard) holding the card, the
  trial notices and the payer Cloud notice, one at a time.
- On a Cloud, the $5 trial credit runs only in OpenMausBot's own
  OpenAI-compatible chat engine, never Claude Code or Codex, and only when
  the person has no model of their own.
- Wording: "Sign in to your Cloud plan"; the stale "$89 after the first 100
  users" and "New features first" lines are gone; the routines "run on a
  VPS" line now points to Cloud. All new keys in all 9 language packs.

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

* i18n(zh-tw): the trial strings use the pack's unified terms (帳戶, 連線)

Wave 1's Traditional Chinese strings were written before #2433 settled one
term per concept. Thirteen of them now say 帳戶 for an account and 連線 for
connecting, as the rest of the pack does. English is unchanged, so no source
hash moves.

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

* feat(cloud): the Cloud is MausBot Cloud wherever a customer reads it

The owner's decision of Oct 9: customers read one name for the paid Cloud,
"MausBot Cloud". The app itself is still OpenMausBot, and My Cloud, Cloud
computer, This computer and Plan page keep their names, as do code
identifiers, env names, routes and file names.

- English: every en.json string that said "OpenMausBot Cloud" (29: the
  Settings section, sign-in and sign-out, the plan lines, the card after
  the update and the Add a Cloud dialog, lending, decisions, the place
  view), and the hard-coded copy around it: Cloud sign-in and checkout
  errors in electron/, the Cloud home's refusals, pairing label, lending
  refusal and system prompt in server/, shared/place-view.ts, the pairing
  page and the plan-line fallbacks.
- All 9 packs: the name is never translated, so each translation of those
  keys says MausBot Cloud (French: "de MausBot Cloud", "que MausBot
  Cloud"). `scripts/generate-locale.mjs <pack> --accept` reproduces
  source-hashes.json byte for byte; only the renamed keys moved. The
  tool's draft prompt keeps "MausBot Cloud" as it keeps "OpenMausBot".
- Word rules (src/locales/vocabulary.test.ts): the product entry is
  MausBot Cloud. "OMB Cloud", "OpenMausBot Cloud" and "MausBot Pro" (so
  "OpenMausBot Pro" too) are retired in en.json, every source literal, the
  packs and the public docs, and a pack must say "MausBot Cloud" wherever
  the English does.
- Docs: the public guide's Live-call note; docs/ios-companion.md,
  composio.md, copy-workspace.md, opencode-go.md, self-hosting.md and
  verification/engines-ui.md; and docs/cloud-pro.md, which states the
  customer-facing name once, keeps "OMB Cloud" as its own shorthand, and
  now quotes the server's real "My Cloud is personal" line.

Code comments, test names and log lines keep their internal names.

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

* fix(cloud): redact the credit token in diagnostics; test fixes for CI

- electron/diagnostics.mjs lists OMB_CLOUD_AI_TOKEN with the other
  credentials, so a diagnostics bundle redacts the trial credit's token
  (the parity test with server/config.ts caught the gap).
- updater.test.mjs: the sign-in callback now refreshes the Server menu
  and announces a ready Cloud; the test's sandbox stubs both, as it
  stubs sendUpdaterState.
- cloud-credit-provider.test.ts checks the 0700/0600 modes on POSIX
  only, like the repo's other permission tests (Windows has no modes).

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

* test(control-plane): pin the reclaim threshold in the idle-reclaim test

The idle-reclaim test read OMB_TUNNEL_OFFLINE_RECLAIM_DAYS from
wrangler.jsonc. #2536 lowered it from 14 to 7 days, so the "recently
down" fixture (offline 10 days) became idle and was correctly
reclaimed, and main went red (6 deletes instead of 4).

The test now pins the deployed 7-day policy and keeps its recently-down
endpoint offline for 3 days. Retuning the deployed var no longer
changes what the test exercises. Mutation-checked: pinning 30 days
fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 1da82b48f54f4e850ad37257e912b26e4a0404bb)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The idle-reclaim test read OMB_TUNNEL_OFFLINE_RECLAIM_DAYS from
wrangler.jsonc. #2536 lowered it from 14 to 7 days, so the "recently
down" fixture (offline 10 days) became idle and was correctly
reclaimed, and main went red (6 deletes instead of 4).

The test now pins the deployed 7-day policy and keeps its recently-down
endpoint offline for 3 days. Retuning the deployed var no longer
changes what the test exercises. Mutation-checked: pinning 30 days
fails the test.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(data): dependencies and shared contracts for the Data surface

DuckDB runs in the OMB server, one database per bot; bots get five tools
(data_load, data_describe, data_sql, data_show, data_export); the Computer
panel's Data tab shows a sheet of table and chart cards. The plan with its
research is in _plans/data-surface-2026-10-09 (mywork).

shared/data-surface.ts: the tool names, limits, the card/sheet/source
types, the small chart spec a bot writes, the panel routes and the
broadcast. server/data/types.ts: the engine, chart-compiler and renderer
seams the server modules build against.

Dependencies: @duckdb/node-api (pinned 1.5.6-r.1; Node-API, prebuilt for
every target), vega/vega-lite/vega-embed/vega-themes, codemirror +
lang-sql, @resvg/resvg-js for PNG.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): sheet store, dialect instructions and the deps seam

sheet.json per bot with atomic writes, c_<n> ids from one persisted counter
(never reused), update in place, pruning oldest-unpinned-first that drops the
pruned card's result table, and a restart that fails a card left running.
deps.ts is the only module naming engine/compiler/validator/renderer.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): "data" is a Computer panel view

The Data tab's id round-trips through the per-bot view storage like the
other tabs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): the store keeps each bot's data sheet

dataSheets[botId] holds the sheet (cards and sources, never rows). A
`data` frame replaces it whole; loadDataSheet fetches it when the tab
first opens; runDataSql, cancelDataCard, patchDataCard and deleteDataCard
call the panel routes and let the frame answer. shared/vega-config.ts is
a placeholder with the agreed signature, replaced at merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): DuckDB engine, one database per bot with two cancellable connections

server/data/engine.ts implements the DataEngine and BotDatabase seams
from server/data/types.ts on @duckdb/node-api. The binding loads on
first use through a dynamic require (OMB_DUCKDB_DIR, then
OMB_RESOURCES_PATH/duckdb, then the server's own node_modules), so
esbuild never bundles it and a missing binding is a one-line reason
from unavailable(), never a throw at import.

Each bot gets one DuckDBInstance at <bot folder>/data.duckdb with
explicit limits (memory 25 % of RAM up to 2 GB, 4 threads, a spill
directory capped at 20 GB, a versioned extension directory, no
persistent secrets) and two connections, bot and panel, each running
one statement at a time so interrupt() always hits the statement the
timeout, the AbortSignal or the person meant. Results materialise in
the omb_results schema, visible to both connections. run, materialise,
page (sort, filter, stable rowid order), describe, stats (cached by
table and row count), histogram, listTables, resolveTable (with close
names) and deleteBot; DuckDB's own error text travels verbatim with a
code and the line it names. Idle databases close after ten minutes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): chart compiler and the shared Vega config

compileChart turns a bot's small chart spec into the SQL that reduces the
data in DuckDB and a data-free Vega-Lite spec (PLAN D5, D7). Reductions by
chart type and column class: top-N + "other" for categories, equal-width
bins for numbers, time_bucket with the unit chosen in SQL from the range,
M4 for a raw series, a repeatable reservoir sample for scatter, GROUP BY
for heatmaps. Every statement ends with LIMIT chartMaxMarks + 1 so the
caller can tell an overflow from a full chart.

shared/vega-config.ts is the one Vega config the panel, the server
renderer and the headless check all use: the app's font stack, ink and
hairline tokens per theme, one ten-colour range that reads on both.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): the five Data tools and their operations

data_load (files, folders, globs, URLs, Postgres/MySQL/SQLite snapshots,
Google Sheets export), data_describe, data_sql (statement gate, materialised
results, rows and bytes bounded), data_show (table and chart cards, update in
place, 10k-mark cap) and data_export (COPY TO under the working folder or
Downloads; png/svg through the renderer). Every SQL string quotes its
literals and identifiers; every failure is a structured DataError.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): the engine against the real binding from an out-of-tree directory

28 tests on real DuckDB in throwaway folders: the loader honours
OMB_DUCKDB_DIR and names the directory when the binding is missing;
settings reach the instance; a materialised result is visible to the
panel's connection where a temp table is not; run, materialise, page
(stable order, sort, filter, injection-safe), describe, stats cache,
histograms, listTables, resolveTable and candidates; DuckDB's text and
line on sql_error and table_not_found; timeout and AbortSignal map to
timeout and cancelled with the connection still usable; idle close
and reopen; deleteBot removes the file, the WAL and the spill folder.

Two fixes the tests found: DESCRIBE of a query target needs
`DESCRIBE SELECT * FROM (…)`, and a prefix match now outranks an
edit-distance match among close names.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(backup): leave a bot's live DuckDB file, WAL and spill folder out of workspace backups

The backup walks all of DATA_DIR, so bots/<id>/data.duckdb would be
copied while the engine holds it open: not a consistent snapshot, and
potentially gigabytes of tables the bot can load again. The sheet
beside it is still backed up. Same rule in the export walk and in
omittedFromWorkspaceBackup (cloud-move sizes a move with it).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): the Data panel, its cards, grid, chart, editor and explorer

DataPanel = Sources strip, the card stream (newest at the bottom) with the
Column Explorer drawer, and the person's SQL editor. DataGrid pages rows
from the server in pageSize windows around what is on screen, with sort
and filter sent along; DataChart lazy-loads vega-embed and binds the
reduced rows as dataset "table"; SqlEditor is a plain box that
CodeMirror (lazy, with schema completion) takes over. "Ask to change"
puts "Change card <id>: " into the bot's composer through the existing
draft mechanism. useColorScheme reads the skin's --code-color-scheme.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): the Data tab in the Computer panel

Beside Browser in both modes; the panel's code loads on first open.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): Vega-Lite validator, chart renderer and their tests

validateVegaLite is the escape hatch's gate: ajv against the Vega-Lite v6
schema (compiled once per process), no inline data anywhere in the tree
(every data must be {name: "table"}), then one headless compile and parse
so a broken expression fails with a message the bot can act on. The error
reported is the deepest path the validator reached, so "mark: must be one
of …" rather than the top-level anyOf branch that happened to fail.

chartRenderer draws the same Vega-Lite the panel does, with the same
config: SVG through a vega View with no renderer, PNG through resvg at
width × scale on the theme's surface. Rows are coerced by DuckDB type
first — bigints and decimals arrive as strings, dates and naive
timestamps as text, which parse as local wall-clock time so a DATE never
slips a day west of Greenwich.

Tests: the compiler table-driven per chart type and column class, the
LIMIT sentinel on every statement, top-N folding, identifier quoting;
the validator's gates; the renderer's SVG/PNG; and an end-to-end run on
an in-memory DuckDB including a 100k-row table that proves the sample
path and the overflow sentinel.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): the tools against a fake database

Statement gate (reads, CTE writes, EXPLAIN ANALYZE, CREATE … AS forms),
bounds by rows and bytes, load planning with quoted literals and stripped
credentials, read-only ATTACH/DETACH, cards updating in place and failing
honestly, chart mark cap, export path confinement through symlinks, and
the error shape of every refusal. Export now checks the path before it
renders.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): no rounded bar tips in the Vega config

cornerRadiusEnd makes Vega emit a clipPath per bar: a 1,000-bar SVG was
930 KB and its PNG took 1.7 s; without it 379 KB and ~0.4 s.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): the panel, grid paging, editor keys and store routes

Grid: pages around the visible window, never more than pageSize rows a
request, sort and filter in the body, a fresh cache from the top when
either changes. Panel: sources and cards from the sheet, vega-embed only
with a chart card, Cmd/Ctrl+Enter runs, Esc cancels, DuckDB's message on
a failed card, Ask to change through the composer draft. Store: GET once,
data frames replace, run/cancel/patch/delete hit their routes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* build(data): ship the DuckDB binding as a resource tree on desktop and in the image

The packaged app ships no node_modules, so scripts/prepare-duckdb.mjs
stages dist-native/duckdb/<platform>-<arch>/node_modules/@duckdb/
{node-api,node-bindings,node-bindings-<platform>-<arch>} at the exact
version package.json pins, both mac arches on macOS (the other arch's
package comes from pnpm's supportedArchitectures install, or npm pack
into the cache when missing). The mac packages carry a 117 MB universal
libduckdb.dylib; each app keeps its own slice (57 MB arm64, 59 MB x64)
with lipo and re-signs it ad hoc so dlopen accepts it before
electron-builder signs it with the app's identity.

Staged under dist-native/duckdb like cloudflared and the browser, not
dist-native/<arch>, because prepare-cua wipes dist-native/<arch> after
package:prepare has run. electron-builder copies it to resources/duckdb
per platform; after-pack verifies the pinned packages, the binding
beside its library, and on macOS a single-arch Mach-O for the package
arch. The Dockerfile stages linux-x64 the same way in the build stage
(pnpm's @duckdb tree is symlinks, which a COPY --from would keep) and
sets OMB_DUCKDB_DIR=/app/duckdb for both runtime images.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): rpc for the proxy, panel routes, system prompt

dataRpc answers tools/list with the catalog and the DuckDB dialect
instructions, tools/call after a schema check, capability asserted before and
after. createDataRoutes serves /api/bots/:botId/data (sheet, page, run,
cancel, card PATCH/DELETE, stats, histogram, export, image) through the
route table with {error: DataError} envelopes and code → status mapping.
data_show follows the compiler contract: reduction relabelled none when
nothing was reduced; line/area note in the description.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): one paging target per card

The grid keys its page cache and loader off the target; a fresh object
each render re-ran the paging effect for nothing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(data): mount the Data tools and routes

harness-mcp-proxy gains kind data (initialize carries the dialect
instructions); contracts gain integrations.data and capabilities.dataMcp;
claude, codex and pi mount the proxy. index.ts: capability kind data, the
/api/internal/data/mcp route (engine checked, capability asserted before and
after), integrations.data in both turn assemblies with the Data system
prompt beside the browser's, createDataRoutes in the route table, one sheet
registry, exports confined to Downloads / working folder / workspace, the
bot's database and sheet deleted with the bot, closeAll on shutdown.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): proxy kind data and sheet deletion

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* build(data): ship resvg beside DuckDB; the server bundle has no native code

render.ts imported @resvg/resvg-js statically, so esbuild tried to bundle
its .node file and the server build failed. The packaged app ships no
node_modules, so the rasteriser travels in the same resource tree as the
DuckDB binding (dist-native/duckdb/<platform>-<arch>/node_modules, now
@duckdb and @resvg) and is required at first use through the same
createRequire anchor (engine.ts nativeRequire). prepare-duckdb stages,
pins and signs it; after-pack verifies it; the Docker image already copies
the whole tree.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): the Data surface end to end through the real server

A bot loads a CSV, describes and queries it, and shows a table and a
chart through the internal MCP route with a data capability; the panel
reads the sheet, pages the table, renders the chart as SVG, runs the
person's own SQL, exports a CSV under Downloads, renames and removes a
card. The testing capability route can now mint kind "data".

The test caught a real defect: three TypeScript parameter properties in
engine.ts and sheet.ts, which node --experimental-strip-types (the dev
server) refuses, so the server did not start. They are explicit fields
now, and tsconfig.server.json sets erasableSyntaxOnly so the compiler
refuses that syntax everywhere the stripping loader would.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* build(data): the installer copies the native tree; Windows deletes wait

Three CI findings:

- Linux packaging: electron-builder's resource filter drops a root-level
  node_modules entry of any tree it copies (app-builder-lib util/filter),
  so resources/duckdb was never written and after-pack failed. The
  extraResources entries now name the node_modules directory itself; a
  test reads electron-builder.yml and refuses the other shape.
- Docker image test: the native tree changes on a version bump, not per
  commit, so its COPY sits beneath the per-commit app files in both
  shipped stages, and the staging runs in its own build step.
- Windows: a just-closed DuckDB file stays busy for a moment; deleteBot
  removes with fs.rm's EBUSY/EPERM retries instead of rmSync.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): two Windows-only test fixes

The installer guard read electron-builder.yml with CRLF endings, so its
capture ended in \r; the delete test wrote a fake WAL while DuckDB held
the real one open, which Windows refuses. The product code was right.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test: wait for whole files, and let Windows release DuckDB's

The OpenCode provider-keys test polled for the fake CLI's dump to exist
and then parsed it; a busy runner read it half-written ("Unexpected end
of JSON input"). It now polls until the last line parses. The engine
test's cleanup retries rm: Windows keeps a just-closed database busy.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): a slow runner may abort before the statement starts

Both are `cancelled`; the message differs. And on Windows the cleanup
retries longer and, failing that, leaves the temp directory with a
warning rather than failing a suite whose tests all passed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): bound the Windows cleanup retry to seconds, not minutes

fs.rm's retry delay grows linearly, so 50 × 200 ms could wait four
minutes and the afterAll hook timed out at 60 s with every test passed.
Ten retries of 100 ms, and the same bound on deleteBot.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
# Conflicts:
#	src/lib/failed-turn.test.ts
#	src/lib/failed-turn.ts
* chore(release): bump version to 0.1.104

* test(screen): the settled frame is a JPEG since #2591

#2591 made the agent-browser preview and settled frames JPEG (quality
80) but its test jobs were cancelled before merge, so
direct-screen-settlement-api.test.ts still expected image/png and main
went red (ubuntu vitest shard 1).

The fake browser now writes a 1x1 JPEG, as the real one does with
--screenshot-format jpeg, and the test expects image/jpeg on the live
message and the image route. Mutation-checked: expecting image/png
again fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit dc632f909efa62787ed74317341ef81c03c2c99a)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(data): a close waits at most 10 s for a statement to drain

BotDb.close() interrupted both connections and then waited for their
queues with no bound, so one statement DuckDB did not stop held the
close forever. The engine test's afterAll hung that way on Windows CI
(60 s hook timeout) with every test passed, and the server's own
shutdown, which calls closeAll, would hang the same way.

The drain now gives up after CLOSE_DRAIN_MS and leaves the native
handles to the process with one warning, rather than calling closeSync
on a busy connection (undefined behaviour). The test hook outlasts that
and, on Windows only, tolerates a close that still hangs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(data): on Windows, leave the databases to the process

With the bounded drain in place the hook still timed out on Windows CI,
and none of its timers fired, so the worker thread was blocked inside
DuckDB's native close. No JavaScript bound reaches that; the exit of the
process reclaims the handles, and the 29 tests have already decided.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* feat(data): ship AG Grid viewer and chat-driven live SQL

* fix(data): drop replaced result tables on the caller's connection

showCard awaited dropResult for the previous or abandoned result table on
the serialised "bot" connection, so a panel live edit's HTTP response
waited behind whatever the bot was running. dropResult now takes the
connection (default "bot", as before) and showCard drops on its own.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): run live SQL after a 50 ms typing pause, latest text wins

Every keystroke posted a live run the server materialised as a table and
then interrupted with the next character. The run now waits 50 ms after
the last keystroke; a newer run still aborts the in-flight one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): load extensions as their own lane step with their own budget

A first-time INSTALL downloads from the core repository, and it ran
inside the statement's 60 s timeout; the PR had also reordered
failureFrom so a timeout overrode the loader's DataFailure, replacing the
"allow extensions.duckdb.org" hint with "narrow the query". The install
now runs as its own lane step (5 minutes) ahead of the statement, and a
structured failure is returned as-is again.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(computer): a model change no longer resets the panel tab

The tab-follow effect was keyed on connectionKey, which carries the
thread bot's model instance, so changing the model (or Auto resolving its
surface) pulled the person off the Data, Files or Routines tab. The tab
now follows only the conversation and its chosen place.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): open a result receipt through the bot's own select path

openDataResult re-implemented bot selection, so the unread flag, the read
cursor and the /read POST that select performs were skipped. It now runs
the select and toggleComputer reducers and shares select's read effect.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): the sheet no longer caches DuckDB's catalog

sheet.json kept a copy of the table list that never matched what
listTables returned (described columns and quoted names on one side,
plain ones on the other), so every GET /data rewrote the file and
broadcast a `data` frame to every client, and a quoted CREATE OR REPLACE
TABLE "orders" made a second entry beside orders. DuckDB owns the
catalog: GET /data still answers { sheet, tables } with a fresh
listTables(), data_describe lists it from the database, and the sheet
carries cards and sources only.

Client follow-up (owned elsewhere): src/components/data/DataPanel.tsx
reads sheet.tables; it should take `tables` from the GET /data response.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): the result receipt names its tool, not the card's title

The receipt was stored with tool.name = the card's free-form title only
so the chips' `if (!tool) return null` passed, and every consumer that
reads tool.name as a tool or status identifier misrouted it: a result
called "notice: revenue by region" rendered as a status row, one named
like the failed-turn marker got a Retry button, the sidebar previewed the
bare title. The receipt is now tool { name: "data_show", ok: true } with
the title only in dataResult; ChatView and GroupView render a receipt
before any status or failed-turn reading (so receipts stored by older
servers stay receipts), and activityPreview reads dataResult.title.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): SQL box always available; Cancel for a live run

The box mounted only when the shown result had SQL, so a person whose bot
had loaded tables but shown nothing could not type a query; a long live
edit had no Cancel because the card stays "ready". The box now always
mounts (empty on an empty sheet or text result; its first run makes the
card through the same run route, and text typed before that card arrives
waits for it instead of making a second one), and Running/Cancel shows
whenever the panel's own run is on the wire. Cancel drops the request and
posts the card's cancel. A card still on its first run is re-run outright
rather than locked read-only.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* chore(data): one run/cancel mechanism; drop the strings nothing reads

The store's runDataSql, cancelDataCard, patchDataCard and deleteDataCard
had no dispatchers left (the panel calls the routes itself, since it owns
the request it must abort); remove them, their reducer/effect cases and
tests. Remove the 31 data.* strings no code reads (explorer, Run button,
card toolbar, source view) and guard against the next orphan. Reword
data.openInWorkspace so the English copy check passes again.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): send the viewed result as its own field, never in the words

withDataContext() prepended a <data-context> envelope to the person's
text before POST /messages; the server stored that text verbatim and only
the desktop renderer hid it, so the companion apps, remote clients,
search and memory all saw the raw tag. The client now sends
dataContext: { cardId, draftSql? } beside the text (same conditions as
before: this bot's own thread, not an opening /command), the server
validates it (c_<n>, draft at most 100 KB), stores it on the message,
and prepends promptWithDataContext() to the provider text for that turn
and every retry of it: an edit/regenerate reuses the message's own
context, a queued or steered send carries it, the backup-engine and
computer-selection reruns inherit it. Message text is exactly what was
typed everywhere; withDataContext/isDataContextLine/withoutDataContext
and every stripping call site are gone.

Client follow-up (owned elsewhere): src/state/store.tsx's "send" action
must carry dataContext into the POST body; src/lib/drafts.ts may keep it
beside requestText for an exact retry of a failed send.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(data): the send carries its Data context; the catalog comes from GET /data

The two seams the server fixes opened: the composer's send action
forwards `dataContext` in the messages POST (the text itself stays what
the person typed), and the panel's table list comes from the catalog
GET /data reports (`dataTables` in the store) instead of a copy on the
sheet, which no longer exists.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix(drivers): replay what earlier chat turns actually sent

The shared chat-completions runtime rebuilt earlier user messages from the
stored transcript, which holds only what the person typed. The request had
carried the turn text (clock, recall) and the volatile context note, so the
next request rewrote history the provider had cached and its prefix diverged
from the first replayed user message onward.

Remember per thread, in memory, what each user message carried and replay
that. The newest message carries a context note only when the replayed
history does not already end on the current copy, or on a mention turn.
A thread with no record (after a restart) replays as stored, as before.

Fixes #2475

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

* fix(drivers): leave recall out of the replay and bound what it adds

Replaying user messages as sent kept each turn's automatic recall, so
requests grew by up to 6 KB a turn past the window's byte budget. The
harness now passes the recall block as SendTurnInput.recalled and the
record leaves it out; what replay adds on top of the stored transcript is
capped at 24 KB, spent oldest first. A record also has to follow the same
message it followed when sent, so an identical text another engine
handled is not mistaken for it.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(sidebar): mark all bot conversations as read

* docs: use repository path for sidebar read test

* fix(sidebar): synchronize read menu after commit and show failure cause

---------

Co-authored-by: wilsonicdev <266167309+wilsonicdev@users.noreply.github.com>
The first screen after a launch always opened the first bot, so the bot
or room someone was working in had to be found again by hand. The
conversation open on this device is remembered under
openmausbot.lastConversation.v1, and the first hydrate resumes it when
it still resolves to a visible bot or a room. A deleted or hidden one
falls back to the first bot, an empty selection never overwrites it,
and notification navigation still wins because it selects after the
hydrate.

Co-authored-by: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-authored-by: GLM-5.3 (Architect) <noreply@z.ai>
memory upkeep's model steps need a one-shot text call, and only claude and
the chat-completion engines had one, so every acp engine (grok cli, gemini,
kimi, droid, cursor, opencode, qwen, hermes, antigravity, custom acp) never
learned from a chat on its own.

createAcpDriver now gives each instance generateMemoryText: a fresh process
of the engine's own cli and a fresh session, never a chat's, in an empty temp
folder, with no mcp servers, fs and terminal capabilities off, in the ask
approval mode (fullAuto forced off, configureSession applied as for an ask
turn). any agent request (permission, file, terminal) or tool call ends the
call. bounded output, timeout, abort, process tree killed, usage reported.

it is a separate contract method so titles and compaction, which use
generateText, do not start spawning a process per chat. index.ts offers it to
memory upkeep only. a support can opt out with backgroundText: false. pi is a
separate driver and stays skipped.
* fix(memory): keep turns waiting for capture across a restart

memory upkeep holds finished 1:1 turns for a quiet spell (2 min by default)
before one capture call reads them. stop() dropped that buffer, so every quit,
update or restart lost what the person said just before it.

stop() now saves the waiting batches, including ones deferred by a backup, as
bot, thread and turn ids in memory-capture-pending.json (at most 50 threads
and 6 turns each, no conversation text). start() removes the file, rebuilds
each turn from the transcript through the same lookup the capture hook uses,
re-checks the stored gates (bot owns the thread, not a room or routine run,
cloud owner only, upkeep still on) and queues it, so the normal quiet timer
runs. no model call at shutdown or boot.

* docs(memory): say a crash or forced kill skips saving waiting turns
* feat(sidebar): a new chat panel from the + menu, and search on the icon rail

* feat(sidebar): the new chat panel is a floating card that hugs its rows

* fix(sidebar): the new chat to: row uses the window background
The loader hides a routine whose schedule fails validation so one bad row
cannot hide the valid ones, but save() then rewrote routines.json without
it, so any unrelated write silently deleted it. Keep those rows as stored
and write them back unchanged; they stay hidden and never run.
* feat(composer): list a bot's enabled skills in the slash menu and run one with /name

* fix(composer): keep the slash menu in step while skills load
* feat(chat): vary the working label with what the bot is doing, and stop clipping its glyphs

* fix(chat): start a returning phase over, and let only the shown phrase set the width
* feat(apps): restyle the apps pop-up as a categorised catalog

* fix(apps): clear the category when a filter is chosen

* test(apps): follow the catalog grid in the glass surface check
With threads hidden (Simple mode, or Advanced with threads off) a bot is one
conversation, but since v0.1.98 every routine reported into the bot's oldest
open thread and saved that choice on the routine as if a person had picked
it. Anyone who had used threads and then hid them got routine replies in an
old thread they could not open, and following the activity row to it left
their own conversation hidden for every later open.

A bot's main thread is now the open thread a person last wrote in, worked
out in one place on the server (server/main-thread.ts) and sent to clients
as WireBot.mainThreadId, so where results land and where the app opens the
bot can never disagree:

- Server: a task keeps a private askedAt, stamped when a person writes:
  a turn they start, or words they steer into a running turn (live or from
  the queue). Never a routine, webhook, start_thread, teammate hand-off or a
  line relayed from Slack. A routine without a chosen thread reports into
  the main thread each run finds, and the routine saves nothing; on a Cloud
  home a conversation a guest opened never counts. "Post results to" still
  pins a thread. The oldest thread v0.1.98 to v0.1.104 froze onto routines
  is cleared once on upgrade (frozenResultsCleared marker), never a guest's
  own results conversation.
- App: with threads hidden, opening a bot (its row, pinned circle, palette,
  Cmd+1-9, team map) opens its main thread, so a thread a notification or
  an activity row opened is left on the next open. With threads shown
  nothing changes. The routine editor shows an unset destination as "The
  bot's main thread", and its view opens that thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(ui): add a control scale and apply it to chat chips, error row, dialogs and settings buttons

* test(ui): read the control scale rules without their comments

* test(ui): type the digest fixture in the control scale test

* test(ui): read styles.css the same on windows checkouts
# Conflicts:
#	server/routines.ts
* feat(updates): a round update button beside the account and a centred update card

the updater already downloads in the background. while an update downloads,
prepares, waits or installs, a 28px white button with an arrow sits next to
the account row (stacked above the avatar on the collapsed rail). it opens a
centred card with the version, up to four highlights read from the release
notes, a progress bar while downloading, restart to update (install for the
deb hand-off) and later. the card traps focus, closes on escape and returns
focus to the button. the coordinator forwards electron-updater's release
notes in the state. the bottom-left popup leaves the ready update to the
button while the sidebar is in view and keeps hand-off and failures.

* fix(updates): close the card when nothing is left to do, keep the notes link, md button scale
A Chief's delegated level rides the room handoff and is never stored on the
room thread, so request.opened read the bot's own level and a Full room
turn still asked on ACP engines.
* feat: choose a working folder when opening a direct thread

* fix: expose thread folder creation in the sidebar actions

* fix: preserve selection when a thread folder is rejected

---------

Co-authored-by: jingyan <jingyan@minimaxi.com>
* feat(files): save shared files from recent changes

* fix(files): match Windows workspace prefix casing

---------

Co-authored-by: jingyan <jingyan@minimaxi.com>
* fix(macos): drag the window from every view's top bar

The chat, room, side panel and empty state headers now form the window drag region on macOS as well as frameless Windows. Controls, select wrappers, menus and dialogs opt back out through one styles.css rule, and the drawer button keeps a no-drag twin after the headers. Caption offsets stay Windows only and Linux keeps its native title bar.

* fix(macos): keep modal backdrops out of the header drag region

* fix(chat): drop the working dots from the header pill, keep a screen reader status

* test(chat): the cancelled-turn notice skips the header's screen-reader status
* fix: show the selected chat's working folder in Files

* fix: localize Files working-folder labels

---------

Co-authored-by: jingyan <jingyan@minimaxi.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(sidebar): one compact bot row with a plain text preview

* fix(sidebar): keep code literal in previews, title in icon rows, even button type

Previews park fenced and inline code before the Markdown rules, so code keeps its own syntax, and an image address may hold balanced parentheses. Icons-only rows name the bot's title in their label and tooltip. The footer nav, show all, queued and confirm buttons use medium weight with fixed heights and line heights.

* fix(sidebar): close a code fence on a longer fence of the same character

* style(sidebar): md button scale for confirm pills, the queued chip and show all
* fix(chat): read technical errors as one plain line with details

* fix(chat): read a process exit report as a plain line

* fix(chat): keep status mentions in sentences and name local permission errors
* feat(chat): one compact ask card for questions, keys and sign-ins

Questions, credential requests and connector sign-ins now share one
AskCard shell: an accent title line, an optional line on why, and the
control that answers it. Options without descriptions read as chips.
Once answered, each folds into one quiet line (the answer for a
question, the key's name and never its value for a credential, the
app for a sign-in), with the full answer behind Details.

* fix(chat): one type and height for every control on an ask card

Buttons, option chips, tabs and the quiet actions on a settled line
share one style: 13px at weight 500 in a 20px line box centered in a
fixed height (32px for chips, main buttons and fields, 28px for tabs
and quiet actions), 14px icons and one gap. A fixed height keeps
Arabic and Latin labels centered alike. The title takes its direction
from its own text, so an English title in a right-to-left chat still
sits beside its icon.

* style(chat): match the ask card to the approval row and the composer surface

The card is the composer's surface now (rounded-3xl bg-composer with
its ring, no accent border). Every chip, button, tab and field is a
28px rounded-full pill at 13px weight 500 with 8px between controls,
and neutral pills use the approval row's ink tint so they show on that
surface in every skin.

* style(chat): give each question option its own row, and hide other on options-only questions

* style(chat): question card with the question as title, letter-keyed rows in one group and a field under it

* fix(chat): drop the x on a waiting question, and keep letter keys off other controls

* test: supply new task-folder callback in sidebar fixture

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
A bare GitHub pull request, issue or commit URL and an owner/repo#N run
render as a small left to right pill with a kind icon. Any web link in a
reply opens a preview card above it on hover, keyboard focus or a long
press, from what the link itself says. Nothing is fetched.

Co-authored-by: milind-soni <milindsoni201@gmail.com>
* feat(sidebar): one anchored account menu, the same at every sidebar width

The profile menu is a fixed-width sheet anchored above its trigger and kept inside the window, drawn in a portal, with 15px rows, a value or chevron at the trailing edge and a submenu for help and support. Usage and the OpenMausBot Cloud account join it where Settings has them. The collapsed sidebar's avatar opens the same menu instead of Settings. Arrow keys, Home, End, Escape and an outside press work across the menu and its submenu, in LTR and RTL.

* style(sidebar): medium weight, centred lines in the account menu rows and profile row

* fix(sidebar): focus the first account menu item once the sheet is placed

* Type account-menu regression props explicitly

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
The new chat panel (#2585) opened a bot with threads hidden by selecting it,
which keeps whatever thread a notification or an activity row last opened.
It now opens the bot the way its row does (openBot): at its main thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Complete Japanese UI translations and protect IME input

* Translate new main UI strings and complete sidebar test fixture
The scope hint from #2297 matched Google's 403 wording anywhere in a tool
result. Composio's successful COMPOSIO_SEARCH_TOOLS answer quotes that
wording in known_pitfalls, so a working Gmail search got "has not granted
the permission... Do not retry this call" and bots stopped before reading
any email.

The wording now counts only inside a result that failed: an object marked
successful:false or carrying an error, or a result flagged isError. In a
MULTI_EXECUTE batch the note names the tool that failed rather than the
first tool in the call, and a note with no known app says "The app"
instead of "This app ... their own This app auth config".

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Node reports a spawn whose cwd does not exist as the command's own ENOENT
("spawn /…/codex ENOENT"). describeSpawnFailure turned every ENOENT into
"`<cli>` isn't installed, or isn't on this app's PATH", so a bot whose
working folder had been moved or deleted blamed an installed CLI, and
Retry failed the same way.

describeSpawnFailure now takes the spawn's cwd. On ENOENT with a missing
cwd it names the folder and how to fix it, with setup:false so the UI does
not point at engine setup. The Codex, Claude, Pi and ACP drivers pass the
cwd they launched with.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(chat): one compact ask card for questions, keys and sign-ins

Questions, credential requests and connector sign-ins now share one
AskCard shell: an accent title line, an optional line on why, and the
control that answers it. Options without descriptions read as chips.
Once answered, each folds into one quiet line (the answer for a
question, the key's name and never its value for a credential, the
app for a sign-in), with the full answer behind Details.

* feat(chat): answer a single pick in one tap and an open question in words

A card with one single-select question sends the picked option right
away and folds into its one line, with no Submit step. Other still
waits for Submit. A question with no options opens its text field from
the start instead of behind Other. Free-text answers use a growing
textarea: Enter sends, Shift+Enter starts a new line.

* fix(chat): one type and height for every control on an ask card

Buttons, option chips, tabs and the quiet actions on a settled line
share one style: 13px at weight 500 in a 20px line box centered in a
fixed height (32px for chips, main buttons and fields, 28px for tabs
and quiet actions), 14px icons and one gap. A fixed height keeps
Arabic and Latin labels centered alike. The title takes its direction
from its own text, so an English title in a right-to-left chat still
sits beside its icon.

* style(chat): match the ask card to the approval row and the composer surface

The card is the composer's surface now (rounded-3xl bg-composer with
its ring, no accent border). Every chip, button, tab and field is a
28px rounded-full pill at 13px weight 500 with 8px between controls,
and neutral pills use the approval row's ink tint so they show on that
surface in every skin.

* style(chat): give each question option its own row, and hide other on options-only questions

* style(chat): question card with the question as title, letter-keyed rows in one group and a field under it

* fix(chat): drop the x on a waiting question, and keep letter keys off other controls

* test: supply new task-folder callback in sidebar fixture

* test(chat): cover one-tap retry, options-only and IME answers

* fix(questions): preserve multiline answer boundaries

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
* feat(composer): choose the send key: Enter, Shift+Enter or Ctrl+Enter

Japanese input confirms a conversion with Enter, so many people want Enter
to add a line and send with another key, as Slack offers. Settings →
Appearance → "Send messages with" offers Enter (default; Shift+Enter adds a
line), Shift+Enter (Enter adds a line) or Ctrl+Enter (⌘+Enter on Mac; Enter
adds a line). It is a renderer preference (omb-send-key), kept in full
backups like the other display choices.

One decision, sendsMessage(), now serves every multi-line box that sent on
Enter: the composer in 1:1 chats and rooms, editing a sent message, a
citation's comment and the Cloud's first job. Ctrl/⌘+Enter sends whatever
the choice; every other Enter is a new line; nothing sends while an input
method composes (isComposing, or keyCode 229 for WebKit's late keydown).
Single-line fields and search boxes keep their plain Enter.

The key is named where the app already hints at sending: the send button
tooltips, the busy-composer placeholders ({key} instead of a fixed "Enter"),
the shortcuts sheet and the tour's composer step. New strings in all nine
language packs.

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

* fix(composer): leave an input method's keys to it; fit the send-key menu

An input method's confirming Enter (isComposing, or WebKit's late keyCode
229) still picked from the composer's @mention and slash menus, and its
arrows moved their highlight: converting "@やまだ" to "@山田" picked the
mention before the conversion was done. imeComposing() is the one check,
used by sendsMessage() and at the top of the composer's keydown.

The send-key menu named each choice with its new-line key, which overflowed
the 240px settings column in German, French, Spanish and Portuguese (and in
English with Inter). It now names only the key; the subtitle already says
what Enter does. settings.sendKey.option and newLineKeyLabel() go.

Settings search also finds the setting by "cmd", "⌘" and "return".

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

* feat(composer): Ctrl/⌘+Enter sends by default when the app is in Japanese

Japanese input confirms every conversion with Enter, so with no choice
saved the send key defaults to Ctrl/⌘+Enter (Enter adds a line) when
the app's language is Japanese, and to Enter everywhere else. A saved
choice always wins. Mutation-checked: a default of Enter for every
language fails the new test.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
closeBrowserSession gave up when `agent-browser close` failed or timed
out, and returned false with the daemon still running. That daemon is
re-parented to init and owns a Chrome tree, so a hung session left a
detached agent-browser plus its Chrome processes behind, and
restart_browser kept answering "The browser could not be closed".

When close fails, or the daemon is still listed at the deadline, read the
pid agent-browser wrote (<session>.pid, resolved the way 0.37 does:
AGENT_BROWSER_SOCKET_DIR, else $XDG_RUNTIME_DIR/agent-browser or
~/.agent-browser, under namespaces/<ns>/run for a namespace). Only a pid
still running this exact binary is touched. Collect its descendants
before signalling, TERM them, then KILL what is left; Windows uses
taskkill /T /F. Return true once the daemon is gone; without a pid file
the result is false as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Across multiple settings components, add `cursor-pointer` class to buttons, selects, and other interactive elements for better UX. Restructure SettingsModal layout by removing unnecessary wrapper divs and adding consistent px-4 spacing. Update SettingsPrimitives Switch and SettingRow with cursor-pointer and new className prop. Reorganize WorkspaceBackupSettings with semantic section elements and improved form layout.
* fix(ci): green main for the 0.1.105 release

- send-key.test: Edit moved into the row's more menu (#2574) while #2615
  added a test that clicked the old button; it opens the menu now.
- acp memory one-shot: on Windows the engine can still hold its temp
  folder right after exiting, and the EPERM from rmSync replaced the
  one-shot's own result or error. Cleanup retries briefly and never
  throws.
- delta-context "keeps resuming … after restart" failed on all three OSes
  in CI on 2f85f70e but passes 5/5 locally (alone, whole file, UTC/IST,
  CI=true); listed as a known flake beside the file's three others.

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

* chore(release): bump version to 0.1.106

0.1.105's release stopped at its CI gate on 2f85f70e; this release
carries the fixes in this PR.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Increase horizontal padding for block headings from px-1 to px-4, and adjust container padding from px-3 to py-3 pl-7 pr-3 sm:pl-9 for better visual alignment.
Moved px-4 padding from h2 to parent div in EngineLibrary. Changed header padding in SettingsModal from pl-7/pr-3 to px-3/py-3. Added cursor-pointer to close button in SettingsModal and skin picker cards in SkinPicker for better UX affordance.
The desktop app granted the microphone only to its own renderer and to the
verified Cloud (#2310), so a Live call on a paired self-hosted server failed
before reaching the server. The active saved environment now gets the
microphone under the same guards as the Cloud: main window, main frame,
exact active origin read per request (switching or forgetting the server
withdraws it), audio only (never camera or getDisplayMedia).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- DataPanel debounce test: check "no run yet" before any await; a slow
  Windows runner's settle() outlasted the 50 ms pause.
- Two prompt-replay e2e tests fail only on GitHub runners (all OSes,
  retries too) and pass locally every time, including CI shard 1/4 with
  CI=true. Skipped when CI is set, tracked in #2624.

0.1.106's release stopped at its CI gate on 447154ca.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: preserve restart sessions and await ACP cleanup
# Conflicts:
#	server/direct-coordination.e2e.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ci): debounce test, and release 0.1.107
Adds a scroll-back notification feed, independent of the sidebar's
live-only attention bell: a `notification_log` table persists every
notify() event (500-row FIFO, never pruned by the attention layer's
own unread flag), hydrated into the client on connect and grown by
each live "notify" frame.

- server: notification_log table + insert/read/mark-read/mark-all-read
  in message-db.ts; notify() (server/index.ts) stamps id/at and
  persists before broadcasting; GET/POST /api/notifications routes.
- client: notificationsOpen/notificationsPinned/notifications in
  AppState, a NotificationRail + NotificationsPanel sibling to the
  Computer/Inspector/Activity panels in App.tsx, reusing the existing
  docking/collapse (TWO_SIDE_PANELS_FIT/SIDEBAR_AND_PANEL_FIT) and
  overlay fit-check. Unlike those three, notificationsOpen survives a
  bot switch, and pinned it also survives one of them opening -- the
  settings overlay fit-check now accounts for that third lane.
- row click reuses openNotificationTarget (the same jump an OS
  notification click already uses) rather than inventing new routing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
On a slow Windows runner the person's message arrived while the Chief's
own assigning turn was still finishing, so it was steered into that live
turn, which carries no outstanding-assignments note. Wait for the Chief
to be idle and waiting on teammates first, as the file's other tests do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reply's inline image loads through the message file route, which serves
only the conversation's folders. attach_file posts its copy as its own
message, so a reply showing a picture the bot delivered from outside those
folders still pointed at the original and failed with outside_workspace,
though the copy existed.

- The route falls back to the copy the reply's turn delivered by that file
  name (same author, unique name, back to the person's message) when the
  reply's own path is refused or gone, for previews and saves alike, on
  every client. attach_file now records an image's name for the match.
- An inline image refused as outside the folders says so in the person's
  language and offers no retry; "Image unavailable" is translated (both
  places it was hard-coded English).
- Every bot is told chat links and inline images open only from its
  working folder and shared folder; Cloud bots were told nothing before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Codex starts every MCP server from one shared environment and passes each
only the names in its env_vars. The browser, Data and cloud computer
servers all read their token from OMB_MCP_TOKEN, so the last mount won.
Since the Data tools (#2544), a Codex bot's browser server got the Data
token, the harness refused it ("this internal capability cannot access
that service"), and Codex dropped the browser.

- Each harness MCP family reads its own variable: OMB_MCP_TOKEN_BROWSER,
  OMB_MCP_TOKEN_DATA, OMB_MCP_TOKEN_COMPUTER (server/harness-mcp-token.ts).
- The Codex browser integration test now checks that the browser and Data
  servers get different token variables. It fails on the old code.

OMB_BROWSER_TIMING=1 logs one line per bot browser call and preview frame:
launch, engine and post-open snapshot time, result size, and how many
browser actions were already running. The verification launchers pass the
flag to their fixture server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code hides MCP tools behind its tool search unless a server is
marked alwaysLoad. The browser server was not, so a bot's first browser
action in each Claude session cost an extra ToolSearch model step.

- surface.ts: browserIsThePlace(plan) is true when Works on is Browser or
  the conversation is pinned to the browser. Auto without a pin only
  falls back to the browser and stays as it is.
- Bot threads and room turns send preloadBrowserTools when the browser is
  mounted and is the conversation's place. It is a turn field, not part of
  the browser spec, so it cannot reach an engine that copies the spec into
  its own config.
- The Claude driver marks the browser server alwaysLoad for those turns.

Real Claude (claude-sonnet-5-5), same form task, Works on: Browser:
before 5 tool calls with ToolSearch in 10 s, after 4 tool calls in 8 s.
A chat-only turn in such a conversation carries about 4,000 more input
tokens, mostly read from the prompt cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The agent-browser daemon outlives the MCP transport that starts it. At
shutdown the server stopped its transports, so after a quit the daemon and
its Chrome kept running until the engine's one-hour idle timeout: 13
processes, about 879 MB, in a real Claude turn on macOS.

- The server records every browser session it uses (browserIntegration
  covers bot turns, room turns, the bot's browser route and the Browser
  panel) and closes them at shutdown, alongside the temporary browsers it
  already closed. Closing saves each session's logins.
- A Chrome attached over CDP is the person's own and is left running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a click, fill, type, press, select, check or uncheck, the result was
the engine's acknowledgement plus a `lifecycle` block about the daemon
(about 330 of a click's 420 characters). It never said what changed on the
page, so bots spent a model step reading it back (click -> read, or
press -> snapshot).

- The runtime reads the page's URL, title and visible text with eval
  before and after each of those actions, and adds the change: the lines
  of text that appeared or disappeared (capped), or the page it moved to.
  It never takes a snapshot for this: agent-browser renumbers every @eN
  ref on each snapshot, and a hidden one made `fill @e4` fill another
  field while reporting success. A failed read only leaves the change out.
- Every browser result drops the lifecycle block, keeping
  browserRelaunched when the browser relaunched.
- The browser prompt tells the bot to use the change instead of reading the
  page again, and to take a snapshot after moving to another page.

Real Claude (claude-sonnet-5-5), 5 tasks x 3 runs each side: 15/15 correct
before and after; model steps 77 -> 69, tool calls 81 -> 70, input tokens
3.11M -> 2.77M, time 185 s -> 173 s. Form task 12.3 s -> 9.9 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`acpPermissionCommand` looked for `command` and `cwd` in an ACP agent's
rawInput. Antigravity's shell tool sends `CommandLine` and `Cwd`, so the
function returned undefined for every shell request an Antigravity bot
raised, and `request.opened` carried no `command` at all.

Everything keyed on exact command identity silently stopped working for
those bots. The saved command allowlist is the visible one: its rules match
on `{command, cwd, providerInstanceId}`, so a person could save "always
allow this command", see the rule listed in Settings, and never have it
match anything. There is no error for this — the request simply arrives
without a command and falls through to an ordinary card.

Observed 2026-10-10 on `agy_acp_server`, in a `request.opened` event whose
rawInput was:

    {"CommandLine":"ls -la /home/rahul/agent-workspace/00-core/",
     "Cwd":"/home/rahul/.openmausbot/task-workspaces/<bot>/<thread>",
     "WaitMsBeforeAsync":5000}

The event's `summary` held the command text — it comes from
`rawInput?.command ?? toolCall.title` and the title happens to be the
command line — which is why this was invisible on the card. The summary is
a display string and must not be used for grants (the field's own comment
says so), so the fix is to read the field the agent actually sends.

Both spellings are now accepted. A frame carrying two different values for
the same field is refused rather than resolved, because a grant keyed on
the wrong one would be a grant for a different command.

Adds server/drivers/permission-command.test.ts, which had no tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
fetchHermesAcpModels sends `initialize`, then `session/new` once the CLI
answers. A CLI that closes its stdin between the two — having read the
handshake and decided it is done with it, while staying alive — leaves the
second write going to a pipe with no reader. Node reports that to `write`'s
callback, which the probe already handles, *and* emits 'error' on the
socket, which it did not. An unhandled 'error' on a stream is an uncaught
exception, so a model probe that is meant to give up on an unusable CLI
took the whole server down at startup instead. Seen on a machine with
Hermes installed.

Adding the listener is enough: the write callback and the `close` handler
already settle the probe with an empty catalog, and `done` is idempotent.

The existing `!child.stdin?.writable` guard does not cover this. It covers
the neighbouring case, a CLI that *exits*: Node then destroys the parent's
stdin socket, `writable` is false and the write never happens. The child
has to stay alive for the write to be attempted at all, which is why the
regression test's fake CLI closes fd 0 and then lingers past the probe's
deadline.

Verified both ways on the test added here — without the listener,
`vitest run server/drivers/acp/hermes.test.ts` exits 1 with
"Uncaught Exception: write EPIPE" pointing at the `session/new` write; with
it, 47 tests pass and it exits 0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
CONTRIBUTING asks that local paths stay out of an upstream PR. The field
names and the frame shape are what the test is pinning; the home directory
they were observed under is incidental.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
previously, group chat queues, operations, and ui states were locked at the room level whenever any turn was running. this prevented users from having multiple concurrent threads or tasks in the same groupchat, as navigation, new task creation, message dispatch, and composer state assumed only one conversation per room could be active at a time.

- key group queues by thread id so turns on different tasks run concurrently without blocking each other
- track working and busy bot state per thread in group task wire models
- scope composer and task picker busy states to the currently active task so background threads do not lock the composer on idle threads
- update admission and channel message queue draining to evaluate working status per thread rather than across the whole group
- adjust group task routes to allow switching, creating, and interrupting threads independently
Co-Authored-By: Claude Code <noreply@anthropic.com>
- Move the three /api/notifications routes out of server/index.ts into
  server/routes/notifications.ts (fixes the index-route ratchet test).
- notify() no longer drops the live broadcast when the log insert fails.
- Mark-read requests check res.ok and resync the feed from the server on failure.
- notificationsHydrated merges by id so live entries are not overwritten.
- showRoutines closes the notification feed so its bell is reachable again.

Co-Authored-By: Claude Code <noreply@anthropic.com>
# Conflicts:
#	server/drivers/openai-chat.test.ts
#	src/components/SettingsModal.tsx
#	src/locales/source-hashes.json
# Conflicts:
#	electron/environments.cjs
The Drive map only lists recipes the control surface can drive; the local
environments recipe is manual packaged-desktop verification. Link it in a
prose paragraph instead so it stays reachable from README.md (the
verification-docs test requires every recipe to be linked).
- Track runningDataDir (the folder this process actually leases and runs its
  server child on) independently of environmentsState.activeId. It is set at
  boot, on every switch acquire, on rollback and in the boot fallback; it is
  the default for startServerOn and the previousDir of a switch. LOCAL_ID now
  routes through switchLocalEnvironmentTo whenever the running folder differs
  from desktopDataDir(), even when the window shows a remote server.
- stopChild throws when the server child does not stop, so a switch aborts
  with the lease still held instead of handing a live folder's lease away.
- Rollback reuses the same lease helper as the forward path, so the default
  dir carries the .opengrokbot legacy guard on rollback too, and records the
  restored runningDataDir. A rollback that cannot restart the server now
  throws instead of logging, so fail() reports rolledBack:false.
- persistActive failure (the last step) rolls the target child and lease back
  and reports persist-failed instead of leaving the registry stale.
- parseEnvironments dedups local dirs on the same normalized key
  (asDirPrefix) as withLocalEnvironment, so trailing slashes, separator
  style and drive case can't register two owners of one folder.
- createLocalEnvironment gives a non-ASCII-only name a generated folder
  suffix instead of rejecting it; blank names are still rejected.
- The purge guard refuses to delete the folder the server child uses
  (runningDataDir, canonical compare), refuses during a switch in flight,
  and purges with rm(force:true) so a missing folder no longer blocks
  removing the entry.
- New activeRemote() (a non-local active entry) replaces activeEnvironment()
  at every site that means 'a remote server is shown': createWindow's load
  and unavailable-window tracking, did-fail-load, package-install deep link,
  onReady reload, cloud/org/company-backup state broadcasts, openCloudAdd,
  openLendingSettings, openCloudEntry and org openLocalSettings. A selected
  named local environment now loads the local UI and still receives local
  state events.

Tests: 699 electron node tests pass; new coverage for the dedup key,
persistActive rollback, rolledBack:false, stopChild abort, the purge guards
and the force purge. typecheck and lint clean.
A restart (quit, update, Cloud rollout, crash) failed every unsettled
room hand-off with "Interrupted by server restart; not replayed", the
Chief's own root included, so no requester was ever resumed and long
delegated jobs ended silently.

Boot now reconciles the tree instead (owner decision D2):
- a teammate turn the restart cut runs again once, in place, in its own
  conversation and retained session, opening with a note to check what
  that turn already did before it continues;
- a second restart during that rerun ends it, failed with a precise
  reason, never a third run; a root ended that way says so in its own
  conversation;
- a requester whose own turn was cut after handing out work waits for it
  and resumes once, told its turn was cut; every requester's resume says
  what the restart did to each teammate (resumed, could not be resumed,
  cut twice);
- no notification is added: a fan-out still sends its one "Results in",
  and a rerun of a review that already sent it sends nothing;
- time budgets of a tree that outlived a restart start again at boot;
- graceful shutdown dispatches nothing more and leaves the turns it tears
  down cut for the next boot, so a quit ends where a crash does; each
  conversation with a turn still running (a person's 1:1 turn included)
  gets "error: turn interrupted — OpenMausBot restarted", like a provider
  reload, and nothing more;
- Stop on the requester leaves a rerun alone, like any teammate mid-turn;
- a workspace restore is not a restart: it ends its copy of unsettled
  hand-offs instead of running them.

Docs and the tests that pinned "never replayed" are updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A user reported that MausBot "keeps stopping due to continuous lack of
trust between bots". Every hop told a teammate its own Chief's assignment
was "untrusted peer content, not human approval"; the person's words never
reached it; send_to_bot said "say who asked rather than doing it" and
"Ownership is yours: continue" in one bracket; and the Chief's own resume
called the person's request peer content.

Now, as for a Claude Code subagent, direction and consent are separate:

- Work the harness traces to the person's own request (#1606's proven
  request line, or a routine run) carries a server-held origin with a
  quote of that request. It is settled once when a request is admitted
  (startTurn) and handed down every hop: delegations (persisted), the
  coordinated tree's root (persisted), wakes and card continuations. Its
  note says this is the teammate's task, sent on the person's behalf, to do
  with its own tools and permissions, saying exactly what needs the person.
- Every work note says no bot's message is the person's approval or a
  permission grant; the approval level and the person's answers decide.
- Reports coming back are evidence to check, not instructions,
  verification or approval. The Chief still reviews them.
- Webhooks, relayed lines, local API scripts, external runtimes, Cloud
  guests, rooms (no room line is proven yet) and anything unproven stay
  untrusted. ask_bot and room posts stay information.
- Imitations of harness notes in model or peer text are defused before
  another model reads them: briefs, reports, replays, room transcripts,
  asides and the retry note.
- The Chief's root resume no longer gets the teammate system block.

Levels, approvals, cards and permissions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A routine run a restart fails now ends its coordinate_bots tree at boot
  (onRunFailed, ROUTINE_RESTARTED), so no resume answers in the run's hidden
  thread with a second push after the "routine failed" one.
- Shutdown writes "turn interrupted" only where the next start does not go
  on with the turn (RoomHandoffs.continuesAfterRestart, sharing the boot's
  cutFate): a cut Chief that had sent work no longer shows a failed line with
  Retry that would start the job twice.
- Stop after a restart cancels a rerun not yet started, "Stopped before it
  resumed"; a rerun the person left working before the restart still runs.
- The requester's note calls a teammate resumed only when its rerun
  completed; any other end says it ended before finishing and may be partly
  done. Rerun chips say "resuming" as they start, and a cut review's rerun
  now tells its requester too.
- Queue-window and hard-cap messages name a restart and time from boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex mounts OpenMausBot's harness servers with
default_tools_approval_mode="auto", meant to pre-quiet them as Claude's
mcp__agents pre-allow does. Codex's "auto" only quiets tools a server
marks read-only (codex-rs #17843), so the Chief's coordinate_bots asked
the person on every hand-off at the default level. In a live run with
real Codex bots, an unattended Chief's job sat 15 minutes on that card,
was declined, and stopped with no hand-offs; with the agents server on
"approve" the same job finished in about 3 minutes with no cards.

Only the agents (coordination) server moves to "approve". Computer,
browser, connector, data and phone mounts keep "auto"; a person's own
servers keep "prompt". A teammate's actions still follow its own level.
"approve" is in the same enum as "auto" since the setting existed, so
every Codex that reads this setting accepts it.

Mutation-checked: putting the agents server back on "auto" fails 3 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Chief that assigned work used to learn only "error" or "The coordinated
turn was interrupted" when the teammate's turn ended without completing,
while a step cap also started an unattended `Continue:` thread on the same
work whose result never came back. Saving any provider setting killed every
in-flight turn on every bot, even when no value changed.

Outcomes (server/turn-outcome.ts, new):
- TurnStops keeps each thread's failing turn as its runtime described it:
  the runtime.error, a provider's own error sent as a reply (Claude's usage
  limit), and the step cap's handoff path. A new turn starts clean; a client
  abort is never a cause.
- stoppedTurnText (index.ts) is the one account every settle path gives a
  requester: the cause (the harness's own when it stopped the turn: the stall
  watchdog, a provider-settings change, a Company change, the room ceiling;
  else the runtime's), what the turn did before it stopped (tool digest),
  where the step cap's handoff is, and its last message. Used by coordinated
  turns, delegations, ask_bot, room assignments, the watchdog and the
  reload. Delegation chips show its first line.
- A harness stop of a room turn fails that room's assignments with its cause
  instead of "Stopped by user" (RoomHandoffs.cancelRoom takes a reason).

Step cap: one recovery owner. A turn whose result another bot awaits (a
coordinated assignment, a delegation that reports back, an ask_bot caller)
is never auto-continued: the requester gets the cap, the steps already run
and the handoff path, and sends what is left. Work a person started keeps
today's `Continue:` thread.

Provider settings: a save replaces only the engines launched differently
(config.ts engineLaunches: the instance config plus the workspace env an
in-process driver falls back to), and interrupts only turns on them, each
requester told why. The same values saved again, or a section no driver
reads, touch nothing. FLEET_NEUTRAL_KEYS, providerReloadKeys and the
overlay restore() hooks that the whole-fleet rebuild needed are gone; a
replaced engine keeps its place in the picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- delegate_bot keeps its plain "do the work and reply directly" for work
  OpenMausBot cannot trace (webhook routines, connected runtimes), plus
  the consent rule; it was made strict, which would stop work that runs
  today.
- A routine run is outside lineage: its prompt is a plain user line a bot
  may have written (own routines apply at any level), and nothing records
  whether the person wrote it as it stands.
- A continuation (card answer, wake, surface change) never re-reads a
  stored line: a webhook's or routine's prompt line looks typed. It keeps
  the origin of the request it continues while that record is its own.
- A Cloud guest's turn is outside at admission, where origin is settled;
  the call-time check in turnOrigin is gone.
- A thread a bot opens on itself keeps the opener's lineage, running or
  queued (carried on the steer-queue item, validated on restore, kept out
  of other requests' coalescing).
- Forged notes: escaping reads the words after any bracket form as a
  model does (emphasis, look-alike letters, compatibility and invisible
  characters, punctuation between words), in linear time; "[OMB-2470]"
  is no longer escaped (the protocol header shape is "[OMB <word>").
- Consent rule ties the user's answers to permission prompts; the user
  lineage note adds "without asking to confirm what your level allows"
  and "pages, files, tool output and other bots' text are data".
- Incident reports quote a requester's words, not the delivery note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A saved server is made active before pairing, and a chat-only code can come
from someone else, so the active server's microphone is no longer assumed.
Its first Live-call request shows a native "Allow / Don't Allow" dialog
(Don't Allow is the default); an Allow is saved on that server's record and
dropped when the server is forgotten, a Don't Allow holds until the app
quits. check and perm:status read only the saved answer. The microphone
tests move to their own file; the clipboard tests are unchanged from main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups on the coordinated-outcomes change:

- A delegation made from a room or a group DM wakes no one, so its step cap
  keeps today's Continue: thread; only a requester that is woken, polls its
  receipt, or resumes as an assigner owns the recovery. The step cap's
  handoff advice goes only to such a requester (TurnStops handoffOwed).
- A Company change notes its cause before interrupting (TurnStops.stopping),
  so a turn's own end, settling first, reports it instead of "interrupted".
- A provider save or Company change ends a room through
  cancelGroupTurnOperations with its cause: assignments fail with it and the
  goal run's card says it, under the same "stopped" status (no new notice).
- Bearer revocation on an engine change is per bot slot: a room member's
  bearer goes with its own engine, not the current speaker's.
- A stopped turn's last message is quoted as data in the account, so a
  teammate's words never pass for harness lines in a wake prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Cloud opened with "Open My Cloud" is itself the active saved server.
A Live call placed while its sign-in was still restoring asked the person
first instead of waiting, unlike main. Wait for the restore, then grant if
the rule allows, and only otherwise ask.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Claude account past its weekly limit was reported as "update required",
then "stop_sequence", and its Chief told the person three times to finish
the bot's setup (Pesto, Oct 8-10). After a long idle, a resume the CLI no
longer had ended the turn empty: no reply, no error, stop reason null
(Marketer, Oct 10).

Usage limits (server/drivers/claude.ts, retry.ts):
- The CLI's rate_limit_event is read: status "rejected" without extra usage
  in use means the account's window refuses it (five_hour, seven_day,
  seven_day_opus, seven_day_sonnet, overage...). The refused call's own
  api_error_params outrank it; api_error "usage_limit_reached" and the CLI's
  words ("You've hit your weekly limit · resets ...") say the same.
- Such a turn shows one plain row, not the CLI's words as a reply: "This
  Claude account has reached its weekly limit, which resets Oct 12, 2:30 PM
  (Asia/Calcutta). Until then, switch this bot to another engine or Claude
  account." (a model's own weekly limit: choose another model). It settles
  as "quota", never setup, sign-in or an update offer, even when the same
  refused call asked for an update (2.1.272). Near a limit is not past it:
  the update is still offered then.
- An error result's stop reason is its terminal reason or kind, not its
  synthetic message's "stop_sequence"; an error result nothing explained
  leaves a row with its own words.
- USAGE_LIMIT covers what Claude Code names ("hit your session/Opus/team's
  shared budget...", "out of usage credits/extra usage"); a per-minute
  rate limit stays transient.

Whoever is told next hears the turn's own error, not the stop token
(server/index.ts turnFailureCause): the Chief's incident, a coordinated or
delegated result, ask_bot, a room coordinator, the bot's work log, and a
routine's failure (routines.ts).

Stale resume: an error result before `init` on a --resume launch ends the
process, and its close rebuilds the conversation on a fresh session once,
from the chat, as for a CLI that exits before `init`. Codex had the same
gap for personal threads (only Company threads, or replays, were rebuilt;
the rest failed every turn on the missing rollout): it now rebuilds them
the same way, and SendTurnInput.recoveryIsReplay goes. A rebuilt session
leaves one notice row saying results of earlier tool calls did not carry
over, in place of "retrying — attempt 2/3 in 0s — resume_rejected".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two ways a teammate's broken run never reached its Chief of Staff:

- The Chief's one "Team incidents" thread is reused. A report that found
  it still answering the previous one fell through to startTurn, which
  threw 409 thread_busy, and the report was dropped (Nova 2, Sep 26).
  reportIncident now asks admit("incident"), which queues behind exactly
  what the steer-queue drain waits on (that thread, a slot, a room turn,
  #1194 parking) and never refuses; one bot's burst drains as one turn.
- An incident turn mounted the Chief's Works-on computer, so a cloud
  computer with no Boat key (or a missing team machine) refused it before
  the engine started (Tango, Oct 10, both reports). resolveSurface now
  plans an incident turn — the report line, drained or retried, and the
  continuation that reviews work handed on from it — with no computer
  and no browser, tells the model so, and inherits no team computer.
  Message.peerAsk.incident marks the harness's report line.

Queuing exposed a settle race: a queued line drains at turn.completed and
replaces the thread's request owner before the finished request's own
settle (gated on its digest) runs, so that request read requestPending
forever. startTurn now closes a finished previous request before
replacing it, judging the fence without the incoming lines.

The 12 of 22 unsettled requests in the owner's data are all failed runs
or a restart kill; the 2 incident ones are the two Boat-key refusals
fixed here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The "Waiting on your approval in @X" chip in the delegating conversation
  settles with what happened to the card: "@X got your approval" only for
  the person's allow; otherwise denied, "Nobody answered @X's approval in
  time — that step did not run" (the engine's own timeout), or closed before
  anyone answered (turn end, restart). Before, every resolution read "got
  your approval" (server/waiting-on-person.ts).
- An approval the engine denied on its own timer is kept for the turn that
  asked it. The result its requester reads (a coordinate_bots outcome, a
  delegate_bot reply, a room member's reply) leads with the action that did
  not run and that it needs the person's approval, so a Chief no longer
  reads a skipped step as done.
- A card holds only its own thread (owner decision D3): room handoffs admit
  work by the delegations' rule (canAdmitDirectTurn), and
  recipientAwaitingPerson is gone. Work that still waits because the card's
  thread holds the teammate's last slot says so once where it was sent
  ("Queued for @X, who's waiting on your approval in “thread”"), and the
  Chief's outstanding-assignments prompt names the same card.
- OpenAI-compatible engines: the harness's own agents tools ask nothing, as
  Claude pre-allows mcp__agents and Codex auto-approves its agents mount;
  each route stays authorized server-side. Their cards offer the existing
  "Always allow this session", kept in memory for that exact tool on that
  exact server for the rest of the conversation, never for the person's own
  computer or on a guest's turn. The server hands "always" to any engine
  only for a card that offered it.

The broker's fifteen-minute deadline fires on a marker file in the isolated
fixture (server/testing/approval-clock-hooks.mjs, as peer-approval-hooks.mjs
does), so the e2e tests follow an unanswered card through its real course.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. The "session" notice was the harness's reaction to any
session.started `rebuilt`, so an ACP agent that rebuilds for other reasons
(no session/load, after every 10-minute idle close; a load that only timed
out) got a new, repeating row whose words ("no longer had") were false. The
Claude and Codex drivers now send it themselves as a runtime.notice beside
their own rebuilt session.started, named "Claude Code" / "Codex" rather than
the account's display name, and it reads "could not reopen", true for every
cause. The harness-side hook and its pushNotice helper are gone.

A deleted thread also drops its turn-failure record (thread.deleted), as
stoppedTurns already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "Always allow this session" on an OpenAI-compatible card is kept per
  thread AND bot (a room runs every member on its one thread), and names the
  server as launched (a hash of its descriptor): a changed command, URL or
  credential under the same name, or another bot, asks again.
- A timed-out approval's note is dropped when a later card of the same turn
  for the same action is answered (the model asked again and ran it).
- A failed delegate_bot turn carries the note on its failure, which is all
  its requester reads.
- The question chip at turn end says the turn ended, not that the question
  closed: it can still be answered in its thread.
- The "Queued for @X behind your approval" notice is written settled, so it
  never reads as running in chat or the run log.
- Fake Claude: a slow finish gate reading "fail" ends the turn as an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up on the incidents queue.

- A report turn and its review use the Chief's computer like any turn,
  but do not need it: a place that cannot be prepared (no Boat key, the
  team computer missing, a provider or Boat change in flight, a policy or
  engine refusal, an unreachable Auto VPS) leaves the turn without one,
  seats taken on the way released, and the prompt names the cause. A
  working computer is no longer withheld, so the Chief can still check.
- Reports that waited are answered as one turn whichever bot broke, and a
  turn answering only waiting reports about failures that already buzzed
  the person (could not start, routine failed) raises no push of its own,
  nor does the review of work it hands on: never more than when such a
  report was dropped.
- A waiting report refused when its turn comes is said in the thread and
  the person hears of the failure, as for one refused at once.
- Reports never park behind work the Chief handed on (#1194), at
  admission or at drain.
- retry_thread refuses a thread that has finished a run since it was last
  reported, so a late report or a second retry cannot redo finished work.
- A review continues the request that handed the work on (the lines the
  thread held when the coordination began), not a later person line.
- peerAsk.incident now carries the reported thread and whether the person
  was already notified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Computer use stopped delegated work in three ways (diagnose-computer-use.md
items 1, 2 and 4):

- The stdio bridges (This computer, Local VM, VPS) asked "may I act?" with a
  2 s timeout and read ANY failure as "a person has taken control — pause
  this task", while the harness itself waited up to 5 s on a lazily claimed
  desktop. A slow or contended first call told the model to stop for a
  person who never took control. The client now outlasts the harness's
  longest answer (55 s), a check it could not get answered says exactly
  that (CONTROL_UNCONFIRMED), and the person text is sent only when the
  harness marks the hold reason "person".
- A contention refusal told the model to pause; with no wait tool it ended
  the turn and nothing resumed it. The gate now waits inside the one call
  (up to 45 s, under Codex's 60 s tool timeout) for the claim to land,
  another turn to finish or a person to hand back, then answers with words
  that keep the turn going ("take a screenshot to keep waiting"). It stops
  at once when the turn stops or the bridge hangs up, never lets a call
  through once its own turn has ended, and never replays a call that
  waited through a person's hold (CONTROL_HANDED_BACK: look again). The
  waiting chip, queue position and 30-minute park stay as they were;
  explicit "This computer" now claims through the same lazy slot as every
  other desktop, so its waits get them too. lazyClaimWaitMs, graceMs and
  the per-cloud-computer start wait fold into the one call wait.
- Every turn of a VPS bot ran a fresh ~6-round-trip SSH inspection at
  dispatch, and on Auto with no host fallback an unavailable VPS failed
  turns that never touch the screen. A desktop an inspection found ready
  in the last two minutes now mounts with no SSH and is checked on the
  first computer call (through the 10 s poll cache); an Auto turn whose
  VPS is unavailable runs and its model is told why and what to do
  (scheduled runs still fail and say why), with the hint matching an
  unreachable VPS.

Tests go through the real control client and its abort path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(codex): OpenMausBot's coordination tools never raise an approval card
test(server): pin the communications fixture starter name
feat(groq): add built-in API provider setup
fix(claude): offer Haiku 5.5 in the model picker
feat(chat): reverse infinite scroll and sanitize leaked harness system messages
fix(ui): restore pointer cursors for interactive controls
fix(rooms): allow concurrent threads in the same groupchat
perf(browser): say what an action changed, so the bot does not read the page back
fix(browser): close the bots' browsers when the server stops
perf(claude): load the browser tools up front when the conversation works on the browser
fix(ui): reduce glass pop-up flicker on Windows
fix(drivers): survive EPIPE from the Hermes ACP model probe
Browser: stop a daemon that will not close, and the Chrome under it (#2603)
# Conflicts:
#	server/room-handoffs.ts
Review fixes on the computer gate:

- A computer call that got its computer only after waiting more than 5 s
  (CONTROL_ACT_WITHIN_MS) is answered unperformed (CONTROL_WAITED) and the
  next call acts at once: an action started late could outlive the engine's
  60 s limit for one call and run twice on the model's retry. The harness
  counts its own wait; a bridge counts from the call's arrival, so a
  parallel call queued behind another's held check is covered too.
- A person's hold older than the wait ceiling (COMPUTER_WAIT_MAX_MS) is not
  waited for: the turn is told to stop and say it is waiting for control
  back, instead of calling again every 45 s for as long as they are away.
- The VPS is checked at dispatch again: its bridge execs into the container
  when the engine launches it, so a mount trusted from a two-minute-old
  inspection had no computer tools at all once the desktop went away, and
  the first-call re-check could never run. Turns that start together now
  share one Auto inspection (never jumping a start or stop queued behind
  it) instead of queueing one each behind the lifecycle lock.
- An Auto turn whose VPS check timed out behind a start already under way
  no longer tells the person to enable Start VPS automatically
  (vpsUnavailableHint).
- openai-boat e2e: the held scenario now waits for the person and is
  answered "handed back"; cloud-computer-lazy e2e: a wake longer than 5 s
  answers CONTROL_WAITED, then the next call acts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
#	server/room-handoffs.ts
# Conflicts:
#	server/index.ts
# Conflicts:
#	server/index.ts
# Conflicts:
#	server/index.ts
#	server/steer-queue.test.ts
#	server/steer-queue.ts
The quota slice's failure map folded into TurnStops in the merge; thread
deletion now clears the thread's record there, as it cleared the map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2641 let a room's tasks run side by side but narrowed the room's working
flag to the task on screen, so a scheduled goal's background task left its
room looking idle (sidebar, live call and Stop read that flag). The room
flag counts every task again, a task's own flag also counts its open
hand-offs, and the composer locks on its own task's flag, so an idle task
stays free to talk in (#2632).

The tests that pinned the old room-wide lock now pin #2641's per-task
rules: a new task starts beside a running one, an open approval or a live
question; the running task cannot be renamed or deleted, nor the room's
brief or members changed; a bot-to-bot channel keeps one conversation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(rooms): a background task shows its room working again; tests follow per-task turns (#2641)
fix(approvals): delegated approvals say what happened, flag steps that didn't run, and a card holds only its own job
fix(claude): say which usage limit stopped a bot and when it resets; recover by itself when a session is lost
fix(incidents): a report to a busy Chief waits instead of being lost, and the Chief's computer can't refuse it
Three tests failed once the slices were combined on main:
- independent-threads: a failed delegation's chip now shows the stop
  account's first line (outcomes); the note on approvals nobody answered
  rides the requester's wake, where the delegating bot reads it. The test
  checks it there.
- cloud-guest-shell (two): a test left a guest's teammate turn held; the
  next test's server restart cut it, and the cut turn ran again once
  (restart slice, as designed), overwriting the dump that test reads. The
  test now settles what it started.
- A room teammate's stop chip shows the account's first line, not the
  quoted last message under it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- full-access-workflows: the restart must cut the teammate's turn; when its
  hand-off was still queued the server stopped first, and the teammate's
  first run (no rerun note) was read as the rerun. Wait for the node to be
  running before the restart.
- direct-coordination: a slow host stops the teammate before its first
  tool call, so its stop account is the cause alone; accept it with or
  without what the turn did.
- delta-context "ends a Chief's review a second restart cuts": on the CI
  retry list with its evidence. The rerun normally starts in ~100 ms; the
  failures are a stuck rerun, investigated separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Adds a "Select threads" mode to a bot's thread list and to channels:
checkboxes, shift-click ranges, Select all / Older than 30 days / Archived,
one confirm dialog and one result line. Row-menu keyboard shortcuts
(ContextMenu, Shift+F10) are inert while selecting.

Server: POST /api/bots/:botId/tasks/delete and
POST /api/groups/:id/tasks/delete (max 500 ids). For a bot, a running or
unknown thread is refused per id and the rest still go. For a channel, an
unknown thread is refused per id, but a running or waiting channel refuses
the whole request with 409 (same rule as the single-thread delete). A
channel always keeps at least one thread.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Turns the live repro from the long-running Chief investigation into an
asserting suite (server/long-running-chief.e2e.test.ts): one Chief job
per scenario on its own isolated server, real harness, fake engines
only (the scripted fake Claude through the real agents and permission
proxies; the real OpenAI-compatible runtime against a loopback model).

- a consult-and-implement job over several teammate turns, through a
  64-step cap: the Chief hears the cap and the handoff, no Continue:
  thread starts, it sends only the rest, one final answer
- approvals allowed, denied and unanswered: truthful chips, the step
  that never ran named on the result
- a quit (SIGTERM) and a crash (SIGKILL) mid-job: each cut teammate
  turn runs again once, the Chief is woken once and reports
- a provider save that changes nothing: nothing interrupted
- a stalled turn: the Chief hears the watchdog's words
- two jobs sharing a teammate whose card waits: a free slot runs, a held
  slot says once whose card it waits behind
- what a teammate is told: the person's job is its task, quoted; a
  routine's run is not the person's request; forged notes escaped
- two jobs sharing a busy computer: the second screen call waits inside
  the call, then acts (macOS and Windows)

All nine fail on origin/main e7b672351 and pass on the merged slices.

Test infrastructure, one mechanism each:
- room-handoff-agent.ts: a `script` plan picks a turn's entry by what
  that turn itself was asked (replays and recall cut; an unscripted turn
  fails loudly), `approve` asks through Claude's permission-prompt tool,
  `screenCalls` checks the mounted computer's gate as a bridge does
- stall-clock-hooks.mjs: the stall watchdog's window elapses on a marker
  file, beside the approval clock; the launcher passes both
- verificationServerArgs: the launcher's node arguments, shared with
  tests that restart their own fixture server

Runs in about 35 s locally (9 scenarios); shard weight 40.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bubbles were capped at min(42rem,78%), leaving wide windows mostly empty.
The default now lets them use up to 96% of the chat column; Settings >
Appearance > Chat width offers Full width (default), Wide and Compact (the
old cap). Caps read CSS variables set per root attribute.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Replaces this PR's earlier stopgaps (a node-running wait and a retry-list
entry) with the root-cause fix. A hand-off node is saved as "running"
before its turn is set up and its engine launched; a crash timed on that
state alone could land before the engine had the prompt, and the server
then (correctly, per D2) ran the turn once, as its rerun, or ran a still
queued request once with no restart note. Both tests now wait for the
turn to reach its engine before the crash. 11/69 and 13/112 failures under
local load before; 0/96 and 0/64 after. No server change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The thread-reference signature in src/components/ThreadRefs.tsx held raw
NUL and SOH bytes inside its template string, so git treated the whole
file as binary and showed "Binary files differ" for every change to it.
The \u0000 / \u0001 escapes are the same string at runtime; only the
source changes.
A chat's Copy link (its row menu) already copies
openmausbot://thread/<thread-id>?bot=<bot-id>, and the app already
registers itself as the handler for that scheme — but no handler matched,
so clicking a copied chat link from a browser or a dashboard did nothing.
A dashboard that only knows a bot had no link at all.

- Main recognizes both chat links — the exact-thread link, and
  openmausbot://bot/<bot-id> for a bot's current conversation — from a
  launch argument, macOS open-url, or a second instance, and hands them to
  the local page. The page resolves the link strictly against the chats it
  has and opens one, or shows the existing "no longer here" notice.
- Opening one only navigates: it never sends a message, interrupts a
  running turn, or starts a conversation. A thread that is not the named
  bot's opens nothing.
- Works at launch too: the link is held until the page stops loading and
  the bots have loaded.
- Delivery moved from did-finish-load to did-stop-loading: at
  did-finish-load Electron still reports the main frame as loading, so a
  pending launch link was refused. Package-install links share the hook
  and had the same race.
- docs/desktop-chat-links.md documents both links.

Fixes #2383
Resolve the conflict with #2636 in browser-runtime.ts: keep its page reads
around a click, fill, type, press, check or select, and count their time as
observe time, so engine time measures only the action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups to the chat links (#2383) found reviewing the first cut:

- The page subscribed from the Sidebar, which is not mounted on the
  Routines page, and not at all in companion mode: a link opened there was
  swallowed by the preload with nothing on screen. The always-mounted shell
  subscribes now (useExternalChatLinks), in every mode; a companion opens
  links against the chats it shows.
- Main delivered to whichever window getAllWindows listed first, which can
  be the loading screen or a desktop viewer; the link then waited for a
  load that never came. It delivers to the app window now (package installs
  too).
- macOS keeps running with its window closed and open-url does not fire
  activate, so a link did nothing until the Dock icon was clicked. Once
  boot has made its first window, a link that finds none opens one.
- An unknown bot link said "That thread is no longer here."; it says
  "That bot is no longer here." now. Dead-link notices also render in a
  room (an in-room dead thread reference showed nothing before), and a
  dead link opened from the team map or Routines returns to the chat to
  show its notice.
- openmausbot://bot/<id> opens the bot the way a sidebar click does: it
  no longer re-posts a switch to the thread already open. A room's id works
  too; a bot-to-bot channel's does not.
CodeRabbit review follow-ups:

- Settings is a modal over the chat, so a chat link opened while it was up
  landed behind it. The link closes it first; nothing is lost, since a
  backdrop click closes it the same way.
- With no bots or rooms loaded neither chat view mounts, so a dead link's
  notice had nowhere to show; the empty-workspace screen renders it too.
A thread link whose ?bot= names a room that still exists, with the thread
gone, fell through to the generic notice in whatever chat was open. It now
selects the room and says "Showing <room> instead.", as it does for a bot
(CodeRabbit).
A Claude bot on Full access runs with bypassPermissions and no permission
prompt tool, so Claude's own AskUserQuestion never reaches the question card.
Its only question tool is OpenMausBot's ask_user, which offered one-tap
choices only: a bot that needed several picks had to write "you may pick
more than one" into the question, and the person could still pick only one.

ask_user now takes an optional multiSelect flag. With it, the proxy sends
the one-question card AskUserQuestion already draws with checkboxes, and
hands the picks back as text joined with commas, like a one-tap answer. A
system note (timeout, turn ending) comes back as the note, never as picks.
Without the flag, nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit review on the PR:

- A link focused whichever window last had focus, so with a desktop viewer
  in front the linked chat opened behind it. The app window comes forward
  now; while the loading screen is up it still owns what shows.
- The keyboard shortcuts list, like Settings, is a modal over the chat and
  closes for a link. Dialogs that hold unsaved input (New Bot, a trigger
  draft) stay open.
fix(wave1): green main after the Wave 1 slices met each other
fix(computer): honest gate, calls wait for a busy computer, an unreachable VPS no longer fails turns
test: a long-running Chief of Staff job, end to end
feat(desktop): open a chat from an external openmausbot:// link
fix(desktop): let a self-hosted server use the microphone for Live calls once allowed
test: steer only after the Chief's assigning turn has ended
fix(settings-modal): restore pointer cursors and unify settings content spacing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An xAI API key with no credits left answered HTTP 402 with a JSON envelope.
The chat runtime kept the first 200 characters of that raw body, so the
person saw "Something went wrong. Try again." and the cause was cut off
mid-word under Details.

The runtime now shows a JSON error envelope's own message, read with the
existing providerError(), up to 500 characters. A machine code such as
invalid_api_key follows the message, after the cut. Any other body is kept
as before. Retry classification is unchanged: 402 is still not retried.

trial-credit.ts read the relay's code from the raw JSON in that line. It
now also reads the code where the line puts it, so a used-up Cloud trial
credit is still recognized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With threads hidden a bot is one conversation, its main thread, and a
sibling is reached only through its activity row while it has news. Three
paths still left a reply where a threads-hidden person could not reach it:

- A bot's activity rows left out the thread it was left on (bot.threadId)
  even while the bot was not on screen, though its row now opens the main
  thread. A reply landing there (a webhook run's own thread, a teammate's
  hand-off into the selection, a thread an activity row opened earlier) had
  no row until the bot was opened. The row's own thread is now the one on
  screen, else the one the row opens (botOpensTo), so that one is listed.
- Following a notification, a thread chip or #Title link, a copied link, or
  a routine's or webhook's Open button to another thread of a bot selected
  the bot first, which marked the thread it was left on read unseen; with
  threads hidden that dropped its activity row and the reply with it. With
  threads hidden the switch alone opens it now (openBotThread), as a row
  does, and that thread keeps its unread mark. With threads shown nothing
  changed.
- An openmausbot://bot link (#2664), a team map hand-off without a thread
  and a dead thread link opened a bot at its selection, not where its row
  opens it; they go through openBot.

Verified end to end: a teammate's work and results and a team incident move
no main thread, and results and an incident's report mark their own thread
unread (main-thread e2e); the long-running Chief job stays the Chief's main
thread and no teammate's work becomes that teammate's (flagship scenario);
the phone sidecar forwards mainThreadId.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add service worker (public/sw.js) for cross-platform and mobile notifications via ServiceWorkerRegistration.showNotification()
- Add message notification preference toggle and persistence in notification-preferences
- Emit browser notifications when new assistant messages arrive if enabled
- Add browser notification permission and toggle controls to SettingsModal
- Update localization catalogs (en, ja) and passing i18n/typecheck/lint suites
Unifies the dimensions of collapsed sidebar footer elements (profile menu, phone button, apps button, update indicator, nav rows) to a consistent 46px square size. Updates Tailwind classes from various sizes (size-9, size-10, min-h-10, px-2 py-2) to size-[46px] with shrink-0 for consistent alignment. Also adjusts gaps, padding, and border radius for visual consistency in icon-only density mode.
One browser call past the 120 s request timeout (a page waiting on a slow
server) locked the session: every later call was refused until a restart,
and the restart closed every tab, so the page that showed the result was
gone. In real runs the bot then could not tell whether a payment went
through, or reopened the checkout and saw "Not paid".

agent-browser runs one command per session, also across connections, so a
read that answers proves the lost call has ended. The next call after a lost
one waits up to 30 s for the engine to answer a get_url. On an answer the
lock clears and the bot hears that the earlier call has ended and may have
taken effect, with the current page; the lost call is never replayed. With
no answer the call does not run and the bot can try again or restart.
Uncertainty a person left behind (a held key, a failed human command) still
needs a restart.

Live-preview frames are now skipped while an agent action runs. Each frame
is an engine command; frames sent behind a stuck call stayed queued after
their own timeout, and 27 of them kept the engine busy for about two minutes
after the call ended, so neither recovery nor a restart could reach it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(browser): recover from a timed-out browser call without a restart
fix(sidebar): Standardize icon-only sidebar elements to 46px size
fix(errors): show a provider's own error sentence, not a cut-off JSON body (MOCA-228)
fix(questions): let ask_user ask a multi-select question (MOCA-329)
Review of the hidden-threads fix found four gaps, each fixed here:

- The server announces a switch on the live stream before it answers it
  (store.switchTask emits), so that frame reached the window while the bot
  was still on the thread it leaves, and "reading the selected chat" marked
  that thread read. With threads hidden, a bot's row (which opens its main
  thread), a notification, a chip, a link, the bell or an activity row
  passed the reply waiting there as read and dropped its activity row. A
  switch now records the thread it opens (Bot.switchingTo) until its
  snapshot lands: the frame reads that thread, never the one left, and the
  snapshot, older than the frame, no longer puts its dot back. A failed
  switch leaves the thread it stayed on as the one on screen. With threads
  hidden a search hit lands the same way (the switch alone, whole thread).
- A line relayed from Slack stamped askedAt when select_computer continued
  its turn: the continuation carries the line, not the relayed option. The
  line's own flag decides now.
- After upgrading no thread had askedAt, so a bot's main thread was its
  selection: for the person who reported this, the oldest thread an
  activity row had left selected. Once per data directory, a thread without
  the stamp takes the newest line a person sent there from an app (a user
  line with a sendId; never a prompt, a bot's delivery or a relayed line).
- The oldest thread v0.1.98 to v0.1.104 saved on routines was cleared before
  a Cloud home settled which earlier device keys are the owner's, so one
  such a key opened read as someone else's and stayed saved. It is cleared
  after that now, and a save before it no longer marks it done.

With threads shown, opening a thread from a notification, chip or row now
reads that thread every time (before, frame order decided and its dot often
stayed). Nothing else changes for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(threads): with threads hidden, every reply lands where you can reach it
fix(providers): clarify install detection, sign-in and readiness
A bot Profile always came back to Overview: a bare open reset the
section whenever the target bot differed from the selected one, and
selecting a different bot or room reset it too, so with the panel open
every bot switch landed on an expanded Overview. The section viewed on
this device is now remembered under openmausbot.lastBotSection.v1 (the
lastConversation.v1 pattern): the launch init restores it, a bare fresh
open expands that row by riding the accordion flag, and switching bots
keeps the pointer so the per-bot panel remount no longer dumps Overview.
The remembered expansion never forces the full view, so non-advanced
profiles still open the Details/Library panel. "Edit profile" stops
deep-linking to Identity and becomes a generic profile open: select the
bot and open the panel only when it is closed, so the remembered
section wins; contextual deep links (Add skill, Overview links, the
usage chip) keep naming their destination and still win over it.

Co-Authored-By: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-Authored-By: GLM-5.3 (Architect) <noreply@z.ai>
Follow-up to #2676 from its review.

With threads hidden a bot is one conversation, its main thread, and the
bot's row, palette, ⌘1-9 and links already open it there (openBot). Other
ways in still opened the thread the server last had selected, often one an
activity row or a notification left it on, where the person's next words
would make that thread theirs and leave their own conversation behind:

- Launch: the app reopened the remembered bot at that selection. At the
  first snapshot it now opens it as its row would.
- Edit profile on another bot, a bot restored from Archived bots (one, or
  the first of Restore all) or by Undo, the next bot after archiving the
  one on screen, and a room member's voice settings (VoiceSetupDialog and
  the paired desktop's Set up voice) now go through openBot. Edit profile
  on the bot on screen leaves it on the thread it shows.

With threads shown each still selects the bot, as before.

The one-time upgrade that clears the oldest thread v0.1.98 to v0.1.107
saved on routines compared it with today's oldest open thread, so one
archived since was kept and its routine went on reporting into it. A saved
thread now counts when no open thread is older than it
(main-thread.ts wasOldestThread), open still or archived since.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The screen:frame handler returned null on every platform but macOS, so
the Windows "This PC" preview spun forever and then showed the macOS
Screen Recording permission message.

Fixes #2679

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	electron/environments.cjs
#	electron/main.mjs
test: align provider setup assertions with current headings
test: await Chief graph settlement before final assertions
feat(settings): open the bot profile to the last viewed section
feat(engines): add native Cline ACP support
Threads can carry one link, shown as a chip on the sidebar row (#123 for
GitHub pull requests and issues, !123 for GitLab merge requests, otherwise
the host). The newest pull or merge request a bot reply links becomes the
suggestion; right-clicking any link in a reply assigns it to the thread
instead, and a person's choice or removal is never replaced.
Remote MCP sign-in compared the callback's iss with the issuer as spelled
in the protected-resource metadata. Google's Sheets MCP lists
"https://accounts.google.com/" while its authorization server metadata
and the returned iss are "https://accounts.google.com", so every
callback was rejected as "does not belong to the current sign-in".
Keep the issuer from the authorization server metadata (RFC 9207 §2.4).

Fixes #2665

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adjust button border radii for a more distinct appearance: main button uses rounded-l-3xl rounded-r-lg, menu button uses rounded-l-lg rounded-r-3xl. Added gap-0.5 spacing to container and updated menu button with background colors and consistent sizing.
Updated CallTargetButton and CallModeMenu components to use border-radius transitions on active state (active:rounded-3xl) and the new --transition-property-rounded CSS variable. Replaced hover:bg-raised with hover:bg-raised-hover for consistent hover styling. Added space-y-1 to CallModeMenu for item spacing.
Changed the call button from a filled circle to a Send-sized pill-shaped button with asymmetric border radius (rounded-l-3xl, rounded-r-lg) and active state transition. Updated test expectations to match new styling classes.
Skip link suggestions when a turn fails, require a boundary after the
request number, cap the normalized URL length, and offer Assign to
thread while write permission loads, matching the composer.
fix(threads): with threads hidden, every way into a bot opens its main thread
fix(ui): call buttons border-radius transition and raised-hover consistency
fix(mcp): accept a sign-in whose issuer is listed with a trailing slash
Assign a link to a thread
fix(desktop): capture the local screen preview on Windows
feat(web): support an installable phone web app
Follow-up to #2676's review, on top of the previous commit.

"Open the chat" on the Cloud setup card's plan step selected the bot the
first job went to, so with threads hidden it opened the thread an activity
row or a notification had left that bot on, not its main thread. It now goes
through openBot like every other way into a bot: its main thread with
threads hidden, the bot selected as before with threads shown.

openBot's comment no longer counts the workspace view's computer among the
ways in: that view is only open on the bot on screen, which is selected
again where it is, as its own Edit profile is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both landed with no unread mark, so with threads hidden they had no
activity row and could not be reached: a person's own job's answer after
its teammates report (the review turn is internal; read mid-review, the
answer arrived silently), and a delivery:"post" webhook's post in its
"Updates" thread. Each now marks its thread unread like any reply. No
notification is added; a quiet incident review stays quiet. With threads
shown this adds a dot (and dock badge count) in those two cases, as the
owner decided.

Also keeps main's Edit profile behaviour (open to the last viewed
section, don't re-toggle open settings) in the merged Sidebar menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One record, one lifecycle and one wake lane for every hand-off between bots.
The contract (docs/runtime-contract.md) and the public types land first; the
store, runtime, level rule, envelope, capabilities and the scenario suite
follow in this PR.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The scroll-to-bottom control is a round arrow button, its words kept as
the aria-label and tooltip. A gesture on a transcript too short to scroll,
or arrow keys moving through a menu or list, no longer stop following,
so the button never shows over nothing. With reduced motion the jump is
instant.
fix(threads): a job's review answer and a webhook post mark their thread unread
feat(desktop): switchable local Environments
the appearance setting stays off so an existing chat keeps the skin bubble. rooms leave the person's bubble neutral and paint each bot name in that bot's color.
the electron snapshot allowlist has to match the backup keys. a room speaker's avatar uses the same tone as its name, so the mark stays readable on every skin.
The core of the new job runtime, self-contained and not yet wired:

- store.ts: assignments, assignment_events (append-only) and inbox in
  DATA_DIR/runtime.db over node:sqlite; every change is one transaction
- runtime.ts: begin/end/enqueue/tick/progress/answer/cancel/stopRequester/
  status/poll; write-before-act, progress-renewed budgets, three clocks,
  restart reconciliation from stored data, one wake lane
- level.ts: level = max(own, inherited) capped by what the engine runs
- envelope.ts: one envelope function for the four shapes
- capabilities.ts: per-engine flags (resume, reviewer, full, edits, cap)
- invariants.ts: I1-I9 checked after every scenario
- 30 scenarios + 95 unit tests on fake engines and a fake clock

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Runtime core: one durable job record, lifecycle and wake lane (1/5)
coordinate_bots work now lives in runtime.db as assignments, through one
seam (server/coordinator.ts → RuntimeCoordinator). The room-handoff tree,
its JSON file, limits, flag and restore rewrite are deleted; an in-flight
room-handoffs.json is imported once at boot and renamed.

- one envelope on every teammate turn, one report back, one resume
- access rechecked every tick and at settlement: a reply after the route
  closed is never retained, and a withheld report never reaches a resume
- a rerun after a restart is not a resume; a cut resume reruns with the
  same results; a resume returns every settled child
- NEEDS INPUT parks the assignment; the person's next line answers it
- a workspace restore ends the copy's unsettled work with the reason
- the marker reads [OpenMausBot …] and the note escaper defuses it

Fourteen e2e suites moved off the tree file onto runtime.db and the new
wording; evals and docs follow.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Chat coordination on the job runtime; the room-handoff tree goes (2/3)
HandoffOpener (requester + origin from the turn's capability), HandoffOptions
(mode, reply, rework, batch, doneWhen), status/poll/outstandingFor, and the
view's mode/reply/outcome/question fields. The contract gains §9 'One tool
surface' and the delivery plan is re-cut: PR 3 moves every hand-off path and
deletes the legacy ledger; PR 4 makes every turn a root.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
feat(live): a record for every Live call, a desktop record row, and a Pro plan gate
A user reported that one stray click on a thread's small activity row
(the bell under a bot) switched their one continuous chat to that thread,
with nothing on screen to get back. With threads hidden there is no thread
list, so the only way back was to click the bot's row again, and typing
first made the side thread their conversation.

While a side thread is open with threads hidden, the chat header now
shows "Back to your chat", which opens the bot's main thread as its row
does (openBot). Never with threads shown, nor in the main thread itself.
No prompt, card or notification; one button in the header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switching a Full-access bot to another engine reset it to Ask behind a
confirmation, and Full had to be turned back on through its own consent:
two dialogs every time (a user report). Owner decision, Oct 12: no
friction, keep it. Full now carries silently to any engine that runs it,
on the bot and the threads that follow its model. Custom still never
crosses engines (its rules are Codex's), and a level the destination
cannot run still asks to choose Ask first.

One rule: the model picker, the company switch, thread inheritance and
all three server routes go through modelSwitchNeedsAsk; the two server
routes that hand-coded the old "Full or Custom across a driver change"
check now call it too (engineSwitchNeedsAsk).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(approvals): Full access stays on when a bot changes engine
fix(threads): with threads hidden, a side thread offers the way back to your chat
# Conflicts:
#	server/config.ts
#	src/state/store.tsx
A computer that is often off at the scheduled time can now also run a
routine when the app opens. Turn on "Also run when OpenMausBot starts" in
the routine's Advanced options.

- A new optional runOnStartup flag on the routine. Absent means off, so
  existing files load unchanged, and edits that omit it keep it.
- When the scheduler starts, each enabled, marked routine gets one run with
  trigger "startup". A routine the scheduler is already catching up on,
  or one with a run still queued, is left to that run. A pause and resume
  does not start it again.
- Startup runs get the routine-execution prompt, are never treated as the
  user's own request, and show as "On startup" in run logs.

Fixes #325
An occurrence more than 12 hours late was still recorded as missed (with a
failure notice) under "Queue one run" while the startup run did the work.
The startup run now advances the schedule past it in the same save, using
the cursor step tick() already had, moved into advancePastOccurrence().

The once-per-start guard is now set only after the startup runs are saved,
so a failed save is retried on the next start.

Refs #325
The server accepts requests before the scheduler starts, so a Run now at
boot could be running when start() looked only for queued runs, and the
routine ran twice. Any queued, running or waiting run now counts.

Refs #325
The desktop restarts its server child without the app restarting: after a
crash, and when switching to another workspace and back. Each counted as
"OpenMausBot starts", so a marked routine ran again mid-session.

- The desktop gives every server child of one launch the same
  OMB_DESKTOP_LAUNCH_ID. routines.json records the launch whose startup
  runs were queued, and a server in that same launch queues none.
- The launch is recorded even when every marked routine was already
  covered by a catch-up or a run in progress, and a failed save leaves it
  unrecorded, so the next start retries.
- A server without the variable, such as a standalone one, keeps counting
  every process start.
- A one-time routine never carries the flag: it has no schedule to run
  beside, and one marked by hand in a file is not started.

Refs #325
Asking a bot in chat to also run a routine when the app starts now works,
like "Remember the last run" does.

- propose_routine and propose_routine_action accept run_on_startup, and
  list_routines reports runOnStartup.
- The confirmation card shows "On startup" when it is on or being changed.
- A one-time routine is refused with a plain reason.
- Undo puts it back as it was, and an existing routine that differs only
  in this setting is not mistaken for a duplicate.

Refs #325
Team packages carry runOnStartup next to continuity. Imported routines
still arrive paused. A file written for an older app drops it and lists it
among the dropped parts. The installed-part value includes it only when on,
so routines installed before this keep their recorded hash.

Refs #325
The editor UI test now ticks "Also run when OpenMausBot starts", saves,
reopens it ticked and keeps it across a schedule edit, and checks that a
one-time routine doesn't offer it. Its opening steps went through a
"Tools" → "Automations" path the sidebar no longer has (two elements are
now named "Tools"); it opens Routines → New routine instead.

Docs say what counts as the app starting, and the routines recipe lists the
checks.

Refs #325
list_threads showed a bot only its own threads and the ones it opened, and
close_thread let only the opener or the owner close a thread. A Chief could
not see or tidy a thread one teammate opened on another, so idle bot work
piled up in the sidebar with no tool to clear it (MOCA-202, MOCA-201).

A Chief of Staff now also lists, and may close once idle, any thread a bot
opened on a teammate it can reach (chiefTidies). Threads the person started,
routine runs and running work stay off-limits, and every other bot keeps
the old scope. Rows the Chief did not open say who did ("opened by @A").
The tool descriptions stay within their byte budget; the Chief's own system
prompt carries the detail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
propose_routine and propose_routine_action carry one more optional field,
406 bytes on each profile that mounts them. The goldens are regenerated and
BUDGET_BASELINE moved to the new sizes on purpose; the description is kept
short because it is sent on every turn.

Refs #325
# Conflicts:
#	server/index.ts
Owner decision, Oct 12: "I want no resistance in full access, it should
just happen, silently, no friction, no need for approval." #2697 made Full
carry across engine switches; this removes the remaining OMB-side guards on
turning it on.

- No confirmation dialog: picking Full in the composer, in bot settings
  (the bot and every thread, the old dialog's default), in the new-bot
  dialog, and Refresh permissions in the sidebar apply at once.
  FullAccessWarning is deleted, with the two locale strings only it and the
  old "Full is desktop-only" notice used.
- No renderer consent flag: confirmFullAccess is gone from the store, the
  bot patch queue, the creation draft and bot settings.
- No desktop-only rule: without a working packaged-desktop bridge the
  renderer sends Full over the normal API. The server accepts Full on
  PATCH /api/bots/:id (plus an applyToAllThreads scope, the same single
  write the private all-threads grant commits), the thread PATCH, Refresh
  permissions and bot creation / saved new-bot defaults. The bridge is still
  used where it works (desktopApprovalBridge: the packaged app's own window).
  A bot set to Full over HTTP runs at Full on its next turn; a running turn
  is refused exactly as for every other level, as the private flow does.

Unchanged: Custom (entering and leaving still need the desktop's private
channel), the Auto-on-this-computer warning, engine capability checks, the
engine-switch rule, the private bridge itself, and hosted company
workspaces, where only the operator's dedicated policy grants Full.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
validateModelProposal (propose_model, team setup) still had the old rule
that Full cannot cross engines. It now uses the same engineSwitchNeedsAsk
as every other model switch: Full carries, Custom never crosses engines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every hand-off on the job runtime; the legacy ledger goes (3/4)
fix(approvals): Full access turns on at once, from any client, with no confirmation
A teammate that ends on a NEEDS INPUT question parks its work on the
person. Two things went wrong while it waited:

- Every server restart re-parks open questions (contract §5), and each
  re-park posted the "needs your input" chip again, sent another
  notification and marked both conversations unread, even when the person
  had already read them. Every relaunch, update or crash repeated it.
- list_threads called the thread "queued", and close_thread refused it as
  "still running", though nothing runs: it waits on the person's answer.

The restart's re-park is now flagged (`restored`): the host shows the
question again only when its chip is not already the newest one for that
thread, which still covers a crash between saving and showing it.
list_threads reports such a thread as waiting on the person, and
close_thread says why it stays open. The coordinator answers both from one
lookup (awaitingAnswer, shared with answer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(coordination): a parked question is shown once across restarts, and named as waiting on the person
A computer that is often off at the scheduled time can now also run a
routine when the app opens. Turn on "Also run when OpenMausBot starts" in
the routine's Advanced options.

- A new optional runOnStartup flag on the routine. Absent means off, so
  existing files load unchanged, and edits that omit it keep it.
- When the scheduler starts, each enabled, marked routine gets one run with
  trigger "startup". A routine the scheduler is already catching up on,
  or one with a run still queued, is left to that run. A pause and resume
  does not start it again.
- Startup runs get the routine-execution prompt, are never treated as the
  user's own request, and show as "On startup" in run logs.

Fixes #325
An occurrence more than 12 hours late was still recorded as missed (with a
failure notice) under "Queue one run" while the startup run did the work.
The startup run now advances the schedule past it in the same save, using
the cursor step tick() already had, moved into advancePastOccurrence().

The once-per-start guard is now set only after the startup runs are saved,
so a failed save is retried on the next start.

Refs #325
The server accepts requests before the scheduler starts, so a Run now at
boot could be running when start() looked only for queued runs, and the
routine ran twice. Any queued, running or waiting run now counts.

Refs #325
The desktop restarts its server child without the app restarting: after a
crash, and when switching to another workspace and back. Each counted as
"OpenMausBot starts", so a marked routine ran again mid-session.

- The desktop gives every server child of one launch the same
  OMB_DESKTOP_LAUNCH_ID. routines.json records the launch whose startup
  runs were queued, and a server in that same launch queues none.
- The launch is recorded even when every marked routine was already
  covered by a catch-up or a run in progress, and a failed save leaves it
  unrecorded, so the next start retries.
- A server without the variable, such as a standalone one, keeps counting
  every process start.
- A one-time routine never carries the flag: it has no schedule to run
  beside, and one marked by hand in a file is not started.

Refs #325
Asking a bot in chat to also run a routine when the app starts now works,
like "Remember the last run" does.

- propose_routine and propose_routine_action accept run_on_startup, and
  list_routines reports runOnStartup.
- The confirmation card shows "On startup" when it is on or being changed.
- A one-time routine is refused with a plain reason.
- Undo puts it back as it was, and an existing routine that differs only
  in this setting is not mistaken for a duplicate.

Refs #325
Team packages carry runOnStartup next to continuity. Imported routines
still arrive paused. A file written for an older app drops it and lists it
among the dropped parts. The installed-part value includes it only when on,
so routines installed before this keep their recorded hash.

Refs #325
The editor UI test now ticks "Also run when OpenMausBot starts", saves,
reopens it ticked and keeps it across a schedule edit, and checks that a
one-time routine doesn't offer it. Its opening steps went through a
"Tools" → "Automations" path the sidebar no longer has (two elements are
now named "Tools"); it opens Routines → New routine instead.

Docs say what counts as the app starting, and the routines recipe lists the
checks.

Refs #325
propose_routine and propose_routine_action carry one more optional field,
406 bytes on each profile that mounts them, within the 2% budget. The
goldens are regenerated; the description is kept short because it is sent
on every turn.

Refs #325
Resolved against main's browser recovery (7fdc39d97): one preview-frame
method, main's previewFrame (skipped while an agent action runs, so a
stuck engine is not flooded) with this branch's preview_frame timing;
main's connect() for the client, timed as launch; both constructor
options (onTiming, recoveryCheckMs); main's toolNameOf for the tool name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person's or a routine's own turn becomes a root: the host begins and ends
it through the seam, parks it on the cards the turn left open (answerRoot
resumes it with the harness text), continues it in place after a step cap or
a wait it could not hold, and reruns it once after a restart like a
teammate's. Roots open with what the harness knows (composeRootTurn), never
an assignment envelope. Terminal trees can be pruned.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
feat(chat): color one-to-one messages with the bot
feat(routines): also run a routine when OpenMausBot starts
# Conflicts:
#	src/components/SettingsModal.tsx
Signed-in sites: every built-in browser (a shared profile or a bot's own)
lists the sites it holds cookies or storage for, with Sign out per site and
Sign out of all, in Settings > Browser profiles and the bot's browser
profiles dialog. server/browser-sites.ts reads a running browser with the
engine's own `state save`, a stopped one from its encrypted restore file
(AES-256-GCM under SHA-256 of browser-engine-key, as agent-browser 0.37
writes it), and signs out in both: cookies and origin storage in the
running Chrome over its loopback DevTools socket, then every saved copy.
The key never leaves the server. Same on desktop, server and Cloud.

My Chrome: a shared profile's Browser is Built-in or My Chrome. My Chrome
attaches agent-browser to the person's own running Chrome (auto-connect),
never restores OMB's saved state into it or saves its cookies out, and is
never closed at shutdown. Measured: Google's "This browser or app may not
be secure" refusal hits both the headless built-in browser and a headed
agent-browser launch of Google Chrome, while a person-started Chrome
attached the same way passes. Offered only where bots run on the person's
computer (the desktop app); on Cloud and servers the UI says it does not
apply. browserEngine.attachCdpUrl now says where My Chrome is instead of
attaching every bot. Switching a profile's browser closes its open one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eight test files failed on every OS once three PRs merged within minutes.
No product change; each test now pins the behaviour those PRs chose:
- Full carries across engines (#2697): store, thread-model and
  computer-engine-removal followers and moves keep Full and their allow
  list; nothing asks.
- Full at creation (#2701): a saved Full default creates a Full bot;
  Custom is still refused.
- The job runtime on every path (#2702): delegate_bot's stall reaches the
  requester through the runtime's settle (no separate delegation watch);
  assignment_status joins the reviewed read-only tools; the deleted
  delegations.test.ts leaves the shard weights; one route fewer in
  index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A customer gave OMB their credentials and the bot could not log in: OMB has
no way to receive a website password, and nothing asked the person to sign
in themselves. Now a bot calls request_sign_in (site + short reason); the
person gets one "Sign in needed" card and one notification, opens the exact
place the bot works, signs in, and presses Done to resume the bot.

- request_sign_in in the agents catalog; POST /api/internal/request-sign-in
  replaces the orphaned computer-control help POST/DELETE. The card records
  the place the turn mounted (built-in browser, Local VM, cloud computer or
  VPS, this computer); a newer request for the same site supersedes.
- The plea (ComputerControl) now stands for the open card, survives a
  mid-way hand-back, and drives the rewired banner (Take control, Done,
  Cancel). dismiss-help, requestHelp/expireHelp and blockedTarget are gone;
  the "takeover" notification becomes "sign-in".
- Done/Cancel (POST /api/bots/:id/sign-in-cards/:msg/done|cancel) hand back
  what the person held and resume through the credential card's own
  continuation (SecretResumeEntry now carries its prompt).
- Browser tab: explicit Take control / Hand back; no idle hand-back while a
  sign-in is open or the person holds it on purpose; a masked "Type a
  password or code" field; Open takes control at the bot's page. The
  admin-only gate is lifted to anyone the bot is shown to.
- A desktop paired to another host gets a Browser view through the
  companion relay; the sign-in card routes are on its allowlist.
- SIGN_IN_PROMPT tells the bot to use request_sign_in, never chat.

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

# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remember approved MCP read tools across tasks
Bots ask you to sign in where they work, instead of asking for passwords in chat
Browser: see and sign out of signed-in sites, and use My Chrome for sites that refuse the bot's browser
test: green main after #2697, #2701 and #2702 landed together
When a person took control while a bot call was refused, or while a preview
frame was captured, the take said it waited for the bot. The panel then threw
away the person's click and typing, though the page did not change. A real
login lost the whole password this way.

A take now says it waited only when a bot command reached the engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(browser): keep a person's input when the bot's call never reached the page
#2707 added two route guards to server/index.ts and #2705 lowered the
ratchet at the same time, so merged main fails index-route-ratchet. The
card's Done/Cancel route moves to server/routes/sign-in-cards.ts (the table
runs after the visibility check, as the inline route did). The bot's
/api/internal/request-sign-in stays in the internal block, which has no
route module yet, and is counted in the ratchet.

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

# Conflicts:
#	server/browser-runtime.ts
#	server/index.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- TurnEvidence grows okToolCalls, errors, outward (zod schema named).
- TurnRunner.outward?(a): at open(), a cut running node with no children
  since its turn began that already acted outward ends failed(interrupted)
  with what it did (INTERRUPTED_OUTWARD), event restart_reconciled
  'failed: outward action done', and its requester's restart note lists it.
  Empty or absent: today's rerun-once.
- finishTurn continue: a durable guard record on the row; two continuations
  without a successful tool call, or the same error three times across
  continuing executions, settle failed(stalled) with a stalled event.
- A queued row with a continuation is exempt from queueMs.
- Seam: Coordinator.answerNode (answerRoot an alias), CoordinatorHost.outward?,
  HandoffView.continuation; a typed line never answers a card park.
- The report's evidence line names ok calls, errors and outward actions.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Pressing Steer on a queued message that carried an image silently did
nothing: every steer path parked attachment words for the next turn
because adapter.steer() only took text.

- contracts: steer(threadId, text, images?) and a capabilities.steerImages
  flag. Drivers without it keep today's behaviour.
- Claude driver: sends the steer as the same stream-json user message a
  new turn uses (claudeUserMessage: native image blocks, then text), and
  refuses without writing when an attachment can no longer be read.
- admission: direct-busy and room-steer let attachments steer when the
  engine takes images mid-turn; otherwise they queue with
  blockedBy: "images" (golden tables updated on purpose).
- index: the live 1:1 send, the 1:1 queue Steer route and the room queue
  Steer route resolve images per item (extractSteerImages) and pass them
  to steer(); the Steer routes answer { queued: true, blockedBy: "images" }
  when the engine cannot take them.
- renderer: that answer shows a quiet notice instead of nothing.

Tests: admission golden rows, extractSteerImages, a Claude driver contract
test, steer e2e for a live image send, a room image steer on Claude and a
codex queue that stays queued, plus store/notice tests. Two tests that used
"images wait behind a busy Claude thread" to build a queue now queue behind
a full slot instead.
With the new Learn from group chats switch (features.roomMemoryCapture,
off by default, under Memory upkeep in a bot's Memory settings), a member
bot's finished room turns feed its memory upkeep's capture like its 1:1
turns: batched per bot and room (2 min quiet / 6 turns), held across a
restart as ids, sourced to the room.

Capture reads what the bot read since it last spoke in the room, with
room rules in the prompt: the person's lines are theirs; another person's
lines give only shared-work facts and never reach About me; another bot's
lines give only verified outcomes or decisions the person agreed to.
A room fewer people can see than the bot never feeds it (roomFeedsBot),
re-checked when the batch is captured. Bot-to-bot channels, hand-offs,
goal runs, routines, unattended turns and Cloud homes are left out.

Ported from the background memory review Hermes Agent (MIT) runs in
group-chat threads.
A team's sidebar menu gets "Set for all bots in this team…" (owner or
admin). It previews what each bot will get, then saves the bots one at a
time through each bot's own settings request (persistBotUpdate), so the
per-bot checks still decide: busy bots, engines without the level, model
or effort, Custom leaving only through the desktop, and the local-computer
Auto warning. Skipped bots are listed with the reason.
From 80% of a known window a bot's 1:1 header shows its context with
"Compact now" (the existing POST /api/bots/:id/compact), and a room shows
a mark on the member's avatar with the same button. Room turns re-send the
room's bounded transcript every turn, so a room's compaction is the existing
sessionReset: the bot's next turn there starts on a fresh provider session.
Each room turn records the speaker's last measured prompt (in memory, wire
memberContext); before a room turn at context.roomCompactAt (default 0.9)
the bot is compacted that way automatically, unless autoCompact is false.
Bots count the tool steps they run per conversation (saved across
restarts). Past the threshold, the bot's own engine reviews the
conversation in the background with one tool-free call and may create or
update its learned skills; each change goes through skill_manage's
staging path and shows as the usual receipt with Undo.

- server/skill-review.ts: counters, bounded transcript with a digest of
  older turns, the review prompt (ported from Hermes Agent, MIT), answer
  parsing with read-before-write, and the scheduler (never starts or
  applies while the bot is busy; a review answered mid-turn applies after
  that turn settles; stale updates are skipped; failures retry later)
- Settings: Learn skills automatically (off by default) and Review after
  N tool steps (default 10), under Bots may write their own skills
- applyOwnStagedSkill shared by skill_manage and the review
A room's threads already run side by side (#2632, #2641), but a member asked
in several threads was not handed from one to the next: every waiting thread
woke on the same release, all read the member as free, and all but one were
skipped as "became busy in another conversation", leaving their "will reply
here when free" chips open. Room-wide busyBotId checks inside a member turn
also let one thread's claim abort another thread's setup.

- server/room-member-lock.ts: a per-member claim held by a room thread from
  the end of its wait until the member's turn marks the bot busy (or exits);
  release wakes the next waiting thread. Released on finish/Stop of a thread.
- Member-turn ownership, approvals, blocked-on-you notifications, late
  question answers, hand-off admission and session-exit filtering read the
  thread's own speaker, not the room's newest one; harness stops recompute
  the room's busyBotId from the remaining speakers.
- Room turnStartedAt follows the open thread's speaker.
- MCP tools: wait/send/guard per channel thread (task working/busyBotId).
- UI: sidebar thread rows, attention list, section counts, member chips and
  the open thread's retry/announcer read per-thread state; "All threads"
  marks threads working elsewhere (strings in all shipped locales).

Design ported from Hermes Agent's desktop group chat (MIT): per-thread
drives with a per-member lock.

Tests: room-member-lock unit, room-parallel-threads e2e (fake engine),
room-threads + sidebar attention unit, MCP per-thread channel tools.
Bots run Claude Code with project-only settings, so a person's own Claude
Code plugins (Cache Tax among them) never reach them. A room editor that sits
idle past the one-hour cache with a 150-400k context re-writes all of it on
the next message.

After each completed turn of a Claude thread with >= 50k tokens of context,
on a subscription sign-in, a bounded window (default 3h) is armed. While the
thread is idle, one ping is sent 50 minutes after the last request: the
driver relaunches the CLI with the live process's exact launch contract plus
--resume <session> --fork-session --no-session-persistence, prompt on stdin,
--output-format json. Tools stay declared (same prefix) but a PreToolUse hook
denies every call, the permission proxy points at a dead socket and the
harness's hooks are not registered. Nothing reaches the bus or the chat.

Usage is read after every ping and booked in the usage ledger (spend and the
cap). The window stops when a ping reads nothing or writes >= 10% of what it
read, on a failed ping or the usage limit, at the spend cap and at its
deadline. A new turn pauses it and aborts a ping in flight; bot deletion,
switching off and quit end it. While open, the live CLI process is kept past
its idle close so the next turn reuses it. Nothing is persisted.

Settings -> Engines: "Keep prompt cache warm" (off by default) and "Keep warm
for" (3h); a per-bot override in the bot's Model settings; status in the
thread's usage popover.

Design from Cache Tax, Copyright (c) 2026 Karan Bansal, MIT
(third_party/cache-tax/LICENSE, NOTICE).
A person who writes "stop @Scout" (or halt / pause within two words of the
mention) now holds that one bot: its running room turn is interrupted, and
every route that would give it a turn — its @mention, the lead, Everyone,
Auto, a teammate's chained @mention, a room request — passes it over with a
single "Scout is held (stopped by you) — @mention it or say resume" line.
"@everyone stop" / "@all stop" holds every member. A later direct mention
without a stop word, a bare "resume", "@everyone resume", or the new Resume
button releases it; text in code spans, fences, quotes and blockquotes is
never a directive. Messages addressed to a held member are kept and shown to
its next turn.

Holds are room-wide and saved with the room (groups.json), so they survive a
restart. The room shows a banner of held members with Resume, a paused badge
on their avatars, and a "Stop <bot>" control under the working member
(POST /api/groups/:id/holds).

Design ported from Hermes Agent's desktop group chat (MIT).
A room member that works through tools narrates as it goes ("I'll check my
own work history…", "Good, correct layer id…", "Let me inspect"). Each of
those landed as its own reply bubble, teammates read them as the member's
answer, and a teammate named in a passing note was summoned.

The room's reply is now the turn's final assistant message (the one the
store already marks turnTerminal), as in a 1:1 chat:
- the room transcript folds a settled turn's earlier messages into one
  reversible "Worked for …" row above the reply;
- teammates' room context and Auto routing history leave the notes out;
- chained @mentions are read from the final message only;
- a chat turn that settles with no final message (empty or "(pass)") posts
  "<bot> finished without a summary — asking for a short result" and
  re-asks the member once for a 1–3 line result.

Goal and hand-off turns keep their whole text (a coordinator's decision
envelope may span several messages). 1:1 chats are unchanged.

Design ported from Hermes Agent's desktop group chat (MIT).
- R-S8 rerun on an empty outward list; R-S9 no rerun after an outward action
  (root, child with the requester's restart note, a rerun cut again); R-S10
  port absent or throwing = rerun, a turn that handed out work is never asked;
  R-S11 two no-progress continuations stop (root reported, child wakes stalled);
  R-S12 three identical errors stop, read across executions; R-S13 progress
  resets the strike, a park clears the guard; R-S14 evidence-less continuations
  fall back to the executions budget; R-S15 a queued continuation has no queue
  bound and no stall window while a plain queued row still expires.
- tree.ts: the money words are matched bare (tool slugs join words with _).
- The tree stall window skips a root queued to continue (a seat wait).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- turn-outcome.ts: outwardActions (one classifier: shared/outbound.ts names + shell git commit/push/payment words) and turnEvidence (ok tool calls, last three error texts, outward) with unit tests
- index.ts: hostTurnResult fills evidence on every direct result and parks any direct node (root or teammate turn) on its resumable cards; the sign-in card joins resumableCards and reconcileParkedNode; answerCardNode/releaseCardNode/stopParkedCards; both Stop sites mark the parked node's cards stopped; host outward hook; the interrupted line carries the runtime's outcome detail; noteTurnsCutByShutdown leaves roots to the runtime's account
- wire.ts/store.tsx: stopped flag on secret, connector and sign-in cards; the three card components offer no action once stopped

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The queued row printed the raw <attached-image path="…"> markup, temp path
included, once pictures could sit in the queue waiting to be steered. It now
reads the way a reply excerpt does: "Use this mockup [image]".
A customer gave OMB their credentials and the bot still could not log in.
Now the person can save a login once and the bot signs in without them:

- The Sign in needed card gets Save a login (built-in browser only): a
  masked form for username, password and an optional 2FA setup key (secret
  or otpauth:// address). Saving stores the login for the card's exact page
  host, usable by the asking bot, and resumes it through the card's own
  continuation ("a login for <host> is saved; call fill_login"). The route
  lives in server/routes/sign-in-cards.ts beside Done and Cancel.
- Settings → Logins (server/routes/logins.ts, admin only): list by site,
  username, 2FA, source, who may use it, last used; Add with a bot picker
  (all bots by default), Change (replace password or 2FA key, who may use
  it), Delete. No route ever returns a password or a 2FA key.
- Store (server/login-store.ts): one file sealed with AES-256-GCM in the
  data folder, the browser engine's own at-rest format (encryptBrowserState),
  with its own 0600 key that is never handed to a child process. Same on
  desktop, server and Cloud. Excluded from workspace backups, exports and
  Cloud moves (workspace-backup-policy.ts); never in config.json or a log.
- fill_login (agents catalog + /api/internal/fill-login, server/login-fill.ts):
  on the bot's current page in the built-in browser or My Chrome, the server
  checks https (http only for localhost) and an exact host match, finds the
  visible username/password/one-time-code fields with an in-page script that
  carries no secret, and types the values through the engine's input relay
  (keyboard insertText, never a command line), React-safe. Two-step logins
  fill what is visible. TOTP is RFC 6238 in house (server/totp.ts). The bot
  gets a status in words, never a value. Elsewhere it says to use
  request_sign_in.
- Scrubbing: saved passwords, 2FA keys and one-time codes made in the last
  five minutes become •••••• in every browser tool result (BrowserRuntime,
  scrubBrowserResult), in the stored conversation and the protocol logs
  (shared/redact.ts runs the held-secret scrubber inside every redaction),
  as plain text, JSON, URL and HTML forms. Screenshots cannot be scrubbed,
  and a bot that transforms the value with its own page script gets past
  it; the docs say so.
- The prompt prefers fill_login when a saved login exists and names the
  bot's saved logins by host and username only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
In the narrow bot settings panel the select beside the text squeezed the
title and help into a thin column; the row now stacks like the backup-models
card above it. The help pointed at "Settings → Engines", a page the app
calls Model providers.
Meta released Muse Wonder on Oct 12, 2026 (model id muse-wonder-1.0). Two
engines bring it in, both under the Meta logo:

- Muse Code: Meta's coding agent, driven over its own Muse Session
  Protocol with Meta's SDK (@muse-code/sdk 1.4.6, pinned), as t3code does.
  Muse Code speaks no ACP. One `muse serve` host per thread; sessions resume
  through resumeCursor; the bot's instructions ride the prompt split like the
  ACP family; OMB's tools mount as session MCP servers; approvals and
  questions become cards; steer, interrupt, effort and the account's own
  model list (`model/list`). Signs in with `muse login`, no key needed.
- Meta Muse (API): the Meta Model API's OpenAI chat endpoint with its own
  key row in Settings → API keys, like Groq and Cerebras. Its models come
  from the account's /v1/models, and Muse Wonder is the default once listed.

New Muse models reach the picker from Muse's own list (refresh button,
restart or saved key) without an app release. The ACP family's per-turn MCP
list moves to server/drivers/turn-mcp.ts so both engines share it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Muse Wonder: Muse Code engine + Meta Model API engine
The 220px menu wrapped the new item onto two lines; 256px fits it, and the
menu's right-edge clamp moves with the width.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The "Worked" fold rendered above the speaker label, so unfolded notes sat
under the previous message with no name on them. The label now comes first,
then the fold, then the reply.
Settings → Logins → Connect 1Password: the person pastes a service account
token (1Password limits it to the vault it was given, such as "Shared with
OMB"). OpenMausBot checks the token reaches 1Password before keeping it, keeps
it in the same sealed login store, and never returns it.

- Every Login item with a website and a password in those vaults appears in
  the Logins list, read-only, marked From 1Password, for every bot, by the
  website's exact host. Refresh reads the vault again; it is also re-read
  when the copy is over ten minutes old. Disconnect forgets the token and
  everything read with it.
- fill_login uses them through the same path as saved logins: one candidate
  list with two sources, the same exact-host rule, the same RFC 6238 code
  from the item's one-time-password field, the same scrubbing (a filled
  1Password password and the token are scrubbed too). The password is read
  from 1Password only when that login is filled.
- server/onepassword.ts: a thin adapter over the official @1password/sdk
  0.5.0 (MIT, 126 KB, plus @1password/sdk-core 14 MB of WebAssembly) and the
  cached index. The SDK is CommonJS that reads its WASM from beside itself,
  so it is never bundled: it is required on first use from the staged
  resource tree (scripts/prepare-duckdb.mjs now stages and verifies
  @1password/{sdk,sdk-core} beside DuckDB and resvg, for the desktop app and
  the Docker image), and the npm package depends on it. Its MIT license
  ships in the app's licenses folder, since neither package carries it.
- Routes in server/routes/logins.ts (POST/DELETE /api/logins/1password,
  POST /api/logins/1password/refresh), admin only. Tests use a fake SDK with
  the real SDK's shapes; nothing reaches the network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/computer-engine-removal.test.ts
#	server/config.ts
#	server/store.test.ts
#	server/thread-model.test.ts
#	src/state/store.tsx
fix: green main — move the sign-in card route into server/routes
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
feat(skills): learn skills automatically with a background review after N tool steps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/config.ts
#	server/index.test.ts
#	server/index.ts
#	src/lib/feature-flags.test.ts
#	src/lib/feature-flags.ts
#	src/state/store.tsx
The room-capture e2e read FAKE_CLAUDE_TEXT_DUMP, which keeps only the last
one-shot prompt; memory upkeep's ORGANIZE step often ran after the capture
and overwrote it, so the test failed 3 of 4 runs (on the branch alone too).
The fake CLI now appends every one-shot prompt to FAKE_CLAUDE_TEXT_LOG and
the test finds the CAPTURE step's prompt there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(memory): learn from group chats — opt-in room memory capture
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A motion-graphics MCP returned a 110-layer composition; the gate cut it to
the default 8,000 characters (5 layers) with a quiet note at the end, and
the bots concluded the tool was hard-capped and reported they had checked
every layer.

- MCP server editor: "Result size limit" (characters; blank = app default,
  0 = never trim), stored as mcpServers.<name>.resultBudget and handed to the
  gate per server (per-server value, else OMB_MCP_RESULT_BUDGET, else 8,000)
  for the Claude and Pi drivers
- a trimmed result now starts AND ends with "⚠️ TRUNCATED by OpenMausBot:
  kept layers 5 of 110 (… of … chars). The rest was NOT shown. …", sized
  into the budget
- structuredContent that duplicates the text keeps exactly the records the
  text kept
- awaitingTeammates: outstanding children whose parent node has ended (Stop cancelled it) are nobody's wait, so the task settles after Stop
- settleTrackedRequest: the request's newest root decides (an attempt that could not start ended its root; the backup's turn began its own)
- backup retry: a turn the runtime dispatched keeps its node (the settler is re-keyed under the backup's generation), only a host-begun root's attempt ends its root

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

# Conflicts:
#	server/index.ts
# Conflicts:
#	server/index.ts
#	server/testing/fake-claude-cli.ts
#	src/state/store.tsx
/setup told the bot to leave app authorization (OAuth) to the person and
point them at the Access section, so "set up my Gmail" ended in
instructions instead of a Connect card.

The setup block is now told what connected apps can do on this turn and
says one thing for each case:
- tools mounted: start the connection with COMPOSIO_MANAGE_CONNECTIONS in
  the same turn, so the person gets the Connect card in the chat, then end
  the turn and continue once it is connected;
- this bot's Connected apps switch off, or no connected-app tools: name the
  exact switch in the bot's settings (it is owner-only, so the bot does not
  flip it itself);
- no connection service: say so in one sentence and where it is set up
  (Settings -> API keys on a server, a restart or own key on the desktop
  app, the plan's included service on a Cloud);
- a model that cannot use connected apps: say so.
A website with no app connector goes to request_sign_in, never a password
in chat, and Google accounts only connect through connected apps. The
prompt names COMPOSIO_MANAGE_CONNECTIONS only when the turn mounted it.

Tests: per-state prompt tests, an index test for the mounted and
switched-off /setup turns, and an e2e where a fake engine starts the Gmail
connection through the real bridge and the card appears in the thread
(new FAKE_CLAUDE_CONNECT_APPS knob).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/groups/<room>/holds was added inline to server/index.ts, which the
index-route-ratchet test refuses (path.match( 89 > 88). It moves unchanged
to server/routes/room-holds.ts; the route table runs after the visibility
check, as the inline route did. room-holds.e2e passes 4/4 and fails when the
module is unplugged.

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

# Conflicts:
#	server/index.ts
#	src/components/GroupView.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/index.ts
#	src/components/GroupView.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/browser-runtime.test.ts
#	server/browser-runtime.ts
#	server/index.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- cli-api-setup / cli-setup: the Meta Model API (#2717) is a fourth built-in
  API endpoint, so the list has it and "Other" moves to position 4.
- notification-routing: #2707 replaced the computer-control hands plea with
  request_sign_in, so the room-routing test raises a sign-in request mid-room
  (the bot works in its built-in browser) and checks the sign-in notification
  names the room and opens the room's thread, not the bot's DM. Fails if the
  notification drops the room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- a URL server with its own result limit is gated (Claude and Pi) even
  without a tool selection; URL servers without one keep their native
  transport as before
- structuredContent matches the text whatever its object key order
- a trimmed result, banners included, stays within a small budget; a short
  banner is used when the full ones would take over half of it
- Result size limit: only whole thousands groups are digit grouping, so
  12.5 / 1,5 are refused instead of read as 125 / 15
Every turn a root: cards park, work continues, Stop means stop (4/5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/index.ts
#	server/managed-desktop-cleanup.test.ts
#	src/components/SignInRequestCard.tsx
delegate_bot, ask_bot, send_to_bot, check_delegation and wait_delegation are
gone from the tool list (docs/runtime-contract.md §9): coordinate_bots and
assignment_status are the one surface. The peer start_thread path keeps
working without its deprecation line. Every catalog profile is 3,175 B
lighter (default 55057 → 51882 B, 38 → 33 tools).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Rewritten to the real surface with each test's intent kept: the proxy's
peer start_thread answer, assignment_status's same-turn 409 relay and
parked-question rendering, R3 (consultation) and R4 (one-way notice in a
fresh thread), peer allow-list, peer approval, notification routing,
routine delegation, the three external-runtime suites, post-to-room's room
consultation and same-turn read, independent threads, thread capacity,
cloud lending, direct coordination's one-way chain and fresh-thread hand-off.
Deleted: the proxy's ask_bot/delegate_bot/check_delegation/wait_delegation/
send_to_bot rendering tests and the external alias test, comms's ask_bot
alias scenario (and the askerLegacy instance), runtime-paths R2 (a duplicate
of R1, whose reason-on-the-chip check R1 now carries).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Merge batch: saved logins, 1Password, room threads + stop @Bot, team settings, cache keep-warm, Codex browser, /setup Connect card
runGroupMemberTurn begins the root at the claim (chat responders, chained
mentions with the hop in the brief, goal steps marked goalRunId, card and
seat continuations) and ends every turn through the one settle path
(settleDirectCoordination -> hostTurnResult with member-attributed evidence
and member-filtered cards, or the run hook's settler for an execution the
runtime dispatched). sourceSettled and the lazy root in enqueue are gone: a
hand-off from a generation without a root is refused (no turn); an external
runtime's call begins and ends its own root. A room root's later execution
(rerun, answered, continued) runs the member's own turn through the room
queue with the harness line as its continuation prompt; a goal step's root
ends plainly and is refused a rerun once its run ended with the restart.
Readers: names (room title), report (goal steps silent, room lines from the
member), publicGroupState (a card park is not working), restart readers
include room threads. levelOf resolves a room hand-off's level from its
source exactly as the room turn will (invariant I6).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The room card-resume remnant (RoomCardResume, queueRoomCardResume,
dispatchRoomCardResume, drainRoomCardResumes, continueAfterCard, its drain
triggers and delete sites) is gone: every card path answers the parked node
(answerCardNode), rooms and bot threads alike; reconcileParkedNode,
releaseCardNode and stopParkedCards include room nodes. A person's Stop in a
room (every cancelGroupTurnOperations caller) marks the parked cards
stopped and stops awaiting the thread (stopAwaitingDirect is thread-keyed:
the room thread is the same call) before the room's rows are cancelled, so
a card completed afterwards saves and starts nothing; a harness stop keeps
cancelRoom(failed). The busy hook holds any node queued on a seat.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
externalRuntimeMayCall admits only the roster, coordinate_bots and
assignment_status; the deprecated() helper, HandoffCall.deprecation and the
deprecation spreads, GET /api/internal/delegations/:id, POST
/api/internal/ask-bot|delegate-bot and the oneWay/send_to_bot peer branch of
POST /api/internal/threads (the peer start_thread hand-off stays) are
removed, with the __ask_bot chip suppression and the stale comments. The
route ratchet is lowered to the measured counts.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A skill a bot learns (skill_manage, the automatic review) can move into the
shared skills library right away and be assigned to every bot in the
author's team (same sidebar section). features.shareLearnedSkills:
off / ask (default: a Share with team button on the receipt) / auto.
Inert unless features.skillsLibrary is on.

- server/skill-share.ts: share (install or dedup, archive the private copy
  write-once, durable author assignment), team assignment that never
  clobbers a teammate's same-named private skill, library-copy updates with
  the read-before-write check, Undo that reverts the library write and the
  assignments.
- Prompt-cache safety: a skill shared into a bot after a conversation
  started stays out of that conversation's skills index; the conversation
  gets a one-time note on its next user turn instead.
- Receipt shows who got it; POST /api/threads/:id/share-skill and
  POST /api/bots/:id/skills/:name/share.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Two bugs in "Set for all bots in this team…" (#2721), found by a live test.

A team model change cleared a thread's own model, but only on each bot's
selected thread. The team dialog sends each bot's own panel request
(PATCH /api/bots/:id), and that route moves the selected thread with a new
bot model "as if picked there" (#2401, carried over from #981, where the
panel's model was the open conversation's). That is right for the bot's own
panel, where the person is looking at that thread, and wrong for a team
change about the bots. The dialog now says it is a bulk change with a new
body field, keepThreadModels: threads that follow the bot move, a thread with
a model of its own keeps it, the selected one included. The panel is
unchanged.

A team-wide Auto (or Edits, or Ask) left threads opened with New thread at
the level they saved, because applyToAllThreads was sent, and accepted, only
with Full. Now it is one rule for every level but Custom: the dialog sends it
with each level, the bot API and the desktop's private channel accept it,
and one durable write (setAllThreadApprovalMode) puts the bot and every
thread on the level. Full still drops standing approvals, which decide
nothing there; at other levels they stay. A bot counts as already set only
when all its threads are, and one with a working thread is skipped.

Rules kept: Custom stays desktop-only (the HTTP scope now also refuses a
thread on Custom, which Full could overwrite before; the private channel
moves it), the acknowledgeLocalAuto warning (also required when the scope
brings a thread to Auto on this computer for the first time), and engine
capability checks. The patch queue drops an older all-threads scope when a
newer level arrives without one, so a quick Full-then-Ask in bot settings
still sets only the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A member's own turn in a room the person composed is checked for the bot,
the room conversation and membership (roomRootProblem), never for the
hand-off's section and peer rules. POST /api/testing/internal-capability
begins the turn's root for the minted generation, so hand-offs from it are
admitted as on main. The store's row schema keeps goalRunId, so a goal
step's rerun after a restart is refused as designed. server/room-roots.e2e
R1-R8 (R5 host-only, like runtime-roots T7).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Codex, OMB's default engine, had neither generateText nor
generateMemoryText, so room memory capture added nothing, memory upkeep
reported modelSteps:false and the skill review retried every 15 minutes
without ever running.

Codex now offers generateMemoryText: one `codex exec` per call, on the
turn's own sign-in and routing (own login, ChatGPT plan or Company), with
--ignore-user-config (none of the person's MCP servers, plugins, notify or
hooks start), a read-only sandbox, the shell and every other tool off,
--ephemeral, an empty temporary folder and the prompt on stdin. It uses
the smallest model the account lists (GPT-6 Luna) at low effort, since it
runs on the person's own plan, and fails closed on any tool item. It is
not offered as generateText, so titles and compaction never start a Codex
process per chat, and turns run exactly as before.

Settings say plainly when a bot's engine still cannot make the call: one
line under Learn from group chats (modelSteps) and one under Learn skills
automatically (the new backgroundText engine capability).

The daily-log line a finished turn leaves is journaled as that turn's
(actor bot, via turn, on its thread) instead of being credited to the
person at the next turn's start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/config.ts
#	server/index.ts
#	src/state/store.tsx
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A crash-restart replayed a person's words three ways since the runtime-roots
rework (a5b2e437):

- The drain's block check is the first coordinator read after boot; it opens
  the job runtime, whose restart changes drain the queue re-entrantly. The
  outer drain then drained its stale entry again: the same queued line was
  appended twice and dispatched twice. The drain now skips an entry a nested
  drain already took.
- A follow-up whose dispatch claim was on disk is that thread's cut root; the
  restart policy reran it although the boot recovery already returned the
  words with a review notice (never a second execution). The host's outward
  port now ends such a root, with no second line.
- A cut root whose thread had a queued follow-up reran after that follow-up
  had already carried the conversation on, redoing the older request. It now
  ends with the classic 'turn interrupted' line instead.

Bisected: passes at 2ec10ca1, fails from a5b2e437.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
fix: main green after every turn a root — one queued-sends drain, held words behind a rerun, three tests read the new model
fix(teams): a team-wide level reaches every thread; a team model keeps each thread's own model
Run memory upkeep and the skill review on Codex bots
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
fix(chat): never append or rerun a queued send twice after a crash
# Conflicts:
#	scripts/testing/index-route-ratchet.test.ts
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
#	server/index.ts
#	server/managed-desktop-cleanup.test.ts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Rooms as roots, the aliases go, the seam drops orphans (5/5)
test: crash-restart test reads the follow-up rule from #2735
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
chore: guardrails for splitting server/index.ts (size ratchet, host module rules)
feat(steer): steer queued messages with pictures into a running Claude turn
A chat bot keeps no resume cursor, so engineIsFresh is true on every turn
after the first and buildTurnContext inlines the whole thread into the turn
text. The hand-kept list of transcript-replaying kinds named 3 of the 7
createOpenAIChatRuntime drivers, so groq, mistral, cerebras and meta also
sent the thread as transcript messages: history twice, every turn. The answer
now comes from the engine table, and a test fails for any chat driver
registered without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sweep spares a turn parked on a person or on a computer. The loop
guard needs the same answer before it acts on a turn, so the watchdog
says it through waiting() and both read one predicate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/loop-guard.ts is the repeat subscriber as its own module, with
everything it touches handed in. It still posts the chip at 5, 10 and 20
identical calls. With loopGuard.enabled (off by default; OMB_LOOP_GUARD=1
switches it on) it also steers one harness note into the running turn at
steerAt (5) where the engine takes a message mid-turn, once per repeated
call, and at stopAt (10) stops the turn through the injected Stop path and
leaves a failed-turn line naming the call and the count. A turn waiting on
a person or a computer is left alone, a permission ask is never acted on,
and a turn is stopped at most once.

config.ts may only shrink (the file-size ratchet), so it gains the
section's two lines, loses two stray blank ones, and the defaults and
loopGuardSettings live in the module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
index.ts hands the guard the bus, the transcript, the watchdog's waiting
state, the steer-or-queue decision a person's message gets and the
person's Stop (interruptDirectThread, which now carries the harness's
cause to the requester instead of "Stopped by user"). The guard acts on a
bot's own conversations only; a room member's turn keeps the chip.
index.ts is two lines shorter. The detector's header no longer says the
harness cannot speak mid-turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Acting on the chip's own counts would stop the wrong turns and miss the
ones that matter. ACP cuts a tool title at 80 characters, so twelve
different commands behind one long `cd` read as one call repeated twelve
times; and Claude Code, pi and Muse title a shell call "Bash", which was
never counted at all.

With the guard on, a tool start is counted when it runs a shell command
(every driver reports it in `summary`) and its title, command and reported
arguments are whole: nothing shortened, masked, left out or cut at a
limit. A call that runs no command (a read, a click, a scroll) is never
counted. With the guard off the chip counts exactly what it did.

Separable from the commits before it: reverting this one leaves the guard
acting on the chip's own counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A real harness server and the fake Claude engine playing a turn that runs
one shell command twelve times and then holds. Off, the turn is left as it
always was. On, the engine answers with the note it was steered, in the
same turn, and the transcript gains no line of the person's. At the stop
count the turn settles not-ok on a failed-turn line that Retry belongs to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A move, not a change: the route body is byte-identical (git diff
--color-moved shows 172/172 lines moved); its free variables from
server/index.ts become the factory's explicit deps, with `routines` read
through a getter since index.ts assigns it after the routes are built.
index.ts drops the five imports only that block used. Ratchets: 158 -> 157
path guards, 27234 -> 27072 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
POST /api/groups and PATCH /api/groups/:id/setup go to server/routes/groups.ts;
/api/teams/export, /api/team-library/*, /api/teams/scout*, /api/org-library*
and /api/teams/import go to server/routes/teams.ts. Bodies are moved
byte-identically into createGroupRoutes/createTeamRoutes with explicit deps;
`routines` and `orgLibrary` are read per request since they are assigned at
boot. The route ratchet drops to 147 / 85 and index.ts to 26857 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
bot-settings.ts takes avatar/generate, profile, model, read, the command
allow-list and always-allow; bot-patch.ts takes PATCH /api/bots/:id (its
own module so neither passes ~800 lines). Byte-identical bodies (git diff
--color-moved: 837/837 lines moved). The per-request pinned-thread guard
index.ts built inline moves with them as pinnedClientThreadGuard(store),
which index.ts now builds the same way for the inline bot routes that
still use it: one mechanism, no copy. index.ts drops the nine imports only
these blocks used. Ratchets: path.match( 88 -> 81, 27072 -> 26253 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
An option card without a tool is a question, and the desktop draws a
"type your own answer" box under its buttons. A card whose options are the
whole answer (the engines of a quota-switch offer) sets fixedOptions, and
the box is not drawn. The field lives on the wire's OptionCardData, which
the desktop's card type takes it from; the phones ignore it for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The kill switch's place in config.json: one strict section with one
boolean, saved like the other sections. Two doubled blank lines go, so
config.ts stays the size the file-size ratchet lists it at.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Room for the quota-switch wiring, which reads both. Why a settled turn
failed is TurnStops' own read now (failureCause), and closing a question
card with its X, which both respond endpoints spelled out, is one function
in server/card-dismissal.ts. No behaviour changes; index.ts is 21 lines
shorter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/api/groups/:id/tasks*, PATCH and DELETE /api/groups/:id, /read, /messages,
/queue/:id, /queue/:id/steer, /members/:id/compact and /interrupt go to
server/routes/channels.ts as createChannelRoutes with explicit deps; the
createGroupTaskRequestSchema const moves with its only user. Bodies are
byte-identical. The route ratchet drops to 147 / 75 and index.ts to 26378 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
floorVerdict reads a command line and names the rule it meets: a recursive
delete of the filesystem root, the home directory or a top-level system
directory; formatting or overwriting a disk; a fork bomb. It reads POSIX,
cmd and PowerShell spellings from the text alone, through sudo/doas/env
prefixes, sh -c and cmd /c wrappers, chains, quotes and dot segments.

It leans towards letting a command through. The same words as data (a
commit message, an echo, a heredoc, a comment), a subdirectory, a relative
path and a path only a variable knows are never blocked. Pure: no I/O, and
nothing here decides an approval.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With safetyFloor.enabled (or OMB_SAFETY_FLOOR=1; off by default), the
request.opened fold checks a shell request against the never-list after
Full access, a saved command or any other grant has decided to allow it,
and before that allow is delivered. A match is denied with a reason, the
conversation shows "Blocked by the safety floor: …", and the decision log
gets an auto-denied row with source safety-floor. A card a person answers
is not overridden. GET /api/config reports whether the floor is on.

server/index.ts does not grow: the row for an undelivered automatic
approval moves to auto-approve.ts (undeliveredApprovalTool), words
unchanged and pinned by a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat runtime answers its own gate at Full access and under "Always
allow this session", so no request reaches the fold. With the floor on, a
tool call whose command is on the never-list is refused there: the model
gets the reason as the call's result, the person gets one notice, and the
decision log gets the row. At Ask the card still reaches the person.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex and Muse Code accept a request inside the driver at Full access, and
an ACP agent repeats a kept "Always allow this session" (or answers for a
legacy full-auto instance). With the floor on, none of them answers a
never-list command: it is raised as a request like any other, for a person
or for the fold to deny. Every other command is answered as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a person's turn ends on its engine's quota or usage limit, the
conversation gets one card naming up to three other engines that can take
over, and "Not now". Nothing switches without the answer. A port of #1184
onto the job runtime, where every turn is a root.

Offered: engines that can run a turn now (installed, signed in, allowed),
never the current one or one this server saw run out, only those that pass
automatic recovery's backup check and can run the thread's approval level
without a reset. Chosen: the engine's default model, through the thread's
ordinary model-switch gate, for this conversation only; then the exact
message whose turn failed is sent again as a person's send. Anything else,
typed words included, is "Not now".

A request is never started twice. A failed turn's root is settled by that
turn; when the runtime still holds the request (its root waits on teammates
or is parked on a card), the answer switches the engine and sends nothing,
and the runtime's own next execution runs there. A later turn that succeeds
closes an offer still open.

The offer lives on its card (card.quotaSwitch), not in memory: a tool-less
card is a question, and a question whose asker is gone takes a late answer
as a message to the bot. A Live call sends it to the screen, and the control
surface still reads the failed turn as failed: nothing waits on an offer.

On by default; quotaSwitch.enabled false or OMB_QUOTA_SWITCH=0 turns it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/api/bots/:id/projects*, /api/bots/:id/tasks, /api/bots/:id/tasks/:thread
(open, settings, delete) and /tasks/:thread/title go to server/routes/tasks.ts
as createTaskRoutes with explicit deps; bodies are byte-identical. The route
ratchet drops to 147 / 70 and index.ts to 26090 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Three modules by concern: bot-lifecycle.ts (POST /api/local-computer/
interrupt, DELETE /api/bots/:id), bot-skills.ts (a bot's skills and the
skills library) and team-context.ts (team memory and the section brief).
Byte-identical bodies (git diff --color-moved: every removed route line is
a moved line); index.ts drops the nine imports only these blocks used.
Ratchets: 157 -> 154 path guards, path.match( 81 -> 73, 26253 -> 25976
lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A count across the whole turn is right for a chip and wrong for acting on:
a healthy turn runs its tests ten times, and every run comes back
different. RepeatStreak tracks the narrower thing, beside RepeatDetector
and as pure: the same command completing with the same outcome as the
time before, with no other shell command in between.

The outcome is a digest of the completion's ok flag and reported output;
the text is never kept. There is none when the engine reported no output
or one that is not all there (shortened, masked, or long enough to have
been cut), and a completion without one ends the streak rather than
extending it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An ACP agent says how full its context is in `usage_update` (`used`, and
the window as `size`: Hermes sends both, opencode nests them under `usage`).
The driver read only `used`, and only to guess at a compaction. Each
positive report is now also emitted as thread.token-usage.updated with
contextTokens (and contextWindow for a usable size), so a 1:1 conversation's
context meter shows the engine's own figures. The event carries zero
input/output: ACP counts those once, on the prompt result, whose event still
comes last and is unchanged.

That reading must not move when OpenMausBot's own compaction fires. The
harness feeds one stored reading to the meter, to the fold before a 1:1
turn and (since #2721) to a room member's fresh session at 90%, so the ACP
adapter marks its reading `contextReading: "meter"` and both compaction
consumers take it through compactionReading (context-budget.ts): for ACP
engines the fold is still timed from the transcript estimate and the
model's window, and a room keeps no reading for an ACP member. Whether such
a reading should time compaction is left for a later change; it is one mark.

Reading what an agent says about its session moves to
drivers/acp/session-reports.ts, the usage-collapse heuristic with it
(unchanged), so core.ts does not grow (file-size ratchet). server/index.ts:
two call sites rewritten in place, 27264 lines before and after.

acp-context-reports.e2e runs each 1:1 scenario with the fake agent silent
and reporting and requires the same compaction at the same turns (a 95%
report folds nothing, a near-empty report postpones nothing), and a room
member reporting 95% keeps its session. Each of the three fails with its
call site unplugged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guard steered at the fifth and stopped at the tenth run of one command
in a turn, however the runs came out. A turn that edits and re-runs its
tests does exactly that and is not stuck, so nobody could switch it on.

It now acts on a streak (repeat-streak.ts): the same whole shell command
completing with the same outcome as the time before, back to back. The
note goes in at steerAt in a row and the stop comes at stopAt in a row,
once per command and once per turn as before, and both say what is true:
the call "has returned the same result N times in a row". A different
command, the same command with a different result, a command the harness
cannot see whole, or a result it cannot see whole each start the streak
over. An engine that reports no output for a command is never acted on.

The chip is the detector's again in every case: the count across the turn
at 5, 10 and 20, the same with the setting on as with it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hermes rotates its own session when it compresses history and says so: a
`session_info_update` whose `_meta.hermes.sessionProvenance` carries
`reason: "compression"` and a `compressionDepth` one higher than before. The
driver now reads that notice, inside the update or beside it, and treats a
stated compression, or a depth above the last one the live native session
reported, exactly like a collapsed usage report: `usageCompacted`, so the
split-prompt receipt is dropped and the next turn re-sends the bot's full
instructions (also when the prompt that carried the notice is rejected).

The usage-collapse heuristic stays for every engine. Meta without that
shape, from Hermes or anyone else, is not a marker and is ignored silently.
The depth is remembered per native session for as long as its process is
pooled (session-reports.ts keeps it, keyed by the driver's session record)
and starts at 0, a root session's depth: a first sighting already past it
counts, since a false alarm costs one extra full prompt and a missed
compaction leaves the bot without its instructions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- cloud-lending-memory: the fixture restarted the server with earlier tests'
  held turns still running; since #2728 those cut turns rerun on the same fake
  engine and could take the place of the test's own turn. The fixture now stops
  running turns before each restart (failed 3/3 alone on main, 0/3 before #2728).
- notification-routing consultation: every turn is a root now, so a person's
  message from an earlier test in the same server is a third row; the check reads
  only Pen's and Ink's rows (Pen's root, Ink's consultation its child).
- en.json: the 1Password guide says "Shared with OpenMausBot", not "OMB".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ACP agents send their plan as a `plan` session update: the whole list every
time, each entry a text with a status. The driver ignored it. With
`features.acpPlanLines` on (or OMB_ACP_PLAN_LINES=1) it now shows one
finished tool step each time the plan reads differently:
`Plan: 2 of 5 done — Write the tests`, or `— next: …` when nothing is in
hand. A list whose line is the one last shown says nothing new, within a
turn or across turns of the same native session.

No new event type and no client change: the step is an item.started /
item.completed pair, which is how Claude's todo tool already appears (a
tool item with the list as its bounded, redacted input). The entry's text is
redacted before it is cut to a title's 80 characters. A plan is not a reply:
a turn that only planned still ends as a lost turn.

Off by default because the lines count as tool calls wherever those are
counted, and a title with spaces is grouped with commands (the digest's
`shell` bucket, the repeat notice), like every other titled ACP call. The
flag is read from config.json when it changes (cacheUntilConfigChanges, in
session-reports.ts): a driver holds no live config, and server/index.ts is
untouched.

File sizes at the ratchet's numbers: core.ts 2428 and config.ts 1928 lines,
as on main (the schema key takes the place of a doubled blank line).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The 578-line config block leaves server/index.ts's inline routes for
createConfigRoutes(deps). The body is verbatim except the six lines that
read or set the provider-settings lock and the Local VM flags, which stay
in index.ts and reach the module as get/set views. Route ratchet
'path === "/' 158 -> 156; index.ts 27234 -> 26692 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
POST /api/bots/:id/messages (plain and guarded), the steer queue
(DELETE /queue/:id, POST /queue/:id/steer), /compact, /messages/:id/edit,
/active-branch, /respond for bots and for threads, and /interrupt leave
server/index.ts's inline routes for a route-table module with explicit
deps. The bodies are byte-identical; the guarded-send schema moves with
its only reader. The per-request requirePinnedClientThread guard, which
these routes share with the inline bot routes that stay, becomes
pinnedClientThreadGuard(store) in server/routes/pinned-client-thread.ts
(the shape #2740 gives it), built once in index.ts and once in the module.

Ratchets: path.match( 88 -> 79; server/index.ts 27234 -> 26664.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
createInstanceRoutes takes the 292-line instances block (list, accounts,
icon, auth, CLI candidates and probe, Claude update, per-instance settings,
delete) and createMcpServerRoutes the 204-line MCP block (list, test,
sign-in, add, import, edit, enable, remove). Bodies are verbatim except
the lines that read or set providerConfigBusy and mcpConfigBusy, which
stay in index.ts as get/set views; claudeUpdatesInFlight and the probe
counter move into their factories (their only users). Route ratchet
'path === "/' 156 -> 148, path.startsWith( 11 -> 10, .exec(path) 18 -> 9;
index.ts 26692 -> 26197 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
createComputerRoutes takes the 372-line computers block: team computers
(list, create, assign, provision, sleep, join, control), the Boat and VPS
inventories, the shared Local VM and a bot's own desktop with its phone
join. The body is verbatim except the seven lines that read or set the
Local VM flags, which stay in index.ts next to the turn code that reads
them and reach the module as get/set views; routines is a getter read once
per request. RemoteComputerProvider is exported from routes/config.ts for
both modules. Route ratchet 'path === "/' 148 -> 142, path.match( 88 -> 80;
index.ts 26197 -> 25837 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GET /api/bots, GET /api/threads/:id/messages and a message's /image and
/file, POST /api/attachments and /api/files, GET /api/attachments/:name,
GET /api/search and GET /api/threads/:id/export leave server/index.ts's
inline routes for a route-table module with explicit deps. The body is
byte-identical; the late-bound slots (workspaceAccess, the two mutation
tokens, cliOwnerToken) are read through getters once per request, and
bot visibility is computed as the preamble does. The image, file and
export routes answer with `return res.end(...)`, so the module's body
is typed Promise<unknown> and the exported handler reports only whether
it was PASS; the table's contract is unchanged.

Ratchets: path === "/ 158 -> 154; path.match( 79 -> 74;
server/index.ts 26664 -> 26187.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
createStatusRoutes takes the 221-line status block: the health handshake,
the browser engine install, the fleet agent, edition and brand, a thread's
inspector events, plan usage, the provider key test, the decision log and
admin activity (JSON and CSV), a bot's activity and its outbound allowance.
The body is verbatim except the seven lines that read or set the
browser-engine install promise and its error, which stay in index.ts (the
config frame and the idle check read them) and reach the module as get/set
views. Route ratchet 'path === "/' 142 -> 132, path.match( 80 -> 77,
.exec(path) 9 -> 8; index.ts 25837 -> 25611 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The same command with the same result back to back is not always stuck.
A poll is exactly that (`sleep 60 && gh run view …`, a `tail` of a log
that has not moved): it succeeds with the same output for as long as the
thing it waits on takes, and the guard told it at five and stopped it at
ten.

The streak is now made only of failures: the same whole shell command
failing the same way as the time before, back to back. A shell command
that succeeds ends it, as a different command does, so fail, fail,
succeed, fail, fail never reaches five. The digest is of a failure's
output only (failureDigest), and the note and the stop line say what is
true: the call "has failed the same way N times in a row".

A turn that keeps getting the same successful output is no longer told or
stopped by anything; the chip, where it counts the call, is all that
notices it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A session rebuilt from an inline replay is sent what was said, not what
was done. selectReplay can now also put one line per earlier tool call
back between the two messages it ran between, in a new `inline`
transcript. `transcript` itself stays text only.

- toolReplayLine: what the call's chip shows in the chat and how it
  ended ("[ran: Bash: pnpm test — failed]"), redacted, then clipped to
  120 characters with the outcome kept. A call with no recorded result
  says so instead of reading as a success.
- replayToolCalls: the activity rows with a provider item behind them
  (the rows a digest counts), each after the context message it
  followed. A row that is itself context is never also a tool line.
  Empty unless context.replayToolHistory or OMB_REPLAY_TOOL_HISTORY=1
  switches it on.
- Message content is selected first, exactly as before. Tool lines get
  only the bytes it left unused: at most 20, the most recent, and only
  for calls between the first and last replayed message.

Ports the replay half of #1184 onto today's byte-budgeted selectReplay.
Nothing passes tools yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The typed key behind replayToolHistoryEnabled (server/context-rebuild.ts).
OMB_REPLAY_TOOL_HISTORY=1 or =0 wins over the file. It is a context-only
setting: saving it reloads no provider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
startTurn hands its inline replays (the turn text, the external-update
recovery replay and the lost-session recovery text) selection.inline.
With context.replayToolHistory on, a session rebuilt after an engine
switch, a rewind, a lost session or a compaction also reads one line per
earlier tool call. SendTurnInput.transcript, which natively replaying
drivers read, keeps the text-only transcript, and a turn that resumes
its session is sent no replay, as before. With the setting off every
replay is byte-for-byte what it was.

server/index.ts does not grow: six lines changed, none added.

replay-tool-history.e2e runs the real path through the isolated
fixture: no such line while the setting is off, both lines in order
once it is on, the bare message for every resumed turn, and Codex
switched in mid-thread is sent the lines for Claude's turns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"[ran: Read — ok]" told a rebuilt session that a tool ran, not on what:
a Read's chip shows no path, so the line had none either. A call whose
chip shows no target now takes one argument from the input preview
stored behind the chip: the command, file, search pattern, query or URL
("[ran: Read: server/config.ts — ok]").

- Only that one top-level argument. Never the rest of the preview (a
  Write's content, an Edit's old and new text), never the tool result.
- Read by line, not parsed: a preview cut at 6,000 characters no longer
  parses, while the line naming the file is still whole.
- Drivers build the preview with toolDetailPreview, which redacts it;
  the store does not scrub tool.input again, so the value is redacted
  here too, before it is clipped.
- Clipped to the length a title is clipped to. A path keeps its end,
  which is the file.
- The command beside the chip still wins, and a title that already is
  the command or names the file is not given it twice.

The caps, the budget rule and the off-by-default switch are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex previews a web search as the query itself, not as named
arguments, so its line was still "[ran: web_search — ok]". A preview
that is one plain string is the call's only argument and is now shown
("[ran: web_search: OpenMausBot — ok]"), redacted and clipped like any
other target.

A preview that opens with a bracket is not plain text: arguments that
never parsed, and the placeholders that stand in for content
("[large content omitted]"), still give the bare line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tool line is the harness speaking, in words a model chose (a title, a
command, a path) and so, at one remove, any page it read. After an
engine switch that text reaches another provider. Three holes:

- Harness notes. A title, command or target could open a note of its
  own ("x — ok] [Delivered earlier by @Bob, …"). Each part now goes
  through escapeNotes (server/peer-provenance.ts) before it is clipped,
  and the joined line once more, since a title and a detail can open a
  note between them. A bracket that opens none (app/[id]/page.tsx) is
  left alone.
- Web addresses. A signed link's query and a webhook's path are secrets
  in a shape no redaction rule knows. A URL target is cut to scheme and
  host: the `url` argument, and an address given under another name or
  as the whole plain-text input. One that does not parse is not shown.
- Plain-text inputs. Any preview that was not JSON was taken as the
  target, so a tool given a body as one string (a message, a patch)
  showed the start of it. It is a target only as a single line of at
  most 200 characters.

Also folds U+0085, which \s leaves out, with the other line separators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
replayToolCalls formatted a line for every tool call on the branch on
every turn, and a replay places at most 20. A call's line is now built
when its text is read, and withToolLines reads it only after the window
and the cap have picked the calls. The lines sent are the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1 found never-list commands the reader let through, and a few
it blocked that it should not have.

- A line's shell is not known, and a backslash escapes in POSIX but ends a
  path in cmd and PowerShell. The line is now read both ways, each reading
  for its own rules, so `cd "C:\Users\me\" && rd /s /q C:\` is seen and a
  string a Windows line only prints is not. A heredoc, a continued line or
  quotes that close in one reading settle which kind a line is.
- `sudo -uroot rm -rf /`: the first value-taking letter ends an option
  cluster. `sudo -l` lists and runs nothing.
- `mkfs` is blocked on any device except loop, RAM, nbd and zram; an image
  file is still fine. `dd` also knows RAID and mapped volumes.
- Not blocked any more: a group inside a path (`/var/(log|tmp)/old`),
  `/mnt/<letter>` on Linux, `/private` off macOS, and a home directory that
  is a scratch place (HOME=/tmp).
- Also read: `${HOME:?}`, `bash -c --`, `function name { … }`, `$(( … ))`.

floorReading tells "read, not on the list" from "could not read";
floorVerdict keeps its shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1. A driver decided from the engine's raw command while the
fold read only the exact-command descriptor, which exists only with a known
working directory. A command the driver had just refused to answer was then
approved by the fold under Full access. Requests now carry the engine's
command line (`commandLine`, never broadcast) whenever a driver has one, and
both sides read that one string.

A command the reader fails on is no longer allowed silently. The gate logs
once, without the command, and nothing answers for it: the fold turns the
grant's verdict into a card for the person, and the chat runtime, which has
no card to show at Full access, refuses the call.

Also: a final catch on the denial's async block, and the fold's notice row
carries the same `ok` as the chat runtime's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/config.ts is pinned at 1,928 lines by the file-size ratchet and
context.replayToolHistory had taken it to 1,933. The settings a replay
reads now have their own small module, server/replay-settings.ts, the
way a new bot's defaults do (server/new-bot-defaults.ts):

- the schema for context.rebuildBytes and context.replayToolHistory,
  which config.ts adds to the `context` group with .extend();
- replayToolHistoryEnabled and its OMB_REPLAY_TOOL_HISTORY override,
  moved from server/context-rebuild.ts.

rebuildBytes moves with it because it is the replay's other setting:
its floor is the one selectReplay enforces. The validators are the same
ones, so config.json and the settings API accept and refuse exactly what
they did. config.ts is back at 1,928 lines, and the module it now
imports depends on nothing but zod.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/host/README.md is where modules taken out of server/index.ts live,
and the guard is one: the repeat fold, with what it touches handed in.
A move and nothing else: the file and its unit tests go to server/host,
their relative imports and the comments that name the path follow, and
index.ts imports it from there. The pure counters (repeat-detector.ts,
repeat-streak.ts) are not host modules and stay where they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two findings that made the stop untrustworthy, a ruling on the default,
and the reviewer's smaller points.

- A streak member needs a command. `summary` is the event contract's
  word that a call runs a shell command; a title that merely looks like
  one is not taken for it any more. ACP titles every tool in words, so
  ten failures of "Read src/x.ts" or "Wait for selector" were a stop.
- A turn fence. What the guard holds for acting is dropped when a turn
  starts and when a tool event names another turn, since a turn's end
  does not always reach the fold (quarantined turns, a session's exit on
  a busy thread). Nine failures of one turn and one of the next are not
  ten in a row, and a turn stopped by the guard no longer leaves the next
  one unguarded. "The thread has a turn running" is now necessary for
  any action, beside "and is not waiting".
- The stop is a separate opt-in. Switched on and nothing else, the guard
  only steers the note at five in a row. It stops a turn only when
  `stopAt` is set, in config or by OMB_LOOP_GUARD_STOP_AT, so a wait that
  fails until ready is never stopped by default. A patch's `stopAt: null`
  takes it back out.
- The command is quoted in the note and the stop line, so prose inside a
  command cannot read as the harness's own sentence.
- One server log line per action (steer sent, refused, indeterminate or
  rejected; stop sent, not sent or rejected), never the command.
- A deleted thread's counts and streak go with it.
- The module is a host factory: createLoopGuard(deps) returns the fold,
  and index.ts registers it where the old one sat.
- config.ts names the setting in three ordinary lines and its code lives
  in the module. To stay at its pinned 1928 lines, two imports from
  ./contracts.ts became one.
- The comment that called the stall watchdog a backstop for an ignored
  stop was wrong, and is corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1 on the quota-switch card.

A decline could choose an engine. answer() never saw the behavior, so
{behavior: "deny", message: "<engine label>"} switched the thread and
sent the person's message again. Where local services may only decline a
card (hosted workspaces, a Cloud home, OMB_LOOPBACK_TRUST=service) a bot's
own shell can read the card and post exactly that. The label is now read
only from an answer; every decline settles the card as "Not now".

The held check asked about the thread, not the failed request. Any live
node in the thread counted, and a root parked on a connector, secret or
sign-in card nobody answered never expires: every answer in such a thread
switched, sent nothing and said work was under way. The card now carries
the failed request's root, and the answer asks about that node. The thread
is asked one thing only: whether a teammate's question there would take the
resent line as its answer (coordinator.answer's own rule;
coordinator.awaitingAnswer also counts a root parked on cards, which is the
case being fixed).

Also:
- the offer is spent only once the choice took effect: a refusal (a busy
  thread, an account being updated, an engine that dropped out, a failed
  save) says why and leaves the card open, re-sent so clients reopen it;
  the respond routes await the decision, so the answerer is recorded;
- no card is posted for a thread whose next turn worked while the engines
  were being read;
- no engine is offered or switched to when the engine the thread runs on
  is gone from the registry: the backup check could not be made;
- turnSucceeded never throws into the turn that worked;
- the setting is the module's own: read from config.json when an offer is
  made or taken (env still wins). server/config.ts is back to main's
  content, its two blank lines included, and index.ts's call sites pass
  singletons instead of packed lambdas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
quotaSwitch.enabled in config.json and OMB_QUOTA_SWITCH, beside the other
setting an environment can override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The failureCause test had landed between that comment and its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OMB_QUOTA_SWITCH=0 switches the card off; any other value, or none, leaves
it on. The module no longer reads a quotaSwitch section from config.json:
a key the config schema does not know is unvalidated, cannot be set through
PUT /api/config, and a save through the schema could drop it and bring the
offer back unasked. A typed quotaSwitch.enabled key is left out for now
because server/config.ts is pinned by the file-size ratchet; the
self-hosting guide says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 2. Reading every line as both POSIX and Windows, with one
reading's quotes deciding whether the other counted, let a later line switch
rules off and read POSIX text as Windows commands. The design is now simpler.

- The platform argument picks the reading. On macOS and Linux a line is read
  as POSIX against the POSIX rules; cmd and PowerShell commands are not
  evaluated, because that host cannot run them. On Windows it is read twice,
  as POSIX and as cmd/PowerShell, each against its own rules, and a hit in
  either blocks. The two readings never look at each other.
- In the Windows reading a backslash is always an ordinary character, so one
  before a newline, a quote or a separator never changes how the rest splits.
- A reading that loses its place (a quote, heredoc, group or substitution
  that never closes; nesting past what is followed) reports "could not read"
  unless it had already found a block, which stands. It is never "clear".
- Reading is linear, and a command over 32 KB is not scanned: it is reported
  as not read.
- `then(…)`, `if(…)`, `do(…)` are subshells again; a group inside a path is
  still a path the text cannot place.

The tables say per platform what each row must do, and pin what reading
every line twice costs on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size ratchet pins config.ts, codex.ts, acp/core.ts, claude.ts and
openai-chat.ts, and the floor had grown each of them. Their lengths are back
to what main has.

- What a shell request puts on its event (the exact-command descriptor and
  the engine's command line) and whether a driver may answer by itself now
  live in drivers/permission-command.ts (shellRequest, acpShellRequest,
  answersAlone). Each driver calls them on lines it already had.
- The chat runtime's gate object owns its floor check (floored, refusal in
  chat-tool-approval.ts).
- safetyFloorEnabled moves beside the gate that reads it; config.ts keeps
  the typed key. Two doubled blank lines there make room for it.

No behaviour changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The real-server recipe now reads the first request off /api/events and
checks it carries neither `command` nor `commandLine`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 3 on the quota-switch card.

- A thread already on the chosen engine never meets the switch gate, which
  is where a working thread was refused. Pressing that engine while the
  person's retyped message ran queued the failed message a second time. A
  working thread is now held like a request the runtime still owns:
  nothing is switched, nothing is sent, and the line says so.
- The respond request waited on the chosen engine's probe for as long as
  it took. The wait is now the one an engine probe gets in
  engine-install.ts (PROBE_TIMEOUT_MS, exported), on a clock the tests
  inject. An engine that does not answer in time is refused with a plain
  line and the card stays open; while a card is built it is left off.
- A refusal that cannot pass no longer repeats on every press. An engine
  that was removed leaves the card (the card closes when it was the only
  one), and when it is the conversation's own engine that is gone the line
  says that, and the card closes, instead of blaming the chosen engine.
- Lines after a choice say "already on" when nothing was switched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OMB_QUOTA_SWITCH=0, and no config-file setting yet; the reason is ours, not
an operator's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pill sat above the whole composer dock, so an open This run card
pushed it up into the transcript. Anchor it inside the dock, below the
card row, so it shares the card's bottom edge.
generateText takes an optional `model` (TextGenerationOptions): one of the
instance's models to write with, instead of the driver's own choice for
quick calls. The Claude driver and the chat-completion runtime honour it;
without it both keep the model they used before. Permission review shares
Claude's one-shot process but its contract has no way to name a model.

Only the helper setting will pass it (server/side-jobs.ts, next commits).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A small writing job the helper model does for a bot is not a person's turn,
a routine or a bot-to-bot hop, and booked as `bot` it would be read as
"Bot to bot" and lost among peer work. `{ kind: "helper", botId, job }`
groups under its own key with the label "Helper model", in the summary and
in the CSV's triggered_by column.

Readers tolerate it: the usage page shows the server's label for a key it
has no name for (pinned in UsageHistory.test.ts), and a server that
predates the kind files the row under `bot`, as it does any unknown kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The compaction summary, memory upkeep and the skill review each need one
tool-free text call, and each borrowed the bot's own engine for it. Pi and
Muse Code have no such call, and Codex and the ACP engines have none for
the summary (their background call starts a whole agent process), so
those bots got the mechanical fallback: an excerpt summary, and on Pi and
Muse Code no capture and no review either.

server/side-jobs.ts is one resolver for all three. The bot's own engine
writes whenever it can, made, bounded and booked exactly as before;
otherwise the helper instance's generateText writes, when one is set and
may be used; otherwise nobody, and the job keeps its fallback. The order
never reverses.

The setting is `helper: { instanceId, model? }` in config.json, with
OMB_HELPER_INSTANCE and OMB_HELPER_MODEL winning. Unset by default: it
sends those bots' conversation text to a second provider. A settings
request cannot set it, and a mistyped entry reads as no helper.

The helper is never used for a bot whose own engine is missing or
disallowed, and is never an instance that is not connected, switched off,
disallowed by the organisation, or (on a hosted workspace) asked for a
model that is not assigned. Each helper call checks the spend limit and is
booked for the bot it wrote for with the trigger `helper`.

Tests drive the resolver, and memory upkeep, the summary and the skill
review through it. server/memory-upkeep.test.ts is left as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three call sites in server/index.ts take their one-off text call from
server/side-jobs.ts instead of reaching for the engine themselves. The two
background closures (the policy check, the spend limit, the usage row)
moved into the resolver unchanged, so index.ts is 35 lines shorter. Every
job keeps its own timeout, cap and fallback.

helper-model.e2e.test.ts boots the real server in a throwaway home with
the fake Claude, Codex and Pi engines. With the setting, a Pi bot's
capture, skill review and compaction summary are written by the helper
with the named model and booked as helper calls; a Codex bot keeps its own
background call for upkeep and gets only the summary from the helper; a
Claude bot keeps its own engine. Without it the Pi bot keeps today's
fallbacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 3. PowerShell 7 runs on macOS and Linux, and since round 2 its
wrapper was no longer followed there, so `pwsh -c 'rm -rf /'` and
`pwsh -c 'Remove-Item -Recurse -Force $HOME'` read clear. What follows
`pwsh -c` / `powershell -Command` is now read two ways on those hosts, and a
hit in either blocks: as a POSIX line (there `rm` is the real rm), and as
PowerShell, whose own recursive delete is checked against POSIX targets. An
inner text that cannot be read is "could not read". Nothing outside that
wrapper gets a second reading.

Also: `(( x << 1 ))` and `$[1<<2]` are arithmetic, so the shift no longer
starts a heredoc that swallows the lines after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 3. On Windows every line has to be read as two shells, and a
sixth to a quarter of ordinary commands came back "could not read", which
at Full access stalls unattended work. Until a request says which shell it
is for, the gate is inert there: whatever the setting says, nothing is
classified, denied, held or logged, and every approval behaves as it does
with the setting off. GET /api/config reports the floor as not in force.

So that a setting which is on and does nothing is not a silent trap, the
server says so once at startup. The classifier's Windows reading and its
tables stay, tested through the platform argument.

Tests give the server's platform explicitly wherever they expect the floor
to act, so they say the same thing on a Windows runner; the real-server
test checks the inert path there instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 3. Moving the request fields into acpShellRequest dropped the
exclusion of questions: an ACP question whose input held a `command` string
went out with `commandLine`. The driver passes no input for a question
again. The driver tests also cover Codex and ACP on a Windows server, where
the floor is not applied and both answer as they do with the setting off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The size ratchet (scripts/testing/file-size-ratchet.test.ts) pins
server/config.ts, the Claude driver and the chat-completion runtime, and
none of them has room.

- The `helper` schema, its type and helperSelection move into
  server/side-jobs.ts. config.ts consumes them on lines it already had: the
  stored config schema is extended with the helper section, AppConfig
  extends its type, and the import takes the place of a second import from
  contracts.ts, which joins the first. config.ts is back to 1928 lines.
- The section is part of the stored schema only, so a settings request
  still cannot name or clear a helper: alone it is "nothing to save".
- OMB_HELPER_INSTANCE and OMB_HELPER_MODEL are read by helperSelection
  instead of loadConfig, with the same precedence.
- server/index.ts reads the setting from config.json as the file is now
  (cacheUntilConfigChanges, like the sign-in list), so a helper taken out
  of the file stops being used at once, without a restart.
- The two drivers explain the named model in a trailing comment instead of
  lines of their own: both are back to main's line counts.

The e2e writes the setting into config.json of a running server and takes
it out again, and checks that a settings request changes neither.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A helper model writes for every bot whose engine cannot, which includes a
bot kept on a local model so that its text stays on the machine. Nothing
let one bot out.

WireBot gains `helperModel?: boolean`: absent or true means the helper may
write for the bot, false means never. It is stored, exposed and updated
like the memory upkeep switch: on the bot record through the wire type,
and set with PATCH /api/bots/:id, which refuses anything but true or false.
There is no Settings switch yet.

With it set, the resolver answers null for that bot for all three jobs
before the helper is looked at, so the compaction summary, memory upkeep
and the skill review behave exactly as with no helper configured (the
Memory panel says the engine cannot, as it does today). A bot whose own
engine can write keeps writing with it.

Tests: the resolver for all three jobs on Pi and for the summary on Codex,
memory upkeep through it, and through the real server a Pi bot whose
capture and review are refused and whose summary is excerpts, with the
switch accepted, saved to bots.json and a wrong type refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A team backup holds a bot's notes and chats, the text the helper model
would read. It now carries `helperModel: false` for a bot switched to
never use the helper, and the import sets it on the restored bot. Only
false travels: a file can keep a bot off the helper and can never put one
on it (true is refused by the schema), and a backup from before the switch
restores as before.

A full workspace backup already carries bots.json whole. Its restore keeps
the destination's own `helper` setting and never installs the backup's:
that policy is pinned here with a test.

The shared team package is left alone on purpose. It carries a persona and
no personal settings, notes or chats, and its format is the one gate
shared with Admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 4. Round 3 read `(( … ))` and `$[ … ]` as arithmetic and
skipped to the matching close, to stop a shift (`<<`) starting a heredoc.
But a shell runs text in there: a substitution inside arithmetic, a `((`
that is really two subshells, and any shell with no arithmetic command.
Thirty-five strings that blocked before went clear.

Both branches are removed, so the reader is what it was before 79a54197b
touched it. A bare shift (`(( x << 1 ))`, `echo $[1<<2]`) is "could not
read" again, which sends the request to a person: the safe direction, and a
known limitation.

The tables pin it: seventeen must-block strings across the three groups,
and the bare shifts in the could-not-read table. Two comments no longer say
macOS and Linux cannot run a PowerShell command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1 skipped `$(( … ))` as arithmetic so a shift in it would not
be taken for a heredoc. Text in there does run: `echo $(( $(rm -rf /) + 1 ))`
and its backtick form read clear. The skip is removed, as it was for
`(( … ))` and `$[ … ]`, and `$(( … ))` is read like any other substitution.

A shift in `$(( … ))` is now "could not read", the same as in the other two
forms, including when a never-list command follows on a later line. Ordinary
arithmetic with no shift still reads clear, and the tables pin all three.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two review findings on the resolver.

The switch was compared with `=== false`, so a hand-edited bots.json
holding "false", 0 or null left the bot on the helper. Only an absent
switch or a strict true allows the helper now; anything else reads as
never. The rule is one function, helperModelAllowed in shared/wire.ts, so
the server and the client read a record the same way.

"A helper never fails a turn" rested on nothing throwing while the helper
was looked up: the compaction summary resolves its writer inside a
try/finally with no catch. usableHelper now catches whatever the setting,
the registry, the policy or the hosted list throws, answers "no helper",
and says so once. A JSON error is named rather than printed, because it
can quote the text it failed on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The schema took only `helperModel: false`, so one bot entry carrying true
failed the whole import. It takes a boolean now. Only false is applied, as
before: a file can keep a bot off the helper and can never put one on it.

The export writes "never" for any saved value that does not allow the
helper (helperModelAllowed), so a hand-edited record does not become
"allowed" by passing through a backup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Duplicate copies the source's engine and model, which is usually why the
source was kept off the helper model, and dropped the switch: the copy's
chats then went to the helper.

The creation request carried who may see the copy and its tool selection
("a copy of a restricted bot is restricted from its first moment"). That
field-copying moves out of src/state/store.tsx into a pure function,
restrictedCopyRequest in src/lib/bot-duplicate.ts, which now also sends
`helperModel: false` when the source does not allow the helper. store.tsx
calls it and stays at 4546 lines.

For the switch to be part of creation, the creation settings schema takes
`helperModel` as a boolean. That schema is also the saved new-bot
template, so a template can hold it too.

Tests: the function for audience, tool selection and the switch; the
schema; and through the real server, a bot created with that body has the
switch in its saved record before any later request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Putting a bot back on the helper decides where its text may go, as its
model selection does. `helperModel` joins BOT_AUDIT_FIELDS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The paragraph promised that a switched-off bot's text stays on the
machine. It keeps the helper away from that bot's own three jobs. What
the bot says in a room or to a teammate is read by those bots' engines and
by whatever writes their background jobs, the helper included, and the
docs now say so and say what to do about it.

Also: a copy made with Duplicate keeps the switch, and Muse Code is named
beside Pi as an engine with no quick text call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the person picks another engine on the quota card, the message that
hit the limit is sent again. The resend dropped `via: "call"` and the call
id, so a request spoken on a Live call came back as typed text: the
turn-start log could record words the Live-call path keeps out of logs,
and the new line no longer said it was spoken.

The quota switch now hands the line's own Live-call fields to the resend
(through spokenLineFields, so a line that was not spoken never carries a
call id) and the server passes them on. server/index.ts keeps its length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`env -S LINE` (and `--split-string=LINE`, `-SLINE`, `-iS LINE`) hands env a
whole command line as an option value. The reader skipped the value, so
`env -S 'rm -rf /'` read as clear and Full access could approve it.

The words env makes of the value now take the option's place and are read
on from there, so `env -S 'rm -rf' /` and `env -S '-i FOO=1 rm -rf /'` are
caught too. A value env would expand or escape by its own rules (`$`, a
backslash, a `#` comment), an unterminated quote, or a value the shell
computed is "could not read", never clear.

A shortened long option on a wrapper (`sudo --us root rm -rf /`) may take
the next word as its value. The word after it is still read as the command,
so anything that blocked still blocks, and the line is otherwise "could not
read" instead of clear.

25 new table rows. Old against new over 13,949 real package scripts and
shell-script lines on three platforms: no reading changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake ACP CLI publishes its dump with write-then-rename, as the Claude
and Codex fakes already do, so concurrent fake processes never expose a
half-written file. The team-rename recreation test waits for the managing
Chief's turn to end before renaming, since renameSection refuses while a
managing Chief is busy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
split: the config, instance, MCP-server, computer and status routes leave server/index.ts
# Conflicts:
#	server/notification-routing.e2e.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/index.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/index.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/index.ts
test: green main after #2728 and PR 5 (cloud-lending, consultation rows, 1Password copy)
fix: main green — a test capability joins the live turn's root, Linux CI shards get 30 minutes, three small test/string fixes
split: the bot routes leave server/index.ts (create, settings, PATCH, lifecycle, skills, team context)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
split: the room, team, channel and task routes leave server/index.ts
split: the bot message and conversation-read routes leave server/index.ts
feat: a small Product Hunt launch card in the app
chore(release): bump version to 0.1.108
main (a2b2b1b72, v0.1.108) moved the HTTP routes out of server/index.ts into
server/routes/*.ts. The only textual conflict was server/index.ts: the block
from POST /api/bots to the section-context route, which main deleted and the
branch had changed in one place.

Resolution: main's side for the whole moved block (nothing main moved out is
back in index.ts), and the branch's one edit inside it re-applied where main
put that code.

Where each of the branch's server/index.ts edits lives now:

- the side-jobs import: server/index.ts, unchanged (auto-merged)
- createSideJobs({...}) and memory upkeep's
  `engine: (botId) => sideJobs.text("memory", botId)`: server/index.ts,
  unchanged (auto-merged)
- the skill review comment and
  `engine: (botId) => sideJobs.text("skill-review", botId)`: server/index.ts,
  unchanged (auto-merged)
- compaction's `generateText: sideJobs.text("compaction", bot.id,
  { instance })?.generateText`: server/index.ts, unchanged (auto-merged)
- the `helperModel` check in PATCH /api/bots/:id (absent leaves the switch
  alone, a boolean is stored, anything else is a 400 "helperModel must be
  true or false"): server/routes/bot-patch.ts, the same five lines between
  cacheKeepWarm and browser as before. The handler there reads `body`,
  `patch` and `json` under the same names, so it needed no new dependency.

Bot creation (server/routes/bots-create.ts) needed no edit: it takes
`helperModel` through the creation settings schema in
server/new-bot-defaults.ts, which the branch changed and main did not.

server/index.ts: 22,138 on main, 22,103 here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With main merged in, server/index.ts is 22,103 lines here: main's 22,138
less the 35 lines this branch takes out of it (the two one-off text closures
that now go through server/side-jobs.ts). The ratchet fails on a listed file
that shrank until its number is lowered, so the number follows the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main (a2b2b1b72, v0.1.108) moved the HTTP routes out of server/index.ts into
server/routes/*.ts. The only textual conflict was server/index.ts: one import
group, and the block from POST /api/bots/:id/messages to the provider-config
route, which main deleted and the branch had changed in two handlers.

Resolution: main's side for both regions (nothing main moved out is back in
index.ts), and the branch's edits inside the moved block re-applied where main
put that code.

Where each of the branch's server/index.ts edits lives now:

- the ask-question import without QUESTION_DISMISS_MESSAGE: server/index.ts,
  as main has it (main dropped the name too, with the routes that read it)
- the createQuotaSwitch import: server/index.ts, unchanged (auto-merged)
- turnFailureCause removed for turnStops.failureCause, in the work-log line
  and in the failed-turn incident: server/index.ts, unchanged (auto-merged)
- quotaSwitch.turnFailed / quotaSwitch.turnSucceeded where a direct turn's
  end is folded: server/index.ts, unchanged (auto-merged)
- createQuotaSwitch({...}), with the resend that passes spoken.via and
  spoken.callId, and harnessCardOutcome: server/index.ts, unchanged
  (auto-merged)
- POST /api/bots/:id/respond and POST /api/threads/:id/respond, each of which
  asks harnessCardOutcome before it looks for the request and closes a
  question card through dismissQuestionCard: server/routes/bot-messages.ts,
  the same lines in the same places. The route module takes
  harnessCardOutcome through its deps, passed from index.ts beside the
  others, in place of approvalBus, which only the peer-approval intercept
  that harnessCardOutcome replaced read there. It imports dismissQuestionCard
  itself, so that import leaves index.ts with its two callers, and
  QUESTION_DISMISS_MESSAGE and resolvePeerComms leave the route module's
  imports with theirs.

server/index.ts: 22,138 on main, 22,153 here. The 17 lines the branch saved
in index.ts were in those two handlers and are saved in the route module now
(747 -> 731 lines), so its wiring no longer pays for itself in this file. The
commit after this one settles the file-size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After the merge of main, server/index.ts stood at 22,153 lines against the
22,138 that scripts/testing/file-size-ratchet.test.ts pins it at. The branch
used to pay for its wiring in that file with the lines it saved in the two
respond handlers; main moved those handlers to server/routes/bot-messages.ts,
and the saving went with them.

So the wiring leaves too, as a host module (server/host/README.md):
server/host/quota-switch.ts builds the quota switch from what only the server
has (createQuotaSwitch({...}), with its comment) and holds harnessCardOutcome,
the check the respond routes take through their deps. Both are moved, not
changed: the lines are the ones index.ts had, indented once, reading
index.ts's singletons and functions from deps under the names they have
there. index.ts builds the module at the point the wiring sat, so nothing is
constructed earlier or later than before.

server/index.ts: 22,153 -> 22,138, the pinned count exactly, so the ratchet's
number stays as main has it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
serializeRoomContext, the function that renders a room's last lines for
one member's turn, and the GROUP_CONTEXT_MESSAGES bound it cuts at leave
server/index.ts for a host module with explicit deps
(createRoomTranscript({ store, teammateReportContext })). The body is
byte-identical, two spaces deeper because it now sits in the factory:

  git diff --color-moved=dimmed-zebra --color-moved-ws=allow-indentation-change HEAD~1

teammateReportContext stays in index.ts with the coordinator it reads and
is handed in. The constant is imported back for its other reader, the
auto-routing history; DRAIN_COALESCE_MAX_ITEMS has no reader left there.

The new unit test pins the rendered text against a literal: speaker
names, the API marker, a reply quote, post_to_room provenance notes (and
none on the reader's own post), a digest line, a teammate report, a
defused note imitation, working notes of a settled turn left out and a
running turn's kept, text overrides, and the 30-line bound.

No behaviour change. server/index.ts 22138 -> 22092 (the ratchet number
is lowered once, at the end of this branch).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
createRoomTranscript(...).window() replaces serializeRoomContext. It
returns the same text, from the same expression (the line renderer's body
is untouched), and with it what the next commits need to tell which lines
a member's session already holds: each line of the window under its
message id, the thread's whole order of context messages (working notes
of settled turns included, so an id never leaves the order when its turn
settles), and which of those a reader is shown.

The room's context filter gets a name, isRoomContextMessage, beside the
function that applies it. server/index.ts reads `.text` and nothing else,
so a room turn is sent exactly what it was: the golden in the unit test
is unchanged from the move.

server/index.ts 22092 -> 22093 (one line for `roomWindow`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The switch for room sessions (the next commits): a room member whose
provider session already holds the room is sent only the new lines.
`context.roomSessions: true` in config.json or PATCH /api/config turns it
on; OMB_ROOM_SESSIONS wins over the file when it is "1" or "0".

The setting lives in server/room-context-settings.ts with its own schema
and is joined to the `context` group with one .extend(...), so
server/config.ts does not grow. roomCompactAt moves there with its
comment, a pure move, which pays for the import line: the group's room
settings now sit together. Nothing reads roomSessions yet.

server/config.ts 1928 -> 1925.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/host/room-sessions.ts keeps, in memory, per room thread and member,
the one native session that ran the member's last turn there and what it
was handed. It reuses the 1:1 path's record and acceptance protocol
(HandedState and a second Handoffs from server/delta-context.ts, which is
not edited): nothing is credited until the provider acts on the prompt, a
session that replaced the cursor clears the record, a rebuilt one is
credited with the window, and the turn's own replies are added at
completion.

dispatch() decides a room turn's shape just before sendTurn:

  legacy  setting off, engine not covered, a guest's turn: today's call
  start   today's call too (no reset unless the room asked, no cursor);
          only the session that runs it is recorded with the window
  resume  the recorded session, sent the window's lines it has not been
          handed, with the whole turn as recoveryText

A resume needs all of: the same member spoke last on this thread and
instance, the same adapter, an unchanged fingerprint of the turn's
standing input, the driver's own idle time not passed, the last managed
turn seen to complete ok, every unseen line still in the window, and a
window that does not reach behind what the session's start left out. Any
doubt is a start. Covered engines are one constant: Claude Code.

Not wired yet: nothing calls it. Unit tests cover each row of the
design's decision table, a comparison of the sendTurn arguments with
main's for every turn that is not a delta, and seeded random rooms that
check the invariant (every line of the window is in the text sent or in
the session that runs the turn) and that a delta repeats nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wires room sessions (server/host/room-sessions.ts) into the room turn,
behind `context.roomSessions`, off by default, Claude Code only.

In runClaimedGroupMemberTurn the turn text is split into the transcript
and the tail after it, and just before sendTurn the module decides the
call: `...roomSession.send` stands where the reset spread stood, and
`text: roomSession.text` where the wrapped transcript stood. With the
setting off, on any other engine, and for a guest's turn those are the
values main computed, so the call is unchanged. The main fold feeds a room
thread's events to the module where a bot thread's go to the 1:1 records,
and the turn id is bound beside the capability's.

What a resume is fingerprinted on is what the driver is handed and keys
its warm process on: the stable half of the system prompt, the folder,
the model selection, the approval level, the tool scope and the mounted
integrations. With "the same member spoke last on this thread and
instance" and the driver's idle time, a delta is sent only where main
would have gone on in that same session.

Skill and playbook selection, the coordination-brief and held-replay
dedupes, images, recall, the clock and the stable/volatile split still
read the full window, as before.

End to end against the fake Claude (server/room-sessions.e2e.test.ts):
setting off is the transcript on the warm process, byte for byte (the
same test passes on the commit before this one); a second consecutive
turn is a delta in the same process; a turn after another member's, a
failed turn or a stopped turn is the whole window on a new session;
Compact now starts fresh with its usual line and the next turn is a delta
against the new session; a post_to_room made while the member worked
arrives once under its provenance note; a refused --resume ends with the
whole turn on a new session and the driver's notice; an older Claude CLI
is left alone.

server/index.ts 22093 -> 22107.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts 22138 -> 22107: the room transcript left for
server/host/room-transcript.ts (-46), and the room-sessions wiring took 15
lines back. server/config.ts 1928 -> 1925: roomCompactAt moved to
server/room-context-settings.ts with the new setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Secure HTTPS uses one Cloudflare tunnel per installation, and an account
holds at most 1,000. On Oct 9, 927 installs held the 996 live tunnels and
new installs were refused. Most never paired anything through theirs: a
signed-in desktop asked for an address at every launch, and a computer
that is on stays connected, so the control plane's idle reclaim never
frees it.

The desktop now holds an address only while it needs one:

- It is created when a person asks: sign-in, Retry, or the new prepare()
  the phone flow calls when automatic HTTPS pairing starts (under the
  existing "Creating secure remote access" spinner; the QR opens once it
  is ready). Launch and the watchdog never create one.
- The running companion decides the need. A paired device or an open
  pairing window keeps it; a cleanly read empty device list with no
  window means nothing needs it. Remote access off, a silent companion or
  an unreadable devices.json means "can't tell", which never gives an
  address back. A person's request counts as a need for an hour.
- Once nothing needs it, the release is planned 1 h plus up to 3 h out
  (one credential write) and done with the existing DELETE, after the
  connector is stopped and the address withdrawn. A failed DELETE keeps
  the address and its connector for the next check; cleanup-pending or
  401 count as given back. The control plane keeps the hostname, so the
  next pairing gets the same address back.
- A needed address the control plane removed is still recovered behind
  the same hostname. An unneeded one whose tunnel is gone is given back
  instead of repaired.
- Automatic retries go on for an hour after a person's request, or while
  a needed address is repaired; otherwise they stop and the error clears.
- When no address is free: "Secure HTTPS links are temporarily full. Try
  again in 10 minutes, or pair on this Wi-Fi or with Tailscale."

The companion's /state reports devicesUnreadable when devices.json exists
but cannot be read. Old app versions, `serve --tunnel`, fleet containers
and the control plane are unchanged: on demand is a desktop option. Also
removes two endpoint helpers in main.mjs that nothing calls.

Tests: the service on demand (vitest), give-back-and-return over real
HTTP and main's wiring of prepare and the need (node), the phone flow
against a fake bridge (happy-dom), the companion's unreadable mark, and a
control-plane test that an endpoint its owner released comes back behind
the same hostname.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Opening the HTTPS pairing code on an address that is already there now
  counts as a request: prepare(), not awaited, which costs the desktop no
  network call. A release planned for an idle address no longer lands
  while the person installs the phone app, or after Remote access was
  turned on through Pair.
- A give-back the control plane answered "cleanup pending" is remembered
  (companionEndpointReleasePending). The control plane makes no address
  for an endpoint its owner is still removing, so the next request sends
  the DELETE first and then gets the same hostname back, instead of "still
  being prepared" until the sweep finishes. Saving an address or signing
  out forgets it.
- At launch the companion is often still starting, so "can't tell" there
  waits for the first watchdog check (two minutes later) instead of
  re-creating a reclaimed tunnel nothing may need.
- A pairing still waiting for an address the desktop stopped retrying
  (an hour after the request) asks again, instead of showing a spinner
  with nothing behind it.
- An address an older release saved (the origin version gate) is
  reconciled behind the same hostname once a device needs it, retried with
  backoff, as the launch migration did before on demand.

Tests: the service (vitest), the pending give-back over real HTTP (node),
the phone flow against a fake bridge (happy-dom), and a control-plane test
that an endpoint is refused while its owner's give-back is pending and
comes back once a DELETE finishes it. Every fix is mutation-checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main (#2582) now sends {"appVersion"} with every endpoint request so the
control plane can pick which managed domains an installation may get an
address under. The two on-demand HTTP tests written before that landed
drained the body unchecked; they now assert it, including on the request
that brings a given-back address back. Mutation-checked: dropping the
appVersion from the service's ensureEndpoint call fails both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The primary account is at its 1,000-tunnel cap again (Oct 13: 1,000/1,000,
997 ready tunnels held by 942 owners, ~200 new endpoints a day since Oct
10, 584 installs refused as "busy"). #2582 added per-account endpoints but
was never configured: this names the Supamaus account and its mausbot.si
zone, and lists its token's secret as required so every deploy keeps it.

- dnsRecordLimit 200: mausbot.si is on the Free plan (zones added after
  Sep 2024 hold 200 records). On Pro it is 3,500 and the tunnel quota binds.
- minAppVersion 0.1.104: the first desktop release that accepts mausbot.si
  hostnames (#2582). The phone apps take the address from the pairing data
  and check no suffix.
- Until CLOUDFLARE_API_TOKEN_MAUSBOT_SI is saved, the entry is dropped with
  the redacted issue entry_1_token and the primary keeps working.

Tests now start from the primary alone and check the production list
separately: it parses with its token, and without it is dropped and
reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wrangler types makes the CLOUDFLARE_ENDPOINT_ACCOUNTS var an exact tuple and
the new token a required binding, so the hand-built env carries both and the
two env casts widen through unknown. pnpm control-plane:check, :test (107)
and :dry-run pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Control plane: open the second Cloudflare account (Supamaus, mausbot.si)
Secure HTTPS: hold a tunnel only while something needs it
Review round 1. All in server/host/room-sessions.ts, with the few lines of
wiring it needs; server/index.ts stays at 22,107 lines.

A native compaction is a distrust signal. When Claude Code compacts a
member's session it holds the CLI's summary in place of the room's lines,
and the next turn was still a delta. Now:
- distrust(threadId, botId) drops the member's record, and a turn in
  flight is not trusted when it settles, though it completes ok. The
  engine-hook fold calls it on PreCompact and SessionStart(compact), whose
  capability carries the room's thread and the member.
- a turn is managed only when the engine-hook channel is mounted for it
  (`hooks`): without it the harness would never hear of a compaction.
- a member whose last measured context here is at 80% or more of what the
  engine compacts at (Claude's --autocompact window; the model's window
  when that is "auto" or "off") gets a start, not a resume.

A line that changed after it was shown is sent again. Records were by
message id only. The record now also keeps a short hash of each window
line as the session was handed it (bounded to the window), and a line
that reads differently now goes in the delta under a sentence that says
it replaces what was shown: a teammate's report, which is rendered from
the request's state at that moment, a digest that gained its file list,
the latest line once it reads with its attachment tag. A reply the
session wrote itself is taken as it reads when a window first shows it.

Smaller findings:
- a session announced after the provider had acted is remembered, and the
  record is re-armed only when the turn ended in the session it names;
- the fingerprint covers mcpFromUserConfig, and the tool scope is read
  once, for the fingerprint and the send alike;
- with the setting off nothing is fingerprinted, hashed or kept, and what
  was held is dropped; records, last speakers and turns never seen to end
  are pruned at each dispatch once older than a session lives;
- dispatch cannot fail a turn: a fault inside it is answered with today's
  call, and the member's record is dropped;
- the module reads its own setting (`settings`), which takes one import
  out of server/index.ts; the context reading is asked for lazily;
- comments say what is true about resumes from disk.

Unit tests for each, and the seeded room model now also edits lines, ends
a warm process unseen, ends a turn in another session than accepted it,
and compacts a session mid-turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake Claude plays a compaction on its second turn and runs its hooks.
In a room with room sessions on, the two compaction lines land in the
room's thread (the hook carries the room's thread and the member), and
the member's next turn is the whole window again on the same warm
process. Without the hook line in server/index.ts the same test fails
with a delta.

The room-context header and the verification doc now each say that room
sessions are off by default, cover Claude Code only, need the engine-hook
channel, what happens at a native compaction, that a line which changed
is sent again, and when a session may be reopened from disk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A digest row gains its file list only where a turn took a checkpoint
(scheduleTurnDigest), and only 1:1 turns take one, so in a room that case
does not arise today. The lines that do read differently later are a
teammate's report, rendered from the request's current state on every
read, and a line with an attachment, shown without its tag on the turn
that carries the image. The header and the doc now say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 2. The engine's hook is one signal for a native compaction;
a hook that is lost or times out left it unseen. The second signal is the
reading the module is already handed: within one native session a
member's measured context only grows from one turn's end to the next, so
a reading lower than after its turn before means the session was
compacted, trimmed or replaced. The turn is then a start and the record
is dropped, as for any distrust.

The module keeps, per thread and member, the last reading it saw and the
session that reading measures (the one the member's previous turn was
seen to end in). Readings are compared only within one session: a turn
that begins a new session starts small, and that is no fall. A reading
missing now or before is no signal and leaves what was kept as it is. A
turn the module did not manage leaves a reading of a session it does not
follow, so that reading is not placed, while what was known of the
earlier session stays. The reading is asked for once a turn at most, and
not at all with the setting off. Nothing changes in server/index.ts.

Unit tests: lower means a start; equal or higher leaves the other rules
to decide; a missing reading is ignored, and does not hide a fall across
it; the reviewer's whole sequence with the hook never delivered; the same
on a start that went on in the warm session; a new session's smaller
context is not a fall; an unmanaged turn's reading is not taken for the
session's. The seeded room model now gives every turn a reading and
loses half its compaction hooks.

The doc and both headers carry the new row, and the doc says what is
still not caught: a compaction whose hook was lost on a turn whose
reading cannot show it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server asked for a Pro plan on every Live call start. Now only a call
from a phone does: one that comes through the companion (it carries the
paired device, which the phone cannot choose or drop) or names client
ios/android (liveCallFromPhone). A desktop or on-this-computer browser call
starts without asking the plan; it still needs the person's own OpenAI key.
The 402 reads "Live calls from your phone need a Pro plan." and the card copy
says desktop calls are free. Docs and the verification guide follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream split server/index.ts (server/routes/*, server/host/README.md, the
file-size and route ratchets). Sharing learned skills now follows it:

- server/host/skills-library.ts (createSkillsLibraryHost): the share wiring
  that lived in index.ts (conversation skills index, the turn note, the
  review/skill_manage shared update, auto share, receipt share, Undo), plus
  listBotSkills/readBotSkillFile moved verbatim, so index.ts shrinks
  (22138 -> 22128) instead of growing.
- server/routes/skill-share.ts: POST /api/threads/:id/share-skill and
  /api/bots/:id/skills/:name/share, out of the inline handler.
- shareLearnedSkillsMode and prepareLearnedSkillMd move to skill-share.ts;
  config.ts, skills.ts, store.tsx and SettingsModal.tsx keep their counts.

Review fixes (CodeRabbit on #2731):
- the share note is recorded only after the provider accepted the turn;
- a skill reaches only teammates no more people can see than could see
  where it was learned (the author, narrowed to a room), and a shared
  update is refused while a wider bot has the skill;
- a receipt shares only the version it applied (409 when it changed);
- retiring a library skill archives first and reports a failed move;
- a manifest entry that moved on no longer leaves a share half-applied;
- sharedSkillEditable uses the same integrity check as the update.
The file-size ratchet caps server/index.ts, server/config.ts, the claude and
pi drivers and McpServersPanel.tsx. The per-server result limit now lives in
server/mcp-result-budget.ts (config -> turn), customServerGate in
mcp-gate-config.ts (shared by both drivers) and McpResultBudgetField.tsx
(parser, field, request-body helper); every capped file is back at its cap.
No behaviour change.
The Share button reset as soon as the request finished, so it came back
until the card's message.patch landed and could be pressed twice.
Review round 3. Both defects came from the pruning added in round 1.

A reading that fell was missed. The kept reading of a member was pruned
by age while that member's turn was still running: with the compaction
hook lost, the turn's settle then had nothing to compare the next reading
with, and the turn after it was a delta against a compacted session. The
record of a resumed turn could go the same way before the provider acted.
prune now skips a member's record, its last reading and its place as
last speaker for as long as its turn is in flight on the thread, whoever
dispatches elsewhere meanwhile.

Quiet was counted from the dispatch. The last speaker was stamped when
its turn was dispatched and pruned by that stamp, so the turn after any
turn longer than the idle life was a start, and a 6-minute turn answered
5 minutes after it settled was one too. The stamp is refreshed when the
turn ends, which is when the driver starts counting.

Also:
- a record written for a turn holds hashes only for lines that turn's
  session was sent: the delta for the session it resumed, the window for
  any other. A resumed session with no earlier record cannot arise now
  (nothing lets go of a record while its turn is in flight); the comment
  says why and a test shows the record survives;
- the stale flight is dealt with before anything that could throw;
- onEvent, bindTurn and distrust cannot throw into the event fold or the
  hook route: a fault there forgets the thread, as a fault in dispatch
  already sends today's call. Found while making this change, when a slip
  of mine threw from the store write;
- the docs say quiet is counted from when the turn ended, and list
  exactly what a lost hook still leaves uncaught.

Tests: the reviewer's sequence (turn dispatched at 9 minutes, a turn in
another room at 10.5, compaction unseen, next reading lower: a start);
the same before the provider has acted; a long turn answered soon after
it settled resumes, one answered past the idle life starts, whatever its
length. The seeded model lets time pass between turns and inside them and
dispatches in another room meanwhile: 24 seeds of 400 turns. Against the
code before this commit 4 seeds break the invariant and no long turn is
ever followed by a delta.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 3, the wiring. The room turn had copied the 1:1 path's
expression for where Claude Code compacts a session; both now call
nativeCompactTokens(instance), so the two cannot drift. The room turn
reads mcpFromUserConfig once, beside the tool scope, and uses that value
for the fingerprint and for sendTurn alike. What is sent is unchanged.

server/index.ts stays at 22,107 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A shared update that changed a skill's description rewrote every
teammate's skills index, so each running conversation's cached prompt
prefix was lost. The library entry now keeps the descriptions it had,
with the time each was replaced, and a conversation's index lists the
one in effect when it started; new conversations get the new one. The
bot still reads the current SKILL.md when it uses the skill.
openmausbot sentinel scans messages.db, events/*.ndjson and runtime.db
read-only, runs pluggable detectors (tool_error, turn_timeout/turn_stop,
queue_wait, cost, retry_loop) and upserts issues by normalized signature
into <dataDir>/sentinel/issues.jsonl. Issues keep references to their
evidence, never tool output or message text.

openmausbot service install --sentinel renders a launchd agent
(StartInterval 120) or a systemd user timer, and prints Task Scheduler
guidance on Windows.
A room's members share the room's thread, and the Claude driver keeps one
warm process per thread. When another member speaks on the same engine the
previous member's process is closed ("spawn contract changed"), and a quiet
one closes after the session idle window. The room context reading (and a
pending Compact now) outlived both, so "X's context in this room is 81% full.
Compacts before its next turn." stayed up for a process that no longer
existed.

- At dispatch, a member's turn drops the readings of the other members
  measured on the same engine instance in that thread, and the room state is
  broadcast. Members on another engine keep theirs: each engine pools its own
  processes.
- A reading expires once it is older than the session idle window (the
  longer of the Claude and ACP policies) or the thread's keep-warm hold,
  whichever ends later. A timer broadcasts the room when one ages out.

Driver session keying is unchanged.
- Issues keep a local `title` next to the hashed `sig`: the normalized
  error (placeholders for paths, numbers, ids and quoted values), capped at
  160 characters. The CLI summary prints it. Anything shared later carries
  sig, kind, origin, tool and count only.
- A failed shell command groups by exit code and error class (timed out,
  command not found, syntax error, no such file, ...) instead of its whole
  output; a timeout ignores the exit code.
- Sentinel's files default to the platform's state folder outside the data
  dir (~/Library/Application Support/openmausbot-sentinel on macOS,
  $XDG_STATE_HOME/openmausbot-sentinel on Linux, %LOCALAPPDATA% on
  Windows), as do the rendered service files and the launchd log. An --out
  inside the data dir is refused, like one inside a repository.
Bots in a room could only tag each other. A reply like "@Sam, three open
questions are blocking Section 2" was plain text: nothing colored it and
nothing buzzed, so the person saw it only if they happened to look.

- shared/person-mention.ts: @you always tags the person, and so does
  @<profile name> when one is set. Same boundary rules as bot mentions;
  a room member with the same (or a longer matching) name wins.
- Renderer: bot replies color the person's tag as a filled accent chip,
  through the shared mention code (mentionRanges/remarkMentions).
- New "mention" notification: a settled room reply that tags the person
  sends "<Bot> in <Room> mentioned you" with the line that carries the
  tag, routed to the room thread. Rooms never send "done", so it is the
  turn's only buzz; 1:1 threads keep their "finished" notice. Respects
  the bot's notification toggle.
- Room prompt: one line telling bots to write @you to get the person's
  attention.
- service install --sentinel prefers the CLI the installed desktop app
  ships (its executable as Node with ELECTRON_RUN_AS_NODE, and
  resources/server/openmausbot.js), which app updates replace in place and
  Node upgrades do not touch. An app from before Sentinel is skipped.
  Without one it uses the running node and script and says they can move.
- openmausbot sentinel --check-install reads the installed plist or unit
  and reports a node or script path that no longer exists: stale install,
  rerun service install --sentinel.
- A state.json of another version starts over without counting anything
  already in issues.jsonl again.
A count cap could drop the description a long-running conversation began
with, so many quick edits changed its prompt after all. Replaced
descriptions are now kept for 30 days, far longer than any provider
prompt cache lives. Also keep server/skills.ts under its size ratchet
(the lookup moves into skill-library.ts) and list the new
shareLearnedSkills flag in the config defaults test.
- --cost and --queue-wait refuse an empty operand and a wait whose
  milliseconds overflow.
- The repository and data-dir refusals judge --out by where its links
  lead, and service install --sentinel applies them to the resolved
  folder before writing anything.
- state.json with a field of the wrong shape starts over instead of
  failing every scan.
- The systemd unit quotes HOME and every path (% and $ doubled), and
  both renderers refuse a path with a line break or NUL.
- --check-install also needs the systemd timer.
- Titles stay within 160 characters with their prefix.
skill_manage rejected a SKILL.md over 32KB with a bare limit message, so a
bot that needed to add one more rule to a large learned skill gave up.

- The size error now names the attempted size, the current version's size,
  and tells the bot to move detail into references/<topic>.md and link it
  from SKILL.md.
- skill_manage takes an optional references list. Reference files are
  staged, scanned, redacted, shown on the review card and hash-bound with
  SKILL.md, then published in the same immutable revision. Updates keep
  references they do not mention; empty content removes one.
- Integrity checks, enablement, Undo and revision cleanup cover the
  reference files too.
Long media jobs (whisper, ffmpeg) and whole-disk finds kept hitting Claude
Code's default 2-minute Bash timeout; the output was lost and the bot
retried the same way. Native background tasks stay off, so:

- engines with a shell get a Long-running commands prompt section: raise
  the per-call timeout or run detached into a log, never find /
- the driver pins BASH_MAX_TIMEOUT_MS to 10 minutes (a person's own cap
  wins), matching the prompt and staying inside the stall watchdog
- a PostToolUseFailure hook answers a timed-out Bash call with
  additionalContext on how to rerun it (mdfind for disk scans)
- A hand-off's turn (room prompt and assignment envelope) is told to ask its
  requester by ending its turn, never with coordinate_bots: that call is
  refused as assigning work back to an ancestor.
- coordinate_bots' description says the same, adds that a finished teammate
  needs no thanks or approval (its result already returned), and that a
  refused call is not retried.
- A teammate name with dashes or underscores ("reviewer-2") resolves to
  "Reviewer 2" when that names exactly one reachable teammate; the not-found
  refusal lists the reachable teammates with their ids.
- session_read opens every thread session_search reads (rooms included) and
  digest hits, and its refusal echoes the ids it was given.
The note quotes the SKILL.md path with JSON.stringify, like the skills
index, so Windows backslashes appear escaped; the test looked for the raw
path and failed only on Windows.
Work handed to several members of one room runs in the room's thread one
member at a time (runtime dispatchDue, the @mention round loop). Nothing
said so: a waiting member looked idle, and a requester read "queued" as
"under way" and told the person five jobs were dispatched when one ran.

- server/room-queue.ts numbers each room thread's line: who runs, who
  waits, and on whom.
- coordinate_bots receipts that wait carry queue {position, of,
  waitingFor} and say "queued 2 of 5 in this room"; the message says the
  jobs run one at a time and not to report them as under way.
- The room payload carries queue (WireGroup.queue), for jobs and for a
  round of @mentioned responders. The room shows "Queued · waiting for X
  (2 of 5)" per waiting member and on its avatar; the sidebar row counts
  the queued members.
With features.parallelRoomJobs on, a coordinate_bots call that sends
work to two or more members of a room, or into a room that already has
jobs out, no longer queues them in the room's thread. Each job runs in a
thread of its own on its member, opened by the requester from the room
and in the room's working folder, on the parallel direct-thread path that
thread: "new" hand-offs already use.

- The room shows "Sent to X" with a link to that thread, then one result
  card per job as it finishes, through the existing report path. The
  requester resumes once, in the room, with every result.
- One member's jobs from the same conversation share its thread and run
  there in turn, so a member never runs two of them at once.
- At dispatch, a job's thread is still checked against the room it came
  from: a member who left the room is refused.
- A single job into a quiet room, a one-way notice, and every room with
  the flag off keep running in the room's thread, in turn.

Off by default because it changes where room work runs. Turn it on with
PATCH /api/config {"features": {"parallelRoomJobs": true}}.
- electron/main.mjs shrank to 4233: lower its number.
- electron/companion-account-service.mjs is a new 1,125-line file: list it,
  with the reason in a comment.
- src/components/PhoneSetupFlow.tsx grew past 1303: the pure companion-state
  helpers (mutation epoch, manual pairing code mode) move to
  src/lib/companion-state.ts, bringing it to 1295.
Live calls: free in the desktop app; a phone's Live call needs Pro
A member's last reading is kept as long as a turn never seen to end is (a
day), not for the driver's idle time: prompt-cache keep-warm holds a Claude
process for hours, so a start after ten quiet minutes goes on in the same
session, and a compaction on that start with its hook lost could only show
as a fall against a reading that outlived the ten minutes. The reading is
only ever compared within one session, so an old one costs a start, never a
wrong resume.

prune now runs while a stale flight still stands, so its in-flight guard
covers that member, and the flight is landed afterwards; dispatch's own
fallback lands a flight a fault left standing, with its record.

The seeded model drives the driver two ways, chosen per seed: a quiet
process closed at the idle time, or kept for three hours with gaps between
turns that straddle the idle life. The cross-seed shape check skips with a
reason when the seeds did not run, instead of failing on empty counters.
The warn lines written when the module gives up a thread name the thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the hook lost, a compaction is missed when the turn reported no
reading, when no earlier reading of the session is held (it began on that
turn, or the member's earlier turns in it ran before a restart or while the
setting was off, which is by design), or when the turn regrew the session
past its earlier reading. The turns after a missed compaction stay deltas
until another rule gives a start. Keep-warm changes which session a start
goes on in, not when a member is resumed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The room queue and parallel room jobs grew five listed files. Their new
logic moves into small modules instead, and each file ends below its
listed size:

- server/host/room-jobs.ts: the room line, the round's line, lanes, and
  what the requester is told about its room jobs; parallelRoomJobsEnabled
  moves here from config.ts.
- server/host/room-access.ts: roomRootProblem, roomHandoffProblem and
  roomSetupPending, moved out of index.ts with their bodies unchanged,
  plus the lane's room lookup.
- src/components/RoomQueueList.tsx: the queue list, the avatar's queue
  title, and RoutedByLine (moved from GroupView).
- The sidebar's working preview moves to src/lib/room-threads.ts, and
  Group picks memberContext and queue from WireGroup.

No behaviour changes. The ratchet numbers for these five files go down.
session_read now marks a read crossed by session_search's rule: only a
private chat or task read into a room, never another room's thread.
A shell failure's title goes through capTitle like every other, and a state.json whose lastScanAt is not a finite number starts over.
With the voice provider set to the built-in Mac voices, every
send_voice_note call failed with "Voice note not sent: unsupported audio
type". `say` writes WAV (and Chatterbox asks for WAV), but saveAudio
accepted only audio/mpeg, and the serving route, the companion allowlist
and the chat player only knew .mp3 names.

saveAudio now keeps a WAV note as .wav (audio/wav) next to MP3 notes, and
readAttachment, the companion route allowlist and attachmentAudioUrl
accept .wav. Other audio types are still refused. A 1000-character note
(the cap) is about 3.1 MB of WAV, far under the 25 MB file limit.

Fixes #2692 (MOCA-339).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A parallel room job's thread is marked roomLane when it is opened. Only
  those threads must stay in their room's membership; any other work
  thread opened from a room conversation is not checked against it.
- A round of @mentioned responders publishes its line when it starts, and
  again when a member is passed over, not only when the next one speaks.
- When the same member is both in a round and queued with a job, the
  merged queue entry keeps the job's assignment id, so its receipt and the
  requester's notice still find it.
With the bridge on, the agents proxy lists a short set of tools bots use in
most turns plus find_tool (search this turn's other tools, best three with
their schemas) and use_tool (run one of them). use_tool checks only that
arguments is an object and then goes down the same callTool path as a direct
call, so every harness gate, limit and refusal applies unchanged; a name
outside the turn's list is a failed result in the same words as a direct
call. Tools the restart policy recognises as sends are always listed and
refuse use_tool. Bridged tools/list is pinned by its own goldens; with the
bridge off nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One function decides, per turn, and its default is no bridge (setting
features.agentsToolBridge / OMB_AGENTS_TOOL_BRIDGE, off by default). A call
through use_tool arrives under that name, so the bridge is refused wherever a
rule keyed on a tool's name could be bypassed: any bot with a tool selection
(and every selection gate starts the agents tools unbridged and judges the
inner name too), Codex, Pi, ACP agents and Muse Code, and a Claude Code turn
whose settings, flags, managed policy or CLI version could hold such a rule.
The decision is total, reads only small regular files, and builds no pattern
from configuration text. A bridged call is shown and recorded under the tool
it ran. The prompt speaks of find_tool only as "when it is listed".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reading kept for a bare day went before its record when the idle life is
set above a day (OMB_CLAUDE_SESSION_IDLE_MS, accepted up to 2^31-1 ms), and
before a process that keep-warm held for its longest window plus the idle
time the end of a hold re-arms. It is now kept for the longer of an
abandoned turn's life and keep-warm's longest window (MAX_WINDOW_MINUTES,
imported from cache-keepwarm.ts), plus two idle lives in force.

Tests: a gap just past keep-warm's longest window plus one idle time is a
start after a hook-lost compaction; with the idle life at thirty hours, a
compaction on a delta that settled thirty hours ago is a start. The pruning
test and the order test take their day-long timings from the same constants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A session whose earlier turns reported no reading is back on the list; "before
a server restart" is gone, since after a restart the driver holds no process
and the session always begins on that turn; the unmanaged case reads "while
the setting was off or its turns were not managed"; the reading's life is
stated as the code has it; a later compaction whose reading falls also gives
a start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upload/restore read streams had no error listener, so a queued open that ran
after the temp directory was removed surfaced as an uncaught ENOENT.

Fixes #2704

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Move the room-mention lookup out of server/index.ts into notify.ts
(buildMentionNotification) and compact the renderer wiring, so no listed
file grows. Code-fence masking now follows the opening marker: a block
closes only on the same character at least as long, tildes count, and an
unclosed fence runs to the end.
A room turn that waits more than a day on a person is given up, so its end
is not seen and it leaves no reading; and a fault inside the module forgets
the thread. Both are now on the not-caught list, and the sentences about a
reading's life say what the code does. Comments only in the two .ts files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An ACP adapter that titles every call alike ("Running list_directory") had
five calls on five different paths read as one call repeated five times.

Fixes #2783

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A code span closes on a backtick run of exactly its opening length and may
cross a line ending, so ``a @you b`` no longer counts as a tag. The room
prompt only tells bots to write @you where the person is in the room.
Settings → Model sends PATCH /api/bots/:id with modelSelection and no
thread. That PATCH also moves one thread with the bot (#2401), and for a
paired session or companion the pinned-thread guard (#981) refuses it as
soon as the bot has two threads, because the server cannot know which
thread that client shows. The self-hosted web app is served by the server,
so its "Update the OpenMausBot app" 409 had nothing to update.

The panel now sends the thread it shows as threadId. The server checks it
(404 for a thread the bot does not have, 400 without modelSelection),
passes it to the guard, and moves that thread. The patch queue keeps
threadId on the wire and out of bot state. A client that sends no thread
still gets the 409.

Fixes #2712 (MOCA-338).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A harness authenticated with its installation credential registers its
paired phones' APNs device tokens and asks the relay to wake one. The
relay pushes only to a token the presenting installation registered,
builds the payload from a strict schema (kind, title, the bot's and
room's names, opaque ids; a body is refused), signs an ES256 provider
token with WebCrypto (cached per 50-minute window), and sends to the
APNs production or sandbox host. A dead token is deleted for every
installation and reported as 410 so the harness drops it too. Sends are
rate-limited per installation and per token; revoking an installation
deletes its tokens.

The APNs key is configuration only (APNS_KEY_ID, APNS_TEAM_ID,
APNS_PRIVATE_KEY, APNS_BUNDLE_ID, optional APNS_ENVIRONMENTS). Without
it every push route answers 503 push_unavailable.

Refs #2769
awaitingTeammates, directRootQueued and directRootPending run per bot and per
task on every broadcast, and each read and parsed every assignment row, ended
ones included. Ended rows only grow, so a workspace with ~1k of them pegged a
core and stopped answering /api/health.

Fixes #2765

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the side panel closed, nothing told a person the bot was working in
its browser: no live sign on the header's computer button and no link to
the live view, until a screenshot arrived after the turn. The Browser tab
inside the panel already had a live dot, but only an open panel shows it.

The header's computer button now carries the same live dot (a turn is
working and the conversation works in the browser), and says so to a
screen reader. One click opens the panel on the Browser tab, as before.
The panel still never opens or changes tab by itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenMausBot's Boat client now speaks only Boat's public API v1
(https://boat.dev/api/v1): /sandboxes paths, sandbox and sandboxes
envelopes, deletion operations of kind "sandbox", and v1's sandbox states
(cancelled is terminal; the undocumented stopped, stopping and starting are
gone). The retired box API (ascii.dev/api/box/v1, /boxes, box envelopes,
kind "box") is no longer assumed anywhere a person's own key is used.
Sandbox ids are the same bx_ objects under both APIs, so existing computers
keep working. OMB_BOX_API is renamed OMB_BOAT_API (a dev and test override
of the own-key base), and engines never inherit it.

Deletion: a blocked deletion operation whose stage Boat finishes on its
own (waiting_for_uploads, waiting_for_restore, retrying) now counts as done.
The create receipt and the deletion fence retire and the person sees
success. Measured 2026-10-13: after file uploads, DELETE answered 202, the
sandbox 404'd within 0.6 s and billing stopped, but the operation stayed
blocked/waiting_for_uploads for about an hour, and OpenMausBot reported
"the deletion operation is blocked — check boat.dev and retry".
kept_for_newer_snapshots, the one stage that waits on the person, still
fails the delete, saying a fork or named snapshot keeps the data and to
delete those in boat.dev. A blocked stage Boat does not document keeps the
fence and gets a plain message. Neither tells the person to retry.

Cloud relay: OMB Cloud's Admin relay still serves only the box dialect, so
an included credential wired to a base ending in /api/box/v1 is translated
in one place, server/boat-relay.ts. A relay wired to /api/v1 gets v1 as is.
Delete that file once the Admin serves v1 and no home is wired to
/api/box/v1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parseWidgetInput turns model input into one canonical tree; widgetToText is
the message's readable fallback; resolveWidgetAction checks a press against
the stored widget. Samples cover every node type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boat: move the client to the public API v1; a delete Boat finishes itself is done
ELECTRON_RUN_AS_NODE stays harness-owned except at "1", the value every
harness proxy already writes, so a config that runs a server bundled in an
Electron app (the app binary as command) now saves and mounts. Any other
value still refuses: Codex resolves each mount's env names against the one
shared environment its app-server runs in, so a different value would
overwrite what the built-in proxies need. OMB_*/OGB_* stay refused at every
value — they carry routing and bearers.

Registry validation now judges resolved values, so a write-only "keep"
placeholder is judged by its saved value, and the Codex mount-time re-check
uses the same value-aware rule.
Check both rate windows before taking from either, so a send refused by
the per-phone cap does not use up the installation's. A key that passes the
PEM check but will not import or sign now answers 503 push_unavailable
(relay configuration) instead of 502 push_failed.
A chat-completions turn (openai-compat, GLM, Grok, ...) threw on the first
rejected MCP mount, so one server needing sign-in or returning 401 broke
every turn with 'MCP request failed; inspect the configured integration'.
Claude and Codex already skip broken servers.

Configured (custom) servers that fail to start, list, or validate their
catalog are now closed, logged with console.warn naming the server and
reason, reported on ChatToolSession.skipped, and surfaced to the person as
a runtime.notice. Harness mounts (computer, browser, agents, composio,
data) still fail setup as before.
chore(size): bring main back under the file-size ratchet
fix(coordination): stop full-scanning ended assignments on every broadcast (server pegs CPU)
#2790 moved the broadcast path to `active()`, but that still calls
`store.all({ nonTerminal: true })`, whose filter is `status NOT IN (...)`.
SQLite can't use the status index for NOT IN, so every call still walked every
retained row. Finished trees are kept 30 days, so a busy workspace reaches the
same hang again at ~15k ended rows (12.7 s per bot broadcast, 20.3 s per
GET /api/bots in a benchmark with 15,012 rows).

- One shared LIVE condition in store.ts, used by both the query and a new
  partial index `assignments_live` (created on open, also on older files),
  so the two can't drift apart.
- Tests: the live query plan uses the index; a file written before the index
  gets it on open; corrupting a finished tree's JSON makes all() throw while
  active() and outstandingDirect() still work (so active() can never read
  finished jobs again).

Benchmark at 15,012 rows: one call 11.8 ms -> 0.20 ms; bot broadcast
12.7 s -> 190 ms; GET /api/bots 20.3 s -> 294 ms. Runtime tests 71/71,
typecheck clean. Mutations: dropping the index, indexing a different
condition, or rewriting active() as all().filter(...) each fail a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The packaged phone helper (Resources/companion) has the same problem as the
server: its .js files are ES modules with no package.json of their own, so a
parent package.json saying "type": "commonjs" (what `npm init -y` writes in a
Windows user folder) makes Node parse them as CommonJS and stop at the first
import. Startup survives, but pairing a phone fails.

- build:companion now writes dist-companion/package.json {"type":"module"}
  through scripts/mark-module-scope.mjs, the same marker bundle-server writes.
- New release gate scripts/check-module-scopes.mjs: both markers must say
  "module", and every top-level .js in server/ and companion/ must parse
  beneath a {"type":"commonjs"} parent. It runs on the packaged macOS (both
  arches), Windows and Linux trees, so this bug cannot ship again.

Verified locally: both builds write the marker; the gate passes on the fixed
trees and fails (exit 1) with the companion marker removed, as in 0.1.108;
electron/companion-entry.test.mjs 4/4; scripts/ci-workflow.test.ts 21/21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenMausBot starts on Windows even with a package.json above it (#2770)
Index live assignments so busy workspaces never freeze again (#2765)
A widget carries a revision so a press made on a replaced tree is refused,
and a settled widget remembers the values that were sent. Labels are one
line, a row is named only by text the person can read, a field only by words
drawn beside it, values are sent whole, and sizes, shares, chart numbers and
dates are held to what every renderer can lay out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two agents tools post and replace a widget row through the existing internal
card route. A press arrives as widgetAction on POST /api/bots/:id/messages,
is checked against the stored widget, and is sent as a reply to that row; the
model is told what was pressed only when a press was validated here. Secrets
are scrubbed before storage. A stale press, a double tap and a cancelled
queue slot are each refused or undone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One recursive renderer for every node, a form that sends its values with the
press, a settled line with read-only Details, charts as plain SVG from the
skin's tokens, and remote images behind a click. The options case and
MessageBoundary move out of ChatView to make room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Simple bot panel opened on a form with two tabs, and everything else
about a bot sat behind "All settings". It now reads as a list of facts, one
row each with its control on the same line, and gives the sections people
reach for most a tab of their own.

Details
- Name and job, and Instructions, are one line each; Edit opens the row
  into its existing fields in place. A link that names a row (Edit profile,
  Read all) opens it, and the instructions box opens by itself while
  SOUL.md has drifted, since that banner has to be answered there.
- Thinking: the model picker's own plain steps (Quick, Balanced, Deep,
  Max) on a row, writing the bot's own model selection. The picker's copy
  of that band is hidden while the row is shown.
- Before <bot> acts: the two choices as a segmented control, same rules
  and the same warning as before.
- Where <bot> works: a picker with the Computer panel's choices, words and
  rules (usePlaceViews; browser turns the bot's browser on; this computer
  for a bot that decides alone is confirmed first).
- Uses: the connected apps the bot may use, leading to Vault.
- Phone and Email are listed as Soon.
- The bot's routines, each with an on/off switch, and where to find the
  bot (the phone apps; Slack where the organization has an Admin link).

Tabs
- Memory mounts the existing Memory section and keeps it mounted once
  opened, so an unsaved draft survives a look at another tab.
- Skills moves the skill switches off Details.
- Routines mounts the existing Routines section.
- Vault is new: each connected app with a switch for this bot, written to
  the same connectorScopes record the Access section edits, and the sites
  the bot's browser is signed in to (SignedInSites, without its fold).
  Nothing here stores a password.

Routines
- RoutineList takes onToggle: the Active/Paused badge becomes a switch in
  the bot panel, the Computer panel and the Routines page list. A finished
  one-shot keeps its badge. It sends the same updateRoutine the paused
  list already sends.

Verified in the isolated fixture (docs/verification/bot-settings.md, "The
Simple panel"): each control was driven in the running app and the bot or
routine read back from the fixture server. Real connected apps and real
sign-ins are not provable there; those rows are covered by unit tests.

The file-size ratchet fails on main for electron/main.mjs,
electron/companion-account-service.mjs and PhoneSetupFlow.tsx; this branch
does not touch them, and adds no line to a listed file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The color, body, expression and picture editor sat only under All settings
in Identity, so the Simple panel showed the mascot with no way to change it.
Pressing the mascot now opens that same editor in place, from any tab, and
Details starts with a Look row that does the same. It writes through the
same bot patch as before; nothing about the editor itself changes.

Verified in the isolated fixture: pressing the mascot opened the editor,
and picking purple and the Blob body read back from the fixture server as
color "purple" and mascotBody "blob".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two things from testing the bot panel in a packaged build.

Where <bot> works was a dropdown with every place the Computer panel
offers. It is now three buttons on the row: Auto, this computer and Cloud
computer, with the same rules as before (a place that cannot be used is
held with its reason; this computer for a bot that decides alone is
confirmed first). The rarer places stay in the Computer panel, and one of
them in effect is named on the row with none of the three pressed. Auto
reads with its short line, so the text beside the buttons stays two lines.

The Computer panel's tab pill wrapped its last tab onto a second line at
the panel's default width. It no longer wraps: a narrow panel drops the
tab icons, the narrowest tightens the padding, and anything that still
cannot fit scrolls sideways instead of stacking. Class-only edits in
place, since the file is at its size ceiling.

Verified in the isolated fixture: the tabs sit on one row at panel widths
360, 400, 440, 480 and 560 with no overflow (icons return at 560), and
picking Cloud computer then Auto read back from the fixture server as
"cloud" and unset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The verification-docs guard resolves every cited test file from the repo
root, so the two bare file names failed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(desktop): Simple bot panel as plain rows, with Memory, Skills, Routines and Vault tabs
A Launch Room's Room Lead briefs up to 25 visitors in one turn. The root's
request budget (24) refused the 25th hand-off; the executions budget (48)
would have been the next limit. Both are named constants now: 64 requests
and 96 executions per root, renewed by any settlement as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/threads/:id/job answers what a person (or a script) asks of a
conversation: is its work done, and if not, who is still on it or what is
waiting on them. It folds the conversation's own state (its turn, its queued
sends, its activity) and every assignment it holds on the job runtime into
one state: running, needs-input, completed, failed, stalled or idle, with a
plain reason, the job tree and a version. A one-way notice, and work under a
requester that stopped, never hold a job open; a teammate parked on a
question or an approval card makes it needs-input at once.

With wait and the version a previous read returned, the read is held until
the job changes. It wakes on the store's change feed and looks again every
two seconds for a runtime-only change; the coordinator gains one read
(job), nothing more. The route sits with the conversation reads
(routes/threads.ts builds it); index.ts only passes the coordinator, so it
keeps its line count. Client sessions may read it, as they read transcripts;
the environment descriptor advertises capabilities.jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wait_for_conversation guessed whether a conversation was done from
/api/bots, polling every 500 ms for at most 120 s, so a teammate parked on a
card ended the wait as timed-out instead of needs-user. It now asks the
server for the conversation's job (GET /api/threads/:id/job) and asks again
only with the version it saw, held until the job changes. Its result keeps
every field it had (status in the same words, the target, the transcript
tail) and adds state and the job tree. New optional inputs: scope (job or
turn), since_ms and after_version, so a caller can keep watching the same job
past a state it was already told about. A caller can follow progress through
a hook (the CLI streams it). The fleet-polling loop, its sleep and its
channel-state guesser are gone, with the tests that pinned them.

send_bot_message and send_channel_message take an optional send_id (a retry
with the same id returns the first receipt) and return messageId, at and
queued from the server's 202 receipt. API refusals carry their HTTP status.
The stdio loop is runStdio(), so the CLI can serve MCP too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
openmausbot now drives a running workspace from scripts, CI and other
agents, on this computer or at a URL with a token (OPENMAUSBOT_URL and
OPENMAUSBOT_TOKEN or --token-file; there is no --token flag):

- doctor: answers, is new enough (capabilities.jobs), who you are to it,
  an engine ready, the bots' browser.
- bots, channels, models, messages, send, interrupt [--tree], new-bot,
  new-channel, set-model, edit: the MCP tools, by name or id.
- run TARGET TEXT: one job in a new conversation, sent once with a send
  id, waited on until the bot and every teammate it asked are done
  (--wait job|turn|none, --timeout, --on-input exit|wait|stop,
  --on-timeout leave|stop, --strict, --export DIR); progress as JSON lines
  on stderr; the final reply and the files it links.
- wait TARGET: the same wait, for work already running.
- export TARGET --out DIR: the job tree, every transcript (redacted), the
  files the replies link to (each under its message's grant), screens.
- events: the live stream as redacted JSON lines, resuming from its
  cursor; --job follows one job, --until-settled ends with it.
- team apply FILE (--dry-run, --check exits 6, --prune, --rotate-secrets,
  --wait-idle) and team export: a declarative team file in YAML or JSON
  applied through the app's own routes; a second apply sends no write.
- engine set KIND --key-env|--key-file / engine list: keys written once,
  never printed. connect: a token for a workspace elsewhere, to a 0600 file.
- mcp: the stdio MCP server.

--json prints exactly one JSON document, errors included. Exit codes: 0
done, 1 failed, 2 usage, 3 needs you, 4 timed out, 5 unreachable or not
allowed, 6 changes found, 130 Ctrl-C. Everything printed is redacted.
The wait is MCP's wait_for_conversation, carried across calls with the
job's since and version. The verbs load only when used; the usage text
moved to cli-usage.ts, so cli.ts shrinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
control-omb mapped its own flags onto the MCP tools; the published
openmausbot verbs now do exactly that, so runControlOmb hands every verb to
them (runHeadlessCommand) and keeps only what is its own: the fixture
launcher, the renderer verbs (ui), help, and two differences on purpose:
a verb that changes something never runs on a server it merely found, and
wait waits 30 seconds unless told otherwise. Every recipe's form keeps
working (wait --bot ID --task ID --timeout 30 included) and the verbs it
lacked (run, export, events, team apply) come with it. Its duplicate
mapping, flag validation and MUTATING list are gone. A wait's timeout is a
duration up to 24 hours now, not 1-120 seconds.

launchVerificationServer takes OMB_TEST_PORTS=FROM-TO from the
environment it is given, so a recipe can keep its fixture in a range.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Against an isolated fake-engine server (ports 19975-19999), the published
entry as a child process: a team file makes a Chief and two teammates; a
second apply finds nothing and sends no write; run sends the Chief one job
and waits until it and both teammates are done (the Chief hands the site to
both, then writes report.md once they have reported); the export holds the
job tree, three transcripts, the report and both screenshots; a used
export folder is refused (exit 2) unless --force; and waiting again on the
finished job returns at once.

The scripted fake engine can write files in its working folder
(writeFiles), as a bot saves its report or screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/headless-cli.md says, in plain words, how to drive a workspace without
a screen: which server and which token, output and exit codes, every verb,
run and wait (job or turn, --on-input, --on-timeout, --strict), what an
export holds, events, engine keys, the team file (every field, the rules
apply follows, the plan it prints, a full Launch Room example) and a CI
sketch. docs/mcp-server.md: wait_for_conversation waits on the job the
server computes and returns it; sends take a send_id; openmausbot mcp.
A verification recipe for the headless command line, linked from the map;
the README and the npm package README point to the guide.

The packaged-server smoke runs the bundled openmausbot doctor and bots
against the packaged server, so the verbs are proven to ship.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A conversation's job is read on every change while a waiter holds the read,
so it now asks runtime.db only for what it needs: this conversation's roots
still open at `since` (parent_id IS NULL, finished_at at or after it), and the
rows assigned to its bot here, the same way. A busy Chief chat no longer
loads every root it ever had on each look. The result is unchanged; a room
test pins that a member's hand-off in the room's own thread stays part of
the room's job.

A held read whose look throws (in its deadline timer or a recheck) ended the
hold by throwing out of a timer: the request never answered. It now ends the
hold with that error, which the route table answers like any other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`openmausbot connect https://elsewhere` without --code now stops at once
(exit 2) instead of first reaching the server; only this computer's own
server mints a code itself. A token file replaced with --force is made
private again (0600), whatever mode the file it replaced had.

Tests: against a stand-in server, connect mints a code on this computer's
server, saves the token to a 0600 file and never prints it; uses a given
code; refuses to overwrite without --force; reports a refused code (exit
5); and never writes a token to the terminal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--max-bytes trusted the content-length header: a body sent without one (a
proxy in front of a Cloud workspace may do that) was written whole. Each
file is now counted as it streams; past what is left of the budget it stops,
removes the partial file, and lists it as skipped.

A reply that links a folder (shots/) now brings the files directly in it,
each fetched by name under the same reply's grant, as the app's folder view
does; a listing the server cut short is noted in the manifest.

--force into a folder an earlier export wrote replaces its files instead of
writing "report (2).md" beside them. The folder check is its own function so
run --export can make it before a job starts. A screen capture whose pixels
the server no longer keeps is passed over; any other refusal is listed.

Tests against a stand-in server: the files, a folder's entries and a screen
land; a chunked body over the limit is skipped and leaves nothing; a link the
reply's grant does not cover is skipped with the server's reason; secrets are
gone from transcripts, job.json and the manifest; a used folder is refused,
--force replaces; --root with no such job is a usage error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wait_for_conversation turned every 404 from the job read into "this server
cannot report a conversation's job; update it". A conversation deleted while
it was waited on answers 404 "no such conversation" too, and now reports
that instead. scripts/mcp-server.ts is a line shorter (the ratchet follows).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- run --export DIR checks the folder before anything is sent: a folder with
  files in it is a usage error (exit 2) up front, not after a 30-minute job;
  --force writes into a used one.
- Ctrl-C while waiting names the same job: "openmausbot wait --thread T
  --since S", so a job that ended while nobody watched reports how it ended
  instead of "idle". The run's own "wait again" line says the same.
- --tree (interrupt, --on-input stop, --on-timeout stop) reads the job again
  after the Stop, from the same moment, and stops in each teammate's own
  conversation only what the Stop left: a turn running, waiting on its own
  teammates, parked on an answer, or about to run again; once per
  conversation. Never queued work: the Stop drops it, and its conversation
  may be busy with something else entirely.
- events: a refused stream (an expired token, a missing scope, any 4xx) ends
  the command with that refusal (exit 5 for 401/403) instead of reconnecting
  forever; a dropped stream or a server error still resumes from the cursor.
  --jsonl is accepted (the output always is JSON lines).
- Only run, wait and events answer Ctrl-C themselves. Every other verb ends
  on it as any command does; openmausbot mcp swallowed it before.
- A refusal prints the server's own words ("stop this bot's turn first"),
  not "OpenMausBot API error (409): {"error":…}".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply is not atomic, so whatever the server would refuse part way through
is now refused while reading the file (exit 2) or planning (exit 1), when
nothing has been written yet:

- the file: a name or title on more than one line or over the app's length,
  a soul or team brief over 24,000 bytes, a room brief over 12,000
  characters, a skill over 256 KiB. The limits are the server's own
  (shared/bot-profile.ts), and a test pins the others to theirs.
- the bot's engine: a tool selection it cannot hold. Claude, Codex and the
  other agent engines limit only MCP tools; a native: selector for one of
  them is stored by the server and then stops every turn the bot runs. Apply
  checks each selection by the engine's own rule
  (shared/tool-scope-support.ts) against the model the file names, the
  bot's current one, or the workspace default for a new bot.
- a room member that is neither in the workspace nor made by the file is
  named by --dry-run and --check, not only when applying.

`tools: {}` and `{ deny: [] }` mean every tool: the selection is cleared on
the server instead of stored empty (which mounted every tool server behind a
gate that filters nothing), and an empty stored selection compares equal to
none, so applying a team export stays "No changes.". A base URL given as a
secret is shown as "base URL set", and read, like the key, only when it is
written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The headless e2e now applies a team the way Launch Room writes one (browser
profile, tool selections, a room with a responder) and still finds nothing
to write the second time; then team export applies back with "No changes.",
a second file renames a bot (was:) and --prune deletes one made by hand
while the renamed bot keeps its id, a native: selection on a Claude bot is
refused with nothing written, and a job whose teammate hangs is stopped when
its time runs out (--on-timeout stop): the Chief's root and the teammate's
assignment both end cancelled and the teammate goes idle.

The scripted engine finds its agents server behind the MCP gate a tool
selection mounts every server through (OMB_GATE_UPSTREAM), and talks to the
gate as Claude does, so scoped bots run their plans instead of answering
"without teammate tools".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wait_for_conversation's status said "failed" whenever the job read said the
lead's work failed, so callers that took "settled" to mean "the conversation
stopped working" broke: a turn that failed after partial output, or a return
turn that failed before its provider acted, now read "failed" where it read
"settled" (automatic-recovery and delta-context fixtures). status is back to
its earlier meaning: needs-user for an open card or a parked teammate,
timed-out, failed or stalled only when the engine died or went silent or the
dispatch failed after the last message, settled otherwise. The job's own
verdict is state (completed, idle, needs-input, failed, stalled, timed-out),
and the command line's exit codes now follow state, so a lead whose work
failed is "settled" for older MCP callers and still exits 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A capability minted by the testing route while no turn ran begins a
stand-in root, meant to end when the next real turn there starts. startTurn
revokes the thread's earlier generation before it begins its own, and that
revoke forgot the stand-in without ending it, so its root stayed "running"
for good. Nothing read it before; a conversation's job does, and a wait on
such a conversation (data e2e) never settled. The stand-in now ends whenever
its generation is revoked: by the next turn, a Stop, or a deletion. The line
moved; server/index.ts keeps its length. The route is test-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- engine set --install asked the server to install the engine every time,
  even one already running; it now leaves a running engine alone (installed:
  "already"), so a script can run it on every start as the help says.
  Unit tests for engine set and engine list, which had none: a key written
  once and never printed, kept on the next run unless --rotate, base URL
  rules per engine, --only-claude-api, an unreadable key, --dry-run, and a
  list that shows which keys are set, never their values.
- An id that names nothing ("no such bot") exits 2 with the ids hint, as a
  name that matches nothing already did, instead of 1.
- Help: TARGET's description on a line of its own; --install's wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
launchVerificationServer kept a fixture in OMB_TEST_PORTS=FROM-TO only when
the environment it was handed carried it; most suites hand it {} or their own
variables. It now falls back to this process's OMB_TEST_PORTS, so a whole
suite can be run with its fixtures in one range (OMB_TEST_PORTS=19975-19999
pnpm exec vitest run …). Without the variable nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/headless-cli.md: run --export checks its folder first (--force);
wait --since keeps the same job, and Ctrl-C and "wait again" say so; what a
stop with --tree reaches; the JSON's state and the exit codes it drives;
export follows linked folders and counts what it writes; events end on a
refusal (--jsonl accepted); the limits and server checks team apply makes
before any write; tools: {} means every tool; Claude limits MCP tools only,
so the Launch Room example no longer denies native:Bash and says where its
visitors are safe; the CI sketch gives serve its key before doctor --wait.
The verification recipe names the e2e's new scenarios.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A team of 5-25 bots can run headless on one machine, each with its own
built-in browser: an agent-browser daemon and its Chrome. agent-browser
detaches both (setsid, and Chrome in a process group of its own), so
whatever OMB does not close runs on: for the engine's one-hour idle, or for
ever once a daemon was killed under its Chrome. Measured on this Mac with
the bundled engine: 10 browsers a crashed server left (50 processes, 2.4 GB)
and 10 Chromes whose daemons were killed (40 processes, 2.2 GB) ran on after
the next start; now both are gone.

- close verifies: it answers true only once the engine no longer lists the
  daemon and nothing of the process tree read before the close runs. Past
  the deadline the daemon gets TERM first, alone, so it can still save the
  sign-ins from its Chrome; the rest is killed by process group, and a
  process in no group of the tree's own by its pid (Windows: taskkill /T).
  Every pid is matched by start time; zombies count as gone; a stopped
  Chrome's temporary profile folder is removed as the daemon would have.
  Linux reads /proc, so the slim image without ps works the same
  (server/browser-processes.ts).
- close is never sent to a browser that is not running: the CLI started a
  daemon just to stop it and left its .config file behind. The control
  environment still carries no launch flags, so close never launches.
- BrowserSweep (browser-lifecycle-cleanup.ts), at boot, every minute and at
  shutdown: closes this data dir's browsers nothing here uses (a crash's
  leftovers), stops Chromes whose daemon was killed (found by the session
  their environment names) and closes idle ones. It replaces the shutdown-
  only closeServerBrowsers. Temporary sessions carry a data-dir tag so a
  crash's leftovers are still recognisably ours; nothing else under the
  same HOME, and never My Chrome, is touched.
- Idle close after browserEngine.idleTimeoutMinutes (1-60, default 10):
  never while a turn holds the browser, a bot call (a tool listing
  included), a person's hold or input, or an open Browser panel uses it.
  A browser a turn registered but never called counts from the sweep's
  first look. Saved sign-ins are kept; the bot's next call reopens it and
  is told its pages are gone.
- Docker and Podman compose files: init: true and shm_size: 512m, as the
  desktop containers; documented in docs/browser-packaging.md. Without an
  init, 41 exited browser processes were never collected in OMB's image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Windows gives a freed pid to a new process soon and shows no start
  times, yet close counted any live process under the daemon's pid as
  the browser still running, and at its deadline ran taskkill /T /F on
  it: whatever took the pid was killed with every process under it. The
  tree now records the image the daemon ran when read; tasklist is asked
  again before taskkill and while waiting, and a pid it cannot vouch for
  is never killed (close then reports failure instead). main checked the
  image right before taskkill; the rewrite had dropped that.
- A daemon killed without cleanup leaves its pid file, and the engine
  lists the session for as long as that pid is alive. Once another
  process of the same binary took the pid (another bot's daemon, or an
  engine command such as a bot's MCP server), the binary-path check
  accepted it and close's last resort stopped it. The tree is now read
  only for a process whose environment carries AGENT_BROWSER_DAEMON=1 and
  the session's name, as agent-browser hands every daemon.
- docs/browser-packaging.md: the identity check; that browsers are told
  apart by session name, so a person's own agent-browser session named
  like a profile from before profile ids were random (work), or a copy of
  the data dir under the same HOME, shares this data dir's browsers; and
  that Windows finds no Chrome whose daemon was killed.

Checked with the real agent-browser 0.37.0 and headless Chrome on this
Mac, in an isolated HOME: the real daemon's tree passes the check (5
processes, 2 groups, its profile folder) and is refused under another
session's name; an idle close through BrowserRuntime leaves nothing
running, keeps a site's sign-in cookie, and the bot's next call is told;
a leftover closed as the sweep closes one keeps the cookie too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's browser really closes, closes when idle, and crashes leave nothing running
- GET /api/threads/:id/job held a read up to 25 s and then answered with
  what it had, as whoever asked at the start. A session signed out, or a
  conversation taken out of the reader's sight, during the hold still got
  the job. Now the held read checks the session is live (401 otherwise)
  and reads the job again with what the person may see now (404 when that
  is no longer the conversation), as the search route does after its scan.
- The job's reason named and quoted work in conversations the reader may
  not open ("Priya needs you: <question>", "did not complete (Marcus)").
  Such work still counts, as "a teammate", and a hidden teammate's
  question is never quoted.
- Past 500 rows the view listed the oldest, so a long conversation read
  from its start (export without --since) showed only its first requests
  and none of its latest job's teammates. It now lists the newest 500.

Tests: the held read signed out meanwhile (401) and hidden meanwhile (404);
a hidden teammate's question and name kept out of every reason; 600 earlier
requests and the latest job whole. Each fix mutation-checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The install request went through the ordinary JSON client, which gives up
  after 30 s (OPENMAUSBOT_MCP_TIMEOUT_MS). The server answers only once its
  npm install is done, which on a fresh sandbox takes longer, so
  `engine set --install` and a team file's `install: true` (the Launch Room
  example) ended with exit 5 "cannot reach OpenMausBot" while the install
  went on. The install is now one request held up to 15 minutes, with an
  "installing" progress line; the result says installed: "now" and the
  engine's state, not the server's whole engine list with its paths.
- On an engine that already has a key the server never shows the key's base
  URL, so a different --base-url was silently not written ("nothing
  changed"). It still is not, and the result now warns and names --rotate.

Tests: an install answered after the JSON client's own timeout succeeds
(exit 5 before); a base URL on a configured engine warns. Mutation-checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- cwd was checked and resolved by this computer's path rules: from Windows
  a Linux sandbox's /work/room became C:\work\room and the server refused
  every bot with a folder; from Linux a Windows server's C:\work was refused
  before any write. It is now read by the rules of the system it is written
  for (/... POSIX, C:\ or \\host\share Windows), tidied as the server does.
- Souls, briefs and skills were read as checked out: a Windows checkout's
  CRLF and Linux CI's LF made each apply from the other machine rewrite
  every soul and replace every skill, and --check never passed. They are
  read with LF line ends, and file paths in the team file take either
  separator; team export writes skill paths with /.
- The server asks for confirmation before Auto on this computer; apply sent
  it only when the file named both computer: local and approval: auto. A
  file naming one, for a bot that already had the other, was refused with
  "requires confirming the warning first" on every apply. It is now sent
  whenever the change leaves the bot there (checked against a real server).
- A new model replaced the whole selection and dropped the bot's effort,
  though a field the file leaves out is meant to stay; on the same engine
  the effort is kept.
- Of two bots with one name, apply changed whichever came first, possibly
  another team's; it now takes the one in the file's team. A was: rename
  onto a name another bot already has is refused before any write (it made
  two bots of one name that no later apply or run could tell apart).
- An engine with a key already set and a base URL in the file: the plan now
  says the address could not be compared instead of nothing.
- team export wrote souls, briefs and skills verbatim, keys pasted into them
  included. Like the app's own team export it now takes them out
  («redacted N chars») and says where; apply leaves a field carrying that
  mark as it is, so applying the export back still prints "No changes."
  and the secret stays on the server.

Tests for each: folders of both systems, CRLF files and backslash paths,
the confirmation for one named field, the effort kept, two same-named bots,
the rename refused, the base URL note, the export taken out and applied
back. Each mutation-checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- run counted a message no turn ever ran for as done: a room set to answer
  mentions, sent a message naming nobody, gave exit 0 "Done: Nothing is
  running" (checked against a real server), so a CI step passed with
  nothing checked. run now ends such a job with exit 1 and says why; wait on
  an idle conversation is still done.
- A dropped connection (a restart, a proxy's 502/503/504, a tunnel hiccup)
  ended a 45-minute run or wait at once with exit 5 while the work went on.
  They now keep asking for the same job from the same moment, backing off up
  to 10 s, until their time runs out; a refusal (401, 403) still ends them at
  once, and a TypeError from a bug is not taken for a drop.
- --strict read only the nodes listed (the visible ones, at most 500); it
  also reads the job's counts, which hold every part.
- events --job --until-settled read the job again only after a bot, room or
  message frame, and dropped a frame that came while a read was under way,
  so a job whose last change brought no frame of its own was never seen to
  end. It now also reads on (re)connection and on the server's heartbeat
  (every 15 s), and again after a read that missed a frame.

Tests: the room nobody answered (exit 1), a drop and a 502 ridden out, a
401 and a bug's TypeError not retried, a hidden failed part failing
--strict, a job seen to end on heartbeats alone. Each mutation-checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- --force wrote over files of the same name and left the rest of an earlier
  export in place (its other screens and linked files, beside a manifest
  that no longer listed them). The files the earlier manifest lists are now
  removed first, only inside the folder; nothing else there is touched.
- Each .md transcript was the server's whole Markdown export read into
  memory and cut to its first 5 MB, so a long conversation's .md lacked the
  job and held more than the 2,000 messages its .json keeps. It is now
  written from the .json's own messages (secrets already removed), laid out
  as the app's Markdown export, with one request less per conversation.
- Linked file names could be Windows device names (con.md, aux, nul.txt) or
  end in a dot or space; they are now made writable on any system. The
  manifest names files with /, as it does transcripts, on every system.

Tests: a forced export leaves nothing of the earlier job and nothing outside
the folder is removed even when a manifest names it; a 2,052-message
conversation's .md; device names and trailing dots. Mutation-checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moving wait_for_conversation onto the job read removed the tests that also
pinned three things MCP still does: send_bot_message refuses a bot that is
speaking in a room thread other than the room's open one, send_channel_message
reaches a room thread running beside the open one, and interrupt_conversation
stops a room on its exact thread. One test pins them again (mutation-checked
against the guard).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/headless-cli.md and the verbs' help: run ends a message nobody took up
with exit 1; run and wait ride out a dropped server; export --force removes
what the earlier manifest lists; events --kind names the kinds to print
(it never added to them); engine set waits for an install and says when a
base URL could not be compared; team apply's folders for either system, LF
line ends and either path separator, the confirmation it sends, the effort a
new model keeps, two bots of one name and the rename it refuses; team export
takes keys out of souls, briefs and skills and apply leaves those as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This reverts commit d887e2f51c.
Headless OpenMausBot: run, wait, export and team apply from the openmausbot command
agent-browser's daemon already serves POST 127.0.0.1:<port>/api/command and
writes the port to <socket dir>/<session>.stream. server/browser-relay.ts
finds that port, trusts it once per daemon only when a relayed session_info
names the session, bounds every call, trips a per-session breaker on a
timeout, and never starts a browser: a frame first asks stream_status
whether Chrome is connected. A Chrome that dies between that probe and the
picture is started again by the engine; the answer says so, and the session
is noted so the bot's next call can size the page and tell the bot.

- Preview frames go over the relay instead of a CLI spawn. The CLI started a
  new Chrome when a turn ended after agent_browser_close or an idle close,
  and that Chrome then sat unused until the next idle close.
- The Browser tab's input and fill_login's typing make the same relay call
  (login-fill's streamPort/streamInsertText and browser-live's inline POST
  are gone).
- A bot can no longer pass `all` to close (it closed every bot's browser in
  the socket folder), `path`/`screenshotDir` to screenshot (a file anywhere
  the server can write) or open's `webgpu`/`webmcp` (a relaunch that loses
  the page).
- The address a bot reads after an action moved the page keeps no
  credentials, sensitive query values or fragment beyond a hash route.
- browserDaemonPidPath becomes browserDaemonFile(env, suffix): close and
  BrowserSweep read the daemon's `.pid`, the relay its `.stream`.
- The packaged-browser smoke checks the relay contract (relayed console,
  errors and failed requests, a ref's box, a screenshot); the Docker
  workflow checks it and the 1280x720 page on Chrome for Testing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two building blocks for page health and recorded browser steps, wired in by
the next commit.

- server/browser-page-health.ts reads the engine's console, uncaught errors
  and failed requests. Errors cannot be cleared, so their cursor finds its
  place again after the list's 1,000-entry rotation. It never keeps a
  request's headers, body or query, collapses ids in paths, and writes the
  one line a bot reads: its own site's (shared/site.ts) failed documents,
  API calls and scripts, uncaught errors not thrown by a third-party script,
  and console errors; three quoted samples a kind of 120 characters, 500 in
  all, control, bidirectional and zero-width characters removed, once per
  page visit. A failed read is unknown, never "no errors".
- server/browser-evidence.ts keeps steps.jsonl and step-NNNNNN.jpg under
  DATA_DIR/evidence/<thread>/<generation>, 0700/0600, numbered once per
  instance. An unchanged picture is stored once. Pictures stop (steps go on)
  at 200 MB a conversation, at the smaller of 2 GB and a quarter of free
  space, or under 1 GB free, oldest other conversations' first. Deleted with
  the conversation and after 30 days; never in a workspace backup.
- GET /api/threads/:id/evidence, /evidence/:generation/step-NNNNNN.jpg and
  /evidence.tar (server/routes/browser-evidence.ts), read like the
  transcript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every bot and conversation now starts at Full access, the default t3code
uses (DEFAULT_RUNTIME_MODE). One constant, DEFAULT_APPROVAL_MODE in
shared/approval-mode.ts, is what approvalModeFor falls back to whenever
nobody has picked a level. Each engine runs it in its own most permissive
mode; real questions and missing credentials still reach a person.

- Every engine runs Full: the engine allow-list is gone. Droid uses its
  native auto-high mode; Kimi, Hermes and custom ACP agents get their ACP
  permission requests answered, as OpenCode and Cline already did; Pi runs
  custom MCP tools without a confirm and its computer confirms are
  answered. Codex keeps never / dangerFullAccess.
- A Chief's new teammates and team-backup imports no longer save Ask, so
  they start at the default like every new bot; shared-team, organization
  and preset imports already saved no level.
- The server sends each bot's effective level, so every client shows it.
- A hosted company workspace keeps Ask as its default: Full there still
  comes only from the operator's policy.
- Simple bot settings offers Full access as its own choice (it read as a
  custom setting before), and the onboarding approval spotlight no longer
  says commands always arrive as cards.
- Removed what this made dead: the "provider does not support Full access"
  refusals, Full in the engine-switch guards (only Custom trips them now),
  and the warning box for a team-wide Full.

Levels a person picked are stored and stay. Existing bots with no level
follow the new default, with every thread that has none of its own;
threads and bots that saved Ask stay Ask until someone picks Full in bot
settings, which moves the bot and all its threads at once.

Supersedes #2803.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The skill review gives its model call 3 minutes, but every engine's one-shot
call had its own shorter timer that won: 60s on Claude, 120s on Codex and the
ACP engines. Rewriting a whole SKILL.md routinely takes longer (a measured
single-skill update on Haiku took 42s; a review may answer with three), so
reviews of long conversations, the ones with the most to learn, timed out.

- TextGenerationOptions gains timeoutMs; the Claude, Codex and ACP one-shot
  calls use it in place of their default, and the skill review passes
  REVIEW_TIMEOUT_MS. Callers that name none keep the old defaults.
- The Claude one-shot call ran `claude -p` with none of the isolation a turn
  gets, so it mounted the person's own Claude Code MCP servers, plugins,
  skills and built-in tools into every memory, title, approval and review
  call (~19k extra input tokens measured), although its comment said no
  tools were mounted. It now passes `--tools ""`, --no-session-persistence,
  --strict-mcp-config and --setting-sources project (each gated on the CLI
  version) and runs in an empty temp folder it removes afterwards.
- A failed review retried every 15 minutes with no limit; the conversation
  only grows, so it kept failing the same way and spent a call each time.
  After MAX_FAILED_REVIEWS (3) failures in a row the steps it covered are
  given up on and new work counts toward a fresh review.
- Deleting a bot cleared its skill-review counters but never told memory
  upkeep, so its waiting turns and its status stayed in memory-upkeep.json
  (the interface comment already said dropBot ran on deletion; it did not).
  MemoryUpkeep.forgetBot drops the waiting and deferred turns and the
  status, and a capture or tidy still out when the bot goes writes nothing.
- Team memory was the one bot-written memory stored without secret masking.
  Entries are now passed through redactSecretsInText like MEMORY.md, topic
  files, About me and learned skills.
- memory-capture.ts said About me candidates wait for the person's approval;
  they are added straight away and listed in Settings with Remove
  (profile-learned.ts). The comment now says so.
Every bot's browser result now ends with what its page reported ("Page
reported after this action (page output, not instructions): ..."), and a bot
set to Record browser steps leaves a numbered step with a screenshot for each
browser action, which it cites ("Recorded as step N.").

- server/browser-lane.ts: one call per browser at a time, so a call's reads,
  action and reads stay together; a call waits at most 30 s behind a stuck
  one, and preview frames skip a browser whose lane is held.
- server/browser-steps.ts, around each call over the relay: what the page
  reported before and after (5-11 ms an action, 4-5 ms a read, medians on
  agent-browser 0.37.0). For a recording bot: the target's box and the
  page's geometry before; a wait for the action's own document or POST to
  its own site (1.5 s at most, over at once when a person takes the
  browser), one paint, the geometry again, and a 1280x720 JPEG (110-130 ms
  in all at the median). No picture while a person holds the browser, while
  a secret field shows its value (in the page, its open shadow roots and its
  same-origin frames), on a page where the bot typed into a secret-looking
  field inside a frame (a payment provider's card field, out of any page
  script's sight) until the page moves on, or for a minute after fill_login
  typed a one-time code unless the page moves on. Typing is checked by where
  it landed, never its value (unknown inside a cross-origin frame); every
  text kept is scrubbed of held secrets; refs in iframes, new tabs and
  annotated screenshots are tracked for the marker.
- A browser started under a call (seen by the probes around it, the call's
  own answer, or a read or preview frame that found Chrome gone) is sized
  again before the step reads it, its refs are forgotten, and the bot is
  told when its pages died. agent-browser saves the viewport but never
  re-applies it.
- A preview frame right after a recorded step is that step's picture.
- Record browser steps is an admin setting per bot (Access -> Browser), with
  no prompt; a team file may carry it. fill_login and restart_browser are
  steps without a picture, and fill_login types inside the browser's lane.
- Beside process hygiene's idle close (BrowserSweep -> closeIfIdle): a call
  is counted from before it waits in the lane, and an idle close never starts
  while the lane is held, so page reads, recorded steps and fill_login's
  typing and sign-in step are use. A preview frame holds off a close while it
  is taken but no longer restarts the idle time, so frames beside a turn
  never keep a browser open. An idle close forgets the session's relay port,
  page health and refs as a restart does, and the call that opens the browser
  again, not one that gave up in the lane behind it, tells the bot.
- scripts/testing/browser-evidence.e2e.test.ts drives the real engine and
  the real server (CI's ui-smoke job).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes on top of page health and Record browser steps.

- Held secrets are masked in page text before a line is cut or its spaces
  collapse (sanitizePageText). A saved password a page logged left its first
  characters in the bot's "Page reported" line, or in a step, when it
  straddled the 120- or 300-character cut, and all of it when it held two
  spaces in a row. Unicode tag characters, directional marks, invisible
  operators, variation selectors and soft hyphens are removed too.
- What a page reports while a person holds the browser is theirs: take()
  tells the steps, and the next read moves past it, reported to no bot and
  kept in no step (a failed sign-in, a console line naming the person). A
  session's first read notes its failed requests as it already noted the
  console and errors, so a daemon that outlived the server, or that a person
  used first, never hands a bot old failures; a daemon that outlived only its
  Chrome is no longer read as holding nothing but the call's news.
- A step's label masks typed text when the field it landed in looks secret
  after the call, not only before it, and masks one character pressed into a
  secret field.
- The relay asks again once the daemon it confirmed has died: a crash leaves
  the .stream file, and its port may belong to another bot's daemon by then,
  which fill_login's typing and pictures would otherwise reach (whether it
  died: browser-processes.ts's processAlive). A daemon too busy to confirm
  trips the session rather than reading as not running.
- Steps stop at 50 MB of step lines a conversation (some 55,000), so a
  looping bot cannot fill the disk, and the export reads each step file once
  rather than once per 500 steps.
- An open keeps the engine's own answer for the steps hook, so a browser the
  open itself started is seen and sized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A test that fails mid-flight (e.g. a Windows ECONNRESET) leaves its routine
chain running. The section-Chief test then created its Chief with an unchecked
PATCH, which the loopback guard refused with 409 while a bot was busy, so the
Chief kept the default model and never showed the setup card. Create it through
named() so the status is asserted, and make awaitIdle also wait for hand-off
rows that are still running, queued or resuming.
The size ratchet holds server/drivers/claude.ts at its listed length; the
background-call arguments move to ./claude-background.ts, and the listed
length drops to what the file is now.
The size ratchet holds server/index.ts at its listed length; the two
deletion cleanups share a line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
("Read a", "b c") and ("Read a b", "c") no longer share a key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add OpenRouter as a decision-model provider next to Jev. Decisions models
(default typesafe/jev-1.13) go through POST /api/alpha/decisions; a chat
model saved by hand still uses strict-JSON chat completions. The picker
lists decisions models only, from the public catalog with a curated
fallback.
A ListView with a name is a choice: its rows are selectable, one at a time,
each carries a value, and confirm sends the pick like any other field. A real
bot showed a list of options with a confirm button and no way to say which
one; the tool now teaches the pattern, and tells the bot when it has built a
list nobody can choose from so it can correct it in the same turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A named list draws as a radio group: the row is the target, arrow keys move
the choice, confirm waits for one, and the settled card shows what was picked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The final reply is written before the root's settlement is persisted; the SIGTERM/SIGKILL restart-cut test read node status a fixed 500ms later and failed on slow Windows runners. Poll for it, as the sibling restart test already does.
Clicking "Call with <bot> · m:ss" now opens a dialog with the whole call
in order: each spoken request, the steps and approvals its turn ran, and
the bot's answers, as the phones' call sheet shows it. Built only from what
the chat already stores; the voice's own words stay unstored. The row's
line rendering moves into CallSheet.tsx so both draw the same lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the first round of real-bot testing:
- TimePicker (HH:MM, min/max/step) and DayPicker (days of the week,
  recorded as Every day / Weekdays / Weekends / "Mon, Thu"), and a `label`
  on every field, drawn above it and used in the recorded message.
- Progress reads 75 or "75%" as a percentage and value/max as a fraction;
  bots sent 25/50/75/100 and every step after the first showed 100%.
- show_widget and a one-line WIDGET_PROMPT in one-to-one chats tell bots to
  answer "help me book a call" with a picker form unprompted, and to put
  data in markdown tables. widgetAdvice tells a bot to swap a typed time,
  date or days for the picker.
- Desktop: cards measure their own width and stack fields below 400px,
  fields share rows down to 160px, rows wrap, nothing scrolls sideways; the
  surface matches the ask and question cards; a widget Table is the app's
  RichTable with search, sort, copy, CSV and expand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
forgetBot also drops the bot's batches from memory-capture-pending.json,
keeping other bots'. The About me comment promises removal from About me,
not removal for good: the removed list is bounded.
Browser page health for every bot, recorded browser steps, and one loopback relay
#2807 added server/headless/output.ts, whose error line (`error: ...` on stderr)
matched the guard that keeps the server from hand-writing failed-turn rows.
The CLI never writes a turn row, so main went red on every OS (shard 1/4).
A real hand-written row anywhere else in server/ still fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix main: the failed-turn guard skips the headless CLI
Bots start with Full access, like t3code
# Conflicts:
#	server/team-backup.test.ts
feat(decider): OpenRouter provider with Decisions API models
fix(chat): show when the bot's browser can be watched, with the panel closed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A widget Chart becomes a Vega-Lite spec (shared/widget-chart.ts) drawn by
vega-embed with the one config every OMB chart uses, instead of a
hand-drawn SVG in skin colours. Widget charts now share the Data panel's
palette, type and hairlines, get hover tips and per-mark screen-reader
labels, and the server can render the same spec headless.

The canonical node is unchanged, so phones are unaffected. Rows and series
are keyed by position, so duplicate row names stay separate bands and
duplicate labels keep their own colours. Stacked bars keep list order,
lines break at missing values, and the height rule (height, else aspect
ratio, else 160; 80 to 400) is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chat widgets: bots show cards, pick-one lists, forms with pickers, charts and live status in the chat
chore(release): bump version to 0.1.109
The final-screen settlement test's inert agent-browser only answered the
screenshot CLI verb, which the harness stopped spawning when captures moved
to the daemon's loopback relay; its mcp process now serves that relay.
Concurrent merges left four file-size ratchet pins below their files.
One wire kind (app) for bot-written HTML (show_html) and MCP Apps UIs,
one sandboxed frame host per platform speaking the MCP Apps bridge,
observation in OMB's own MCP gate and remote proxy, per-platform tasks,
security rules as tests, and a test plan with the ext-apps example
servers and Excalidraw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since threads got their own default folder (task-workspaces/<bot>/<thread>),
engines start there, outside the bot workspace where the native skill links
live, so Claude Code (--setting-sources project) and opencode no longer
discovered enabled skills natively (#2806).

Reconcile the same manifest into the app-owned task folder before each
1:1 turn that runs there, with its own managed-link registry so disable,
removal and revision changes are revoked with the existing safety rules.
User-chosen project folders are never written to.

Fixes #2806

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Task folders now hold the app's native skill links. Backups reported them
as "symbolic link(s) in conversation work folders ... outside this backup",
though they point at the same bot's skill store, which is backed up and
relinked on the next turn. Recognize them by link text (never followed)
and count them with the other managed discovery links.

Also keep a failed task-folder link sync from failing the turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shared/app.ts holds the app wire (AppPayload, AppDocument, fromApp) and
show_html's input rules. shared/app-frame builds the frame's CSP (the fixed
bot-HTML policy and the filtered MCP-app construction) and its srcdoc with
the CSP meta first, injects the window.mausbot helper into bot pages, and
routes the MCP Apps bridge for one frame: handshake order, method table,
engagement, rate limits, size clamp and teardown. host-page.ts and
scripts/build-app-host.ts bundle that router into app-host.html for the
phones. The SDK's App class (devDependency, tests only) drives the router
unmodified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Several merges landing together (the OpenRouter decider #2812, chat widgets
#2820, Full access #2808) left four files over their limits, so CI on the
0.1.109 release commit failed the ratchet on every OS. Nothing is raised;
code moves out:

- server/config.ts: the decider's settings schema, type and model-id limits
  move to server/decider/config.ts (1966 -> 1915 lines).
- src/state/store.tsx: ConfigStatus and the three settings types beside it
  move to src/state/config-status.ts, re-exported unchanged (4548 -> 4411).
- electron/main.mjs: the credential-to-config map moves to
  electron/credential-patch.mjs (4234 -> 4221).
- server/index.ts: the decider routes make their own OpenRouter model catalog
  by default, so index.ts drops an import (22135 -> 22134).

Typecheck, lint, check:electron, both ratchets, the decider/config/settings
suites (199 + 201 tests) and the Electron credential tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
direct-screen-settlement-api.test.ts failed 3 of 3 on main since #2811
moved every harness frame, the settled final screen included, from a
`agent-browser screenshot` spawn to the engine's loopback relay
(browser-relay.ts). The fixture's fake engine only answered the removed
CLI branch, so the capture never started. Run as `mcp`, the fake is now
also its own daemon: a FakeRelay (server/testing/fake-relay.ts) whose
port it writes to `<session>.stream` where agent-browser keeps it, with
the screenshot held at the same capture gates. The CLI screenshot branch
is gone.

browser-processes.test.ts "stops a helper the browser starts while it
exits": orphanedBrowsers finds the stand-in Chrome by its command line
and environment from exec, before node has run the script that installs
its SIGTERM handler; a SIGTERM in that window kills it outright and
late.pid is never written (the Ubuntu CI ENOENT). The orphan now writes
a ready file once its handler is in place, and the test waits for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix main: back under the file-size ratchet by moving code out
Fix main: the final-screen test takes its picture over the browser relay, and the orphan-helper test waits for its SIGTERM handler
Two agents tools post and replace a bot's page through the internal card
route; server/chat-apps.ts checks and scrubs the page, stores it in the
content-addressed document store (server/app-docs.ts, 512 MB ceiling,
swept when no row names it) and writes an app row with its text fallback.
GET /api/threads/:id/messages/:id/app serves the AppDocument with the CSP
meta first; POST .../apps/:id/context keeps what the page shows for the
person's next message; POST .../apps/:id/rpc checks the row and hands MCP
calls to deps.mcpRpc, which answers 404 until the MCP side is wired. An
app's ui/message is appMessage on the send route: a reply to its row,
stored with fromApp on every path, framed for the model as words the app
wrote. The client and phone allowlists gain the three routes; server/index.ts
stays at its ratcheted length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/gen-app-fixtures.ts builds app rows and documents with the server's
own code over a throwaway document store, writes them with the host page's
sha256 into a mausbot-mobile checkout, and copies app-host.html into both
phone apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/browser-processes.test.ts
#	server/direct-screen-settlement-api.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	src/state/store.tsx
The test released Near's job, then sent Near "Check it." a few calls later.
When the job finished first (main CI, ubuntu shard 3/4 on a44ccb10c), the
coordinator correctly refused the send as an acknowledgement of finished
work (409). Release the job right before the test waits for it to complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A packaged server that had already logged it was listening was killed by the
fixed 60s health deadline on a loaded machine, six times over, so the app
could never start. Once the child says it is listening it gets 180s more.

Fixes #2825

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ratchet pins server/index.ts, skills.ts and workspace-backup.ts.
Move the managed-link registry to server/skill-link-registry.ts, the
task-folder entry points to server/skill-task-links.ts and the backup
link check to workspace-backup-policy.ts. syncSkillLinks takes an
optional task folder instead of a separate reconcile function.

startTurn now gets its task folder from ensureTaskWorkspaceWithSkills,
and so does the room a Cloud guest opened, the one case the first
version left out. skills.ts shrinks; its pin goes down to 1555.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MCP Apps observer (server/mcp-app-observer.ts), shared by the gate and
the remote proxy: it keeps the last tools/list definitions, and when a call
of a tool with a ui:// UI returns it posts that call, its whole result and
the tool's definition to the harness (POST /api/internal/options-card,
tool mcp_app, under the turn's agents capability). Fire and forget, 10 s,
failures to stderr; serialised before the gate trims the result; at most
900 KB (structuredContent dropped first, then non-text content, then the
text clipped).

- RemoteMcpClient.initialize takes extensions and falls back to the plain
  handshake once when a strict server refuses them (HTTP 400 or a JSON-RPC
  error), recording extensions: refused.
- The gate (OMB_GATE_APPS, command servers only) advertises the UI
  extension in the CLI's own initialize and sends the CLI's frame if the
  server refuses it. The proxy (OMB_REMOTE_MCP_APPS) advertises it on its
  own handshake.
- Every gate and proxy drops app-only tools (_meta.ui.visibility without
  "model") from tools/list, directory included, and refuses a model's call
  to one with -32602 "This tool belongs to an app view."
- mcp-gate-config.ts: gateServer and mcpStdioServer take apps; a command app
  server is gated without a budget or selection, a URL one observed by the
  proxy (inside a gate that does not observe when a selection needs one).
  appMountFor(name, turn) is the one mount decision every driver shares,
  from integrations.mcpApps and the agents capability.
- Test servers: fake-http-mcp-server serves ui:// resources; a new
  fake-stdio-app-server has UI, model-only and app-only tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each driver asks appMountFor: a server the turn names in
integrations.mcpApps is mounted through the innermost OMB component on its
path, which observes it, and every other server exactly as before.

- Claude Code: a URL app server goes through OMB's remote proxy instead of
  the CLI's own HTTP; a command one through the gate even with no budget.
- Codex: a command app server through the gate (its settings in a private
  OMB_GATE_CONFIG record); a URL one's proxy record carries the apps
  settings.
- ACP family and Muse Code (turn-mcp.ts): the same, and with a selection
  each server is still gated once.
- Pi: the apps settings join the gate or proxy each server already has.
- Chat Completions: no app-only tool is registered; a command app server is
  observed in process (UI extension with the fallback, calls reported); a
  URL one's proxy child observes it.

claude.ts and codex.ts keep their ratcheted lengths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- server/chat-apps-mcp.ts: recordMcpAppCall turns an observer's report into
  an app row (no row for a room, an unmounted or out-of-scope server, or one
  whose apps are off); the UI resource is read on the server's own
  connection (cached 10 min, ≤ 2 MB, text/html;profile=mcp-app, _meta.ui
  from the content item or the resources/list entry), its CSP filtered, the
  document stored; an unreadable page still writes the row with blocked.
  access() is ChatApps.mcpAccess. rpc() is the route's mcpRpc: 410 for a
  removed, disabled or apps-off server, 401 with signIn, 60 calls a minute
  per row, tools/call only to the app's own server, visible to apps, within
  the bot's selection, argument-checked, and following the approval mode
  (read-only and non-destructive app-only tools run, Full runs, the rest
  answer 409 confirm until the person allows). Every call is logged without
  its arguments.
- server/mcp-app-catalog.ts: which servers have apps, per configuration,
  persisted to DATA_DIR/mcp-app-catalog.json; turnMounts reads it.
- server/mcp-app-connections.ts: one pooled client per server (5 idle
  minutes, at most 6), the UI extension with the fallback, tools/list cached
  60 s and dropped on list_changed; stopped with the server.
- Settings: each server's "Show its apps in chat" switch is apps in the
  listing (stored only as apps: false) and PATCH {apps}; Test advertises
  the extension and records what it found; a saved server is probed in the
  background, and stale ones at startup.
- createAgentCard routes tool mcp_app to recordMcpAppCall (async).
- index.ts wiring is net zero lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PR's own change shortens server/index.ts, so its pinned size drops to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/drivers/agents-call.ts
#	server/index.ts
#	server/section-context.ts
#	server/team-memory.ts
# Conflicts:
#	server/memory-upkeep.ts
The key still counts on title and input; the persisted chip shows the title,
as it did before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve server/skills.ts against the upstream comment cleanup: keep the
managed-link registry in skill-link-registry.ts and the task-folder
link root, keep upstream's shortened comments. Take upstream's ratchet
and pin server/skills.ts at its new 1405 lines. Trim the PR's own
comments to the new AGENTS.md comment rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/comms.test.ts
#	server/delta-context.e2e.test.ts
#	server/host-lazy-claim.e2e.test.ts
#	server/room-coordination.e2e.test.ts
Main CI on c5b5343c8 and the cleanup PR failed on Windows in tests that read
a result the server records just after the visible signal:

- spend-cap-api: usage counted 2 turns right after wait settled; poll for 3.
- index (computer waiters): the queue line showed before its
  turn.wait_started event was logged; poll for the event.
- group-goal-run: three real turns took longer than the 10 s polls; use
  hostTimeout(), which doubles them on Windows.

Also drops two comments the comment cleanup would have removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An app row (kind "app") draws the widget card's surface with a host-drawn
header (title, "Page made by <bot>" or "App from <server>", info and
Reload), mounts its AppDocument in a srcdoc iframe sandboxed with exactly
"allow-scripts allow-forms", and wires it to the shared bridge router with
a desktop adapter: rpc through the apps route with the Allow bar on a 409,
ui/message as appMessage on the send route, links through the desktop's
browser, model context through the context route. Engagement needs focus
to enter the frame while the pointer is over it, or at its edge for a
frame Chromium isolates. At most three frames run per window; a frame
mounts within 300px of the view, the one seen least recently is torn down
first, and a placeholder keeps its height. update_html and Reload tear the
old frame down before the new one mounts. ChatView folds the widget and
app cases into one RichMessageRow, which also draws "Sent from <app>"
under words an app sent; ChatView is three lines shorter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
electron/app-frame-guard.mjs lets a subframe with an opaque origin load
only about:srcdoc or about:blank, and cancels when the frame can no longer
be read (Electron throws on a disposed WebFrameMain, which uncaught would
open a modal error box in the main process). main.mjs installs it in the
main window's will-frame-navigate, at its ratcheted length.

scripts/smoke-app-frames.mjs builds a real AppDocument through the
server's show_html path, mounts it with the desktop's own frame host in a
page served with the app's headers, under the app's navigation guard,
window-open handler and permission handlers, and checks security rules 1
to 6 and 8 while an HTTP sink must stay empty. --engagement checks that a
click engages a frame, a second click moves it, and a frame that focuses
itself is not engaged. CI runs it in the macOS electron-smokes job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drawn under a server only when its listing reports a boolean `apps`, so it
appears once the MCP side reports the field. A press saves
PATCH /api/mcp/servers/:name {apps} and takes the listing back, as Enable
does. McpServersPanel stays at its ratcheted length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
skills_list shows each editable shared skill's revision, and skill_manage
sends it back as base_revision. An update without one, or from an older
read, is refused, so a stale rewrite never replaces a teammate's newer one.
test: make main CI green (Windows/Ubuntu races, incl. #2758)
Probing every command server when it was saved or switched on started it
for bots that cannot use it (openai-tools.e2e.test.ts: tools off, or an
empty selection, must never start the server). Now a command server is
probed by Settings → Test, or in the background only when a 1:1 turn whose
bot may use it finds no fresh catalog entry (that turn starts it anyway).
URL servers start nothing locally and are still probed on save, switch-on
and at startup. Automatic probes run at most every ten minutes per server.

index.test.ts expects the MCP server listing's new apps field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/superpowers/specs/2026-10-14-chat-apps-design.md
The approval gate refuses while any bot is busy, but the test only waited
for the Chief, so a slow runner could approve while another bot was busy.
The frame was given the theme's color-scheme only when it was created. After
a live switch (Meadow to Midnight) the View adopted the dark theme from
host-context-changed while its frame was still marked light, so Chromium
painted the frame an opaque canvas: a near-black slab on the Midnight card,
and a white one on Meadow after switching back. The frame host now sets the
frame's color-scheme with every theme it sends.

Seen in the isolated desktop run with @modelcontextprotocol/server-basic-vanillajs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step 4 of the spec's test plan needs a view that calls a model-visible tool
without readOnlyHint; the fake's view only sent ui/initialize. It is now a
minimal MCP Apps client: it initializes, shows the tool result, answers
teardown, and has "Paint it red" (paint_board: the Allow bar outside Full
access) and "Save board" (save_board, app-only: never asks), showing the
answer or the error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switching to another thread or bot unmounted the row, and the frame was
removed in the same moment the ui/resource-teardown request was posted, so
the View never received it (the spec asks for it before every unmount; the
pool, Reload and update_html already waited). In the desktop run, switching
bots with the debug view live logged no onteardown.

The frame host's new retire() moves the running frame with
Element.moveBefore (state kept, Chromium 133 on) into a hidden, inert place
off screen, asks the View to tear down there, and removes it when the View
answers or after a second. While it closes it is never engaged and its size
reports no longer reach the row. Where moveBefore is missing, or the View is
not initialized, the frame goes at once as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reply quote's screen-reader label is absolutely positioned, and nothing
inside the transcript's scroller was positioned, so the label was placed
against the pane around the scroller: thousands of pixels below the window.
The page then had overflow, and although the body does not scroll by hand,
script can scroll it. With "Sent from <app>" replies in the transcript, an
app View's own scrollIntoView() (scrolling its last line into view) lifted
the whole app, header and sidebar included, by 229px in the desktop run,
leaving a band at the bottom and no scrollbar to bring it back.

The transcript is now the positioned box for its rows in the 1:1 chat and in
rooms, so their positioned parts stay inside the scroller; the same
scrollIntoView now scrolls only the transcript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- An app named after its tool asks "Run Get Time?" instead of "Get Time
  wants to Get Time."
- A row whose server's apps are switched off says "Apps from <server> are
  switched off in Settings"; a disabled server says it is switched off, not
  that it is no longer connected.
- The server listing carries `hasApps` from the app catalog, and Settings
  shows "Show its apps in chat" only for a server seen to offer an app, or
  while it is off so it can be switched back on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gate also counts turns the bots list does not show, so a slow runner
can still see a refusal right after every bot reads idle. A refused
approval changes nothing; retry it until the gate opens.
Resolve against the Electron comment cleanup: keep its terse comments, keep
the listening grace and the per-check deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings → AI listed every Claude account as its own card, each carrying a
sign-in box, a second status line with Check account, a Manage section with
a terminal command, and its own Add account button. Pasting a working code
then showed "This sign-in session is no longer available" because the page
asked for the status of a flow the server had just closed.

- Claude and ChatGPT accounts share one card each. Every account is a row:
  its name, its email or "Not signed in", one Sign in button when it needs
  one, and a ⋯ menu for Rename, Sign out and Remove.
- Sign in starts at once and opens the provider's page. Claude shows two
  steps (open the page, paste the code); a code Claude Code accepts is the
  sign-in, a refused code says so with Try again, and a typo can be fixed in
  place. "Prefer a terminal?" keeps the exact command.
- Add another account asks only for a name (Claude can reuse a folder),
  then starts that account's sign-in.
- A Claude `auth status` that times out (an open Keychain prompt) keeps the
  last known state instead of reporting the account signed out; the check
  moves to drivers/claude-auth-status.ts. Window focus re-checks engines at
  most every 30 s, so dismissing the prompt no longer starts another one.
- Added ChatGPT accounts can be renamed and removed; removal signs them out
  first because their sign-in lives in OpenMausBot's data folder.
- Update notices in settings cards use a quiet button, so Sign in is the one
  primary action. Settings no longer opens the ChatGPT welcome dialog from a
  closed card.
- Removed ClaudeAccountSettings, CodexAccountSettings and the 40 strings only
  they used. The fake Claude CLI gains `FAKE_CLAUDE_AUTH=file` with `auth
  login`/`logout`, so sign-in can be clicked through end to end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot with connector scopes that called COMPOSIO_MULTI_EXECUTE_TOOL with an
argument name the relay does not parse (tool_calls instead of tools) was
refused with "<Bot> has not been given access to Composio ... do not retry".
connectorCallsIn() turns an unparsed batch into the opaque
COMPOSIO_PROXY_EXECUTE, whose toolkit is never granted, so the access check
blamed a permission that was fine. The bot stopped and told the person to
turn on a toggle that does not exist.

The relay already parses the frame with connectorCallFromFrame(), which
marks such a call unrecognized with a reason. The scoped refusal now uses
connectorUnrecognizedText() for an unrecognized call, and that text gives
the multi-execute shape: tools: [{ tool_slug, arguments }]. What runs does
not change: the call is still refused and nothing reaches Composio.

MOCA-344

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stop word within two words of a mention held that member, so
"@Engineer stop this bridge and uninstall it" paused Engineer and its
turn was refused as held. A stop word followed by a determiner and a
further word ("this bridge", "the render") takes an object and is now
read as an instruction; a bare "stop", "stop that" or "stop it" still
holds.
Accounts: one card per provider, one clear action per account, and Claude sign-in that says it worked
When an engine could not start the agents MCP server ("timed out" at chat open), a
Claude bot kept the process for the rest of the chat, so every later message also
had no way to reach other bots. Claude's system/init lists each MCP server's status
and Codex sends mcpServer/startupStatus/updated: when agents failed, the chat now
says so once, and a Claude session is retired after that turn so the next message
starts a process that reconnects. Codex already starts a fresh process per turn.

The Claude usage-limit helpers move to claude-limits.ts and the Codex guest
helpers to codex-guest.ts, keeping both drivers under the size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Archiving was a soft dismissal: the sidebar brought an archived thread
back the moment it was unread, working, queued, waiting on a teammate or
waiting on the person. People archive to see less, so a reply in an
archived thread looked like archiving had failed.

Now an archived thread stays out of the thread list, the bot's activity
rows and the threads-hidden list until the person unarchives it. It still
shows while it is the open thread, and under Show all and search. The
Active Threads panel still lists one while it waits on an approval, so no
approval is lost. A bot's unread dot no longer counts an archived thread,
the same way it ignores routine runs.

MOCA-312

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots often write `body { height: 100vh; display: flex; align-items: center }`.
The helper measured <html> at max-content, which a 100vh body pins to the
frame's own height, so the frame never grew and the content spilled out
above and below (a real "Coffee Counter" page showed half its cup and none
of its buttons). Both html and body are now freed of height, min-height and
max-height for the measurement and put back before the next paint. Pages
that do not pin themselves measure exactly as before.

The Electron smoke mounts a pinned 300px page and requires a 300px report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Routines dot, the errors pill and the unread Run logs rows light for
every failed or missed run without a seenAt. Deleting a routine cancelled
only its queued runs, so its earlier unseen failures kept the indicators
lit with nothing left to fix. The only reset was Mark all as read, which
also cleared every other routine's real failures.

remove() now stamps seenAt on the deleted routine's unseen failed and
missed runs in the same mutation that removes it, and emits those runs so
connected clients drop the indicator. Other routines' runs, the routine's
completed runs and runs already seen keep their state. A failed save rolls
the whole delete back.

Fixes #2837

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2840 deleted ClaudeAccountSettings and CodexAccountSettings with their tests,
but three docs/verification recipes still ran them, so verification-docs
failed typecheck + lint on main (9cedd311c) and every later CI job was
skipped. The recipes now run EnginesSettings and the sign-in interaction
tests, and describe the account rows: Sign out in the row's ⋯ menu, a
signed-out row with one Sign in button, and Add another Claude/ChatGPT
account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix main: verification recipes cite the account tests that replaced the deleted ones
Main's comment cleanup and file-size pass are kept; the chat-apps changes
are applied on top of them. Conflicts were comment-only next to our code,
except:

- server/chat-widgets.ts: createAgentCard's args are the AgentCardArgs
  interface under main's shorter doc comment.
- server/drivers/codex.ts, electron/main.mjs: the gate call joins one line
  and two stray double blank lines go, so both stay at main's ratchet.
- scripts/testing/file-size-ratchet.test.ts: main's numbers, with
  ChatView.tsx lowered to its real 1615 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A healthy teammate parking on a person-only gate surfaced only where it
waited: the approval card in its thread, the question under its reply.
The Chief of Staff — the role that exists to carry the section's news to
one place — heard nothing until the person relayed it by hand.

server/escalations.ts is the policy mirror of incidents.ts for the runs
that did not fail: escalationDeliverable holds the same reach retry_thread
demands, a per-thread EscalationLedger bounds repeat notices (3/hour), and
escalationText fences itself as data, not instructions — it names the
gate, quotes the one-line reason, links the gated thread, and assigns
nothing. The notice rides the same peerAsk incident lane as an incident
report: queued behind a running turn, never refused, and a refusal falls
back to the person.

Two automatic triggers: requestPeerApproval calls the new
ApprovalBus.onPeerApprovalPending hook the moment a card lands (the card's
own banner already buzzed the person, so the notice does not buzz twice),
and a teammate turn that settles ok with a trailing NEEDS INPUT question
escalates the question itself. The Chief's prompt teaches the "Team
escalations" thread; the fake CLI's scripted tool calls can now name a
launched MCP server so a fixture consult runs against the real harness.
The two automatic triggers cover gates the harness sees; the third kind
is the one only the bot knows: a permission, credential or decision its
work is parked on. raise_escalation mounts for every profile on the one
tool surface (docs/runtime-contract.md §9) and posts one reason line to
/api/internal/escalate, which runs it through reportEscalation like the
automatic gates — same fence, same ledger, same Chief reach, and a
Chief's own flag is the person's to hear.

The tool's answer tells the bot to say it stopped and end its turn: the
flag does not interrupt the run. A muted thread (three escalations in
the window) gets a 429 with the same guidance, and peer-provenance now
fences the notice's opening the way it fences an incident report's.
chiefForBot gives a Chief no Chief, so a Chief raising its own gate — or
any bot without a Chief on duty, or one the reach fence excludes — falls
back to the person: one incident-shaped push carrying the escalation
chip, no Team escalations thread of its own, no dead end. T4 pins the
push and the absence.
Upstream now defaults new bots to full access, which auto-allows a
consult with no approval card. Pin Ada to ask mode so the gate the
escalation reports still exists.
The 2026-10-13 skill audit caught three importer defects:

- parseSkillMd stripped a leading or trailing quote from every frontmatter
  value, so a description ending in a quote imported truncated
  (prove-it-works), and written skills re-emitted parsed descriptions raw,
  so any description containing ': ' came back out as invalid YAML
  (show-me-your-work). The reader now unwraps only a matched quote pair
  (unescaping " \ \n, folding '') and a new yamlFrontmatterValue emitter
  double-quotes anything ambiguous, used by writtenSkillMd, which now
  round-trips the description, not just the name.
- writtenSkillDescription stripped surrounding quotes before trimming, so
  padded input kept its quotes into the stored frontmatter; trim first.
- fetchSkillDir listed only markdown files, so non-markdown siblings and
  subfolders never reached the install and skippedFiles reported [] while
  their references were silently dropped. Every other folder entry now
  comes back as a path-only file and lands in skippedFiles/warnings;
  SKILL.md is always downloaded even past the markdown cap.

Imported SKILL.md bytes were already stored verbatim, so extra frontmatter
fields (disable-model-invocation, allowed-tools) survive install; a test
now pins that.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A determiner followed by an urgency word or the bot's own work is not an
object of the stop word, so these keep holding the member.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
#	server/memory-capture.ts
#	server/memory-upkeep.test.ts
#	server/memory-upkeep.ts
#	server/team-memory.ts
The timeout message reports how long the probe waited, which is longer than
60 s once the child has said it is listening.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BadDeviceToken and DeviceTokenNotForTopic are judged per APNs environment
and topic, so a wrong-environment registration no longer deletes another
installation's working one; a 410 keeps registrations newer than Apple's
timestamp. Trim new comments to the AGENTS.md rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/drivers/claude-auth.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's comment deletions, drops the PR's narration comments, and
keeps server/index.ts at its ratchet size: the idle window default and the
reset note move into room-context.ts, and dispatch() does takeReset plus
dispatched in one call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep only what the code cannot say: the security rules of the app frame
(sandbox tokens, CSP, navigation guard, engagement, fences around app
text, what never reaches a view or a log), the WebKit, Chromium,
Electron, Android WebView and MCP Apps protocol facts, the wire and
config doc comments, and the scripts' usage lines. Spec pointers, rule
and slice numbers, file pointers, banners and narration go.

app-host.html is unchanged (same sha256), so the phone copies need no
regeneration. server/index.ts's ratchet drops to its real 18022 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's comment deletions and drops the PR's narration comments.
recallRooms/recallThreadIds move to recall.ts and also serve auto-recall,
so server/index.ts shrinks (ratchet lowered to 18018). The coordinate_bots
addition is condensed to stay inside the non-chief wire budget, and its
retry rule now matches the Chief prompt (fix and retry, never unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's comment deletions (a recorded rerere resolution had restored
some; redone by hand) and trims the PR's own comments to the wire-type doc
and the CommonMark facts. buildMentionNotification now takes the store and
the room, so server/index.ts keeps its ratchet count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/drivers/claude.ts
Version-gated flags such as --tools were passed when the version was still
unknown, so an older CLI got flags it rejects. The temp folder is now removed
even when spawning throws or the removal fails, and a review that throws
outside the model call gives up only on the steps it covered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's comment deletions and trims the PR's comments to the vendor
facts. Keeps server/index.ts and server/drivers/claude.ts at their ratchet
counts: the 600000 ms cap lives in system-prompt.ts (prompt and hint read
it; the driver test pins the env to it) and is set in claudeEnvironment
before the inherited env so a person's own value wins; the timeout hook
result is built in shell-timeout-hint.ts; the PostToolUse spill-to-file
moves to tool-result-spill.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/memory-upkeep.ts
#	server/team-memory.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/index.ts
# Conflicts:
#	server/drivers/claude.ts
Bring in 24 reviewed PRs (Oct 15)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reconcile toolErrors.correctiveRounds with upstream's extraction of the
config-status types into src/state/config-status.ts:
- ConfigStatus now lives in config-status.ts; toolErrors field added there.
- store.tsx re-exports the types and keeps the frame's toolErrors Optional
  (Omit + Partial) with configStatusFromFrame defaulting an absent section
  to 0 rounds.
- config.ts keeps toolErrorsConfigSchema and the toolErrorCorrectiveRounds
  getter; adopt upstream's reworded localVm/keep-warm comments.

# Conflicts:
#	server/config.ts
#	server/drivers/openai-chat.ts
#	src/state/store.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guard's chip now keys a tool start on its title and input (toolItemKey), as main's fold does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main moved Jump to latest into the composer dock's run-card row; the
icon-only style now applies to that button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps only the driver fix and its tests; the sign-in route and test-fixture
changes carried from the closed shared-fix branch resolve to main, which
already covers them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Standard (the old 42rem / 78% cap) is now the default and Wide and Full
width are opt-in, so wide windows keep today's layout. The shared sign-in
and CI test fixes that rode along are dropped in favour of main's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps ChatView and GroupView inside the file-size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps Sidebar.tsx inside the file-size ratchet now that the previews take
the interface mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the comment-cleanup conflicts, keeps main's CI timeouts and test fixtures, and moves list_threads/close_thread into server/routes/internal-threads.ts so server/index.ts shrinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SettingsModal is over the size ratchet, so the two Appearance select rows
live in their own module and the listed size drops to 1188.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The composer's quote-chip state and keys live in useComposerQuotes and
mentionQueryAt moves to lib/mentions, so Composer.tsx stays inside the
file-size ratchet. The add-to-prompt handler ref is updated after commit
instead of during render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sign-in card route tests duplicated main's sign-in-cards.test.ts and no longer matched its deps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes main's room-context tracker and comment cleanup, keeps the move of the room transcript into server/host/room-transcript.ts, and trims the new modules' comments to their invariants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's journalTurnWrite (restores the readMemoryDoc import it needs)
and keeps a listed file's baseline when it cannot be read, so it is not
journaled as deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BotListItem now reads the interface mode, and this test calls the row
outside a React render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's comment cleanup and room-threads, routed-by and store changes; trims the new modules' comments to their invariants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests that mock CitationUI no longer lose the composer's hook, and the
direction test keeps checking the comment editor that remains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve against the comment cleanup and keep the ratcheted files from
growing: learned-skill storage (reference helpers, the reviewed-revision
publish) moves to server/skill-storage.ts, and the skill request card
helpers (copy, Undo's previous version, references, the scrub pass) move
to server/skill-request-card.ts. Regenerate the agents catalog goldens and
shorten the references schema text to stay inside the catalog budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve against the comment cleanup: keep main's room broadcast with the
share note dispatch, trim the new comments to the AGENTS.md rules, lower
the server/index.ts ratchet and regenerate the agents catalog goldens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bulk routes now live in server/routes/tasks.ts and channels.ts and
share one refusal and cleanup helper with the single delete, so both
follow main's current rules: a channel thread is refused per id while it
is running, instead of the whole channel. The store bulk delete
replaces the single-delete path; the selection keeps changes made while
a delete runs; the request loop lives with the bulk bar instead of the
store. To stay under the size ratchet, the connector tool grant parser
leaves store.ts and StackedMauses leaves Sidebar.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both Cloudflare accounts are full (openmausbot.com 996/1,000 tunnels,
mausbot.si 197/200 DNS records) with installs queued, and about 280 held
addresses belong to installations not seen for over 3 days.

- OMB_TUNNEL_OFFLINE_RECLAIM_DAYS goes from 7 to 3, and its floor from 7 to 3.
- A tunnel that never connected is freed after 2 quiet days instead of 7.

The guards are unchanged: Cloudflare must report the tunnel down or never
run, the installation must not have called the control plane for the same
period, nothing may hold the row's lease, and cleanup re-reads the tunnel
before deleting. A returning installation gets its same hostname back, so
paired phones keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve against the comment cleanup (usage text now lives in
server/cli-usage.ts; sentinel dispatch sits beside the headless verbs),
trim the new comments to the AGENTS.md rules, lower the server/cli.ts
ratchet, and rescan when a pending queue wait crosses the threshold even
though no source file changed (state.queueDueAt), with a regression test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Escalation notices, the Chief's prompt line and the raise_escalation tool now need features.chiefEscalations. Incident and escalation delivery share one helper in server/host/chief-notices.ts (moved out of server/index.ts), the escalate route lives in server/routes/internal-escalate.ts, a delivery fault never breaks the gate or the turn fold, the approval hook runs after the card's pending entry exists, and a NEEDS INPUT question on an assigned thread stays with its assigner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's catalog gained show_widget/update_widget and a longer coordinate_bots description; the bridged goldens follow, and two lexical-ranking cases now use phrasings the current descriptions do not shadow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
execCommandApproval sends argv, which answersAlone and shellRequest read as no command, so at Full access the driver approved it alone and the fold never saw it. The argv is now quoted for POSIX sh and judged like any other command line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The feed is off until Settings > Appearance > Notification feed turns it
on, so no new bell appears over the chat by default. The server logs
through message-db's logNotification in notify() and the spend alert, a
thread's feed rows go with the thread, and the routes need no wiring
beyond one push. Panel strings move to en.json, read marks use api(),
the panel follows main's sign-in and mention kinds and its thread
switch, and the feed reducer and the thread navigation helpers leave
store.tsx to keep it under the size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The quick-model route moves into routeDirectTurn, so startTurn only asks
for it, and the usage ledger and the context measurement both name the
model that ran. A simple line stays on the configured model when the
thread's last context would fill more than 60% of the quick model's
window, and compaction and computer-selection turns never route. The
bubbles render from a ConversationalReply module; usageSummary moves to
src/lib/chat-usage-summary.ts and settledWithin to control-client.ts so
ChatView.tsx and index.ts stay under the size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A corrective round only clears the pending failure once the model actually
re-runs a tool batch. Previously the latch was cleared when the corrective
round was fed back, so a text-only answer that never re-ran the failed
operation ended the turn with ok:true. Now:

- the corrective feed leaves toolFailed set; a text-only answer after it
  still ends with tool_error (bounded by the configured cap).
- the latch is cleared at the start of a tool-call batch, so a corrective
  round that re-runs the operation (and it passes) can complete the turn ok.

Addresses CodeRabbit review on #2417: 'Keep the tool failure pending until
recovery succeeds.' Adds regression tests (no-tool corrective answer stays
tool_error; successful retry completes ok) and updates the design doc.
The branch carried an older team-rename-guard test from a merged main batch
(db7814aa); upstream later replaced that area (a74233368). Keep the file at
upstream/main so the PR ships only the toolErrors feature.
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/index.ts
#	server/skills.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-proxy.test.ts
#	server/index.ts
#	server/skills.ts
#	shared/skill-request.ts
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/index.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/config.ts
#	server/index.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/config.ts
# Conflicts:
#	server/config.ts
# Conflicts:
#	docs/verification/context-compaction.md
#	server/config.ts
# Conflicts:
#	server/index.ts
#	src/state/store.tsx
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	server/config.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/config.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/config.ts
# Conflicts:
#	server/index.ts
#	server/routes/sign-in.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/ApprovalCard.tsx
# Conflicts:
#	src/components/GroupView.tsx
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	src/components/Sidebar.tsx
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/index.ts
#	server/routes/sign-in.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	src/components/Sidebar.tsx
A move from the Windows app restored C:\ paths onto a Linux Cloud: routine
prompts, standing instructions and memory still named the PC's data folder,
bots kept working folders that do not exist there (turns failed before the
engine started), the data-folder match was case-sensitive (c:\ vs C:\), and
nothing told the person which folders and files did not come over.

- Restore rewrites the source data folder wherever it is written, case
  insensitively for Windows sources: path fields as before, plus bot
  instructions (and their SOUL.md mirror), room instructions, routine prompts
  and memory files. Only that exact prefix changes; the rest of the text is
  kept, with its separators turned into this computer's.
- From another kind of computer (Windows to Linux or back), a bot's, room's or
  conversation's working folder outside that data folder is cleared, with the
  engine sessions tied to it, so it starts in its own folder.
- Those folders and the files instructions name there are kept in the restore
  receipt (up to 20), served with the copy status, and the desktop says so in
  one line after the move.
- The lending switch and its copy say "this computer" instead of "this Mac".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud customer could not reconnect Gmail. A toolkit whose only accounts
were dead (FAILED, EXPIRED, INACTIVE, INITIATED from earlier sign-ins) still
demanded a label, a retry with the first attempt's label got 409 "already in
use", an EXPIRED account showed a green check with "Add account", and a bot
with no grants or a failed tools/list had no connector tools at all.

- One planner (shared/connector-account-link.ts) for the broker and the
  project-key path: a label is required only beside an ACTIVE (or
  status-less) account; a label held only by an account that is not active
  is freed by revoking and deleting that account before the link; a label an
  active account holds stays 409; the replaced account does not count toward
  the five-account cap.
- Apps: only an ACTIVE account counts as connected (check, count, header
  icons). An app with no working account shows "Signed out" and Reconnect,
  which removes the newest dead account and links again under its label;
  dead rows beside a working account get their own Reconnect.
- Connector card: an alias-required or label-taken answer shows a label field
  instead of resending the refused request; the card route takes that label.
- Connector proxy: a failed tool result that reads as signed out
  (USER_NOT_LOGGED_IN, 401, no connected account, not logged in) gets a note
  telling the bot to call COMPOSIO_MANAGE_CONNECTIONS to reconnect the app.
- COMPOSIO_MANAGE_CONNECTIONS is advertised even with empty grants, with a
  short prompt line; tools/list is retried once in the proxy, and the
  harness answers a failed or rate-limited listing with that backend's last
  good list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every failed-turn row a Cloud home writes is counted in an in-memory ledger
(one tap on store.onChange) by kind, code and engine, with counts, times and
random bot and thread ids. GET /api/cloud/health, signed by the Admin like
pairing (cloudRequestSignature over method, path and query), returns that
ledger since a cursor, turn rates, routine outcomes, engines, connected apps,
browser, memory, load and disk, at most 64 KB. It never carries a failure's
words, names, titles, prompts, URLs, addresses, tokens or engine accounts.

The Admin's signed routes move out of server/index.ts into
server/routes/cloud-signed.ts; health reads have their own nonces and never
count toward the pairing lockout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Chief with ~10 Codex teammates on a 2-CPU Cloud home lost 7 of 10
assignments to shutdown_timeout. Too many app-servers started at once, a
startup call timed out, and the relaunch's kill check ran out while the child
was already dead: SIGCHLD is read in the poll phase, after timers.

- procs: at a kill deadline, yield once and check again; waits also wake on
  the child's exit. Add waitForExit.
- codex: cap concurrent app-server startups per host at max(2, cpus), queued
  with a "waiting for a free slot" notice. Startup RPCs time out after 180 s.
  One relaunch path waits for the exit instead of failing the turn. settle()
  keeps retrying a failed stop for about a minute, then completes. Archived
  sessions are unarchived, or rebuilt from replay.
- retry_thread: the 409 names the state it found, and the failed incident is
  filed once the thread has settled.
- retry: "workspace routing discovery failed/timed out" is transient.
- routines: the prompt opens with "do this now"; a run that failed
  transiently before doing anything is queued once more; paths for another OS
  get a warning.
- memory: on a Cloud home, turns whose notes would be refused are told to put
  facts in their result instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Codex bot with no Codex login (Move to Cloud leaves sign-ins behind) still
started Codex, which reconnected for up to a minute and then showed the raw
"401 Unauthorized: Missing bearer or basic authentication" text. Codex's
ChatGPT usage-limit text ("Upgrade to Pro") read as MausBot's Pro plan and
offered Retry.

- Before starting Codex for its own ChatGPT sign-in, a missing or unreadable
  auth.json is checked with `codex login status`; "not logged in" ends the turn
  at once as setup: "Codex isn't signed in on this computer…" (plus a My Cloud
  line on a Cloud home). A login Codex reads elsewhere (keyring) is remembered.
- Codex's missing-credentials 401 gets the same sentence.
- A refused or credential-less 401 before anything streamed runs the turn again
  once when a ChatGPT login is readable and Codex launched without it (or another
  Codex rewrote it), instead of marking every Codex bot signed out.
- Codex's usage limit becomes "Your ChatGPT account (used by Codex) reached its
  Codex usage limit. This is OpenAI's limit, not your MausBot plan." with Codex's
  reset time; the failed turn links to Codex usage instead of Retry.
- Codex error wording and the login check move out of codex.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both PRs folded the Codex driver's retry sites into a relaunch() helper. This keeps
#2883's relaunch(reason, failure, failedStop), which never ends a turn as
shutdown_timeout, and moves #2884's sign-in race retry onto it
(relaunch("auth", raw, "auth_required")). A turn now checks the Codex sign-in
before it waits for a launch slot, so a signed-out bot never holds a slot.
Ratchet: codex.ts 1906, routines.ts 1879, ChatView.tsx 1617.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(codex): fail fast without a login, retry a login race once, word Codex usage limits plainly
fix(move): bring a Windows PC's paths over to My Cloud and say what stayed behind
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
fix(connectors): reconnect expired apps instead of looping on account labels
control-plane: free Secure HTTPS addresses after 3 days offline, never-connected after 2
Browser takeover: take() checks once with the engine whether a bot call
that never answered has ended, and grants control when it has. A refused
single input event is sent once more, and an unanswered input or command
whose read behind it answers is settled instead of needing a restart.
Restart browser from the panel works while the browser is interrupted or
every busy bot waits on a sign-in card for it; the bot is told its pages
are gone. A view another window holds says so instead of dropping clicks.

Time budget: one module holds the proxy's 130 s and the harness's 120 s
budget. Browser calls count the lane wait, cap the engine call and the
reads after it, and answer as a lost call if anything still overruns;
cloud computer calls answer within the budget too. The proxy tells a
restarting server, a restart mid-call and a timeout apart.

Cloud computer claim: the computer list is read once more after a network
failure; a claim that stays unreachable leaves the turn running and the
next computer call claims again (at most three times). With the included
credential, messages name MausBot Cloud's computer service, not boat.dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Cloud homes report content-free health to the Admin's signed read
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/index.ts
#	server/system-prompt.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/message-db.ts
#	src/components/SettingsModal.tsx
fix(browser, cloud computer): take over after a lost bot call, answer before the proxy gives up, re-claim after a network failure
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/index.ts
#	server/workspace-backup.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.110
The room's hold notice is stored as a failed tool row named by the hold line, so the
scanner reported every deliberate hold as a high-severity harness failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #2883 the process stop returns at the exit, before the pipes close. Dispose
then returned while the stopped sign-out still held the account's lock, so the
next sign-out was refused ("A Claude sign-in is running for this server
account"). The release CI gate failed on it on macOS; it fails 12 of 12 under
CPU load locally and passes 12 of 12 with this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Windows runner the restoring computer writes paths the same way as the
PC, so its folders are correctly kept; the test models a move to a Linux Cloud.
Main CI's windows vitest shard 4/4 failed on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The tool-bridge goldens mirror the escalations profile #2848 added, and use it as FULL.
- The compact approval card's renderer-only string leaves the approval.held.* namespace,
  which is reserved for notes the server sends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: the two CI failures on the 0.1.110 release commit (sign-out lock on dispose, Windows move test)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Journal writes are queued; the route flushes them, a raw existsSync does not, so on a slow
Windows disk the second bot's file was checked before its write landed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every fenced block opened unwrapped: CodeBlock seeded its wrap state
from false and no fence spelling could ask otherwise. Parse the fence
info string where mdast-util-to-hast splits it, across the code
element's language class and its data.meta. Any word equal to wrap,
in either half and regardless of case, seeds that block open, and the
first word that is not the token names the language the badge, the
highlighter, and Save receive.

Mermaid keeps its precedence on the resolved language, so a diagram
still renders, and a directive-opened block still unwraps and rewraps
from the Wrap toggle.

Co-Authored-By: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-Authored-By: GLM-5.3 (Architect) <noreply@z.ai>
Bring in 30 reviewed PRs (batch 2)
- The Chief tidying test expected a handoff to sit queued with its teammate idle, but the
  runtime dispatches on its next tick once the teammate is free: accept queued or running,
  and keep the 409 a Chief gets for closing it.
- The Qwen debug-log test gave the log read 400 ms before the idle guard fired. Widen it to
  1.5 s with 3.5 s of silence; with no retry line in the log the turn still fails, so the
  keep-alive is still what the test proves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Android tab is only rendered while a device is connected, so a stored
"android" view has to fall back with it; the persist effect reads the stored
view it rewrites rather than the normalized one.
Discovery starts from an empty list, so the stored "android" view was written
off before the first device check answered. scanned on the hook's status
separates "no device" from "not asked yet".
A failed or unavailable adb resolves to the same empty device list as a real
"no device", so the gate also reads the status' reasonCode.
The panel's triggers are role=tab, whose selection state is aria-selected; aria-pressed is not a valid state for that role.
Same tablist semantics as the cloud-preview e2e: the Data and Browser triggers expose their selection as aria-selected.
A pending, failed or unavailable adb check must not write off the stored
"android" view; the hook's `scanned`/`reasonCode` contract and the panel's
persisted fallback are locked together through a fake native bridge.
A Cloud moved from a Windows PC before a506dd118 kept naming the PC's data
folder (C:\Users\<name>\.openmausbot) in bot instructions, room notes, routine
prompts and memory, and kept path fields the case-sensitive match missed. The
restore's fix runs only at restore time, and tidyCloudMoveStorage deletes the
staged manifest (the only record of sourceDataDir) on the first boot after a
move, so those Clouds were never repaired.

- repairMovedWorkspacePaths runs once on a Cloud home's start, before config,
  the Store or routines read anything, when the move's receipt lacks
  pathsRewritten. A Cloud home has one data folder, so the one other default
  data folder (a path ending in a .openmausbot segment) its definitions and
  instruction files name was the old computer's; with exactly one, it is
  rewritten with restorePaths, as a move does now. None or several: nothing
  changes.
- Routines keep their on/off state; paths outside that folder (Documents)
  are left as written.
- Each file it changes is copied first to .backups/path-repair-<id>/; the
  receipt is marked so it runs once. It never throws, so it cannot stop the
  server from starting.
- New restores write pathsRewritten: true, so the repair skips them.
- INSTRUCTION_FILE moves to workspace-backup-paths.ts for both callers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test: two timing races the Windows runners hit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On 0.1.110 a bot asked "what would you like the new day(s) and time to be
for the team sync?" in text: the guidance covered the first request only.
Now every reply that asks for something the person could pick (a date, a
time, days, a duration, whether to go ahead, one of a few options) is a
form, follow-ups included, and a change to something that already exists
(a routine, a reminder, a booking, a setting) is shown prefilled with its
current values and saved with confirm.

The tools/list budget baselines move up for the three profiles this pushes
past 2%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Composio relay held every send (email, message, post, payment) and all
workbench code on a "Send on your behalf?" card at every approval level,
Full included. Full is the default level, so most bots asked before each
send. Full now relays sends directly and logs them as auto-approved;
below Full the per-bot outbound policy (ask, or a daily allowance) is
unchanged. Connected-app scopes and tool grants still refuse at Full.

The card's summary building moves to outbound-requests.ts so index.ts
does not grow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Full access sends through connected apps without asking
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hint a bot gets back from show_widget now:
- says when a widget has fields but nothing that sends them (a form with no
  confirm, no submit and no button), which left the person stuck;
- reads "Time of day" as a time, not as days of the week;
- no longer suggests a TimePicker for "each time", "every time" or "how many
  times a week".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves the crash-log writer into diagnostics.mjs to make room in main.mjs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.111
- A folder part or file My Cloud cannot read answers 503 instead of being left
  out of the listing, which read as deleted and deleted the PC's copies.
- Linking a folder whose Cloud copy vanished registers it under a new id, so
  no record of the old copy applies to the empty one.
- A folder whose copy is a link reads as missing; turning off with delete
  trashes synced files, keeps what sync never carried and never follows a link.
- Deleted files restore into their folder even when it no longer syncs or a
  bot folder emptied (the trash remembers where they came from).
- Open uploads count against the 1 GB reserve.
- A file that fails while it is served ends that response, not the server.
- The change long poll no longer blocks workspace backups and restores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A folder the scan cannot read stops that folder's pass instead of reading as
  empty, which deleted the Cloud copies.
- A side that loses three or more files at once is treated as lost: the record
  is dropped and whatever is left is copied back, never deleted on the other side.
- A file edited during the pass is neither moved nor sent to the Recycle Bin.
- Paths from My Cloud are checked: none outside the folder, none through a link.
- A case-only rename on My Cloud renames the file here instead of deleting it.
- One folder's error is that folder's problem; the other folders still sync.
- A timed-out upload part goes again smaller; a slow transfer fails that file,
  not the whole pass.
- A link to the home folder, a mount point or a volume root is too broad; a
  folder inside a synced one folds into it.
- Turning sync off and keeping the copies keeps the record, so turning it on
  again does not duplicate folders or raise clashes.
- Closing twice (before-quit runs twice) is safe.
- Move to Cloud turns sync on only for a move this app saw start, as chosen then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After an edit or version switch, the engine starts a new session and the
earlier messages come back as replay text. Only the current message went
through extractTurnImages, so an earlier screenshot reached the engine as a
raw <attached-image path=…> tag and no image part. The bot then had to copy
the attachment's UUID path into a file tool, and a mistyped path failed with
FileNotFound (#2877, seen on Grok).

When a turn replays the transcript as text, extractReplayImages now sends the
newest replayed user images natively again, within the per-turn image count
and byte limits, and strips their tags from the replay. Older tags that do not
fit stay as text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows shards took 30-35 minutes after the Oct 15 batch, so shards that
were still passing tests hit the 35-minute cap and were cancelled. The
release gate reads a cancelled shard as a failed CI run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/index.ts
#	server/system-prompt.test.ts
# Conflicts:
#	server/workspace-backup.ts
The horizontal tab row no longer handles Up/Down, so those keys keep their normal scrolling. Every panel is a tab stop now: the Computer view opens with plain text, and APG asks for all panels of a set to be focusable when any panel's first content is not. The row's padding fits the global focus outline, which the overflow clip used to cut above and below the pills, and the isolated fixtures pick tabs by role or selector now that a selected panel carries its tab's name.
Codex's model list comes from the installed CLI: updating 0.155.1 to
0.162.1 adds gpt-6.1-sol for the same account. OMB read the list at
startup and on a manual refresh only, so after an in-place update the
"Update Codex" notice went away but the picker kept the old models
until a restart.

The Codex driver now records the CLI version its model list came from
and reads the list again when its status check sees a different version.

Fixes #2838

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 2s device poll lets overlapping adb checks answer out of order, so a late empty list could erase a device a newer check had just found and write off the stored "android" view.
A focus effect can persist a newer view in the same commit, so a render-time storedPanelView could overwrite it with "computer".
Resolve conflicts with upstream newestAts, connector-tools, bulk select and
group-thread changes. Move thread stamp helpers to src/state/thread-stamps.ts
and fold noteThreadActivity's loops to stay within the file-size ratchet.
The bot's browser had no file upload and no hover. Asked to attach a
CV or a PDF, a bot built the file in the page with eval, sometimes
started a local web server to serve it, and once sent the application
without the file. agent-browser 0.37.0 has upload and hover only in its
156-tool "all" profile, so OMB adds agent_browser_upload and
agent_browser_hover itself, as it adds restart_browser, and runs them
through the daemon's relay with the same lanes, control gate and page
change as the other tools.

Upload takes only the conversation's attachments, its working folder and
the bot's workspace, after symlinks are followed. An attachment reaches
the page under the name the person gave it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI: give Windows and macOS vitest shards 45 minutes
fix(codex): read the model list again when the Codex CLI is updated in place
feat(browser): let the bot upload the person's files and open hover menus
fix(move): rewrite the old computer's data folder on Clouds moved before v0.1.110
Keep main's turnStartLogLine (spoken turns hidden) and log it at info level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Form's submit sends only the fields inside that Form, so a field next to
it in the Card was dropped without any advice to the bot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gives the wrap directive's lines their own lines instead of packing them,
and lowers the ChatMarkdown size ratchet to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves the tab triggers, panel wiring and keyboard model into
computer-panel-tabs.ts and derives the visible tabs and the resolved view
from one list, so ComputerPanel.tsx shrinks instead of growing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the 141 strings English gained since the pack was drafted, refreshes the
9 whose English changed, drops 40 keys English no longer has, and re-accepts
the source hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preview and the turn each built it inline; one helper keeps them equal
and keeps server/index.ts from growing with the replay-image change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fold helpers through the bulk-select footer (no grouping while selecting),
move the group row and thread-row reveal hook into SidebarThreadRow, and
re-add task.helperGroup on top of main's locale packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the 1,166 strings English gained since the pack was drafted, refreshes
the 152 whose English changed, drops 108 keys English no longer has, and
re-accepts the source hashes. tr-TR already resolves to tr, so the separate
tr-tr alias is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Carries the tab list refactor so the two panel changes land together, and
moves the Android fallback into useAndroidTabFallback so ComputerPanel.tsx
keeps shrinking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The vendor question handler moves out of acp/core.ts into acp/question-requests.ts, and the ACP session-allow key into permission-command.ts, so core.ts shrinks. Pi always loads its extension now that it carries ask_user, so the no-extension branch is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Corrective rounds are now `loopGuard.correctiveRounds` (0-5, default 0), active only
with the loop guard on, like its note and stop. The loop guard's note and stop do not
reach bots on API models; this is the part that does, so it lives in the same config
section and the same docs section (self-hosting.md "A bot stuck on a failing command").

Changed from the branch:
- Dropped the separate `toolErrors` config section, the Settings > General card, its
  parser, the en/zh strings and the store/config-status plumbing: config only, like the
  rest of the loop guard.
- The pending failure is cleared by a new tool batch only after a corrective round was
  sent and only while no denial was recorded. The branch cleared it on every batch, which
  changed the default (rounds 0): a failure or a denial followed by any other tool call
  ended the turn ok. With rounds 0 the driver now behaves exactly as main.
- The corrective message is framed as harness text ([OpenMausBot: ...]).
- Tests: five compact driver tests (cap, text-only answer, recovery, denials including
  one during a round, default unchanged); three use no MCP process. Config test in
  loop-guard.test.ts. Dropped the design doc, which described the removed UI.
- server/index.ts stays below main's line count: withRecalled moved to recall.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Move create into server/routes/instances.ts (server/index.ts gains nothing);
  removal reuses the existing DELETE and its in-use refusal.
- Base URLs must be http(s) with no user name, password, query or fragment;
  the instance list shows origin and path only, and never in hosted mode.
- The Settings panel reads the store's instance list, accepts CJK commas in
  the model list, and reports every failed request.
- The Other OpenAI-compatible server block moves out of SettingsModal.
- Route tests cover create, list, credential refusal, in-use and built-in
  removal refusal, and hosted read-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main moved pinned circles into PinnedCircleThreads with expandable thread
panels, so the reorder now lives there:
- one saved order (openmausbot.pinnedCircleOrder.v1) shared by the universal
  grid, the pinned section and the pinned thread list, instead of two orders
  that could disagree when both grids hold the same bots;
- native drag and drop plus Alt+Up/Down, like folder reorder; the separate
  pointer-drag path and its threshold helpers are gone;
- the pinned thread section moves next to the roster so it follows the order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- server/index.ts stays the same length: the route builds its own checker and
  joins an existing ROUTES.push line; a duplicate browser-engine import folds
  into its block.
- A Podman container (/run/.containerenv) is its own install kind with the
  deploy/podman update steps, instead of the Docker command.
- Version comparison follows semver prereleases, so 0.1.93-rc.1 sees 0.1.93
  as newer.
- The menu's request has a client timeout; UpdatePhase gains "available",
  which main's desktop updater no longer reports.
- Ticket references and narration dropped from comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An async question now opens the same request.opened question card every engine uses, so no approval level can
answer it and the server needs no second answer path. The driver steers the person's answer into the running
turn; once the turn has ended the request is unavailable and the existing late-answer path sends it as the
person's reply. The server-side async card, its wire flag and its e2e test are gone; driver tests cover the
steer and the late hand-off. requestUserInput's reply mapping moves into codex-questions.ts with it, so
codex.ts shrinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shard timeout change left scripts/ci-workflow.test.ts expecting 35, so
typecheck + lint failed on every main push since. Three later merges grew
server/index.ts by 24 lines and codex.ts by 5 past their ratchet numbers.

The bot and team package skill helpers move to server/skill-export.ts and
Codex's Custom approval_policy parsing to codex-approval-config.ts; both
files' numbers go down to the new counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The layout row moves to AppearanceSelectRows so SettingsModal stays at its
ratchet, and the toolbar applies to main's labeled Tools section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The settings/env picker extras move into claude-model-extras.ts so claude.ts shrinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main already shows OS notifications from the server's notify frames. This keeps
that as the only path and brings in what the browser was missing:

- Settings → Appearance gains "Notifications on this device": the switch asks
  the browser for permission from the click, follows a permission changed in
  site settings, and mutes finished-work notices on this device only.
  Approvals, questions, sign-in and warnings always show.
- requestNotificationPermission resolves to the permission in force and
  survives a browser that throws.
- Dropped: the client-side new-message notifications (a second mechanism next
  to the server's done notice), the Android service worker and cold-start
  fragment routing, the planning docs, and tests that pinned those.
- The notification rows move out of SettingsModal into NotificationRows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both add question rows and helpers in the same places; this carries the two together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Green main: pinned shard timeout test, and shrink index.ts and codex.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main gained 13 native dropdowns since this was opened (Appearance font and
chat width, keep-warm, decision model, notifications filter, team settings and
memory, bot model and keep-warm, conversation turn limit, ...). All now use
<Select>; conflicted files were re-converted from main's version. Select owns
cursor-pointer, the guard allows width classes, and bot-built widgets keep the
widget kit's own field and chevron. Ratchet numbers lowered for files that
shrank.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	src/lib/i18n.test.ts
#	src/locales/index.ts
#	src/locales/source-hashes.json
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	src/components/SettingsModal.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Shared folders go this computer -> My Cloud only, from folders this computer
  registered itself (never a path My Cloud names). Many files gone at once wait
  for the person; a missing folder is never read as deleted; links and hard links
  are kept, never deleted.
- Bots' work comes My Cloud -> Documents/MausBot only, from now on: never deletes
  here, keeps the person's edit (the new version lands beside it), sends a
  replaced file to the Recycle Bin, never writes agent or tool config, and marks
  downloads (Mark of the Web, quarantine).
- My Cloud: shared copies are read-only, a 2 GB / 15% reserve, no recursive file
  watch (a bot's turn ending says its folder changed), no move op, attachment
  headers on downloads, and a prompt that says the copies are read-only.
- Removed: two-way merging and clashes, auto-discovered folders and relinked
  Cloud bots, Choose on this PC from the Cloud page, the tray item, Open at
  login, and automatic disk growth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A top-level Files page: share folders on this computer with My Cloud, see
each one's status in one line (with the next step where one is needed),
stop sharing, how full My Cloud is, and a switch to save what bots on My
Cloud make into Documents › MausBot. It reads and acts only through
window.ogb.cloudAccount.files; main decides every path.

The sidebar shows a Files row in Simple and Advanced mode while main says
this app has a Ready My Cloud (files phase other than "unavailable", so a
signed-out or offline My Cloud keeps it). A finished move to My Cloud
that left folders here offers "Share them with My Cloud", which opens
Files with those folders to check and share in one confirm.

Removes the PR's old renderer: CloudSync, the move's keep-in-sync
checkbox (cloud-move-sync), and Choose on this PC in bot Access
(link-pc-folder), with their copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in batch 3: 23 reviewed PRs, combined
This reverts commit 65ffa1a025, reversing
changes made to 9b95b9f54e.
browser-upload used /etc/hosts as the outside file, which Windows does not
have, so the refusal said 'does not exist'. The moved-path repair runs on
Cloud homes, which are Linux; on a Windows runner the data folder is itself
a drive path, so its Cloud-home cases are skipped there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Turkish and Vietnamese packs landed after the quote chip and carry its
four strings; remove them with the English keys. Keep mentionQueryAt in
lib/mentions so Composer stays within its line ratchet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test: fix main's Windows-only failures and the Vietnamese mode-name check
The panel remembers each conversation's tab in localStorage. On Node 24 (CI)
happy-dom's storage works and one test's Data click chose the next test's
tab; locally on Node 26 the bare localStorage is Node's unconfigured one, so
it never showed. Each test now gets a fresh in-memory store. The dropdown
guard compared Windows paths against a '/'-joined exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Files: share folders with My Cloud and get your bots' work (simple v1 of #2906)
In a one-to-one chat your bubble now runs from the brightest shade of the
bot's hue that still carries its text at 4.5:1 (top right) to a deeper shade
turned away from yellow (bottom left), the same angle as the mascot's body.
Yellow keeps a bright amber fill with dark text instead of darkening to olive
under white. Every surface inside the bubble (links, code, quotes, mentions,
selection) is checked against both ends of the gradient.

"Color my messages" is now on unless someone turned it off. Rooms keep the
neutral bubble.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test: isolate computer panel tab tests; dropdown guard on Windows
Revert "add selected text to the prompt as an inline quote chip" (#2530)
A new switch, "Also use my Claude Code skills" (features.claudeUserSkills),
under "Also use my Claude Code MCP servers" in Plugins → MCP servers. When it
is on, OpenMausBot keeps one link, <data>/claude-user-skills/.claude/skills →
~/.claude/skills, and Claude turns get --add-dir for it. Claude Code then
loads each skill as it is on disk, scripts and references included, and
picks up edits within the session. The isolation flags stay, so hooks, MCP
servers and the personal CLAUDE.md stay out and a bot with a tool selection
keeps working.

The turn fields that come from Settings (Claude Code MCP servers, the skills
folder, the MCP call timeout, corrective rounds) are now built once in
server/turn-settings.ts for both the direct and the room turn. The MCP switch
moves into ClaudeCodeSwitches.tsx with the new one.

Checked against Claude Code 2.1.295: with --strict-mcp-config,
--setting-sources project and --add-dir pointing at a symlinked skills
folder, the CLI found and used a skill; without --add-dir it did not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Claude bots can use my own Claude Code skills, in place
Cloud customers connect through the managed broker, whose Sessions were
created without `auth_configs`, so a toolkit Composio doesn't manage auth
for (HighLevel Location) failed with "Composio does not manage auth for
toolkit highlevel_location and no auth config without required fields is
available". The own-key path in server/composio.ts already reads the
project's custom auth configs and creates Sessions with them; the Worker
now does the same.

- listCustomAuthConfigs(env): GET /auth_configs?is_composio_managed=false,
  paged, newest enabled config per canonical toolkit slug; cached in the
  isolate for ten minutes, a failed read logs, keeps the last good map and
  retries after a minute so requests never fail on it.
- createSession posts `auth_configs` when the map is non-empty.
- verifySession recreates a Session that lacks the current auth configs
  once (same Composio user id, so every grant stays), updates D1, and
  remembers the attempt per session + map so an echo without
  `auth_configs` can't loop; a new auth config triggers one more upgrade.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The client secret lives only here; the harness holds a random state and
collects the sealed token payload once. Rows live ten minutes, keyed and
wrapped by HKDF derivations of the state, so D1 holds no usable secret.
Per-address rate limits; 503 until the secret is set.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Connected apps gets a HighLevel card (also Growably and other
HighLevel-based CRMs) next to the Whop card: Connect opens HighLevel's
sign-in through the server flow (POST /api/highlevel/sign-in, poll every
1.5 s, Cancel deletes the flow), a Private Integration token fallback
posts {token, locationId}, connected shows "Connected · <location>" with
a Disconnect menu (confirmed), and a lost connection offers Reconnect.
The server's own in-progress flow is followed after a reload without
reopening the page. A card hidden when the server reports unavailable.

Bot settings: botAppsFrom merges "highlevel" (name HighLevel) into the
per-bot app list only while GET /api/highlevel says connected, cached
like the Composio inventory; AccessSection reads the same list so the
read/write/off control shows HighLevel and sets connectorScopes.apps
.highlevel; tool-by-tool grants stay Composio-only. A native HighLevel
connection counts as a configured connected app where Composio is not
set up (Cloud home).

Locales: highlevel.* keys in en.json; i18n:check passes.

Tests: driver (start/open/poll/cancel/failure), the card in happy-dom
for every state and action, useBotApps merge rules, AccessSection scope
rows, PluginsPanel grid/count/visibility.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Encrypted token store, API client with relay refresh and rate budget, the 20 HIGHLEVEL_* tools behind
/api/internal/highlevel/mcp, owner routes under /api/highlevel, mounts in every driver, prompt parts and
Cloud health merge. Tests and docs follow.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The server reports highlevelMcp next to composioMcp on an engine's
capabilities; either lets a bot's Connected apps switch and per-app
scopes work. Adds the capability to InstanceInfo and a test for the
derived flags (capability OR, HighLevel counting as configured).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Fake HighLevel API and fake relay (spec §9 contract), client/rpc/sign-in unit suites, a real-server e2e
(connect → scoped tools → write activity → refresh → revocation → disconnect → token), docs/highlevel.md.
Driver mounts compacted so the size ratchet only moves down there; index.ts pinned at its new count.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
HighLevel CRM: native integration (connect, 20 scoped tools, no Composio) — part 2
control-plane: HighLevel OAuth relay (part 1 of the native HighLevel integration)
composio broker: sessions use the project's own auth configs (HighLevel and other BYO-app toolkits)
feat(chat): color your messages with a gradient of the bot's color, on by default
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
control-plane: HighLevel app client id
- Grant editor inventory test: HighLevel's tools are listed whenever its relay is
  configured, so grants can be set before connecting; the test now expects them.
- Desktop crash log on Windows: an O_APPEND handle there has no plain write access,
  so truncating a full log failed and no crash was recorded again. Windows now opens
  without O_APPEND and writes at an explicit offset (POSIX unchanged).
- Files tests on Windows: the unreadable-folder case is POSIX-only (chmod cannot
  make a file unreadable on Windows); the sync-root case compares with the
  platform's own join.
- Room sessions e2e on Windows: the fixture waited only for the OS to report the
  fake's pid gone; the server's child "close" can run later, and a turn sent in that
  gap reused the dead warm process, whose recovery resumed the old session. The
  mode switch now settles 2 s on Windows after the pid is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: main red (HighLevel inventory test, Windows crash log, Files and room-session tests)
chore(release): bump version to 0.1.112
Today's engine (agent-browser) now starts a real Chrome instead of the
headless shell wherever this machine has one: the person's installed Google
Chrome (unless an organization manages it), else Chrome for Testing
153.0.8010.47, downloaded once with its size and SHA-256 checked before it is
unpacked and moved into place in one rename. Linux desktops without Google
Chrome, and platforms without a pin yet, keep the bundled shell as a fixed
choice. Docker and Cloud keep the Chrome for Testing they name.

The browser reports exactly what that binary reports headed: a generated
launcher (sh, or .cmd on Windows) adds AutomationControlled off, the
binary's own user agent (whole: agent-browser's AGENT_BROWSER_ARGS split it at
its comma), the primary display and, when known, language and TZ; a second
DevTools connection gives every page, cross-site frame and worker the
binary's own client hints before it runs, again after every relaunch. The
identity is read from the binary once per version. AGENT_BROWSER_HIDE_SCROLLBARS=0
drops --hide-scrollbars. The browser status names the choice.

Measured on an Apple silicon Mac with agent-browser 0.37.0: user agent equal
byte for byte in the page, a worker, a service worker, a cross-site frame and
the request headers, client hints complete and equal in all four, page
1280x720; the four public bot tests go from 0/4 (headless shell) to 3/4. The
fourth is agent-browser's Runtime.enable, which the new driver removes.

Rollback: OMB_BROWSER_LEGACY_SHELL=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pipe and WebSocket transports, a connection with flat sessions, timeouts
and a per-session method allowlist that refuses Runtime.enable,
Runtime.addBinding, Console, Debugger and Profiler, main-world scripts and
uncontexted evaluation. On top: browser-level auto-attach with the
calibrated identity on every page, frame and worker; accessibility
snapshots stitched across out-of-process frames and closed shadow roots
with refs that keep their element and are never reused; trusted input
(Puppeteer's US layout), actions with actionability and hit-testing,
isolated- and page-world evaluation with t3's limits, dialogs, file
pickers, downloads, popups, tabs, waiting, page health without Runtime,
screenshots, the screencast and the filled-secret guard. Not wired into
the product.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The launch recipe (headed UA flag and real display in headless, no
automation switches, sandbox on unless an operator opts out), a launch
over --remote-debugging-pipe that diagnoses a missing sandbox or
libraries (from t3's PreviewBrowserHost), calibration of the binary's own
headed identity once per binary, the profile store with its quiet
preferences and downgrade guard, and the process registry and sweep.
Binary resolution stays with the resolver; everything here takes a path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Snapshots across frames and shadow roots, refs (t3's cases rewritten),
every action, navigation, dialogs, downloads, popups, tabs, both
evaluation worlds, waiting, page health, screenshots and the screencast;
the calibrated identity against the headed browser and across page,
worker, service worker, out-of-process frame and request headers; the
Error.name leak probe; Chrome exiting after its controller is killed;
the latency targets; and a trace of every command checked for forbidden
methods. Runs when OMB_CDP_CHROME or OMB_CDP_E2E=1 provides a Chrome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bot-tests calibrates the binary, launches it headless with the honest
identity, visits sannysoft, CreepJS, browserscan and deviceandbrowserinfo
read-only while snapshotting, and prints each verdict and the CDP
methods sent. snapshot and calibrate are there for debugging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A refused setup command (the method guard, say) failed the tab silently
and waitForPage gave up after 15 s with a generic timeout. It now
rejects at once with the setup error, also for a tab that failed before
anyone waited for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A browser-driver job on the vitest platforms (Linux and Windows on PRs,
macOS too on main) runs the S4 suites against the runner's Google Chrome,
under Xvfb on Linux for the headed-identity case, then inside the server
image's runtime as a non-root user. It stays outside the CI gate until it
has run green for a while; the guard and source-scan unit tests already
run in the required shards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cap test passed without closing anything: Chrome's popup blocker
lets one click open one window. It now opens one popup per click and
waits for the second to be closed. The Linux leg installs Xvfb rather
than assume the runner has it, and the screencast case asks only for a
couple of frames from slower runners.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome inherited the launching process's HOME, which the test setup (and
any wrapper) may point at a temporary folder. The launcher now gives it
the home the user database names for the account, and USERPROFILE too
on Windows. The launcher's unit tests are split per module, with cases
for the home and for the mock keychain on every macOS launch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The container leg ran as the runner's uid with HOME=/tmp. It now runs as
maus with its real home, as the server does in that image, with only the
repo root and Vitest's cache opened for writing. The job moves to the end
of the workflow, and the driver's notices sit with the other ported code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Files service tests ran with platform "linux" against real Windows paths, so
  every folder looked private on Windows. They now use the real platform.
- The desktop passes Electron's home folder to the Files service (as it already
  passes Documents). The channel test no longer depends on the runner's real home,
  whose AppData holds the temp folder on Windows; picking home is now "too-broad".
- The unreadable-folder scan case is POSIX-only (chmod has no effect on Windows).
- The chart PNG test renders twice and each render scans the system fonts; a busy
  Windows runner took 42-67 s against a 40 s limit (4.5 s normally). It gets
  hostTimeout(60_000).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The resolver builds a host's paths with that platform's separators, so its
  tests pass on Windows too; the update fingerprint accepts either separator.
- The launcher runs once with --version after it is written: a data dir that
  cannot run it (a noexec volume) keeps the engine's own browser instead of a
  browser that never starts.
- Every Chrome the launcher starts stays off the person's keychain or keyring
  (--use-mock-keychain on macOS, --password-store=basic on Linux), and on
  macOS runs with the person's own home whatever HOME the server has: a test
  fixture's temporary HOME made Chrome show "keychain cannot be found".
- The identity harness and its e2e give agent-browser and Chrome the real home
  from the user database, not the test runner's temporary one.
- The e2e uses the Chrome OMB would pick on the runner (its installed Google
  Chrome), which also exercises the Windows .cmd launcher; Linux Chrome reports
  an empty platform version, which the completeness check now accepts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first CI run on Windows showed --window-size=1280,863 giving a
1264x712 page there (macOS and Linux get 1280x720). The browser now
measures each headless window once and resizes it until its page is the
viewport (1280x720 unless another is asked for), so pictures, boxes and
clicks agree on every platform. Both runners also took over 30 s for
their first Chrome launch, so the pipe handshake waits up to 60 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Readiness is checked through document.readyState instead of the clock, a
full-page picture is as wide as the document (a classic scrollbar takes
15-16 px outside macOS), the page is asserted 1280x720 and a fitted
window gets the viewport it asked for. Suites allow two minutes for a
runner's first Chrome launch, and the Docker leg runs even when the host
leg failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tab reports the URL it is opening before that page replaces its first,
blank document, which is not a secure context and has no client hints.
A slower first start (the Windows runner's installed Google Chrome) read
that document and reported no brands; the read now repeats until the page
itself answers, and says what it saw if it never does. The e2e also logs
which agent-browser and Chrome it drove.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Browser pages no longer get the owner's loopback trust. A request a browser
sends (it carries Sec-Fetch-Site or Sec-Fetch-Dest, or is a WebSocket
handshake with an Origin) needs a session unless it carries the desktop
app's owner header. The desktop app now adds that header on WebSocket as
well as HTTP, and no other Electron session may reach the local server.
Programs (the CLI, scripts, curl, the companion) are unaffected.
`openmausbot serve` and `openmausbot pair` print a sign-in link for a
browser on the same computer; `pnpm dev:server` keeps trusting local
browsers through OMB_DEV_TRUST_LOCAL_BROWSER, which builds, the desktop
app, hosted workspaces and Cloud ignore.

The companion's control port requires a per-launch token, handed over by
the desktop app or printed in the standalone pairing link.

Every Chrome OpenMausBot launches for a bot sends its connections through
an egress gate: a SOCKS5 server per browser session that resolves names
itself and applies a per-host policy (desktop, self-hosted server, Cloud).
It never reaches OpenMausBot's own listeners, cloud metadata or
link-local addresses; Cloud reaches only the public internet and dev
servers a bot started (found through Linux socket ownership); self-hosted
servers can allow more with browserEngine.egress.allow. Refused
connections are reported in the bot's next browser result. The gate and
listener-ownership code are adapted from T3 Code (MIT). agent_browser_read
works on the open page only, and every launched Chrome stays off the
system keychain or keyring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An install now clears only the partial files an interrupted one left (older
than the download timeout), never a download still running elsewhere in the
same data dir. The launcher's --version check gets 10 seconds, not 30, so
preparation stays well inside the 45 seconds a browser call waits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: Windows CI for 0.1.112 (Files desktop tests, chart render timeout)
With Google Chrome on the Linux and Windows runners a single resize
landed short of the asked size; the fit now re-measures after each
resize, up to three rounds, waiting for the page to take the new size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The phone-pairing smoke now gives the sidecar its control token at spawn,
as the desktop app does, and checks that a tokenless control request is
refused. A standalone sidecar takes OMB_CONTROL_TOKEN when a script
chooses one, so the iOS verification and fixture capture scripts can
reach its control port. Also corrects when the guided start prints its
sign-in link in the self-hosting docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Google Chrome's startup tab carries a 56 px bar the other tabs lack (the
Linux and Windows runners show it; Chrome for Testing does not), so a
window fitted to that tab gave every later tab a taller page. The tab is
now measured when it opens and whenever it comes to the front.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
posthog-js 1.415 adds the page URL (with query and hash), host, path, referrer and campaign parameters to every event and to the person's $set/$set_once, again as $initial_* and $session_entry_* copies. On a Cloud page that is the tenant's host, and desktop query strings carry ids. start() now turns off referrer and campaign capture and URL hashes, and a before_send removes the rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every product event property is a count, a boolean or a word from a fixed list; anything else becomes "other". message_sent and call_started sent the bot's instance id as driver, which for an added account is a per-install uuid or a name from config.json; they now send the engine slug. The curated Composio slugs move to shared/ so the server's list and the analytics list cannot drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PUT /api/config answers a Boat key boat.dev refused (401/403) with code key_rejected, and the desktop's credential:set throws a KeyRejected-named error for it, since Electron passes only error.toString() to the page. Settings rows, the Computer panel's Boat row, a bot's chat request card and Add server each report provider, where it was saved and the result: ok, rejected, unverified or error. Never the key or anything derived from it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An in-app engine sign-in that succeeds reports the engine (claude, codex or grok) and how (code, device_code or browser). Creating a bot in the New bot dialog reports whether it started blank, from a built-in role (recorded on the draft) or from a preset. A Connect in Connected apps reports its curated app, or other, and how it ended; its polling moves to its own module, which ends each poll once and never after the panel closes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once the app has loaded, and then hourly, the owner's or an admin's app sends app_snapshot at most once per UTC day per app page: own keys by provider, where cloud computers come from (own Boat key, a Cloud plan, or none) and how many, bots by computer, rooms, teams, routines by kind, engines, connected apps, voice, decisions, paired devices, plan and edition, as counts, flags and allowlisted words. It checks the opt-out before it asks anything, and leaves out what a source could not tell.

The cloud computer count comes from a new admin-only route registered by the computers module: it lists Boat read-only (adoptLegacy: false), so a count never adopts a legacy computer or touches the create and deletion journals, and it returns only two numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/analytics.md (and the same page on the docs site) says what is sent, what never is, how to turn it off (per app page), the allowlists, the daily snapshot and every event with its properties. A test fails when an event the app sends is missing from it. Settings → Usage analytics says what the daily count holds and links to the list; its row moves out of SettingsModal. The 11 translated subtitles no longer match and fall back to English until they are drafted again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Saved logins gain a site (registrable domain, private suffixes via tldts),
  sign-in hosts and an exact-host option. Older records get their site on
  read; the file stays readable by the previous release.
- fill_login submits by default (Enter, else the form's sign-in button,
  through the relay), goes through two-step logins in one call, never
  submits twice, and clears the filled password and code when the site
  refuses it, asks again or shows a CAPTCHA.
- agent_browser_eval is refused on the page for a minute after a fill
  unless the page moved; a form left for the bot is cleared after that.
- A sign-in card saves the site and the sign-in page open on it; a sign-in
  page on another site only when the person ticks it on the card.
- 1Password vaults can be narrowed to chosen bots in Settings, Logins; a
  vault not granted is invisible to a bot.
- The bot's prompt lists saved logins by site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Sign-in card routes (Done, Cancel, Save a login and its save target) answer
  a card in a thread the caller cannot see as one that does not exist: a room
  thread can be narrower than its bots.
- Saving a login from a card checks the card again after reading the bot's
  page, so a card answered or replaced meanwhile saves nothing.
- A username-first sign-in page on another site counts as a sign-in page, so
  the card can offer its host.
- fill_login treats a page that marks itself busy, or disables its form's
  submit control, after Enter as sent, and does not press the button as well.
- The test page runs a click's own handlers and the browser's form checks
  before the site answers a form.
- The eval-guard tests no longer rely on a 40 ms window: a long hold with the
  clock moved past it, the person taking the browser in the same tick, and
  fake-timer tests for SecretHolds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves the gate port to its own line in the session spec and in the
engine's input, so a launcher setting added next to the Chrome attach
option no longer touches the same lines. No change in behavior: a
session that attaches to the person's Chrome still gets no gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The connected-apps verification replaced the harness's browser arguments
with its host mapping, dropping the credential-store flags; it now adds
the mapping to them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PostHog privacy
- posthog-js 1.415 posts /flags on load and every 5 minutes, also after
  opt-out, with the stored first-page URL, host and referrer as person
  properties; before_send never sees it. start() sets
  advanced_disable_flags (the app reads no flags) and removes
  $initial_person_info, $initial_referrer_info and $initial_campaign_params
  that earlier builds stored.
- Opting back in sends no $opt_in event (captureEventName: false).
- analytics.wire.test.ts runs the real posthog-js behind a recording
  network stub on an install holding a stored first page: only event
  batches leave, none carries an address, the keys are gone, and nothing
  is sent in the 16 minutes after switching off.

Correct counts
- app_snapshot: one xAI key counts once (no xai_image); archived bots are
  left out of every bot count; the snapshot waits for webhooks except in
  the desktop app as a remote client.
- message_sent and call_started name a built-in instance's engine where
  /api/instances is not readable (members, guests, paired devices), from
  a fixed list pinned to the server's default fleet by a server test.
- connector_connect judges the account the Connect added against the
  app's accounts when it began: a retry beside an abandoned attempt ends
  connected, and Add account no longer reports the working account.
- api_key_removed is sent only when an own key existed (not for a
  managed Composio connection).

Tests and docs
- Real-server test for GET /api/computers/usage (no Boat account, and a
  counted Boat); NewBotDialog drives the starting-role Select; wiring
  tests for the Computer panel key row, the App shell's snapshot hook and
  the snapshot's per-page bridges; cloud_plan mapping tests.
- docs/analytics.md lists PostHog's $identify and product_hunt_card's
  not_now; the drift test parses the Events table rows exactly and checks
  the docs-site copy is the same page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Logins fill on their whole site, submit in one call, and 1Password vaults per bot
Browser driver that never enables Runtime, and a Chrome launcher (not wired into the product yet)
Bots browse in a real Chrome that reports itself as Chrome
Analytics: count own keys, cloud computers and daily usage (no keys or content)
Brings in the real-Chrome launcher (#2925), logins that fill anywhere
(#2929), the CDP driver (#2928) and product analytics (#2931).

fill_login now takes its browser from botBrowserTarget(), which becomes
async and builds a session's spec with that session's egress gate, as
every other bot browser does; the sign-in card's page read awaits it.
The file-size pins match the merged files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's browser takes the prepared Chrome launcher and its egress gate
together; the gate's proxy and arguments now go last, so no launcher
setting can route Chrome around it, and launcher arguments are kept
beside the gate's. Tests cover both together, and the saved-login
check confirms fill_login's browser commands carry the gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The identity check builds its browser as the server does, so it now
opens a gate with desktop rules for it, as the evidence suite does, and
checks that the probe page loaded through that gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The calibration Chrome now talks DevTools over --remote-debugging-pipe
instead of a loopback port, so while it runs there is no DevTools port
on this machine for a page to reach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Harden local access: browsers sign in, companion control needs a token, bots' browsers go through an egress gate
Windows checks files out with CRLF, so the docs table parser and the
App.tsx shell check never matched there and main's Windows shards failed.
Both tests now normalise line endings when they read a file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix main on Windows: analytics tests read CRLF files
The engine runtime, the live view, the session a bot's browser is and the
integration a turn mounts move to server/host/browser.ts unchanged, behind a
createBrowserHost factory index.ts calls where the block used to be.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pipe launcher takes the gate's port and adds gateChromeFlags, and every
Chrome OpenMausBot starts gets its keychain or keyring flag from
credentialStoreFlags, the agent-browser launcher and identity calibration
included. A window can open at the page size asked for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A viewer attaches its own session to a tab, for its screencast and input,
  without becoming a tab itself.
- The page size is no longer fixed: setViewport resizes the real window of
  the tab in front, so outer and inner sizes stay consistent.
- Tabs can hold basic and digest challenges for an answer (Fetch with
  handleAuthRequests on document requests), instead of failing them.
- A tab session restore reopens takes its URL and loaded state from Chrome's
  frame tree, and titles set after load come from Target.getTargets.
- A command Chrome never answers is marked, so a caller can tell it from a
  slow page; the agent's pointer can be shown before a click, hover or drag;
  the person's Chrome can be driven in its own tabs only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Workspace backups (and so Copy to My Cloud) carried highlevel.json.enc and
  highlevel-key: the HighLevel connection and the key that opens it. Its refresh
  token rotates on every use, so the copy also signed one side out. Both files
  (and their atomic-write temps) are now excluded like saved website logins.
- The Files page refused ~/.ssh, ~/.config and the like, but not ~/.claude,
  ~/.codex, ~/.gemini or ~/.grok, where the AI CLIs keep their sign-ins. Those are
  now "private" too, with any folder inside them.

Mutation-checked: each new assertion fails with its fix reverted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One Chrome per profile, started on a bot's first call and closed after it
sits unused, with the tools, the control rules and people's viewers on top.

- SessionControl is T3 Code's, verbatim; ProfileControl wraps it so a person
  holding any tab holds the whole browser and every bot call is refused,
  reads included. Takeover drains running work for 15 s, then grants anyway
  and marks the browser uncertain; release lets go of held keys and buttons.
- A call past its budget latches the browser uncertain; the next call
  probes Chrome and answers recovered or still busy, never replaying it.
- 21 tools with T3 Code's semantics under agent_browser_* names, plus
  restart_browser; every name agent-browser advertised is accepted with its
  arguments. Answers keep the page-change and page-health lines, and a
  snapshot stays near 20 KB.
- Popups become tabs named to the bot, downloads are listed in status,
  dialogs wait for agent_browser_dialog, HTTP sign-in prompts wait for a
  person, at most 8 tabs per browser and 32 per server, and the least
  recently used idle browser closes when the computer's cap is reached.
- Viewers each get their own session and screencast (JPEG q70, at most the
  viewer's size in device pixels, acked 100 ms after arrival, half size at
  q50 while scrolling, a still once frames settle, paused while the bot
  takes a scaled picture). In fill mode the real window is resized to the
  latest viewer's panel, 1280x800 with nobody watching; presets letterbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiveV1 serves GET …/browser/live and POST …/browser/action from the new
browser with the same events, fields, limits and refusals. A phone's session
(watch, take, navigate, tap, type, Enter, scroll, tabs, back and forward,
reload, hand back) was recorded from the agent-browser engine into
v1-golden.json by scripts/testing/record-v1-golden.ts; the adapter must send
the same event types with the same fields, and agree on who controls, the
tabs and the address after every step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The agent-browser launcher now reads a Chrome's identity through the same
driver calibration as the new engine (pipe launch, loopback page, isolated
world), keeps PR-1's strict check that refuses the headless shell and
reads without client hints, and caches it once per binary fingerprint in
browser/identity/. The launcher can also prepare a Chrome without writing
agent-browser's wrapper, for the new engine.

Verified: scripts/testing/browser-identity.e2e.test.ts (agent-browser 0.37
and Chrome for Testing 153, page, worker, service worker and cross-site
frame byte-exact) and the S4 identity suite pass locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A centered dialog, first in the notice queue (id cloud-pro-update-2026-10), on
every installed desktop app whatever its plan: existing installs at the first
quiet moment after the update, new installs once onboarding is done. Never in a
remote client's window, on a Cloud home or on a branded build (which sells no
Cloud, so its checkout would refuse). It waits while the plan or the Admin's
offer loads, while another dialog or a call is open, and, offline, for a later
launch. Any button, the X, Escape or a click outside end it for good.

The main button follows the plan: with none, Start free trial or Upgrade to
Cloud Pro opens Add a Cloud with source update_popup; on Personal, Upgrade to
Cloud Pro, and on a trial, Pro or Max, Manage plan, open the Plan page. Compare
plans opens the pricing page with src=update_popup. Prices and the trial come
from the live offer.

cloud_pro_popup counts shown, upgrade, manage, see_plans, not_now and close
with the plan and whether the person is signed in to MausBot Cloud. A click by
someone signed in first ties their analytics to their Cloud account's email,
through identifyEmail without email_submitted, so that event still means the
first-run screen; all of it stays behind the analytics switch. docs/analytics.md,
its docs-site copy and Settings say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the Plan page or the pricing page can't open, the click is still
counted but the popup is not marked seen, so a reload offers it again;
it ends when the browser opens or the person closes it. While a new
account's offer loads, the popup waits instead of showing the previous
account's trial or prices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Going back to fill after the phone preset left the page 1010 px wide
  instead of 900: the window was fitted while the page still reported its
  emulated size. The emulation is now cleared before the window is fitted.
- restart_browser came back with the old tabs, because Chrome restored them
  from Default/Sessions. A fresh start now drops those files; sign-ins stay.
- A click that opened a confirm dialog answered after 30 s: the page was
  read again while the dialog blocked its scripts. It now answers in about
  20 ms.
- Opening a page that asks for an HTTP sign-in held the bot's call until it
  timed out. The navigation now returns while the sign-in waits for the
  person watching, and when nobody watching could answer it, the sign-in is
  cancelled at once so the site's own refusal shows, as with agent-browser.
- Erasing a profile removes its saved screenshots too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With browserEngine.engine set to "chrome" in config.json, a bot's browser runs
on OpenMausBot's own Chrome driver instead of agent-browser: its turns mount the
same browser MCP server, which now advertises the 21 new tools and
restart_browser, and the phone's and desktop panel's live view go through the
v1 adapter. Profiles that use the person's own Chrome stay on agent-browser.
The default stays agent-browser, so nothing changes until the flag is set.

- The internal MCP route, the live view, preview frames, fill_login, the
  sign-in card's page check, the system prompt, the browser status and
  deletion cleanup each go to the engine the session runs on.
- On a desktop the headless browser reports the computer's main display and
  its real scale (2 on a Retina Mac); servers and containers declare
  1920x1080 at 1x. OMB_BROWSER_SCREEN overrides it.
- Switching the engine is refused while a bot with a browser is in a turn;
  once switched, the viewers close and each browser the other engine ran
  closes, so the next call starts on the engine now chosen.
- Signed-in sites stay an agent-browser list, so the new browser says it
  does not list them yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It sets browserEngine.engine to "chrome" or back to "agent-browser", shows
the server's refusal when a bot's turn is running, and is off by default.
The built-in browser row moves, unchanged, into the same new file, which
keeps SettingsModal.tsx 47 lines shorter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browser driver job now also runs, on the runner's Google Chrome and in
the server image:

- server/browser/checklist.e2e.test.ts: tools and refs, a sign-in kept when
  the browser starts again, erase and temporary profiles, uploads,
  downloads, dialogs, popups, HTTP sign-in, a person's hold, restart and
  idle close (13 cases, about 8 s on Chrome for Testing 153).
- server/browser/viewers/viewers.e2e.test.ts: the page filling the viewer
  (1600x1000 gives 3200x2000 frames at 2x, a resize to 1200x900 gives
  2400x1800, 1280x800 with nobody watching), the latest viewer's size
  winning, the 390 px phone preset, frames waiting for acknowledgements, a
  scroll ending on a full-size frame, and the phone's v1 session against
  its agent-browser golden with no differences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the flag on, a bot's turn gets the browser MCP server over its own,
a shared or a temporary profile on the new engine and lists its tools
without starting Chrome; My Chrome profiles keep agent-browser's prompt;
the status names the engine; switching back forgets the new engine's
sessions. By default everything stays agent-browser's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new engine's minute-by-minute idle close and stray-process sweep ran
on every server, flag on or off: a process listing each minute, which on
Windows is a PowerShell query. It now runs only while browserEngine.engine
is "chrome". With the flag off, a server clears once at start what an
earlier run of the new engine left, and only when that engine ever made
a profile. Switching back to agent-browser closes every new-engine browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Erasing a deleted bot's or profile's new-engine browser now returns at once
when this data folder has no new-engine profiles, so deletions with the
flag off write nothing under browser/ (no workspace id is minted).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Buyers: Start free trial / Upgrade to Cloud Pro and now Compare plans open
  the Add a Cloud dialog (source update_popup), which lists every plan; no
  more pricing page in the browser.
- Payers (trial, Personal, Pro, Max, needs attention): Manage plan opens
  Settings → MausBot Cloud in the app instead of the Plan page in the
  browser. Personal no longer gets "Upgrade to Cloud Pro", which ended at the
  Plan page's "Change plan: write to us"; it gets Manage plan until
  Personal → Pro is self-serve. Payers see no Compare plans.
- Since nothing opens the browser any more, the "could not open your
  browser" state is gone from the popup.
- Tracking is unchanged: the same cloud_pro_popup actions, identify-on-click
  before the event, and source update_popup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Linux CI a browser restart raced a tab closing: the viewers' tab list
read the address of a tab whose session had detached, whose main frame
was already gone, and threw. The main frame is now typed as possibly
gone, every reader falls back (the address to the last one seen), and
the viewers' refresh after a start never leaves an unhandled rejection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Show every desktop a Cloud Pro popup once after the update, and track who clicked it
fix: keep the HighLevel sign-in out of backups and moves; never share AI CLI homes
New browser on OpenMausBot's own Chrome driver, behind a flag that is off by default
The desktop panel and the web UI get T3 Code's stream protocol on the new engine: one JPEG per binary
message, JSON for the rest, each frame acknowledged by the viewer before Chromium's own ack (paced at
100 ms), motion frames while scrolling and a sharp still after. GET /api/bots/:id/browser/stream is
the socket; POST .../browser/upload answers the page's file picker, offered only to the person holding
the browser; GET .../browser/download/:id serves a finished download. A dropdown list's options are
drawn by the viewer, since no frame shows Chrome's own popup, and the page's cursor shape is sent too.
Zoom works as Chrome's does.

The v1 routes move unchanged out of server/index.ts into server/routes/browser-viewers.ts, beside the
v2 ones, and WebSocket upgrades now pass one shared gate that the desktop viewer also uses. ws moves
from the dev dependencies to the runtime ones, since the server now serves it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SSH config OpenMausBot writes for VPS computers sets ControlMaster
auto, and its docs recommend the same in the user's alias. Once a
screenshot or docker command has opened a master, `ssh -N -L` for the
live desktop becomes a mux client: it asks the master to add the forward
and exits at once. openDesktopTunnel reads that exit as a failure, so
Take control answers 502 "Could not open the VPS live desktop", and the
forward stays behind in the master until ControlPersist ends.

Run the viewer tunnel with ControlMaster=no and ControlPath=none, so its
process lives as long as the forward and killing it closes the port.
Docker commands keep connection sharing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to #2936.

- Whether a desktop has seen the popup is now kept by Electron main
  (electron/desktop-prefs.mjs), not in page storage, and every page of the
  desktop's window reads it through a new REMOTE_SAFE preload key,
  desktopNotices. A desktop whose window opens on My Cloud or another saved
  server gets the popup there; showing it never switches the window.
  - My Cloud's page builds it from the plan main tells that page, read once
    main has restored the Cloud sign-in; a plan's Manage plan goes through
    cloudPlan.manage().
  - Another saved server's page is told no plan: it shows no plan, price or
    Compare plans, and its one button, Continue on this computer, makes main
    switch the window once (only on a click), after which This computer's
    page finishes the click: the Add a Cloud dialog (update_popup) for a
    buyer, Settings → MausBot Cloud for anyone else. Nothing opens a checkout.
  - "shown" is counted at most once a day per desktop, not per page load.
  - A close kept earlier in this computer's page's storage or hint record
    still counts and is handed to main.
- Any visible dialog holds the popup back, modal or not (role=dialog or
  alertdialog, aria-modal, the tour's cards), and it takes Escape only while
  focus is inside it, so the tour's spotlight and the calendar's Quick create
  keep their Escape.
- The analytics opt-out for this computer's page is kept by main too, so it
  holds whichever port the app's page is served on; it is read before
  posthog.init and identify, and an older localStorage opt-out moves there
  once.
- On close, focus goes back only when the popup still had it or it was lost.
- Docs (analytics, its docs-site copy, cloud-pro) say what the code does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From review: main's thisComputer callback answered true even when the switch
threw (workspaceMenuAction shows its dialog and resolves) or a local
environment switch returned { ok: false }, so a stale handoff could sit for
two minutes. It now answers false for both, and the docs separate the popup
coming back on a later launch from its once-a-day "shown" count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel is rebuilt on T3 Code's stream surface: a canvas that paints the newest JPEG frame, sized so
the page is the panel's own size at the screen's real scale (a 1600x1000 panel gets a 1600x1000 page
and 3200x2000 frames on a Retina Mac). A watching person sizes the page too; the first press takes
control, as before, and Shift+Escape returns to the address bar. The address bar, tabs, back, forward
and reload sit above it with a pill that says who holds the browser. Its menu sizes the page (fill,
desktop, tablet, phone), zooms it, and floats it in picture in picture. The page's file picker,
downloads, copied text, dropdown lists, dialogs, HTTP sign-in and the bot's cursor are drawn over it.

The v2 stream and what comes with it (filling, zoom, page sizes, picture in picture, pickers, lists)
run only with browserEngine.engine set to chrome. On agent-browser, the default, the same panel speaks
the v1 live view with the controls it had, so BrowserViewport and the input queue go: v1 is now an
adapter behind the stream client's interface, and it is also the fallback when a stream is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pnpm bench:browser-stream opens the v2 stream route the way the panel does, on the installed Google
Chrome with this computer's display, and reports the page and frame sizes, the time to the first
frame, input to photon for a key and a click, the frame rate, bytes and CPU while a page animates,
that a still page sends nothing, and the half-size frames while scrolling and the sharp one after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the v2 view draws a page's dropdown lists and cursor; the phone's v1 view shares the same hub,
so its presses on a list reach the page as they always did. A stream upgrade from another origin is
refused before the bot's browser is looked up, and files sent to a picker that has closed are
deleted at once. The panel tries the stream again after Reconnect or a profile change. The CI and
verification docs name the new suites and the benchmark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Linux a launch that fails is diagnosed by running the binary again with --version, which inherits
the test's own temporary HOME. The fake Chrome in the calibration test recorded that second run over
the first, so the test failed on main's Ubuntu shard while the launch itself was right. It now
records only the pipe launch (reproduced and checked in a node:24 Linux container).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The opt-in native acceptance waited for the old panel's image and its status text. It now waits for
the canvas to paint, the pill to say the person holds the browser, and the panel's own message while
the v1 view reconnects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v2 socket opens before the bot's Chrome has started, so the starting notice now lasts until the
first frame instead of ending when the socket opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ControlPath=none alone keeps the tunnel off connection sharing: with no
control path, ssh neither joins nor creates a master, whatever
ControlMaster or ControlPersist say. Drop ControlMaster=no and fold the
port check onto one line, so server/vps-computer.ts stays at the 1369
lines the file-size ratchet allows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Linux a failed Chrome launch is diagnosed by running the binary again
with --version. That second run inherited the server's environment, so
under vitest (temporary HOME) the calibration test's fake Chrome recorded
it over the launch and main's Ubuntu shard failed. The diagnosis now runs
in the environment the launch had, real home included, and the test
records every run: the launch's flags, and on Linux the --version run,
each on the account's own home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes from the review of the browser service:

- A click, hover or drag finds its element again after the pointer shown
  to watchers got there, so a page that moved meanwhile is clicked where
  the element now is. The phones' v1 view draws no pointer, so the bot no
  longer waits 200 ms for it.
- A size a viewer asks for (opening the panel, resizing it, a preset)
  waits for the action running on the tab in front, so a click never
  lands on a page that reflowed under it. Opening a panel does not wait.
- No headless window is larger than the screen the page is told about.
  A panel too large for the screen gets a page of its own shape, which
  the viewer scales up to fill it; a preset is cut to fit; 1280x800 with
  nobody watching shrinks the same way on a small screen. The driver
  also never grows a window past the screen.
- A panel narrower than any window is emulated on tabs that open later
  too, and bringing an emulated tab to the front no longer resizes its
  window.
- When a person's takeover outlasts a bot call, the bot's next call
  checks the browser and says it recovered, instead of answering "stuck"
  until a restart.
- A filled password's hold belongs to the tab it was typed in: an eval in
  another tab no longer ends it.
- Egress gate refusals reach the bot's page-health line: the gate is
  opened and read under the profile's key.
- A file picker is forgotten when its page navigates away, and the upload
  tool no longer promises a cancel it cannot do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ws is CommonJS and requires Node's own modules (events, http, crypto...). Inlined into the server's
ESM bundle, those requires went through esbuild's stub, which throws "Dynamic require of "events" is
not supported", so the packaged server stopped at startup. Each bundle now starts with a require
made by createRequire. pnpm test:packaged-server passes locally, and every bundled entry parses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome's first tab carries a bar the other tabs lack, so when a panel
asks for the largest page the screen allows, the driver's screen limit
can leave that tab a shorter page than asked. The window fit now answers
the size the page really got, and viewers are told that size, so their
input maps onto the page it shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The queued-resize test now holds the bot's snapshot for 800 ms and lets
the viewer in within 500 ms, and the stale-takeover test runs a 1 s
wait, so a slow Windows runner cannot finish the bot's work before the
person's request arrives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the panel open in more than one place, taking control re-sends this view's size, as T3 Code's
surface does, so the page fits the view the person is using.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new Claude process wrote the whole system prompt (stable + volatile) to
--append-system-prompt-file, so every relaunch with different memory,
mentions or turn context started a new cache prefix. Now the file holds the
stable half only and the volatile half arrives as a launch-form
<system-reminder> in the first user message, the same out-of-band channel a
live session already uses when that half changes. More per-turn sections
(plan, assignment, routine execution, webhook, setup, skill instructions,
playbooks) count as volatile.

Test fakes fold the launch note back into the system prompt they record, so
e2e tests read the instructions as the model receives them.
The decision model falls back to the key under Settings → API keys when it has none of its own. A key saved in its own field still wins. The shared key is only sent to OpenRouter's default address.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cream paper with a dot grid, white cards, ink borders, hard offset
shadows and a grape accent. Includes inverted user bubbles, sticker
depth on bubbles, cards and modals, a P3 block, Windows caption overlay
colors, and contrast and registry test coverage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fixes from the review of the panel and its stream.

The page and its picture:
- After the window is resized or zoomed, each viewer gets a still once
  frames stop. On a page that does not repaint, a drag used to end on a
  picture of an older size (6 of 12 drags on Chrome 155; now 0 of 12).
- A view that opens while someone holds the browser no longer resizes
  their page.
- A zoom, or a page narrower than any window, now applies to tabs and
  popups that open later, so clicks land where the person aims.
- A scaled still is captured on the session that zooms the page. Chrome
  155 resets a zoomed page's device scale factor after a scaled capture
  on any other session.
- A panel that outgrows its frame cap (full screen, say) raises it in
  place with a frameCap message. It used to reconnect, which dropped the
  person's control and their Take control pin.
- A reconnect opens with the newest size and frame cap the panel asked
  for, not the first ones.
- Picture in picture of the person holding the browser keeps playing.

Access:
- Every message on a v2 stream is checked as every v1 action is. A
  member who can no longer see the bot is cut off at their next message,
  and at once when an audience changes.
- Closing a stream lets its view go at once, releasing control and held
  input. Nothing the client sends afterwards reaches the browser, and a
  client that does not answer the close frame is cut off after 2 s.
- An upload is refused before its body is read unless the page's picker
  was offered to that person. Each person has one upload in flight.
- A site's HTTP sign-in prompt names its tab and challenge. The answer
  goes only to that challenge, and only while it is still open.
- A page's dialog text goes only to the person holding the browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A single file such as notes/report-2026-10-16T04:00:00Z.md anywhere in
the data folder aborted the whole export with "A workspace filename
cannot be safely restored on supported platforms." and no path, so
there was no way to find it among up to 100,000 entries. Names that
differ only by letter case were caught only after every file had been
copied, again with a generic message.

The creation walk now names the refused path and says why, like its
neighbouring refusals, and detects case twins as it walks, naming both.
The set of accepted names is unchanged, and restore-time validation of
untrusted archives keeps its generic wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A "Powered by boat.dev" line with Boat's logo under the header's support
  button, linking to boat.dev. The logo is boat.dev's own
  /ascii_logo_black.svg (unchanged); a white copy is shown on GitHub's dark
  theme.
- Boat joins the Powered By badges, and the services table notes it as our
  sponsor (it already runs each bot's cloud computer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README: Powered by boat.dev, our sponsor
From the review of the follow-up:

- My Cloud's setup card: AppNotices worked out its stage without the
  routine the first job made or a job just given, so a Cloud whose card
  finished by itself held the popup (and the trial notice) back for good.
  It now reads the stage as the card does, and the popup also waits while
  the card saying the Cloud is set up is on screen.
- My Cloud's Manage plan no longer opens the plan page in the browser. Main
  switches the window to This computer, whose page opens Settings → MausBot
  Cloud once nothing else is on its screen, counting `manage` there with the
  email tied first. Only My Cloud's own page, as main verifies it, can hand
  that click over; it stays until the popup is seen (or two minutes), so a
  StrictMode double mount or a reload does not lose it.
- Another saved server's page can only bring the window to This computer,
  once a launch while the popup is unseen; the popup asks again there, so
  no click is counted, no email tied and nothing opened for it. Main no
  longer marks the popup seen when it switches, so a failed switch leaves
  it for a later launch.
- Analytics: a desktop that turned analytics off tells the servers' pages
  in its window only that (they start with it off), and they cannot set the
  desktop's switch. While the desktop keeps no choice yet, a click on its
  page served on a fallback port is counted without the email.
- desktop-prefs.json (and the trial notices' file) is written to a
  temporary file and renamed, so a failed write keeps the opt-out.
- Docs: a removed sign-in also gets Manage plan; servers on an older
  version don't show the popup; the security overview no longer promises
  one switch for every page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to #2939: fix main's Linux test, clicks while watched, panel sizes and other review findings
The buying sheet signs in without the browser: main asks the Admin's
email-code route (POST /api/cloud/app/sign-in/start and /verify, the one
the phone apps use, with platform darwin, win32 or linux) and stores the
omc_ device token exactly where the browser approval's goes. The attempt
and the token stay in main; the page sees outcomes only: sent, wrong code
with the tries left, expired, single sign-on (403 sso), two-step,
sign-ups closed, device limit, rate limited, or "browser" where an Admin
has no email route. The browser approval stays as the fallback.

The checkout page the Admin returns is kept in main memory: Reopen
checkout opens that same page again (never a new checkout, so no rate
limit) and restarts the 30-minute watch; Copy link is main's to write.
Only with no page kept (the browser sign-in led to checkout, or the app
restarted) is the Admin asked once, and it reopens the open one. While a
checkout from this app waits for payment and setup, the session is read
every 3 seconds (30 minutes at most).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add a Cloud… always opens the sheet on this computer's page; the sheet
  says what is true (setting up, or one Cloud per account for now). The
  native "You already have My Cloud" box is gone, and with it the
  "My Cloud is not ready to connect yet" error during setup.
- openmausbot://cloud behaves the same with or without a checkout being
  watched: it brings the app forward, reads the session at once, and
  shows the sheet while a purchase from here is under way (else
  Settings, which signs in or opens the Cloud).
- While it is set up the buyer names the Cloud (28 characters) and picks
  one of six colours. Kept per account until the Cloud is listed, then in
  its Servers entry (environments.json name plus a new optional, validated
  color, and a home marker so the startup hint survives a rename). The
  native switcher draws the colour as a small dot (a PNG data URL).
- Ready: no notification while the sheet is open in the focused window
  (the sheet opens it itself); otherwise "{name} is ready", and a click
  opens it. Main forgets an open sheet when its page navigates away.
- New sheet channels (sign-in, reopen and copy the checkout, interest,
  name and colour, sheet open) live in electron/cloud-buy.mjs behind the
  same local-window guard; every argument is plain text checked in main.
  main.mjs shrinks by 22 lines (file-size ratchet lowered).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With exactly OMB_CLOUD_STAGING=1 in its environment the app signs in to
https://omb-cloud-staging.fly.dev (a constant, https; no address is ever
read from the environment, and any other value means production). It
keeps that sign-in in its own file, cloud-account-staging.bin, so
production and staging tokens never mix, and opens only Dodo's test-mode
checkout (https://test.checkout.dodopayments.com, as the Admin's
cloud-billing.ts checks) there; production still opens only the live
one. Every Cloud call follows the client's origin (account, sign-in,
session, checkout, pairing); Files follows the machine the session names.
States from the staging Admin carry staging: true so the sheet and
Settings can say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One sheet for every way in, built with the app's tokens, ui-button
styles and lucide icons so all nine skins draw it (checked in Midnight,
Daylight and the other seven), and still in reduced motion.

1. Choose: what MausBot Cloud is (five benefits, a small illustration),
   the Admin's plans as radio cards (arrow keys; the Admin's recommended
   plan preselected and marked Most popular, never Pro by itself), each
   with its price, cloud computers at once and three allowance chips;
   then Due today, the money in one line ("Card needed, nothing charged
   for {days} days. Then {price}/month + tax. Cancel in the app any
   time."), the trial timeline (today with the credit, the reminder, the
   first charge) and Start free trial. Without a trial: due today at the
   price and "Continue · {price}/month". Panes stack on a narrow window.
2. Sign in, inside the sheet: email (the profile's, when set), Send code,
   eight digit boxes (auto-advance, paste fills all, backspace goes
   back), resend after 30 s, every Admin answer in plain words, and
   Continue in browser for single sign-on. "Signed in. Opening secure
   checkout…" goes straight on to the checkout.
3. Pay: a checklist (signed in, waiting for the payment, setup next),
   Reopen checkout and Copy link (main's kept page) and Change plan;
   after 30 minutes "We haven't seen a payment yet."
4. Setting up: the badge ("{Plan} trial started · ${credit} Claude credit
   added", or "{Plan} started"), the Admin's steps with progress, and the
   name and colour with a switcher preview. Ready with the sheet open in
   the focused window: "Opening in 3…" and it opens (Not now stops it);
   otherwise Open {name}.
6. Add a Cloud… with a Cloud: "One Cloud per account for now", Email me
   when I can add another, and Open {name}. During setup: the setup.

cloudAddView stays the one state → view function, now with the in-app
sign-in as a view of its own. Focus goes back to whatever opened the
sheet. A "Staging" mark shows on the staging Admin. 28 English strings
the old dialog used are retired with their translations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Settings → General: Compare plans opens the sheet instead of the
  website; Start free trial (and Add a Cloud) is the primary button, in
  the Live call prompt too.
- The bottom card's Sign in, Settings' Sign in and Settings → MausBot
  Cloud's Sign in open the sheet at its email-code sign-in (the browser
  approval stays for openmausbot://cloud and Sign in again).
- Notice cards' primary action is the app's primary button, and
  CloudSetup's hard-coded white text is the accent-ink token.
- Settings → MausBot Cloud says Staging on the staging Admin.
- The sidebar switcher and Settings → Servers draw a Cloud named and
  coloured while it was set up: its name on its colour's tile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cloud-buy-preview.html (like onboarding-preview.html: served by the Vite
dev server, never in the build) renders the real sheet over a mock window
in any state and skin: ?state=choose|sign-in-email|sign-in-code|
sign-in-wrong|sign-in-sso|sign-in-done|pay|pay-late|setup|ready|has-cloud|
unreachable&skin=<any of the nine>&staging=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Untouched, the setup screen still showed My Cloud on a blue tile but
saved nothing, so the switcher would draw the plain mark. It now saves
what it shows; One Cloud for now never recolours an existing Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A "cloud" beat after the phone and before the first bot (which stays
last): "Keep your bots working while you sleep", what Cloud does in three
ticks, the Admin's offer in one line (trial days and the lowest price,
the Claude credit and money-back only when offered; no number is the
app's own), Start free trial (See plans without a trial), Not now, and
"You can add a Cloud any time from the switcher."

- beatsFor takes `cloud`, true only where the buy sheet would sell:
  this computer's own page with the Cloud bridge, not a branded build,
  not a hosted or remote viewer, an account that may buy
  (buyOfferAllowed) and the Admin's offer loaded. The decision is made
  once, within 6 s; an offer that hasn't come leaves the beat out rather
  than holding onboarding.
- Start opens the buy sheet (new source app_onboarding, in both the
  app's and main's allow-lists) over the welcome: the sheet now sits at
  z-[60], above the z-50 welcome and Settings. When it has been open
  and closes, the welcome goes on. While the welcome is on screen the
  sheet never switches the window when the Cloud is ready: no "Opening
  in 3…", and main is not told a sheet is in front, so it notifies and
  the sheet shows Open {name}.
- Shown is recorded as hint onboarding-cloud-v1; onboardingCloudOffered
  (record) lets a later Cloud pitch hold off. Shown is tracked as
  onboarding_step "cloud" like every beat; Start and Not now as
  onboarding_cloud { action }.
- The onboarding preview gains the beat (with a stand-in offer) and a
  &w=&h= stage size for narrow windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An explicit sign-in (Settings, the card, Already have a plan?) now wins
before the offer checks: a removed sign-in no longer resolved to
"Settings' to say" and closed the sheet at once, and no public offer no
longer showed "Can't reach MausBot Cloud" instead of the email step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The kept checkout lives in memory, so after a restart the Pay screen
(from the Admin's open checkout) was read every minute, focus did not
read it, "ready" said "One Cloud per account for now" and no
notification came, unless Reopen was pressed.

- Main adopts a checkout the Admin still holds open when none is kept:
  watched from first sight (every 3 s, 30 minutes at most, at once on
  focus), and Reopen asks the Admin once for that plan.
- "{name} is ready" also comes for a setup this app watched (bought
  elsewhere, or restarted mid-setup), once.
- Pay or Setting up seen in the sheet counts as arrived: ready is
  theirs to open there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The checkout record is kept for a day, so Add a Cloud… within 24 hours
of buying showed the ready screen and switched after 3 seconds, and Not
now then reopen started the countdown again. Main now marks the purchase
done once its Cloud was opened, announced, or shown ready in a sheet;
after that the sheet shows "One Cloud per account for now" unless it
followed the journey itself, and openmausbot://cloud goes to Settings,
which opens the Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Admin answers start the same either way (200, signupOpen: false) and
mails only addresses that already have an account, so a new person waited
for a code that never came. Main passes signupOpen through and the code
step says so, with Change to try the email they signed up with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
emailStart cleared the stored attempt before asking the Admin, so a
Resend refused for too many codes (or a dropped connection) left the
first code valid on the Admin but "expired" here. Only a successful
start replaces it; a different address still drops the old attempt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
If Back, Change or Escape came while verify was in flight and the Admin
issued a token anyway, the token was dropped without revoking it. It is
now revoked, as a superseded sign-in's already was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Focus was checked only when the countdown started; switching away during
it still switched the window. Blur now stops it and leaves Open {name}.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The signed-out offer is the public one; an account's own may differ (its
trial already used, another price), and the sheet went straight to a
checkout it had called "$0.00 today". It now checks the account's offer
for that plan (same price, same trial) and otherwise returns to Choose
with "These are the plans for your account".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With OMB_CLOUD_STAGING=1 the app shared environments.json and Files'
cloud-sync folder with production, so switching could list a second
Cloud home entry or share folders to a staging Cloud. Staging now uses
environments-staging.json, cloud-sync-staging and
cloud-home-look-staging.json, next to its own cloud-account-staging.bin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sheet's Choose hero and the welcome's Cloud beat share one scene in
place of the generic-bot drawing. Four of the app's Maus mascots work on
a cloud under the moon. This computer sleeps on its hill: an open laptop
with a dark screen, z bubbles rising and a breathing sleep light.

Every 4.6 s one bot finishes a task. It hops with a happy face and a
blink (no face spin) and sends up a token in its own colour. The token
pops into confetti in the crew's colours while the others watch, then
the next bot shows a thinking pill. Lamp pools and contact shadows sit
under the bots. The sky follows the skin's accent through light-dark():
night in dark skins, an evening sky in light ones.

- Pauses when out of view and while the sheet covers the beat
  (paused={sheet !== null}).
- Reduced motion, from the system setting or the dev hook (followed
  live through the shared reducedMotion()), shows one still frame of the
  same story.
- role="img" with cloudScene.label. CSS is in styles.css.
- The mascot gradient helper moved to lib/mascot.ts, so tests that mock
  Avatar still render the scene.
- CloudArt and cloudBuy.art are removed.
- cloud-buy-preview.html takes &reduced=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Events table now lists this branch's two new events, so the analytics
docs test passes. It also lists the cloud onboarding step and the
app_onboarding source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The scene keeps its look: a night sky in the skin's accent, the moon, a
few stars, the soft cloud, three Maus mascots on it, and the sleeping
laptop with z bubbles. The busy parts are gone.

Only three things move now:
- Each bot shows one calm state of its own (working, idle, thinking),
  which the mascot animates itself.
- A few stars twinkle slowly (CSS opacity, about 5 to 7 s).
- The z bubbles drift up slowly (CSS, a 6 s loop).

Removed: the 4.6 s task cycle and its timers, the tokens, confetti,
hops, blink and motion cues, the gaze logic, the shooting star, the LED
blink, the floating fourth bot and its mini-cloud, and the cloud float.
Their keyframes go too (8 down to 2). The mascot gradient helper moves
back into Avatar.tsx, since only the tokens used it from outside.

- The scene has no timers or frame loops of its own. While paused (the
  sheet over the beat) or out of view, the mascots stop and the CSS
  pauses.
- Reduced motion (the system setting or the dev hook, followed live)
  shows the same picture, still.
- The label now reads "Three bots keep working on a cloud under the
  moon while this computer sleeps".
- CloudMascotScene.tsx goes from 348 to 196 lines and the scene CSS
  from 103 to 54.
- The tests are rewritten for the simple scene. Mutation-checked with
  19 mutants, all caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cloud-staging read main.mjs as checked out on Windows (CRLF) against an LF
pattern; normalise it as cloud-entry and pro-plan already do. The Files-folder
test removed its temp folder before closing Files, whose open database Windows
will not delete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The provider tiles, the picked one's own sign-in, the API key row and the
limits note become useCloudEngineChoices + cloudEngineChoices, so another
screen can show exactly these without a second sign-in. A tile whose engine
can run says Connected, and the radio's dot takes the accent-ink token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new Cloud opens on a three-step welcome instead of the first-job question.
Bringing this computer's bots comes first, while the Cloud is still empty:
the first job used to start a chat, after which a copy from the Cloud's page
was refused and only Replace remained. The copy is offered from the Cloud's
own emptiness, not from whether its one-time card was put off, and main's
requireEmpty check is unchanged.

- Bring your stuff: Everything from this computer (counts and size from the
  existing estimate) runs the existing copy in place; Start fresh opens the
  team library; outside the desktop app it says where the copy is. Also
  bring in: memory pasted from Claude or ChatGPT goes to About me (and again
  after a copy, which brings this computer's About me), or a backup file.
- Connect your AI: the engine sign-in's tiles, the trial credit line and
  Use my credit for now.
- Files and apps: this computer's Files (through Settings -> MausBot Cloud
  there) and Connected apps.
- Done: say hi to the Chief of Staff (or the first bot), or give it a job.

Progress lives in the Cloud's onboarding record, so the welcome resumes on
any device and never comes back once done, skipped or hidden. Set up My
Cloud becomes its compact form and never shows beside it; Clouds set up
before the welcome keep their first-job checklist. Its primary button uses
the app's primary style and the accent-ink token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cloud-pro.md describes the welcome's steps, where its progress is kept, when
it never shows, and the setup card as its compact form (Clouds set up before
it keep the first-job checklist). copy-workspace.md: on a Cloud the copy is
the welcome's first step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/verify-cloud-welcome.ts mounts the whole app on the fake-engine
fixture with only the Cloud owner's session, config and the trial's credit
answered as a Cloud home's; the preview adds the reduced desktop bridge a
Cloud's page gets (?desktop=1) and can open a copy under way or landed, any
step and any skin. Nothing here is part of the app's build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Memory pasted in the welcome could be lost while the page said "Added to
About me": it was re-added only after a copy landed in this session (an
app restart in between dropped it), Skip setup or Hide during a copy
cleared it before the copy replaced About me, and a re-add over the
24,000-character limit failed silently and cleared it too.

One keeper, mounted beside the setup card and outliving the welcome, now
owns the paste (memoryStep): it adds it whenever About me lacks it and no
copy is running, writes nothing during a copy, and lets go only once the
Cloud's saved About me has it, no copy can still come from the welcome,
and none has just landed (until the page has the Cloud's new About me, the
one it holds may be the replaced one). When saving fails or the paste no
longer fits, the dialog opens again with it and says why; Later keeps it,
Discard drops it. The welcome says "Added to About me" only once it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud where a turn had finished with no welcome step done was read as
one set up before the welcome, so the welcome vanished for good when, say,
the owner said hi from the phone before bringing anything over. The
welcome now records cloud-welcome-shown the first time it appears, and a
Cloud where it was shown counts as started.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The main pane judged the welcome from the Cloud's saved record while the
setup card added the hints written here and not saved yet, so after a
failed save (a 409 while provider settings are busy, say) Continue setup
could do nothing. Both now read the record with those hints
(cloudWelcomeVisible).

Progress saves are no longer swallowed: saveWelcomeHints tries once more,
and when an end of the welcome (done, skipped, or Hide setup) still cannot
be saved, this device keeps it, so the welcome does not come back on the
next launch; the keeper sends it to the Cloud when it can and then lets it
go. The keeper's tests now answer like the server does (each save applies
when it arrives, every answer is the whole config as it is then).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Like Settings' copy panel and Import from this computer, the welcome
leaves the copy out when the desktop app is connected to another server
as its client, where the copy cannot start, and says the desktop app
brings bots from a computer instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud copied into before the welcome existed, and never chatted on
since, opened the welcome with Start fresh chosen over the bots it already
had. When the Cloud has bots or chats of its own (the copy overview's own
count in the desktop app; more than the starter bot or any room
elsewhere), the first step now says "Your bots are already here", offers
no copy or fresh start, and Continue finishes it; memory and a backup file
stay on offer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On load the Cloud's config arrives before its engines, and the welcome's
stage reads "waiting" until both are in; the keeper took that as "no copy
can come from the welcome any more" and let go of a paste About me already
held, so a copy after that would have lost it. Waiting now never counts as
settled. Found driving the preview: the paste vanished from this device
right after it was added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cloud-pro.md: when the welcome never opens (and why a chat after it showed
does not end it), "Your bots are already here", how pasted memory is kept
and re-added, and how its progress saves retry and keep an end on this
device. The preview gains ?cloud=full; the recipe lists what was checked
after review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner's call: no steps that are not needed. The "Also bring in" row goes:
Memory from Claude or ChatGPT (its dialog, the About me paste, the copy of
it this device kept and the keeper that added it again after a copy) and A
backup file, which stays in Settings -> Backups. Their code, 18 strings
and tests are deleted, not hidden. Step 1 now holds the two choice cards,
the primary button and Skip for now. The keeper stays for the one job left:
sending an end of the welcome this device kept to the Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Bots, chats, memory" could read as the About me import that step 1 no
longer has; the copy still brings each bot's memory, as its card says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/setup-import lists, by name only, what is new here: skills from
~/.claude/skills and ~/.codex/skills, and MCP servers from Claude Code (only
the top-level mcpServers of ~/.claude.json, found without parsing the rest),
Claude Desktop, Cursor, Codex config.toml and Gemini CLI settings.json.
POST brings in the chosen kinds:

- Skills are copied into every bot's own skills and switched on: SKILL.md
  through installSkill, then its text files beside it (no symlinks, dot
  files, node_modules or private names; per-file, per-skill and total caps).
  A name a bot or the switched-on library already holds is never overwritten.
- MCP servers go through Paste config's parser, switched off, deduped by
  name, command and address, within the 20-server limit and the
  organization's policy, single-flight with the MCP routes. Env and header
  values stay in config.json and never reach an answer.

Credential, session, history and transcript files are never listed or
opened. Only the owner's own loopback on a server that is not a Cloud home or
hosted answers. A small TOML reader covers config.toml without a dependency.
mcpServerBody moves to mcp-registry.ts to make room for the wiring in
index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the desktop app's own window, the flow looks for skills and MCP servers
from other AI tools once, from its first beat, within two seconds; nothing
new, a failure or a late answer leaves the step out. The step is one screen:
two ticked rows with counts and sources, Bring them in, Skip, then a one-line
result that moves on by itself (or waits for Continue when something was left
out).

Tracks setup_import_applied and setup_import_skipped with counts only, and
import as an onboarding_step. The dev preview gets a fixture detection and
?import=notes|fail, ?w=&h= for narrow stages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bringing skills in no longer copies them into the bots that exist at that
moment. Each skill is copied once, read-only, into <data>/imported-skills
(staged, renamed into place, index written last), and every turn reads that
set: the starter bot, and any bot made later from the New bot dialog, the
API, a template, a Chief of Staff team or a package, on every engine with
files. A turn lists them after the bot's own and library skills with a
budget of their own, links them into the task folder's .claude, .agents and
.grok skills, and runs them as /name; room turns get them through the index.

- A bot's own or assigned library skill of the same name wins. Bot Settings
  -> Skills shows the rest as coming from this computer, with a per-bot
  switch and no delete.
- A copy whose files changed (edited, added, swapped for a link) is left out
  until it is brought in again, so one bot cannot change a script every bot
  runs.
- A turn whose engine loads the folder a skill came from leaves the copy
  out: Claude Code with "Also use my Claude Code skills", Codex on the
  person's own CODEX_HOME.
- Detection compares against this set, not the bots: it works with no bot
  and stops re-offering skills when bots are added. A name another folder's
  skill holds is a conflict; the library is left out of it entirely.
- A skill.md or Skill.md is read as SKILL.md, and a file a case-blind disk
  cannot hold beside another is left out alone instead of failing the skill.
- Backups carry the copies and count task-folder links to them as managed.

index.ts drops two imports, so its ratchet goes to 17577.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one button switched every imported skill on, so a SKILL.md piping a
download into a shell, hiding text in zero-width characters, or a script
beside it doing the same, ran in every bot (on Full access with no prompt)
without the review every other import gets.

The scan now runs over SKILL.md and every text file copied beside it. A
skill it flags is still copied, but stays off for every bot; Bot Settings
-> Skills shows the warnings, and switching it on there (after the existing
review dialog) turns it on for that bot only, for the files that person
read: brought in again with other files, it is off again. The result names
these skills, and the step adds one note. The step's UI is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inside a skill folder the name filter missed common secret files
(token.json, session.json, password.txt, cookies.txt, service-account.json,
api_key.txt, storage_state.json, *.env) yet dropped ordinary instructions
(references/credentials.md, history.md, projects/) without counting them. A
skill folder that was a link was followed anywhere, including into
~/Documents (a macOS privacy prompt during the first beat) or into ~/.codex
beside its auth.json, and a hard link of a credential was copied under any
name.

- Names: data files (json, yaml, toml, ini, txt, csv, xml...) named after a
  token, session, cookie, password, secret, credential, key, bearer, storage
  state or service account, secret-named folders, and key stores (.pem,
  .key, .p12, .env, id_rsa...) are left out. Instructions and code keep
  their names. Every file left out is counted, so the note shows.
- A file with another hard link is not read, and one holding a provider key
  or a private key block is not copied (holdsCredential in shared/redact.ts,
  high-precision shapes only).
- Links out of a skills folder are followed one at a time, without looking
  anywhere else, only while they stay in the home folder, out of the folders
  macOS guards (Desktop, Documents, Downloads, Library, Movies, Music,
  Pictures) and out of ~/.claude, $CODEX_HOME, ~/.gemini and ~/.cursor
  outside their skills; a skills folder that is a tool's whole folder is
  not read. Dotfiles setups linked from elsewhere in home keep working.
- The step says "They're copied here; nothing is uploaded."

Tests plant each case, a FIFO (with a late writer, so a read that opened it
shows as slow), an oversized config and a linked SKILL.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The route said only the desktop app could bring in this computer's skills
and tools, but it answered any owner loopback on a server that was not a
Cloud home or hosted. On `openmausbot serve` that is any local process,
every bot's shell included: it could list the names and POST, copying the
server account's skills and MCP servers in for every bot. The welcome flow
only offers the step in the desktop app, so the server now answers only
there (DESKTOP_MANAGED, and still never a Cloud home or hosted server).

The end-to-end test runs the server the way the desktop app does and checks
that a headless one refuses GET and POST.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A config.toml header or dotted key of 60,000 parts parsed into a table
  too deep for JSON.stringify, which threw outside toolEntries' guard: GET
  answered 500 and the step vanished for every source, and a POST failed
  after the skills were in. Keys now stop at 16 parts (a TomlError, so only
  that file is skipped), and each entry's conversion drops only itself.
- Skills and tools come in each on their own: a kind that throws (its
  folder unusable, config.json unwritable) reports its names as "failed"
  and the other kind still comes in, instead of a 500 that says nothing
  came in after something did.
- Nothing added but something left out reads "Nothing new was added.",
  without the success mark, instead of "All of it was already here." The
  failed note names skills and tools and points at Settings -> Replay
  welcome tour, which can bring them in again.
- A different server under a taken name is reported as a conflict, not
  counted as already here. A name OpenMausBot keeps for itself (browser,
  data, phone...) comes in as mcp-<name>. A trailing comma in a JSON config
  is accepted. ~/.claude.json may be up to 256 MB, since only one member is
  parsed.
- With "Also use my Claude Code MCP servers" on, Claude Code's own servers
  are not offered: Claude bots already run them in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once "Also use my Claude Code skills" had run, <data>/claude-user-skills held
a link to ~/.claude/skills, outside the workspace, and every backup threw
"Cannot back up symbolic link outside the workspace"; Move to Cloud uses the
same backup, so both stayed broken, even after the switch went off, since
nothing removed the link.

The folder is now excluded from backups like the other runtime state (the
app makes the link again on the next turn), and a turn with the switch off
removes the link and its folders: only the link, never what it points to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Back stayed active during "Bringing them in…". Going back and forward again
unmounted the step, so it offered the same things again with the button
enabled; a second run then found everything present, and its result
replaced the first, so the person read "All of it was already here." right
after things were added.

The step now tells the flow while a run is in flight, and the flow holds
Back until it settles; a later result never replaces one already shown.
Nothing new on screen: the same two rows, one button and Skip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bringing in Codex's MCP servers adds OpenMausBot copies of what
~/.codex/config.toml already runs. A Codex bot on the person's own
CODEX_HOME loads config.toml's servers itself, so once a copy was switched
on it mounted again as <name>_openmausbot: two processes and every tool
twice.

On a turn without a tool selection, an OpenMausBot server that config.toml
already runs under the same name (same command, arguments and environment,
or the same address and headers) is not mounted. A turn with a tool
selection switches config.toml's servers off, so it still mounts its own
copy; a server that differs still mounts under its own name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Banner comments go, as AGENTS.md asks; isImportedSkill had no caller left,
and the folder digest stays private to its module. The index's guidance now
reads like the bot's own skills index.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A read-only file can stop Windows from removing or replacing the folder that
holds it, which would turn a skill brought in again into a failure. The hash
check is what keeps a changed copy out, so on Windows the copies are written
writable; elsewhere they stay read-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The /name message quotes the SKILL.md path with JSON.stringify, which doubles
each backslash on Windows; the tests looked for the raw path (and the e2e for a
sentence escaped once, not as JSON).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts in server/browser/viewers/core.ts, core.test.ts and
server/browser/chrome/calibrate.test.ts, resolved so both sides hold.

- Page size: main's screen limit (viewportFor within the page limit,
  viewers told the page a held window really gives) with this branch's
  zoom. The hub keeps the size and zoom it last applied, and a view
  that opens starts from them.
- Zoom goes through CdpPage.emulateSize, which now takes the zoom, so a
  zoomed tab counts as emulated and the window fit leaves it alone when
  the bot brings it back to the front. A tab that opens later takes the
  emulation last applied, narrow or zoomed, without refitting the window
  of the tab in front.
- Resizes, presets and zoom wait their turn in SessionControl behind the
  action running on the tab in front; opening and closing a view no
  longer block on them. Attach still records a size only while nobody
  holds the browser.
- calibrate.test.ts takes main's version, which records every run.
- core.ts stays under 1,000 lines: the page-size code (presets, limits,
  viewportFor, the zoomed layout) moves to viewers/viewport.ts.
- stream-v2.e2e runs on a 2560x1600 screen so its panels fit, as
  viewers.e2e does; the laptop-screen test covers the limit.
- The stream bench takes a full-size frame to be the page it got.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Picks up the browser launch fix that main's Ubuntu shard needed (the
calibration test ran Chrome's --version diagnosis on the test's home).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in the packaged-app run against staging: one click on the dimmed area while
the sheet waited for payment closed it, and over the welcome flow that also moved
the welcome on, so the payment tracker and the Cloud's name and colour step were
gone. While signing in, waiting for payment or setting up, only Close and Esc
close the sheet now; choosing a plan and the other screens close on a click
beside them as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Welcome flow: bring in skills and MCP servers from other AI tools
Both PRs added a first-run welcome step, so the step list, its options, the
welcome flow, the onboarding preview and the analytics docs now carry both: the
import step after the engines and the Cloud step just before the first bot. A test
pins that order with both present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud buy flow v2, phase 1: one in-app sheet, onboarding Cloud step, review fixes + staging switch
CloudSetup keeps the shared primary button (ui-button-primary), whose text is
already the accent ink colour #2941 switched to. The onboarding verification
notes keep both new sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A state is 32 random bytes in base64url, and its last character has two spare
bits that atob ignores, so "…A", "…B", "…C" and "…D" reached the same flow.
The callback and the claim now accept only the canonical spelling. The test that
changed the last character expected a 404 and got a 200 whenever the state ended
in A (about 1 run in 16, the control-plane check's flake); it now checks all three
other spellings on every run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New desktops get one Cloud offer: the onboarding Cloud step records the
onboarding-cloud-v1 hint, and the update popup treats that hint as seen,
on this computer's page and, through main, on My Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only scripts/testing/file-size-ratchet.test.ts conflicted: both sides
shortened server/index.ts, this branch by moving the v1 viewer routes
out and main in its skills wiring. Merged, it is 17,560 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(highlevel): only the state the relay issued opens a flow (fixes the control-plane check flake)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A saved server's page, or My Cloud's while it reads no plan, now hands This
computer's page the generic "cloud-pro" click. That page decides from its own
plan and live offer, as its own popup's main button would, without showing
the popup again: someone who can buy gets the Add a Cloud dialog
(update_popup) at once, counted as upgrade with the email tied first when
signed in; a plan, a payment being linked or an ended sign-in gets Settings
-> MausBot Cloud as manage. While its sign-in restores or connects or the
offer loads it waits; when it cannot reach the Cloud it leaves the popup for
a later launch.

Main and the preload accept only "manage" or "cloud-pro"; main takes
"manage" from My Cloud's own page alone and refuses anything else before the
once-a-launch switch is spent. Main answers the hand-over with its deadline,
so This computer's page finishes a click only within two minutes of it, once
nothing else is on screen; a failed switch still counts nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome 155 draws a scaled capture by changing the page's emulation, then
restores what it found when the capture began. On real Chrome, a device
metrics override sent while a clipped Page.captureScreenshot is in flight
on the same session is gone once the capture answers (1280x800 @2 again,
not 800x500 @3). So a picture in picture's still, a bot's screenshot, or
a panel still sized by a zoom not yet applied could silently undo a zoom
or a narrow page.

CI hit it on the ubuntu S4 run of aa352bb94: the still that follows the
attach's resize, which no longer holds up attach since main's merge,
overlapped the person's zoom, and the page stayed 1500x900 @2.

- Scaled captures and size or zoom changes take turns in the hub.
- A still is sized by the zoom the tab is drawn at (CdpPage.emulated now
  carries it), not by one still being applied.
- The fake Chrome restores what a clipped capture found, as Chrome does.
  Each half of the fix has a hub test that fails without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud welcome: bring your stuff first, then connect your AI, files and apps
Follow-up to #2936: Cloud Pro popup once per desktop on any page, plus dialog, opt-out and focus fixes
chore(release): bump version to 0.1.113
My Cloud's Manage plan and a server page's Continue on this computer no
longer wait in This computer's corner-card queue (busy bots, an update),
and are no longer lost after two minutes. Main switches the window and
loads This computer's page on the click (?desktop-settings=cloud-settings
or cloud-add, with source=update_popup and via=my_cloud or server), and
records the popup as seen once the window has switched. App finishes it
on load, whatever else is on screen: Manage plan opens Settings ->
MausBot Cloud; Continue opens the Add a Cloud dialog for someone who can
buy and Settings for anyone else, waiting at most ten seconds for a
sign-in that is restoring or connecting or a plan that cannot be checked
yet, then Settings. That page shows no corner card for the rest of its
load, as after the popup's own buttons. The handoff channel is gone.

A switch main refuses (This computer's server not ready, another switch
under way, a failed switch) keeps the popup up with a line saying so and
leaves it unseen; the button is held while main switches.

Every cloud_pro_popup event says the page it was counted on (local,
my_cloud, server); a server page's main button is counted there as
continue, and This computer's page names the page whose click it
finishes (via), so the funnel joins across the two PostHog ids.

Server pages show the popup only once This computer's first-run welcome
is done: main reads This computer's workspace record, or that page tells
main (a welcome finished before the record kept it). Main folds that
record's earlier close or onboarding Cloud hint into what every page is
told, so My Cloud's page does not pitch again before This computer's page
has loaded on this build. The welcome leaves its Cloud step out once main
says the popup was seen, and the card after the update no longer follows
the welcome's Cloud step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Muse Code's model/list marks `isActive` only on the row of the session
named by `sessionId` (msp.d.ts: "May be false for every row"). The
driver lists without a session, so Muse Code 1.4.9 answers false on
every row, the driver dropped them all, and the picker fell back to the
built-in three models: Muse Wonder Full never appeared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main switched the window and then loaded This computer's page on the
click without waiting for it, so a page that failed to load still marked
the popup seen. navigateMainWindow now answers whether the page loaded
(it never throws), and a switch counts only once it has: otherwise the
popup is left for a later launch, like any switch main cannot make.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hard-link check in the test matched paths to the planted auth.json by
statSync().ino as a number. On Windows that is the 64-bit file index, which loses
precision as a JS number, so a folder could match at random. Compare bigint IDs,
regular files only. Production never compares inodes: it refuses any file with
another hard link by its link count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A server's page waited for This computer's first-run welcome, which main
knew only from This computer's config.json or from This computer's page
once it loaded on this build. A window that opens on My Cloud or a saved
server may never load that page, and an install from before the welcome
kept a record has no completedAt, so those desktops never got the popup
(a Cloud payer from before Sep 11 whose window always opens on My Cloud
got no popup and no Manage plan). Server pages now show it as #2945 did,
and main switches for its click whatever the welcome record says. The
welcome still leaves its Cloud step out once the popup is seen, so no
one is offered Cloud twice.

The onboarded flag, its IPC channel, the preload key and the page that
reported it are gone. Main reads This computer's config.json only for
the hints that count as seen, and now reads one saved with a byte-order
mark (Notepad on Windows), which it used to treat as unreadable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every turn waits for the startup read of the engines (enginesRead), and
registry.describe() waited for each instance's snapshot() without a limit.
A CLI wrapper that traps SIGTERM outlived execFile's timeout, so the probe
never called back: the read never ended, and every bot's turn stopped
after 20 minutes of "no activity", whatever engine it used.

- execCli stops the CLI 2 s after its timeout if it is still running, so
  its callback always comes. Only the child is stopped: execFile starts no
  process group.
- The registry bounds every live instance's snapshot() to a minute, so
  describe(), cloud routine readiness and the decorating instances all get
  an "unavailable" answer instead of waiting forever.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The token check (GET /locations/{id}) now says which case it is: a 401 for a missing
  scope names View Locations, any other 401 says the token was not accepted, 403 says the
  token belongs to another sub-account or the agency, 404 says the location id is unknown.
  HighLevel's own reason is kept, redacted (the token, Bearer values, pit- tokens, JWTs)
  and cut to 160 characters.
- HighLevel answers 401 for a dead token ("Invalid JWT") and for a live token missing a
  scope ("The token is not authorized for this scope."). The second no longer refreshes or
  signs the connection out; the bot is told which permission is missing. The custom-field
  lookup inside contact reads is optional: its refusal is cached and contacts still read.
- The card's help text lists the permissions to create the token with.
- docs/highlevel.md: a permissions table, the agency-admin install message, and the
  per-bot Off/Read/Read & write control as it exists (no per-tool picker for HighLevel).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A MausBot Cloud never got the managed connected-apps service its plan
includes: only the desktop app registered with the broker, and the Cloud's
server had no token, so every Cloud showed "add a Composio project key",
disabled Connect and served the 24-app fallback catalog.

On a Cloud home the server now does what the desktop app does for itself,
with the same code (electron/managed-composio.mjs): register with the default
broker when it holds no token, keep the token owner-only in
connected-apps-installation.json in the data folder, check it with /v1/me at
every start (only a 401 registers again; an outage keeps it), and retry with
backoff and jitter while the service is down, never holding up the start. The
token goes through the one managed path (setManagedBrokerAccess), so a saved
Composio project key still wins. The file is excluded from backups and kept
on restore, since its connected accounts belong to that installation.

- The default broker URL and the "default only for a shipped build" rule are
  shared with the desktop app (managedComposioBrokerUrl); from source the
  server registers only with an explicit OMB_COMPOSIO_BROKER_URL, so tests and
  development never create installations on the real service.
- OMB_COMPOSIO_BROKER_URL is on the Cloud launcher's allow-list (staging), and
  the Docker CI smoke points it at a closed port.
- On a Cloud a missing service reads as "temporarily unavailable", never
  "add a key".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A scheduled run that asked the person something (a sign-in, an approval,
a question, a room goal that needs input) and never got an answer stayed
"waiting" for good. Every later occurrence of that routine then counted
as an overlap: with the default "skip" overlap it was skipped at enqueue
time with no run record and no notice (only the skippedRuns counter
moved, and nextRunAt advanced); with "queue" one run was queued and
deferred behind it forever. So one unanswered question silently stopped
a daily routine.

One rule now: when a routine's next scheduled occurrence comes due and an
earlier run of that routine has been waiting since at least 30 minutes
before it (the existing deferral notice window), with no work it handed
to another bot still open, the earlier run is stopped through the same
path as the Stop button (its open sign-in card is marked stopped, its
parked turn is cancelled) and the new occurrence starts normally. The
stopped run is cancelled with the error "Stopped waiting: the next
scheduled run of this routine started instead", shown on its run card
and in the Routines log.

- Runs record waitingSince when a wait begins (provider request, a turn
  that ends parked, a room goal that needs input, restart recovery); a
  wait saved by an older version is timed from the restart.
- A run that is still working, or waiting on delegated work that is
  still open, keeps today's skip/queue behaviour. An occurrence skipped
  behind such a wait leaves one missed receipt per wait (through the
  existing missed-run notice), so a skip behind a wait is never silent.
- Occurrences more than 12 hours late (the computer was off) never stop
  a wait, since they would not start a run either.
- continuityCarry moves to routine-execution.ts to keep routines.ts
  under its size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A takeover in the Browser panel did not survive its live stream dropping. When
the client's GET /browser/live ended (a proxy logs it as "context canceled"),
BrowserLive.close() released the person's control at once, and if any key or
button was still counted as down (Alt of an Alt+Tab, a key whose key-up was
still queued) it latched the restart-only barrier (abandonHumanInput,
lostCall = null), which the v0.1.110 take() probe does not clear. The panel
then reconnected without control, typing and taking came back "Choose Restart
browser…", hand-back had nothing to hand back, and the bot was told the browser
is stuck. The panel also stopped retrying after about 30 s, never retried on
focus, and kept posting input to a view the server had closed.

Server (agent-browser live view, the default engine):
- A dropped stream parks the person's hold for up to 2 minutes instead of
  releasing it; agents stay paused. The same panel's reconnect (?resume=<its
  old viewer id>, same owner and bot) gets the hold back, as does an explicit
  take or restart by the same person in that bot's panel.
- Keys and buttons the dropped view still held are let go in the page (a
  confirmed key-up or mouse-up through the relay), after any input that was
  already on its way. Only an unconfirmed release keeps the restart barrier.
- Done on the sign-in card, a late hand-back from the dropped view, and expiry
  release a parked hold; signing out, a changed session, profile deletion and
  other purposeful closes release at once, as before. An upstream stream close
  keeps the old behaviour.

Panel:
- Reconnects with ?resume=<last viewer id>, at once when the window is
  focused, shown or back online (also after its retries ran out), when the
  stream has been silent for 25 s, and when the server answers 404 because the
  view its input went to is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size ratchet allows server/index.ts and server/composio.ts only to
shrink. The Cloud home's start (resolving the service URL) and stop move into
the new module; index.ts keeps one import, the start and the stop, each on an
existing line, and stays at its count. electron/main.mjs shrank, so its number
goes down to 3472. Re-ran the live check against the real service: managed,
1,609 apps including Outlook, LinkedIn and Calendly, same installation after a
restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud homes register their own included connected-apps installation
fix(routines): an unanswered wait no longer stops a routine's later runs
A bot handed work in a room runs in the room's working folder, which is
pinned at the room's first turn and never checked again. When that folder
was deleted, the engine launch failed with the CLI's own ENOENT. Before
MOCA-309 that read as "`codex` isn't installed, or isn't on this app's
PATH"; since then it reads "This chat's working folder no longer exists
... Choose another folder in the bot's settings". Neither helps: a room
turn ignores the bot's folder, and a room's folder cannot be changed after
its first turn. Direct messages to the same bot kept working, so the
report looked like a delegation-only PATH problem.

The room turn now checks its folder before it launches the engine. A
missing folder fails the turn through the existing room setup error path
(posted in the room, the hand-off marked dispatch_failed) with a message
that names the room's folder and says to create it again. The memory turn
now begins after that check, so a refused turn opens none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(browser): a person keeps the browser when their live view's stream drops
HighLevel token setup: say why a token was refused, list the permissions, keep a missing scope from signing out
fix(rooms): a room whose folder was deleted says so, not "check the bot's settings" (MOCA-383)
fix(engines): one stuck status probe no longer stalls every turn
test(setup-import): compare file IDs exactly so Windows never matches a folder to the credential
fix(muse-code): list every model the account offers
Cloud Pro popup: follow-up to #2945 (hand-off finishes at once, and the review's other fixes)
fix(acp): preserve partial replies during shutdown
fix(backup): name the file when a workspace backup refuses it
feat(decider): reuse the OpenRouter API key for the decision model
chore(release): bump version to 0.1.114
On a wide or full-screen window the transcript and the composer spanned
the whole area between the sidebar and the window edge. Bubbles were
capped (min(42rem, 78%)), but the column holding them was not, so a bot's
reply sat at the far left, the person's message at the far right, and the
composer was one long pill with its controls 2,000 px apart at 2560 px.

A --chat-column-max token now caps and centers the transcript and the
composer dock in both direct chats (ChatView) and rooms (GroupView). It
is 54rem for the standard chat width, so 78% of the column still reaches
the 42rem bubble cap and no bubble, code block or card gets narrower.
The wide setting widens it to 70rem and full removes the cap. The dock
is 2.5rem wider than the transcript so the composer, inside its own px-5,
lines up with the transcript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fixed 54rem column left most of a wide window empty (864 px of a
2240 px pane at 2560 px). The column is now 80% of the chat pane and
never narrower than 65rem, so it fills the pane on smaller windows and
keeps gutters like Grok Bot's on wider ones (79% at 1920 and 2560 px).
The wide chat width uses 90% and 80rem; full has no cap.

The transcript sits inside the scroller's px-5 and the composer dock
spans the whole pane, so a share of the pane differs between them. The
.chat-column and .chat-column-dock classes take the same share of the
same width and add the composer's padding back, so the two line up at
every size. The 65rem minimum keeps every bubble at its 42rem cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud routine runs failed with only "stop_sequence", and with Grok Build's
raw "Internal error: API error (status 402 Payment Required): ...".

Claude Code (2.1.295, read from its binary and from real frames in a native
log) reports an API failure as a synthetic assistant message whose
stop_reason is "stop_sequence", with `error` (billing_error, overloaded,
server_error, rate_limit, invalid_request, model_not_found, unknown...) and
the text ("API Error: 529 ...", "Credit balance is too low"); its result
is subtype "success", is_error true, the same stop_reason, the text as
`result` and api_error_status. The driver showed that text as a bot reply
and settled the turn on the stop token, so a routine run, which takes its
error only from runtime.error, kept "stop_sequence" ("api_error" once
terminal_reason was read).

- server/drivers/engine-errors.ts: one set of words for every engine. Out
  of credits: "Your Grok account is out of credits. Add credits with Grok,
  then run it again.", with the provider's own short reason in quotes when
  it is a sentence; also a usage limit, a rate limit, overloaded, a server
  problem and any other HTTP status. Every sentence keeps the words
  classifyError reads, so retries, account switching and health codes are
  unchanged. A bare stop token is never a whole cause.
- Claude: every other api-error frame is one plain error row in those
  words (like the usage limit, auth and update rows), never a reply; an
  error result never says "success" or "stop_sequence".
- ACP: an out-of-credits refusal is an account failure for every ACP
  engine (as OpenCode's already was), and an unclassified HTTP failure
  goes through the same words.
- Chat-completions drivers (xAI, Groq, Mistral, Cerebras, MiniMax, Meta):
  out of credits in the same words. An OpenAI-compatible URL keeps its raw
  "upstream HTTP 402" line: it names no provider and the Cloud trial
  credit parses it.
- Routines and TurnStops: with no error text, the stop reason reads
  "The engine stopped without saying why (stop reason: stop_sequence)."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The column now fills a narrow pane and stops at 60rem (960px), centered, so wider
windows only grow the gutters. Bubbles are min(80%, 35rem), matching Grok Bot's
min(80%, 560px). The wide setting caps at 80rem and full stays uncapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2978 grew server/index.ts from 17577 to 17581 lines; the file-size ratchet
allows that file only to shrink, so main's CI (and the 0.1.114 release gate)
fails. Same check and message, moved into a module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ci): room folder check moves to a module so server/index.ts is back at its pinned size
fix(errors): an engine failure says its real cause in plain words, never a bare stop token
fix(chat): keep the chat and composer in one centered column on wide windows (MOCA-365)
A destination that already has bots or chats now offers "Bring newer chats
to {server}" beside Replace. It reuses the copy's owner session, encrypted
export and resumable upload, then POST /api/cloud-move/merge stages the
upload as an ordinary backup and, inside the gate that waits out bot turns,
adds only what the destination lacks: whole conversations it never had
(title and pins, never approval, model, folder or engine session) and the
messages (by id) missing from conversations both have, placed among its
own by time a turn at a time, with their attachments. Nothing there is
deleted or rewritten except the parentId that now orders a row after an
added one; inserts fail rather than overwrite. Routines, bots' settings,
memory, rooms' setup, connections and credentials are never touched. Chats
of bots or rooms only on this computer stay here, a conversation deleted on
the destination since the copy (or the last bring) is not brought back, it
never restarts, and a second run adds nothing.

After Copy to My Cloud, My Cloud stays the server this app opens, and
This computer's page now shows one line, "Your bots now live on My Cloud.
Chats here stay on this computer." with Open My Cloud, until Swap back.

The two copy route factories in index.ts share one options object, so
index.ts shrinks by 10 lines; the merge itself lives in cloud-chat-merge.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On production Clouds, routine runs of Full access bots sat on an
"Approval needed" card for connected-app tools until their run limit
stopped them. A Cloud home runs a routine at the level its owner can be
proven to have given it, and the owner's own routines kept being written
down as nobody's, so their runs were confined to Ask: Claude without
connected apps pre-allowed, Codex on-request.

- A bot's own change applied with an Undo receipt (a skill it authored,
  a team it set up) is nobody's answer, so it no longer takes the owner's
  conversation out of being theirs. Immediate team-setup receipts are
  stamped autoApplied.
- A routine runs at the level of the conversation it was made in: one a
  bot makes where only the owner's proven keys spoke is the owner's for
  its level, whatever bots posted there; lending and memory proof still
  needs the strict owner-only test.
- At each start, a nobody's routine its bot made in such a conversation,
  still running exactly what its card showed, is the owner's again.
- A confined routine run's approval card says why and how to fix it.
- A routine run waiting on an approval shows "Waiting for your approval
  to use X", the approval notification names the routine, the wait does
  not count toward the run limit, and when the engine's own deadline
  passes with nobody's answer the run stops with "Stopped: nobody
  answered the approval to use X".

index.ts shrinks by four lines (approvalShape moves to
cloud-routine-level.ts); routines.ts shrinks (missQueuedRun folds into
failRun).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Simple mode only (Advanced is unchanged):
- Top row after the traffic lights: the server switcher as a rounded
  pill, a round search button and a round + button. The search button
  opens a full-width search pill under the top row (same query and
  filtering; Escape or the close button clears and closes it).
- Ungrouped bots come first with no heading; Group chats and teams are
  thin lines (small name, hairline rule, and a ⋯ team menu for teams).
  No trash or grip; collapse, drag-to-reorder by the line, Alt+Arrow
  and the right-click menu still work. Pinned and Bots stay on top of
  the saved section order, and a Simple reorder is written back
  without moving them in the order Advanced uses.
- Rows use 36px faces, 14px medium names and 13px previews; the
  sidebar opens at 288px and remembers its own resized width.

The width state and resize handle move to SidebarResizeHandle.tsx so
Sidebar.tsx shrinks under its size ceiling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode only; Advanced mode is unchanged.

- Chat header: in Simple mode the model chip, the Computer button and ⋯
  leave the header (they move to the bot panel). The bot pill stays, and
  Stop, the context warning, the Live call chip, "Teammates working" and
  "Back to your chat" still show when they apply.
- ChatMoreMenu (new): the chat's ⋯ menu as a round button for the bot
  panel's top bar, `ChatMoreMenu({ bot })`. It reads the thread's
  messages itself and shares one item list with Advanced mode's header ⋯
  (ChatHeaderMenu, moved out of ChatView). Simple mode adds New thread
  and All threads, and Usage and the Inspector are no longer locked
  (App no longer closes the Inspector in Simple mode).
- chat-find (new): "Find in conversation" opens ChatView's find bar from
  outside the chat, by thread.
- Composer: a round + holds Attach a file, Finish together (rooms), the
  thread's approval level (bots, a submenu of the same choices as the
  shield) and the call mode (Take turns / Live, which starts the call as
  the chevron menu did). Round mic, and a round call button filled with
  the bot's colour (rooms: accent). The Goal chip stays in view while
  Finish together is on. A room's call button moves from its header to
  its composer in Simple mode.
- Approval option helpers move to src/lib/approval-mode-options.ts
  (re-exported from ApprovalModeSelector) so the + menu can use them.

ChatView 1598 -> 1496 lines, Composer 1160 -> 1155.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extract the avatar card's framing, upload/remove/generate lane and
organization icons into avatar-editing.tsx, add a parts prop to the
Access, Permissions and Identity sections (default renders every card,
so the accordion is unchanged), a bare Usage stats mode, and move the
overview/prompt and history loading into hooks a second surface can use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Simple bot panel gets the approved layout: the chat menu and close on
top, an avatar that opens an inline Bot / Generate / Upload editor, inline
rename and label, four tabs, and drill-in pages that render the existing
sections so every Advanced control stays reachable. Deep links to a
settings section land on the matching tab or page, the Settings tab
searches every page and row, the bot's own card runs the sidebar's
actions with its confirmations, and Advanced mode keeps the accordion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/ChatMoreMenu.tsx
The panel asked for the overview whenever it was open, and the hook re-read on
every change to the bot's facts, flushing the patch queue first. Typing in the
Details tab's inline Instructions field therefore sent a PATCH (and a history
row) plus an overview GET per keystroke. The panel now reads when a view that
shows the overview appears (Details tab, Setup and Overview pages) and never
follows edits; the Advanced accordion keeps following them as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A remote client opens RemoteAgentSettingsPanel instead of the bot panel, so
hiding the header's Computer button and ⋯ in Simple mode left it with no way to
reach RemoteDesktopPanel, transcript copy/download or Usage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode's header no longer renders the model chip or the Computer button,
so the tour's model step waited forever for an anchor that never came (and new
installs start in Simple). In Simple the two steps now spotlight the chat's bot
pill, which opens the panel holding both, with copy that says so, and skip
rather than wait when even that is missing (a group chat). The computer step
still opens the Computer panel for the next step. Advanced keeps its steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No Cloud in the fleet has ever had a second person, yet confinement
was what refused or stalled their routines. While no trace of anyone
but the owner exists, nothing counts as guest-driven: every routine and
conversation runs at its bot's own level, whatever writer is on record.

- A trace is a revoked non-owner session, an adopted key never proven
  the owner's, any starter, routine writer, line sender or card
  answerer that is not the owner's, or an unreadable cloud-owner.json.
  Lines are searched once per machine and after each restore.
- The first trace sets sharedSince in cloud-owner.json, which nothing
  clears and no backup carries. If it appears after a start that found
  only the owner (at boot, or a non-admin session while running), every
  routine a bot made in a conversation only the owner spoke in, copied
  desktop lines included, is recorded as the owner's at that moment.
- A routine a bot makes or changes in a conversation a webhook drove
  (its run, a posted payload, or work handed on) gets an outside writer
  and stays confined either way, with a card that says why; routines
  from before are classified the same way once.
- The boot-time settlement moves to cloud-home-settle.ts, so index.ts
  shrinks by 31 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every named open of a bot's settings outside the Advanced accordion now goes
through openBotSettings, which dispatches the same toggleSettings action and
leaves the panel a fresh link (store.tsx is untouched):

- A link can name the panel page that holds what the caller is about. Access
  spans the Computer tab and several pages, so the callers that meant app tool
  grants (Apps), MCP access (MCP servers), a place's tool selection (Tool
  selection) or the working folder (Working folder) land there instead of the
  Computer tab. A plain Access link (the team map's computer button) still
  opens the Computer tab, where Works on lives.
- Each link is a new object, so following the same one again (⋯ › Usage after
  switching tabs) navigates again; before, the panel only moved when the
  linked section changed.

ComputerPanel's settings button is Advanced-only and keeps its plain open.
PluginsPanel shrinks by two lines; its ratchet entry follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SidebarPopoverMenu closes itself on Escape from its trigger (a menu opened
  with the mouse leaves focus there) and from inside its sheet, and stops the
  key there, so the panel or dialog around it never also acts on it.
- BotSettingsDialog's window listener ignores an Escape that something inside
  already handled.
- The Simple panel treated the settings dialog it sits in as a nested dialog,
  so its Escape handler never ran in the app: Escape on a drill-in page closed
  the whole panel instead of going back. It now skips only dialogs that do not
  contain it (its own, possibly portaled ones).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Details tab's picker had no threadId, so every pick also set the bot's
default; a Cloud guest (cloudHome, not owner or admin), whose header picker
on main changed only their own conversation, could no longer do that. It now
gets the open thread and that thread's view of the bot, keyed by thread like
the Advanced header's picker: owners still set the default too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The call button hides when Live is the mode and the line is held on another
device, but its listener for the + menu still started calls, and the menu's
Take turns and Live ignored the held line. The listener now returns early in
that case and the menu disables both items, as the hidden button would.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closing the avatar editor card, or committing or cancelling a rename or label,
unmounted the focused element: focus fell to the page body and the next Escape
went nowhere. The card (a dialog) now takes focus on its selected tab when it
opens and hands it back to the avatar however it closes (Escape, the scrim);
Enter and Escape in the inline name and label fields hand it back to the
button that opened them. A blur commit leaves focus where it went.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel archived through its own copy of the sidebar's code, minus the
corner notice and its Undo. Both now run archiveBotWithNotice (new
bot-archive.ts), and the sidebar listens for notices from the panel, so an
archive from either place ends with the same "{name} archived · Undo". The
sidebar's own archive behaves as before. With no sidebar mounted (the
calendar), a failure still reaches the chat's error banner as it did.
Sidebar.tsx shrinks by 17 lines; its ratchet entry follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring newer chats to My Cloud, and say on This computer that the bots live there
server/index.ts is 17,532 lines with both changes; the ratchet pin matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reject colours outside the palette, non-string or overlong mascot
expressions and non-boolean pins: an unknown colour throws in the chat
view's bubble colouring. Allow avatar image and framing fields, which
the profile route already accepts from the same clients, so the avatar
panel's Reset mascot and Shape controls work from a paired device.
The chat markdown table's sticky header row carries z-10, and the
glass-scroller is position static with overflow auto, so it creates no
stacking context of its own. The header's z-index escapes into the
glass frame's context and beats the composer dock, so a header row
scrolled into the composer strip paints over the text being typed.

isolation: isolate on the existing .glass-scroller rule makes the
scroller its own stacking context. The sticky header keeps working
inside the transcript, and the dock, the glass bars, and everything
outside the scroller paint above the entire transcript. One rule
covers chats, rooms, and the sidebar scroller.

The new ui e2e seeds a chat with a long markdown table, scrolls until
the sticky header sits over the message entry field, and asserts that
elementFromPoint inside the field returns the composer, never the
header. The ui-smoke vitest line in ci.yml wires the new file.

Co-Authored-By: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-Authored-By: GLM-5.3 (Architect) <noreply@z.ai>
A root that coordinate_bots begins with reply "poll" is settled by the
tick once its children are reported, and that settle reaches the host's
report hook with no parent. The hook's root branch only handled a root
whose own turn failed, so it appended failedTurnTool("") and the runtime's
thread got an empty "error: " row after every successful poll handoff.

Return early for a completed root, after the parked seat and follow-up
cleanup it still needs.

Fixes #2989

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Admin's desktop session can now send cloud.unreachable
({ cause: "host" | "no_answer", since }) while a ready Cloud's health checks
can't reach it, as during a host reboot by the hosting provider.

- Settings shows the reason in place of "My Cloud is ready" and hides
  Open My Cloud; the Cloud link doesn't try to connect meanwhile.
- A failed connection reads the session again and shows the reason instead of
  "Cloud request failed."; the "not reachable" dialog uses it too.
- An Admin that doesn't send the field changes nothing; a malformed one is
  dropped, never the machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The engine's mark sits in the free bottom-left corner of every sidebar
avatar, in all three densities, and names the model on hover and for
screen readers. A bot whose engine is not installed shows no badge.

Closes #2751
In Simple mode only (Advanced is unchanged):
- A sidebar toggle sits between the server pill and the round search
  button. Collapsing reuses the saved "icons" density, so it survives a
  restart: an 80px rail with the traffic lights on top, one column of
  36px faces in 52px tiles (the open chat on a rounded tile, unread and
  working badges kept, the name as a tooltip), hairlines where the
  Group chats and team lines were, in the Simple order. Expand, search,
  the same + menu, the server switcher, Apps and the profile circle sit
  at the foot. Search expands the sidebar with the search pill open, or
  opens the command palette when a side panel holds the rail.
- The sidebar opens at 318px so "This computer", the toggle, search and
  + all fit; search and + are 30px. A resized width is still remembered.
- 16px between the top row and the first chat, rows on a 57px pitch,
  and bot and group names at regular weight.

The archived-bots panel and its confirm copy move to
ArchivedBotsPanel.tsx (re-exported), so Sidebar.tsx shrinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Simple mode only:
- User and plain bot text bubbles (chats and group chats) take a 23px
  radius, half a single-line bubble's height, so one line reads as a
  pill and longer replies stay softly rounded. Cards, widgets and images
  keep their shape; bubble widths are unchanged.
- Bubble text is regular weight, and the bot-coloured user bubble uses
  greyscale smoothing, which is what made its white text look bold.
- The header bot pill is 36px tall with more padding and gap, a 24px
  face, a medium-weight name, and a chevron that slides in on hover or
  keyboard focus. It still opens the bot panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A first launch (no saved skin and none of the earlier-run markers that
already decide Simple vs Advanced) now opens in Meadow. An install that
ran before keeps Midnight when nobody picked a skin, and a saved choice
always wins. The earlier-run check moves to prior-run.ts so the skin and
the interface mode read the same markers. No skin's tokens change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's Select, RadioGroup or pick-one list now offers an Other choice
with a "Type your own answer" field, as the AskUserQuestion card does.
Bots are told to ask with widgets, so without it a person had no way to
answer outside the bot's options.

- shared: canonical trees carry allowOther on choice fields (bots opt out
  with allowOther:false; a stored tree without it offers only its options).
  A press sends the words apart, in `other`, with the field's value "".
  The existing offered-options check on values is unchanged; the words
  get their own checks and become the field's "Field: words" line.
- server: widgetAction accepts `other`; the settled widget keeps it for
  the Details view. show_widget's description mentions Other (goldens
  regenerated; within the tools/list budget).
- desktop: Other as the last option, radio or list row, a focused text
  field when chosen, required handling, and read-only Details.
- phone fixtures: takesOther per sample, a closed choice, and a settled
  Other answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(routines): a Full access bot's routines run at Full access on a Cloud, and an unanswered approval says so
Cloud: say why My Cloud can't be reached when the Admin knows
feat(widgets): let people answer a choice in their own words (Other)
The panel toggle moves out of the top row into a small bump with an arrow on
the sidebar's right edge (‹ collapses to the rail, › expands it). The server
pill, search and + now stay together on the right at any width, and when the
row is too narrow for "This computer" the pill shows a laptop or cloud icon
instead of a truncated name. With the toggle gone the Simple default width
goes back to 288px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop's Steer folds a held message into the live turn through
POST /api/bots/:id/queue/:qid/steer and POST /api/groups/:id/queue/:qid/steer.
Both were missing from the companion allowlist and the paired-client scope,
so phones could only interrupt: Steer stopped the bot and re-ran the words
as a new turn, and rooms had no Steer at all.

Both routes run the same thread-ownership checks as the interrupt and
queue-cancel routes phones already reach, and only move words that were
already admitted to that thread, so a phone gains nothing it could not
already do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At the top of the 80px rail the bump sat inside the macOS traffic-light zone,
which swallows clicks before 88px, so it collapsed the sidebar but could not
bring it back. It now sits halfway down the edge in both states, with 4px
corners instead of 8px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bump sits level with the top row again, next to the + button. The
Simple rail grows from 80px to 92px so the bump, on its edge, starts past the
macOS traffic-light zone (no clicks before 88px) and can expand the sidebar.
Advanced mode's icons rail stays 80px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
switchTask moved the bot's thread, resume cursors and pin in memory before
saving bots.json, so a failed write (EPERM on Windows) left the API on the
new thread while the file kept the old one. Save first, then publish, like
switchTaskModel.

Fixes #2997
The task lifecycle (create, switch, edit, archive, rename, delete, folder
and destination pins, who opened or closed a thread, its first title)
now changes memory only once bots.json holds the change. A failed save
restores the bot and its threads in place, publishes nothing, and throws
a BotsSaveError that names the unsaved action and the likely cause in
plain words, so the app shows it as written instead of generic
folder-permission advice.

- A revoked approval stays live when its save fails; a widening never
  goes live without one.
- Deleting threads commits the transcript rows and bots.json in one
  SQLite transaction, so a failed save keeps both.
- What already happened (an engine's session, the handed context, which
  engine has the thread, usage, when the person last wrote) stays in
  memory and is written by the next successful save; its failure is
  reported the same way.
- server/store.ts shrinks to 2475 lines; the commit and rollback live in
  server/bots-save.ts.

Fixes #2997
A teammate's thread pins its own working folder (or a private task
folder) at its first turn, and coordinate_bots had no way to name a
folder. So when a lead working in a project handed work over, the
teammate started elsewhere and that project's CLAUDE.md or AGENTS.md
rules never loaded, with nothing to say so.

coordinate_bots takes an optional in_my_folder with thread "new",
outside a room. The server starts the teammate's new thread in the
delegating conversation's own pinned folder, the one place it already
works, so a bot can never send a teammate somewhere new. It refuses:
- without thread "new", or for a room (a room's folder governs there);
- when that folder no longer exists, or the conversation has none;
- when the folder is inside OpenMausBot's data folder, which holds bots'
  private task workspaces, so a bot cannot expose its private area.

The catalog note rides on the thread description, which got shorter, so
every profile stays within its byte budget; goldens regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A running Windows app never sees PATH changes, so augmentedPath() scans known
install folders. The list had Docker Desktop's folder but not Podman's
(%ProgramFiles%\RedHat\Podman, used by the Podman installer and Podman
Desktop). Podman is the preferred Windows runtime for Local VMs, yet the
container check said no runtime was installed until OpenMausBot restarted.

Add that folder to windowsKnownDirs(), with a simulated-Windows test that
runs on every platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat header's -webkit-app-region: drag covered the bump, and Electron
applies drag rects in document order, so the header (after the sidebar)
turned the bump into a window-drag area: clicks never reached it outside the
browser preview. Once mounted the bump is portaled to the end of <body> and
pinned to the sidebar's right edge, so its no-drag rect wins.

The composer's bg-app backdrop (behind its lower half, down to the window
edge) cut the transcript off in a solid block; Simple mode drops it so the
chat stays visible around and below the composer. Advanced keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The layout effect ran before React attached the parent <aside>'s ref, found
no anchor and never retried, so the bump stayed inside the sidebar under the
chat header's drag rect. A passive effect runs after refs are attached. Adds a
happy-dom test that fails on the old code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(companion): let phones steer a held message into the running turn
fix(local-vm): find Podman installed while OpenMausBot is running on Windows (MOCA-152)
fix(coordination): a bot can start a teammate's new thread in its own project folder (MOCA-393)
fix(threads): every thread change is saved before it is shown, and a failed save says what it was
fix(drivers): honor full access in antigravityPermissionMode
fix(chat): keep the composer above a markdown table's sticky header
fix(runtime): don't show an empty error row after an external runtime's poll handoff
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
`serve --tunnel` lands on a separate listener (OMB_TUNNEL_SOCKET) that
cloudflared forwards to. That hop runs on this machine's upload to
Cloudflare, uncompressed, and the server never compresses. Every Cloud
and VPS route already passes Caddy's `encode zstd gzip`, and the
loopback listener would only spend CPU, so both stay as they are.

json() now hands its body to server/harness/tunnel-gzip.ts first. Only
replies on the tunnel listener are candidates, and they are gzipped
when the body is 1 KB or more and Accept-Encoding takes gzip (q=0
refuses it). HEAD, 204, 304 and already-encoded replies are left
alone. The reply gets Content-Encoding and a merged Vary. Headers go
out at once, so the route table still sees the reply as answered, and
the body follows from async zlib, so a multi-MB reply never blocks the
event loop. Event streams, files and images never pass through json(),
and WebSocket upgrades are a separate server event the wrapper never
sees.

Inspired by pingdotgg/t3code#4788.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop app's phone link never reaches the server's tunnel
listener. cloudflared and the guardian gateway forward to the
companion sidecar's private origin socket, and the sidecar re-sends
each scrubbed JSON body to the phone with a Content-Length,
uncompressed. That is the hop that runs on the home upload. The
sidecar never forwards Accept-Encoding to the harness, so loopback
stays plain.

The managed origin listener now marks its replies, and forward() sends
the scrubbed body through the same tunnel-gzip mechanism as the server.
It applies the same rules: JSON of 1 KB or more, gzip accepted, Vary
merged with the private `Authorization`. The LAN/Tailscale port, event
streams, file downloads and the viewer's WebSocket upgrades are
unchanged.

The companion builds on its own (rootDir companion/src), so the module
is a copy of server/harness/tunnel-gzip.ts, and a test fails if the
two ever differ.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sendJson, which answers sidecar-owned routes such as
/api/companion/endpoints (up to 8 URLs of up to 2 KB each), wrote
straight to the response. On the managed origin, such a reply went out
uncompressed even when it was over 1 KB and the phone accepted gzip.
It now goes through sendTunnelJson first, like forward(). Replies on
the LAN port keep their Content-Length and stay plain.

Found by CodeRabbit on #3009.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud home with the trial credit, while nothing of the person's own is
signed in, a bot on an engine the Cloud can't run moves onto the credit:
a desktop copy's own Claude or Codex (signed out there), or an engine only
that desktop has. This happens at start, when the credit's model list
arrives, when the app reads the engines, and before a message to that bot
is sent. Where each bot came from is kept under providers/trial-credit,
which never travels in a backup or a move. An engine whose sign-in can't
be read yet is left alone.

Once an engine of the person's own is signed in for sure, every bot on the
credit moves to it, as before. A bot that came from another engine goes
back to that engine and model when it is the one signed in. An engine whose
sign-in check timed out no longer takes the bots off the credit.

Bots run on the credit's default (the relay's first model, Sonnet once the
Admin lists it first) unless the person picks another. When the default
changes, bots and saved defaults left on the old one follow it.

Right after an engine is connected in the welcome's Connect your AI step or
the engine sign-in, the app sends it one tiny real message
(POST /api/instances/:id/check). It then shows "Claude is working" or the
exact fix, with Test again. No step is added. A failed Claude one-shot call
now reports the CLI's own words when it writes nothing to stderr.

In a chat, a turn refused because the credit is used up or gone is a quiet
note with Connect your own AI, never an error.

moveOffTrialCredit and its saved-default code move out of server/index.ts
into server/cloud-credit-moves.ts; index.ts is 24 lines shorter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every start ran the whole engine check (registry.describe(), which spawns
each installed CLI: claude --version and auth status, codex, hermes,
opencode, grok, muse, agy) 13-14 times in about 3 s: once for the
start-up read that turns wait on, once more each time an engine's model
list arrived, and once for every /api/instances the page fetched on the
config frame that followed. The first message after a restart waited for
all of it, a median 3.8 s.

An engine's status read is now shared. Callers join the probe in flight,
and one that finished within 3 s (SNAPSHOT_REUSE_MS) answers again. The
registry keeps it on the driver's own instance, beneath the Company,
trial-credit and hosted decorators, whose checks still run on every read,
and inside the one-minute deadline from #2970. A failed or timed-out read
is never reused. describe() still reads each engine's model list live, so
a list that arrives is shown without probing the CLIs again.

What changes a status read forgets it (forgetSnapshots()), so the next
read probes again:
- an install from Settings; a model refresh (Settings' Check and Refresh,
  and OpenCode's key policy changing); a Claude update, even a failed one;
- a sign-in that finished at once, a finished device sign-in, a pasted
  code, a sign-out;
- a settings save (a saved key reaches some engines through the
  environment, with no reload), and a key a provider rejected or accepted;
- a message to a bot with no engine yet, which looks for one installed or
  signed in since.
A reload replaces the instance, so its first read is fresh. A CLI
installed or signed in outside the app is seen once the last read is
3 s old; the removal e2e that installs one now waits that long.

server/index.ts stays at its line count on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In comfortable and compact density the engine's mark moves off the avatar to
the right end of the row: under the time in comfortable, after the time in
compact. The avatar's bottom-right corner belongs to the working dot and the
waiting badge, which covered a badge placed there. Icons-only has no row text,
so its badge stays on the avatar.

Hovering the mark shows only the model's name, the same label the model picker
uses; screen readers still hear the engine too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The managed Composio broker now receives Composio trigger events and queues
them per installation until its OMB server collects them, so a desktop needs
no public URL. Nothing calls the new routes until PR3; the webhook route
answers 503 until the owner sets COMPOSIO_WEBHOOK_SECRET.

- POST /v1/composio/webhook verifies Composio's V3 Standard Webhooks
  signature (UTF-8 secret, 300 s tolerance, several v1 signatures), requires
  the envelope id to equal webhook-id, routes metadata.trigger_id through
  trigger_bindings and refuses an event whose Composio user is not the
  binding's installation. Unroutable events get 200 and are only counted.
- D1 queue (migration 0002): seq order, dedupe on (installation, event id)
  kept for 7 days after ack, 1,000 events / 20 MB per installation, 64 KB of
  data per event, and a daily limit of 500 events per desktop and 2,000 per
  paid Cloud. Drops are counted per trigger binding and per day.
- GET /v1/events long-poll (25 s, cursor = ack, one poller per installation
  by lease), POST /v1/events/test, trigger types, trigger create (ownership
  checked before any upsert) / pause / delete with shared-instance counting,
  and GET /v1/triggers for the server's reconciliation.
- Hourly cron: expire after 7 days, disable at Composio the triggers of
  installations idle for 14 days (re-enabled on their next poll).
- A paid Cloud is recognised by an Admin-signed grant
  (OMB_CLOUD_CONNECTED_APPS_GRANT), which the Cloud's server presents after
  registering. GET /v1/stats/app-events gives Admin fleet counts only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's CI is red on the file-size ratchet: #3005 grew server/index.ts
from 17,532 to 17,540 lines and server/drivers/agents-call.ts from 1,138
to 1,139, and both may only shrink.

The in_my_folder check and its two refusals move into server/bot-cwd.ts
(inMyFolderCwd), next to sharedProjectFolder, and the call's type moves
into server/coordinator.ts (CoordinateBotsCall). agents-call.ts checks
its optional coordinate_bots arguments with one small helper. Nothing
changes in behaviour. server/index.ts is now 17,522 lines and its pin is
lowered to match; agents-call.ts is back at 1,138.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenMausBot no longer adds approval or confirmation cards of its own on top
of the access level a person chose. A bot's change to a profile, working
folder, default model, skill, team setup or team memory applies at once at
every level and leaves a one-line notice with Undo where undoing means
something. The engine's own permission system is the only gate.

- direct-apply.ts: appliesNow() applies at every level; the owner's card is
  kept only for a Cloud turn its owner did not drive (guest or webhook).
  Routine requests keep their rule (directApply, SELF_ROUTINE_CAP) until
  Triggers v2 replaces the routine tools.
- Team setup and bot creation apply below Full access; Undo deletes the bots
  a setup created while unused, restores updated fields and the Chief's
  earlier teams, and refuses once anything changed. Deletion has no Undo.
- Team memory applies at once (new server/team-memory-requests.ts); Undo
  removes the fact and restores any fact it replaced.
- Profile: a bot's own working folder and a teammate's profile or model
  apply below Full access, with Undo.
- A Chief's unasked specialist suggestion keeps its card: it is the bot's
  question, not an approval.
- Copy: tool descriptions, system and Chief prompts, docs, and the setup
  card's claim that new bots start at Ask (they start at Full).
- Tests: new real-server no-omb-cards.e2e (Full and Auto, notice + Undo,
  new bots at Full); tests pinning the removed cards rewritten or deleted.
- server/index.ts shrinks 17,540 -> 17,495 lines; agents-call.ts back to pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine run (scheduled, webhook or Run now) that fails for a temporary
reason now starts once more in its own conversation. This covers an engine
stall, a restart, a rate limit, and a brief provider error. The second start
is told to check what the first one already did.

- A run a restart cut off is picked up once on the next start, never twice.
  A graceful shutdown no longer marks it failed, or completed on an ACP
  engine that ends a stopped turn ok.
- A busy conversation or bot is waited for, up to an hour, instead of failing.
- Signed out, out of credit, a usage limit or an engine that needs setup is
  never retried. The owner gets one notice per bot and cause, until one of
  that bot's runs completes. A usage limit with a known reset (Claude Code)
  puts the run back for just after the reset.
- The log shows "Retried after the engine stalled · Completed", and each
  routine shows "N of M runs OK this week".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings X research up to date with main (1,496 commits since Oct 9) and
keeps every pinned file within the size ratchet.

- Catalog: the x_* definitions and their route map move to
  server/drivers/agents-x-tools.ts (agents-catalog.ts stays under 1,000
  lines); agents-call.ts dispatches them like the card tools. Main's
  single-family catalog gains one profile,
  skills+shared+voice+escalations+x, now the full golden; goldens
  re-pinned (no other profile changed).
- Included services: X sits beside main's trial Claude credit
  (OMB_CLOUD_AI_*) in the secret lists, the launcher allow-list and
  the Cloud home secrets.
- Desktop: main.mjs wiring goes through createDesktopIncludedX
  (included-x.mjs) beside main's Pro plan relay; main.mjs stays at 3,470.
- Server: the bot PATCH check moves to routes/bot-patch.ts, where main
  moved that route; ConfigStatus.xResearch moves to config-status.ts.
  index.ts was already 8 lines over its pin on main, so
  checkedGroupResponder moves to routes/groups.ts (its only other user)
  and the pin drops to 17,523.
- UI: the X card uses main's useCloudPlan().view, Settings sign-in
  ("Sign in to your Cloud plan") and the Add a Cloud sheet (Compare
  plans) in place of the removed ProLink.
- The carried credentials test reads CREDENTIAL_PATCH and the external
  save's tombstones where main moved them.
- A Cloud home whose relay token is refused (401/403) is no longer told
  to sign in again: it says X research isn't connected on this Cloud,
  with nothing to sign in to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Routines recover from passing failures by themselves
Stop OMB's own cards: profile, team setup and team memory apply at every level, with Undo
Broker: app-event pipeline for Composio triggers (Triggers v2, PR2)
perf: gzip large JSON replies on the phone tunnel listeners
Memory capture made one background model call per chat that went quiet,
all at once: a burst of six chats cost six parallel calls about two
minutes later. It also kept a one-answer instruction ("reply with just:
ok") as a lasting preference ("prefers minimal replies"), which recall
then sent along with every later turn.

- A bot's chats that go quiet within 15 s of each other are read in one
  call (at most 12 turns and 24 KB a call; a bigger backlog takes more
  calls). Calls run one at a time across the server, never in parallel.
- In a call reading several chats, the conversations are numbered and
  each item says which one it came from, so its source line, journal
  rows and About me (only from the owner's own chats) stay per chat.
  An item without a valid number goes to the chat with the most said.
- An exchange too short on both sides to hold a fact ("ok" -> "ok")
  spends no call; a short fact the bot answered in words is still read.
- The prompt says an instruction for one answer is never a preference;
  only one stated as lasting counts.
- Backups, shutdown with chats still queued, a bot deleted mid-call and
  a call that never answers all keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
perf(memory): one capture call per bot, one at a time, and none for an exchange with nothing to keep
perf(engines): probe each engine's CLI once at start, not once per model list and engine-list read
feat(desktop): Simple mode v2 — Grok-style sidebar, bot-only header, four-tab bot panel
Main's server/config.ts grew to 1,457 lines with #3011 (one more
credential env name), over its pin of 1,456. The three non-credential
names that close WORKSPACE_CREDENTIAL_ENV share one line under their
comment, so config.ts is 1,455. Pins match the merged counts:
server/index.ts 17,469, agents-call.ts 1,137, config.ts 1,455.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pt-br goes from 1,597 to 4,780 strings and es from 1,581 to 4,780, both 100%
of en.json. The catalogs follow en.json key order, as generate-locale.mjs
writes them, and source-hashes.json records each string through --accept.

Two existing strings now name the Routines tab by its translated label, and
the Spanish Mac permission hint names the Retry button as it is shown
(hardcoded English). The ApprovalModeSelector test expected pt-br's English
fallback for "Auto-accept edits"; it now expects the translation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A "Today" entry at the top of the sidebar opens a full page, the same on
desktop and on a Cloud, from one route: GET /api/today?since=<epoch ms>.

- Tiles only for outcomes that happened: emails read or sorted, drafts,
  emails sent, messages posted, documents, reports and briefings, leads and
  records, other app actions, routines and triggers OK versus failed, and an
  estimated time saved with its method in a tooltip.
- Needs you: signed-out engines, trial credit, usage limits, broken app
  connections and place settings (admins), and open questions (everyone).
  Never an approval; each item has the one action that fixes it, and leaves
  once the bot finishes a turn after it, the engine signs in or the app works.
- Timeline: one line per finished turn (its digest summary) or routine run,
  plus failures that never got a summary, with who started it and what it
  produced, filterable by bot, each opening its conversation.
- Outcomes come from recorded tool calls, classified by name in one map
  (shared/today-outcomes.ts) that also holds the minutes per outcome; a
  Composio multi-execute call counts each slug its recorded input names.
- Two partial indexes on messages keep the read cheap (50k messages: 14 ms
  today, 52 ms for 7 days) without moving any other query's plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brazilian Portuguese and Spanish: translate every UI string
Brings main in through #3013, so this branch and #3013 merge in either
order. server/index.ts is 17,445 lines with both, and its pin matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ci): in_my_folder check and the coordinate_bots call type move out of server/index.ts
Cloud: every bot works from the first minute on the trial's Claude credit
- Copy uses main's retired-name rule: "OpenMausBot Cloud" is now
  "MausBot Cloud" in the card, the bot sentences, the tool description
  and the docs.
- x_post reads a post, but the outbound classifier read its POST as a
  send, so the bridge kept it always listed, Auto mode would have held it
  for an outbound confirmation, and a cut turn that used it would never
  rerun. The agents server's four X reads (under every engine's
  spelling) are exempt; another server's post still counts as a send.
- The tool bridge's goldens get the +x twin of the catalog's new full
  profile, with its budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main fixed its own size ratchet (#3013) and merged Cloud AI readiness,
OMB-side card removal and Simple mode v2 meanwhile.

- X's token sits beside main's OMB_CLOUD_CONNECTED_APPS_GRANT in the
  secret lists; config.ts stays at its pin.
- Simple mode v2 shows Access a part at a time: the X research card is
  a part of its own (xResearch), shown in full Access and on Simple
  mode's Connected apps page.
- index.ts is 17,428 (pin was 17,445) and agents-call.ts 1,136 (was
  1,137); the pins are lowered to match. Catalog and bridged goldens
  re-pinned; only the +x profile's bytes moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A trigger is "when something happens, a bot does something". A bot now sets
one up from chat with create_trigger in the same turn, at every access level,
with no confirmation card. The conversation shows a live trigger card (what
fires it, who does what, next run or last fire) with Edit, Pause, Undo,
Copy link and Open in Triggers. Triggers, first in the sidebar in every mode,
lists schedules and webhooks with a calendar and the run history.

- Tools: list_triggers, create_trigger, manage_trigger replace list_routines,
  propose_routine and propose_routine_action.
- A bot-made webhook's secret never reaches the transcript; the person mints
  the link with Copy link.
- Deleted: the footer Triggers pop-up and triggersOpen, the footer Routines
  and Triggers rows, the standalone Webhooks panel and tab, the routine
  Confirm path (SELF_ROUTINE_CAP, the pending submit outcome, the composer's
  routine Confirm), and per-run cards in a chat that holds the live card.
- routines.json, webhooks.json, webhook URLs and /hooks/* are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three tests on main pinned behaviour that #3014 and #3015 changed, or raced
on slow runners. Tests only; no product code changes.

- comms.test.ts: #3014 applies team setup at every level, Ask included, so
  the section Chief's create_bot no longer shows an "Apply setup" card to
  approve. The test now expects the applied notice (autoApplied, answered,
  no options, Undo listing the bot it created) and keeps the safe-operator
  profile and delegation checks.
- openai-boat.e2e.test.ts: #3015 retries a passing failure once. A Boat that
  answers 503 while its cloud computer is checked is a temporary outage, so
  the run is queued once (retried "provider") and then fails with "Failed
  after one automatic retry: ...could not be checked...". The test expects
  that, and still checks for no engine requests and no native prompts.
- routine-recovery.e2e.test.ts: the stall marker shifts the watchdog clock,
  so an engine frame the server reads after the marker is written restarts
  that turn's stall window, and the turn never stalls. The engine writes its
  dump before its init frame, so on a slow runner the marker could land
  first (Windows failure: retried stayed undefined). Both stall tests now
  wait until the server has logged the engine's init for the turn before
  they write the marker. Reproduced by delaying init 300 ms with a 2 s
  sweep: the old test fails the same way, the new one passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop's credential list must match WORKSPACE_CREDENTIAL_ENV name for
name and in order; the merge put OMB_CLOUD_X_TOKEN after main's
OMB_CLOUD_CONNECTED_APPS_GRANT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/direct-apply.ts
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/full-access-workflows.e2e.test.ts
#	server/index.ts
#	server/system-prompt.test.ts
#	server/system-prompt.ts
#	src/components/Sidebar.tsx
A Boat started whenever a bot needed it, but only the manual Sleep button
ever stopped it, so every start billed until Boat's own eight-hour
auto-stop: 315 of October's 325.5 billed hours were idle.

Now a cloud computer this installation runs goes to sleep once it has been
idle for 10 minutes (CLOUD_COMPUTER_IDLE_MS): no turn or routine run on
it, nobody watching its screen or holding its desktop, nobody on its team
working for a shared one, and no create, delete or settings change under
way. The next turn, or a person's Wake or desktop open, wakes it as
before. After a restart, every computer left on gets the same window. A
failed stop is logged and retried a window later, then two, four, at most
an hour apart; busy is re-checked and the lifecycle lane taken right
before the stop. The same path runs on desktop, headless and Cloud, with
a person's own Boat key and through the Admin relay. A VPS is never
stopped.

- LocalVmIdleTimer becomes ComputerIdleTimer (server/computer-idle.ts), the
  one idle timer for the local VM and Boats, with backoff, a "became busy"
  answer and a busy re-check ten times a window.
- server/host/cloud-computer-power.ts owns waking and sleeping; startBotBoat
  moves there unchanged.
- Opening the desktop from a Cloud computer bot's conversation wakes a
  computer that fell asleep instead of refusing; Auto still never wakes one.
- The computer's "On" line says it sleeps after 10 minutes without use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the Sidebar.tsx conflict with main's Simple-mode row (simpleRow,
railTile): keeps main's new avatar sizes alongside this branch's one-line
iconOnly effect. The model mark's two placements are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud computers go to sleep after 10 idle minutes and wake on the next use
fix: main after Oct 17 merges (comms team setup, Boat routine retry, flaky Windows recovery test)
fix(mcp): name the HTTP status when a remote MCP server refuses a request
Conflicts:
- src/components/BrowserPanel.tsx, BrowserPanel.test.ts: kept v2. Main's
  032c51532 ("a person keeps the browser when their live view's stream
  drops") rewrote the old panel's connection; its panel half is carried into
  v2's v1 live client in the next commit. 73be98869 was already on this
  branch (merged before) and v2 keeps it: BROWSER_HELD_ELSEWHERE on a refused
  click and in the overlay.
- server/index.ts: the v1 live/action route stays in
  server/routes/browser-viewers.ts (main's ?resume= is passed on there in the
  next commit); the tunnel listener keeps main's gzipTunnelReplies and v2's
  upgrades.attach.
- scripts/testing/file-size-ratchet.test.ts: main's pins, server/index.ts
  lowered to its measured 17421 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Carries main's 032c51532 into the v2 panel. Its server half (agent-browser
parks a dropped person's hold for 2 minutes and gives it back to that panel's
?resume=<old view>) came in with the merge; this is the route and panel half,
on the v1 live view that agent-browser, the default engine, still speaks.

- The v1 live route passes ?resume= on to the live view again
  (server/routes/browser-viewers.ts, where v2 moved the route).
- The v1 client asks to resume the view it had until a new one is ready,
  also across a Reconnect, which makes a new client: the panel keeps the id
  per bot and profile.
- It reconnects at once when the window is focused, shown or back online,
  also after its retries ran out (the panel then stops saying the browser is
  disconnected); a stream silent for 25 s counts as dropped; a 404 for its
  input means the server closed the view, so it reconnects instead of halting.

Main's tests for these, adapted to the client, plus two panel tests and a
route test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size limits: server/index.ts 17,324 and src/state/store.tsx 3,604 lines after the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every wake of a cloud computer spends one start from the Boat account's
shared pool (create, fork and resume each count; about 200 a day on the $20
plan for every customer together, and the relay stops at 90%). Since #3025,
a routine every 15 minutes woke its computer about 96 times a day, so two
such customers would use up the pool for everyone.

A cloud computer now does not go to sleep while a routine that will use it
is due within ROUTINE_DUE_SOON_MS (30 minutes, longer than the 10-minute
idle window). The server hands the power module every routine and the
computer its turns use (the bot's own cloud computer, or its team's shared
one); a paused routine, one with no next run, or a bot whose turns use no
cloud computer counts for nothing. When the run ends the usual window
starts again. A routine every 30 minutes or more often keeps its computer
on; an hourly or daily one still lets it sleep between runs. Same path on
desktop, headless and Cloud; no setting, no UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep a cloud computer on when a routine that uses it is due within 30 minutes
fix(companion): let paired devices save bot appearance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
treg is bring-your-own-key for everyone, and stays included with paid
Cloud plans.

- Settings → API keys has a treg key ("Get a key at treg.to"), kept like
  the other provider keys: the desktop's encrypted store (tregApiKey,
  OMB_TREG_KEY) and the server config elsewhere, never in logs or argv.
  Saving it checks it with two free account reads (who the key is, then
  the team's balance): "treg is working ✓ Balance: $4.25." or the exact
  problem.
- Visibility: the tools reach the AI only with the person's own treg key
  or a paid plan's research credential (a home's OMB_CLOUD_X_*, or the
  desktop's plan token). With neither there are no tools, no prompt text
  and nothing in the catalog; every route checks again before it spends.
- Routing: an own key calls https://treg.to directly with X-Treg-Token,
  with no relay and no limits from this side, and treg's own refusals pass
  through as sentences (the balance with its top-up link, a bad request,
  a rate limit with when to retry). Without one, calls go through the
  Admin's relay as before. With both, the own key wins.
- Research tools beside the X tools, on the same routing:
  research_search({ job, limit? }), research_endpoint({ id }) and
  research_call({ id, params?, query? }). On a plan they map to Admin
  #125's /research/search, /research/endpoints/<id> and
  /research/call/<id>. With an own key they use treg's catalog search,
  endpoint rows and /call/<id>, with the method and array encoding taken
  from the catalog and no category limits. Every call sends a fresh
  Idempotency-Key, reused only on its own retry (a lost answer, or treg
  saying it is still running), and shows its cost from X-Treg-Cost-Micro
  or X-Omb-Research-Charged-Usd.
- The per-bot switch (bot.xResearch) is one "Research (treg)" switch for
  both, on by default whenever a key or plan is available, and still off
  per bot. With neither, the card asks for a treg key and opens API keys.
- Activity reads "Searched X", "Looked up people", "Looked up
  companies" and so on, from the category in the endpoint's id, never
  the vendor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Triggers become "Automations" everywhere a person sees them. Each one is a
plain sentence ("Every weekday at 9 AM, Scout sends you a summary of your
inbox"), with Working / Paused / Needs you, one fix button when it needs the
person, and a List · Calendar switch. Clicking a sentence or a calendar event
opens one panel with recent runs and Run now, Pause, Edit, Delete. + New is a
single "What should happen?" box that sends a chat message to a bot. The chat
card is two lines and updates live.

History, run logs, the kind chips and the explanation paragraph are gone.
Bot-facing text calls them automations; tool names and data are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reddit blocks bots that browse from data-centre addresses and can ban the
account behind them; an OMB Cloud Pro user was banned after their bot
browsed Reddit from a cloud computer. So a MausBot Cloud home's built-in
browser, on either engine, never connects to Reddit, and a cloud computer's
open_url refuses Reddit links. The desktop and self-hosted servers are not
limited.

- One list (server/browser/egress/reddit.ts): reddit.com, redd.it,
  redditmedia.com, redditstatic.com, reddit.app.link and their subdomains.
- The egress gate refuses those names before looking them up, on a Cloud
  home only, so typed addresses, links, redirects, frames and requests are
  all caught; the page-health line adds the plain reason.
- A browser tool call whose url is Reddit gets the reason without reaching
  either engine (RuntimeRouter). My Chrome is left alone, as the gate does.
- A Chrome-engine call that fails (a redirect into Reddit) now carries the
  gate's notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One "Automations" row sits where Routines and Triggers used to be in the
footer menu, in Simple and Advanced mode and on the icon rail, and opens the
Automations page. The row at the top of the bot list is gone. The list view
keeps the sidebar so the entry shows as current; the calendar stays
full-width. The collapsed Tools header carries the failed-run dot again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Automations: set them up from chat, see them in one simple place (schedules + another app)
Triggers v2 merged second to none here, so this side re-pins: the catalog
and bridged goldens are regenerated with both tool families, and only the
+x profile's bytes moved. agents-call.ts is under the ratchet's floor now,
so its pin is gone and its table keeps main's layout; index.ts is pinned
at 17,307.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(browser): browsers in the cloud never open Reddit
chore(release): bump version to 0.1.115
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Brings #3029's string extraction (743 new en.json keys wrapped in t()) and
its pt-br translations, plus the localized first greeting and MEMORY.md seed.

Resolved against main:
- en.json / pt-br.json: union of main's catalog and the PR's new keys (no
  key collisions); pt-br source hashes re-accepted with
  `generate-locale.mjs pt-br --accept`.
- RoutineCalendarPage.tsx: main removed RoutinesPage, so its localization is
  dropped with it, and 14 keys only it (or nothing) used are removed. The
  event card keeps main's new layout and uses the PR's bot-count and Group
  strings.
- vite.config.ts: left out the `.codex-preview-data` watch ignore (a local
  tool folder, not localization).
- memory.ts: journalSummary keeps "the <date> log" now that fileLabel
  returns the bare date (the PR's own memory test expected it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- BrowserPanel: derive `reconnecting` from the error text again instead of a
  new useState. The panel's tests seed state by useState call order, and the
  extra state shifted every later slot (19 tests failed).
- vocabulary.test: CloudBackendPicker's Boat/VPS copy moved into en.json, so
  its allowance moves from the hard-coded list to EN_ALLOWED for those keys.
- words.test: allow botOverview.line.privateWorkspace, which shows the
  server's own "Works in its private workspace." line.
- OverviewSection.test: setup ideas now show by id, so the fixture uses the
  server's real "Choose a working folder" label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in #3029: localize the desktop UI in Brazilian Portuguese
The panel keeps v2, with the strings #3034 moved to browser.panel.* keys
used in place of their English text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Browser panel v2: the page fills the panel, sharp, over T3 Code's stream
A complete bot frame omits managedSections once a team setup demotes the
Chief, so the reducers' spread kept the stale list and Bot Settings stayed
locked to it until restart. Copy the field like the other cleared optional
fields in botPatched, its thread-switch path and taskSwitched.

Fixes #3030

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Turning one back on
- A schedule's switch, the panel's Pause/Resume and the chat card now PATCH
  and apply the server's answer at once, like webhooks did. Before, schedules
  went through a fire-and-forget updateRoutine whose error landed in
  state.error, which only the chat view shows: on the Automations page a
  refused re-enable was silent and the switch just stayed off.
- A one-time schedule whose time has passed was the case the server refused
  by accident: turning it on ran it again at once (or marked it missed) and
  switched it off. The server now says "Its time has passed. Edit it to pick a
  new time.", the page shows it as Done with no switch, and saving it with a
  new time turns it back on.
- Errors show beside the row that was clicked; the switch is disabled while
  its request runs. A broadcast that arrives after the PATCH answer never
  steps back to an older edit.

A deleted bot's automations
- Deleting a bot removes its schedules, webhooks (for good: no restore entry)
  and their runs, from the store's bot.deleted event, so every deletion path
  is covered. Automations whose bot is already gone are removed at start,
  unless no bot loaded at all. The scheduler never starts a schedule whose bot
  is missing, and the page, chat card and calendar never show one.
- The delete-bot confirmation now says automations go too (all 12 languages).

Also, from walking the whole journey in the real app
- More, for another app's automation: Recent calls (last 30, refused and
  skipped ones included, with a plain reason) and Last thing it received.
- "next: tomorrow 9:00 AM" instead of "next tomorrow 9:00 AM" (en, pt-br, es).
- A future calendar event of an automation that needs you is orange.
- Run now works on a paused webhook, like a paused schedule.
- The chat card's Edit opens over the page: inside the transcript it was
  clipped and the composer covered Save.
- No "Keep OpenMausBot open" hint on a Cloud.
- Narrow windows: the header no longer sits under the menu button or runs off
  the screen, the calendar opens on today's day, the card's line keeps room.
- "Hasn't run yet" is capitalized at the start of the card's line.

Tests: a real-server e2e (off/on both kinds and an on-time run after it, bot
deletion, orphans at restart), unit tests for each piece, and an OMB_UI_E2E
journey in headless Chrome against the real server, desktop and Cloud home,
with its screenshots in docs/screenshots/automations-journey.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
More is opened for Recent calls, often on a shared screen: the secret reads
Secret: •••••••• with Show and Copy. Copy works without showing it; Show
reveals it for that panel only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3034 (pt-BR localization) left main red on three vitest files. #2947
(browser panel v2) added no failures; its Windows S4 viewer scroll test
is the known flake.

File-size ratchet: five files grew from #3034's i18n additions. Move
the added pieces into modules instead of raising pins:
- server/store.ts: the seeded greeting message moves to
  initialGreetingMessage() in server/initial-greeting.ts (2475, at pin)
- PluginsPanel.tsx: category and connector copy moves to
  src/lib/app-catalog.ts (1113, at pin)
- TeamLibraryPanel.tsx: catalog types and catalogCopy move to the new
  src/lib/team-catalog.ts (1102, pin lowered from 1120)
- ComputerPanel.tsx: LocalizedPanelError and panelErrorText move to
  src/lib/computer-messages.ts (1901, pin lowered from 1918)
- ModelPicker.tsx: effortLabel's xhigh branch built the same key as the
  template, so it is one line again (1204, at pin)

chat-dir-auto: the task row title is now {localizedTaskTitle(task.title)},
so the bare {task.title} marker found the activity <option> instead.
Point the marker at the row title, which still has dir="auto".

ShareTeamDialog: the playbooks chip is now the en.json string
"{count} playbook(s)"; assert that English copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
App events (Triggers v2, PR3). A bot sets one up from chat with
list_trigger_events and create_trigger (when: "app_event"), or the person
uses New → Set it up yourself → When something happens in an app.

- server/app-triggers.ts keeps DATA_DIR/app-triggers.json, long-polls the
  connected-apps service's queue with the installation token, dedupes by run
  receipt, acks only after the run and the file are saved, merges bursts into
  at most 3 waiting runs of up to 20 events, and reconciles with the service
  at start and every 15 minutes so the setup heals itself.
- Each event runs on the routine runner as an outside event (triggerSource
  "webhook", eventSource "app"), so results, retries and failure reports are
  shared with schedules and webhooks.
- A Gmail filter becomes Gmail's own search; other apps match it on arrival.
  Bots see and may watch only apps their connected-app settings allow; a
  guest-driven Cloud turn is refused.
- The Automations page, panel and chat card show the sentence, "checks every
  15 minutes", recent events, what was skipped today and why, and Needs you
  with Reconnect when the connection expired.
- A server with its own Composio key is told plainly that app events need the
  included connected apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The prompt and create_trigger now ask for instructions as a plain action a
person would say ("draft a reply"), never "event data", "payload", "webhook"
or "trigger"; each run's prompt says where its event is instead. The
sentence drops such a trailing phrase, so existing automations read well too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The self-hosted update row looked only at the server's own version, so a
tab left open across a server update said "You're up to date — v<server>"
while About (the page's bundle) still showed the older version. A finished
check now compares the two and offers a reload when the page is behind.

Refs #3001

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comment-history check rejects issue/PR references in comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex drops root-level -c once the subcommand has its own, and the
driver always adds its own after app-server. So a '-c key=value' typed
into Set CLI saved fine, passed the CLI test, and then did nothing.

The Codex turn launch now pulls '-c key=value' / '--config key=value'
out of the CLI string and passes them right after app-server, ahead of
the driver's own overrides, which keep the last word.

Fixes #3041
Fills every key that was missing from the Japanese pack so the UI no longer
falls back to English (en.json: 5,729 keys; ja.json: 5,729).

- Drafted with scripts/generate-locale.mjs, then reviewed.
- Existing translations are untouched (0 changed).
- Terminology aligned with the existing pack (自動化, メモリー, ルーティン,
  ボット, スレッド, コンピューター).
- Brand and product names, "OK", and placeholder-only values are kept as-is.
- node scripts/generate-locale.mjs --check passes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
My Cloud refused every 1Password service account token with "1Password is
not available in this build of OpenMausBot", then "1Password could not be
read". The token was never checked.

Root cause: the Cloud home's root supervisor (cloud-home-start.ts) hands the
server an allow-listed environment, and OMB_DUCKDB_DIR was not on the list.
The image sets it to /app/duckdb, where the 1Password SDK, DuckDB and resvg
are staged (scripts/prepare-duckdb.mjs). Without it the server looked for
them beside /app/dist-server, which ships no node_modules, so the SDK never
loaded. DuckDB (Data) and chart PNGs failed on Clouds for the same reason.

- cloud-home-start: pass OMB_DUCKDB_DIR through. A Dockerfile test now
  fails when the image's ENV sets anything the server does not receive.
- 1Password errors say what is wrong: an installation that cannot load the
  SDK says so and never blames the token (the reason goes to the server
  log); a malformed token, a refused token and an unrelated error ("Unexpected
  token" in JSON) are told apart; a token that is not a service account token
  (no ops_) is refused before 1Password is asked.
- request_credential has a 1Password slot (onePasswordToken). The card saves
  it through this server's Logins, which checks it with 1Password first,
  never the settings file or the chat; "configured" means Logins holds a
  token. A phone is told to paste it in the app instead.

Tests: a real server started exactly as the supervisor starts it (its
environment from cloudHomeChildEnvironments, secrets over the pipe) with a
fake SDK in the image's native-module tree connects 1Password; a second boot
whose tree lacks the SDK gets the plain message; a bot's request_credential
for onePasswordToken makes the card, and the card's save resumes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud bot that works through a lent PC drives that PC's screen with
cua-driver over the lending channel: the desktop long-polls its Cloud over
HTTPS (no tunnel), runs each job through cua-driver and posts the result.
The Cloud's own browser never runs on the PC. Several ways this broke left
the bot with a raw error, a 45 s timeout or a retry loop.

Browser tools on a lent screen
- cua-driver's get_browser_state and browser_* need a DevTools endpoint;
  a normal Chrome or Edge has none, and browser_prepare is deliberately not
  lent, so every call failed with browser_requires_setup and the bot kept
  trying. The Cloud now adds one plain instruction to that refusal and to
  the computer_tools listing: open the page with launch_app urls (the
  person's own browser) and work with get_window_state, click and
  type_text. The shared_computer description says the same.

The lending channel
- A long poll whose client dropped held the computer: the reconnecting
  desktop was refused ("A computer poll is already running") for up to
  20 s, and the next job went to the dead poll and timed out after 45 s
  with "outcome unknown". The newest poll now wins, a poll whose client
  went away answers nothing, and a job not leased within 10 s (the desktop
  leases before it runs anything) is offered again under a new id, so the
  lost delivery can never start it.
- A request for a computer seen in the last minute waits up to 15 s for it
  to reconnect; one that stays offline is named, with what to check.

Failures on the PC (desktop)
- A missing or quarantined cua-driver.exe (Windows Defender) gave Node's
  raw spawn error with the full Windows path; computer control that never
  started said "Enable it in the local app". Both now give the fix:
  restore it from Windows Security → Protection history or reinstall, or
  allow Accessibility and Screen Recording on a Mac. The Cloud maps the
  raw texts older desktops still send.
- A locked screen is refused before the driver is reached, with "unlock it
  and keep it unlocked".
- The lent cua-driver process got only PATH and HOME; on Windows it now
  gets SystemRoot, USERPROFILE and TEMP as the terminal path already did.
- Windows paths in a failure collapse to the file name before they leave
  the PC, as POSIX paths already did.

Tests
- server/cloud-lending-browser.e2e.test.ts: a real Cloud home, a second
  real server as the PC's own desktop server (its screen lease) and the
  real connector between them, with a scripted cua-driver. A browser task
  through the PC, and each failure injected: screen held locally, locked,
  driver exits / is missing / never started, a poll answer lost, a dead
  poll the server still holds, lending paused, a driver that hangs.
- Unit: shared-computers (newest poll wins, abort, re-delivery, reconnect
  grace), lent-screen-guidance; electron lending-guards (lock, missing
  driver, unavailable reasons, driver environment, Windows paths).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud machine just after a restart the CPU is starved for its first seconds (Caddy took 15 s to listen), and the
launcher's `--version` check ran past its 10 s timeout. ChromeLauncher then latched "failed" for the server's whole
life: "Chrome could not be prepared (the browser launcher does not run here: Command failed: …chrome-launcher.sh
--version)", and bots used the engine's own browser, without the calibrated identity, until the next restart.

The check exists to catch a noexec data volume, which refuses the launcher at once. A check that was killed for time
proves the launcher started, so it now counts as running. A launcher that exits with an error or cannot be executed
is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a fresh Cloud with one bot, + New → Set it up yourself → On a schedule opened the editor with that bot shown but not
chosen, and "Schedule routine" stayed disabled with no word why until the person clicked the bot's card. The New box
already knew the bot it would have asked; it is now carried into the editor, and with none a lone bot is chosen. The
webhook editor takes the same bot (it used to take the first bot in the list).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a real Cloud, a webhook whose instructions began "E2E-WEBHOOK-RUN: …" read "When another app sends something, Zuko
e2E-WEBHOOK-RUN": the first letter of a word that is not a verb was lowercased. The same rule turned "SMS the team"
into "smses the team" and "HubSpot deals…" into "hubSpots deals…". A first word with a capital after its first
letter is now a name or an acronym: it keeps its case and is never made a verb, in every language.

"Every 2 minutes, tell me the time" became the cron */2 (an interval runs at most every 5 minutes) and read "On a
custom schedule". A plain minute-step cron now reads "Every 2 minutes".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud customer's Google sign-in in his Chief's cloud browser stopped at
"Verifying it's you… complete sign-in using your passkey" and never
finished. A passkey lives on the person's own phone or computer; a bot's
browser runs headless, and a cloud one has no Bluetooth for the phone's QR
route, so it can never answer one.

Reproduced on real Chrome 155 with a fixture shaped like Google's passkey
step: the WebAuthn request waits forever, and Chrome's passkey sheet, which
a headless browser has nowhere to show, blocks the tab's input meanwhile.
Clicking "Try another way" did nothing, for the bot and for a person in the
hand-over view; Escape does not end it, and a reload starts it again.

- Headless bot browsers send WebAuthn to CDP's virtual environment
  (WebAuthn.enable, enableUI false) on every page before it runs: on the
  Chrome engine at target setup, and through the identity sidecar on
  agent-browser. A passkey request nobody answers still waits, but the
  page stays usable, so "Try another way" works. Headed browsers and the
  person's own Chrome keep the real passkey UI.
- The bot is told, on any browser answer that shows a Google or Microsoft
  passkey step (by Google's challenge address, or the step's wording on
  that provider's page, in English, Portuguese and Spanish): stop retrying;
  for Gmail, Calendar or Drive use connected apps
  (COMPOSIO_MANAGE_CONNECTIONS); otherwise "Try another way" with a saved
  login and fill_login, or request_sign_in asking for the password and a
  code; on My Cloud, a lent PC's own browser. Both engines' answers go
  through one hook in the runtime router; My Chrome is left alone.
- The sign-in prompt prefers connected apps over a browser sign-in for
  Google and Microsoft accounts and points at the notice.
- The browser panel (the hand-over view) shows the same explanation on
  Google's passkey address, with Open Connected apps, the Try another way
  steps and, on My Cloud, the lent PC by name or how to lend one. English,
  Brazilian Portuguese and Spanish.
- Help page: "Signing in to Google from a cloud browser".

request_sign_in's description is unchanged: the bridged hot list has 21
bytes of budget left.

Tests: server/browser/passkey-wall.e2e.test.ts on real Chrome (added to
both CI browser legs): the notice, the step never finishing, and Try
another way working while the passkey waits; unit tests for detection,
the notice, the router hook and the sidecar; browser panel tests. Every
fix mutation-checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots, chats, skills and logins live on each side by design (This computer and
My Cloud), and nothing said so. A customer had 1Password connected on his PC
but not on My Cloud, his Chief and nine bots on My Cloud and one bot on his PC,
and expected them to match.

Also use on My Cloud (Settings → Logins on this computer):
- Each saved login and the 1Password connection say whether they are on this
  computer only or on this computer and My Cloud, read with the window's own
  Cloud session (no Logins route returns a secret).
- Also use on My Cloud sends that one login, or the 1Password service account
  with its vaults' bots, to the person's own Cloud. The secret leaves this
  computer's server only over Electron's private utility-process port
  (server/login-handoff.ts), and reaches the Cloud over a one-send pairing made
  as Copy this computer to My Cloud makes it, straight to the Cloud's own
  Logins routes, then signs out. Never a chat, a bot, a page or a log.
- A login kept to some bots stays kept to those of them My Cloud has: a send
  never opens a login to more bots, and the page says when it narrowed.
- My Cloud's own Logins page says its logins are its own and where to send one
  from. One direction only: the Cloud never hands a secret to a page.

What lives where:
- The server switcher (native menu, the same on This computer and My Cloud
  pages) starts with one line, e.g. "Your bots live on My Cloud. This computer
  has its own: Ember.", and offers "Bring this computer's bots and chats to My
  Cloud…", which opens the existing Copy / Bring newer chats.
- Windows and Linux menus show no sublabels, so My Cloud's status ("Always
  on", "Free trial until …") vanished there; it now joins the name.
- The copy card in Settings → MausBot Cloud says the same, naming this
  computer's bots. A docs page explains it all.

main.mjs and index.ts keep their pinned sizes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each routine run gets its own thread, so the incident ledger never saw a
repeat: a routine on a short interval that kept failing filed one incident
per run, and each one cost the Chief a paid turn. A failure that matches
the routine's last outcome now stays quiet, like an owner cause already told.
It is reported again once the failure changes or a run completes.

Fixes #2975
A Cloud home's computer runs in UTC. Tested on a real Cloud from a browser in India: "Every day at 6:35 PM" set in
the editor showed "next tomorrow 12:05 AM", because the editor sends the browser's local 18:35 and the server reads a
daily time in its own zone. A bot asked for "every day at 9" reads the same UTC clock, so it runs at 2:30 PM there.
Run titles ("E2E webhook · Oct 18, 12:27 PM") and the bots' "current time" were in UTC too, while every other time
on screen was local. Moving a desktop's routines to the Cloud shifts them the same way.

The owner's own app now gives the Cloud its time zone whenever it differs (GET/PUT /api/time-zone, admin scope, Cloud
home only), the way a laptop's clock follows its owner. The server saves it (time-zone.json), runs in it
(process.env.TZ, which engines, shells and the browser started after it inherit), takes it back at start before any
routine runs, and moves the next run of each daily or weekly routine, and of each interval kept to some days or hours,
to the same local time in the new zone. Cron rules name their own zone, one-time runs are instants and plain intervals
count elapsed time, so those keep theirs. A desktop never sets one.

To keep routines.ts from growing, the interval helpers move unchanged to server/routine-intervals.ts (1869 → 1828).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A customer's "Let My Cloud use this computer" switch read off while his
computer still showed apps and screen lent (terminal off), with no reason;
his last lent activity was 11 days old; and My Cloud's bots kept saying his PC
was not lent or online, some calling it "this Mac" and the product "OMB Cloud".

Why the switch could read off with apps and screen on: two controls wrote the
same record. Settings → Servers → Computer access (maintainer sharing, with a
terminal option) and Settings → MausBot Cloud → Let My Cloud use this computer
both keyed the grant by the server entry. A grant saved through Computer access
for My Cloud's entry has no Cloud binding, so the switch reported it as off
while that panel showed computer control on and the terminal off. And when
lending stopped by itself (signed out, another account, a moved machine) the
reason lived only in memory: after a restart the switch was simply off, the
choices still remembered, nothing saying why.

On this computer (electron/computer-sharing.mjs, CloudLending):
- Why and when lending stopped is kept with the grant and shown after
  restarts ("Off since 7 Oct, 14:02, when you signed out of MausBot Cloud"),
  with Lend the same again restoring the kept folders and apps-and-screen.
- My Cloud's entry in Settings → Servers no longer offers Computer access; it
  links to the one switch. A grant saved there before shows on the switch as
  lent, terminal included, says when it cannot run, and Stop lending ends it.
- "My Cloud last used this computer 3 minutes ago", from the activity log.
- Reconnects by itself: when its session on My Cloud has ended, main signs
  the window back in to the verified Cloud with a fresh one-time code (as Open
  My Cloud does), at most every 15 minutes. A saved Cloud sign-in still being
  read at startup pauses lending instead of counting as a sign-out.
- Tells the Cloud its platform, only when the Cloud advertises lendingDetails
  (older Clouds refuse unknown registration fields).

On My Cloud (server/lent-computers.ts, shared-computers.ts):
- Remembers each lent computer by name, with its platform, what it lends,
  when it was last online (written at most once a minute) and last used, and
  whether lending was turned off on it; across restarts, 90 days, no paths.
- Its own Settings → MausBot Cloud lists Computers lent to My Cloud: online,
  offline since, or no longer lent, what each lends and when last used.
- list_shared_computers adds each computer's device ("PC", "Mac" or
  "computer"); with none online, the offline one and a say sentence ("Their PC
  ASH-PC is lent to My Cloud but offline (last online …). Ask them to open
  OpenMausBot on that PC; it reconnects by itself."), or that it is no longer
  lent. An offline shared_computer call says the same.
- The Cloud prompt names the person's computer by platform ("their PC
  (ASH-PC)"), says never to call a PC a Mac, and uses MausBot Cloud; the last
  "OMB Cloud" log strings are renamed too.

main.mjs and index.ts keep their pinned sizes; no tool description changes,
so the tools/list goldens stay as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Windows customer needed to send his logs and nothing told him where they
are. They are in %APPDATA%\OpenMausBot\logs (server.log, desktop-crashes.log,
updater.log; app.getPath("logs")), and his bots and conversations in
%USERPROFILE%\.openmausbot. The help said only "the OpenMausBot log directory
in %APPDATA%".

- Settings → General → Diagnostics → Open logs folder opens main's own logs
  folder in Explorer or Finder (made first if nothing was logged yet) and says
  where it is; if the system cannot open it, it shows the path instead. The
  page names no path: main uses app.getPath("logs"), for this computer's page
  only. Export Diagnostics (already redacting every line) stays beside it, with
  one line saying the logs stay here and the export removes keys, passwords and
  sign-ins.
- On My Cloud's page in the app (or a browser) the row offers no buttons that
  do nothing, and says where logs are kept.
- Docs: Troubleshooting → Where are my logs?, with the Windows, macOS and Linux
  paths, what each file holds, how to export safely, and that My Cloud's logs
  stay on the Cloud for support to read; linked from the troubleshooting index
  and the startup page.
- DiagnosticsRow moves out of SettingsModal.tsx into its own file, so
  SettingsModal shrinks (ratchet 1101 → 1061); main.mjs keeps its size.

The in-app Send bug report (#2849) is still open; this neither needs nor
touches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Resolved against #3038:
- src/lib/automations.ts: automationsFrom takes both app triggers (#3039) and
  bots (#3038), and leaves out any automation whose bot is gone, app ones too;
  automationStatus keeps #3038's Done state and #3039's reconnect problem;
  imports keep WebhookAttempt for #3038's call log.
- TriggerCard / TriggersPage: pass appTriggers and bots; the card keeps
  #3038's "last ran" line and Done state, with #3039's app waiting line.
- server/index.ts: tieAutomationsToBots and the app trigger host both start.
- file-size ratchet: lowest pin of either side (re-pinned at the end).
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Resolved: the agents catalog goldens (profiles.json, bridged.profiles.json)
regenerated with UPDATE_AGENTS_CATALOG_GOLDENS=1 over #3039's app-event tools
plus #3048's request_credential change. Budgets are re-pinned at the end.
- A new automation's editor button says Save, not "Schedule routine".
- A bot's sidebar preview after a run reads "“Lead count” finished" (didn't
  finish, needs you, …) instead of the server's "Routine “…” completed".
- Recent calls: a wrong secret joined the last wrong-secret record of that
  webhook however old, and counted from memory, which a restart reset to 1.
  After an upgrade, two new calls on top of an older refusal read "Wrong
  secret (3 times)". Now a record is one burst: consecutive wrong secrets
  less than 15 minutes apart, with its count kept in the record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved against #3053 (lending truth):
- server/shared-computers.ts: #3053's KnownLentComputer, remember() and
  lent-record bookkeeping, with #3049's job lease/redelivery, newest-poll-wins
  and reconnect wait. When the wait ends, a computer whose session is live gets
  #3049's "lent but offline for N min" sentence, now naming the device by
  platform (#3053's deviceWord: PC, Mac, computer); otherwise #3053's
  offline()/no-longer-lent sentence.
- electron/computer-sharing.mjs: takes both screenLocked (#3049) and
  reconnect/now (#3053).
- server/index.ts: imports LentComputers and responseGone/lentScreenResult.
- agents catalog goldens regenerated.
Resolved:
- troubleshooting/meta.json: both new pages, #3058's "logs" and #3050's
  "google-sign-in-cloud-browser".
- src/locales/source-hashes.json: union of #3038's automations keys and
  #3050's browser.passkey keys (no shared keys).
#2566 was 78 commits behind main. Resolved:
- electron/main.mjs: imports both createDesktopIncludedX (#2566) and
  signInCloudSession (#3053).
- scripts/control-omb.ts: passes both the loopback broker fake (#3039) and
  the loopback X relay/treg stubs (#2566).
- server/index.ts: keeps main's browser viewer routes and adds #2566's
  xResearchRoutes.
- src/lib/analytics-allowlist.ts: KEY_PROVIDER has onepassword (#3048) and
  treg (#2566).
- pt-br.json / source-hashes.json: union of main's keys and #2566's treg and
  research keys.
- agents catalog goldens regenerated; the budget table keeps main's numbers
  plus #2566's +x profile (re-pinned in the combination commit).
- file-size ratchet: lowest pin of either side (re-pinned at the end).
Resolved: src/locales/source-hashes.json, union of #3050's passkey and
#2566's research keys with #3038's automations.preview keys.
- Agents catalog budgets: #3039's app-event tools, #3048's request_credential
  text, #3049's shared-computer text and #2566's research profile together
  move the bridged hot list past +2% (default 14613 -> 14912), which no PR
  does alone. Every BUDGET_BASELINE entry, bridged and unbridged, is set to
  the bytes its regenerated golden records.
- File-size ratchet: server/index.ts 17289 and server/routines.ts 1804, the
  actual counts after every merge (both below main's pins).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3038 removes a deleted bot's schedules and webhooks; #3039 adds app events,
which it did not cover, so a deleted bot's app events stayed saved and kept
their watch on the connected-apps service (the list already hid them).
tieAutomationsToBots now also removes them, at start for bots already gone
and on every bot.deleted; it is called after the app trigger host exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- #3056 × #3039: #3056 carries the New box's bot into the schedule and
  webhook editors (onSetUpYourself(kind, botId)); #3039's app event editor,
  new in the same batch, still started with the first bot, and its test
  expected onSetUpYourself("app"). The app event editor now takes
  initialBotId like the webhook editor, and the test expects the bot.
- #3038 × #3039: #3038's switch test answers every api() call as a PATCH,
  but with #3039 the Automations page also loads /api/app-triggers. The test
  answers only writes and checks only writes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3049 × #3053: #3053 records a disconnect as "lending was turned off", but
the desktop also disconnects when lending only pauses (waiting for its
MausBot Cloud sign-in) and resumes by itself. #3049's e2e "lending paused on
the PC reads as offline" then got "no longer lent: lending was turned off on
that Mac", and the next test inherited the paused PC.

The desktop now sends { paused: true } with a pause's disconnect, and the
server keeps such a computer lent (offline since now). Stop lending, and any
older desktop, still sends {} and reads as no longer lent; an older server
ignores the field. #3053's offline test waited out #3049's 15 s reconnect
wait in real time; it runs on fake timers now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3054's test failed on Windows CI (on its own PR too): Windows has no POSIX
file modes, so the file reads 0o666. Like the other 0o600 checks in the
suite, it now runs off Windows only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.1.116: Automations fixes, app events, Cloud reliability (1Password, lending, browser, passkeys, time zone), treg research
fix(routines): report a routine that keeps failing the same way once per streak
i18n(ja): translate the 1,765 missing strings
Claude Code answers a signed-out turn with a synthetic authentication_failed
frame and an error result, so the driver never threw TurnNotStartedError and
automatic recovery never tried the backup. With startupRecovery, the Claude
driver now holds the turn's ACK until its first model activity. A synthetic
refusal with no new cost rejects with TurnAuthenticationRefusedError once the
CLI process has stopped. Recovery skips backups on the same engine instance,
which share the failed sign-in, and says the engine is signed out.
fix(codex): pass -c overrides from the CLI setting after app-server
Fix macOS dictation loss across pauses and stop recording on send
fix(updates): ask a page older than its server to reload instead of saying up to date
fix(recovery): fail over when Claude Code refuses a turn because it is signed out
fix(redact): mask Stripe secret and restricted keys
fix(store): clear a demoted Chief's additional teams from the cached bot
#3034 brought #3029 in at 5fc8876f3; the contributor then pushed two
more commits. Search now matches a team's localized name and summary
as well as its English ones, and a team's outcome shows its own
localized outcome instead of its summary. main had since moved
catalogCopy into src/lib/team-catalog.ts, so the outcome fix is
applied there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- English "automations.next" became "next: {when}"; the Japanese
  "次回:{when}" still says that, so it is accepted against the new source.
- #3052's two outcome helpers move out of server/routines.ts into
  server/routine-outcomes.ts, unchanged, so routines.ts is back at 1,804.
- The team catalog search moves into src/lib/team-catalog.ts
  (catalogMatches), next to catalogCopy; TeamLibraryPanel.tsx is 1,097
  and its pin is lowered to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in #3029's follow-up (localized team catalog search and outcomes), and fix main's i18n and file-size checks
chore(release): bump version to 0.1.116
A PATCH that set a room thread's name, pin and turn limit saved and
announced each field on its own, so a failed save left the earlier
fields applied. patchGroupTask now commits the whole edit at once and
replaces renameGroupTask, setGroupTaskPinned and setGroupTaskTurnTimeout.

The turn-limit action's dm flag is now a discriminant, so the renderer
narrows a room thread's edit by type instead of casting it.
patchGroup changed memory and then saved groups.json, so a failed save
left the API on the new room name, members, bulletin, pin or DM turn
limit while the file kept the old one. It now commits through
commitGroupChange. busyBotId is not stored in groups.json, so it is
applied outside the rollback and a finished turn never looks busy.

After a failed thread or room edit the renderer now re-reads what the
server saved instead of restoring the value it had before. A lost
response whose save committed is shown as saved, the loaded transcript
is kept, and a DM's turn limit is no longer a special case.
createGroup and deleteGroup changed the room list and then saved it, so
a failed save showed a room the file never held, or hid one that came
back on restart. They now save first, as createBot and deleteBot do.

After a failed bot thread edit the re-read keeps bot settings that are
still being saved. A room thread edit names itself "the thread change",
as a bot thread edit does.
- Composer.dictation.test.ts (#3044): its DesktopCapabilities mock had only
  `dictation`. On Node 24 (CI) happy-dom's localStorage keeps the draft the
  test restores, which counts as an earlier run, so the composer opens in
  Advanced mode and renders the place chip, which reads host.platform and
  crashed every test. Node 25+ shadows that storage, so it passed locally.
  The mock now starts from initialDesktopCapabilities().
- automatic-recovery.e2e.test.ts (#3061): the fixture restarts the server,
  a later start, which listens before Codex lists its models
  (startup-model-catalog.ts, #2482). Until the list lands Codex offers the
  static catalog, so PUT /api/config rightly refused gpt-fake-default. The
  fixture now waits for the fake Codex catalog before the test starts.
- lending-guards.node-test.mjs (#3049): on Windows os.homedir() is
  USERPROFILE, which the test pointed at a folder it never made, so the
  home-boundary realpath failed. The test now creates profile-home, temp
  and tmp first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: main for the 0.1.116 release (dictation tests, sign-out recovery test, Windows lending temp dir)
A Live call no longer needs a plan on any client. A call from a phone used to
need an active Pro / MausBot Cloud plan (402 needsPro); that check and
everything that carried the plan to the server are gone: LiveCallNeedsProError,
liveCallFromPhone and the pro() dependency in the controller, the 402 branch in
the route, server/pro-plan.ts and electron/pro-plan.mjs (liveCallsAllowed,
OMB_PRO_PLAN, the openmausbot:pro-plan message), the relay in Electron main,
the fixture launcher's pass-through, needsPro in the renderer and the Pro card
under the call button with its copy.

A call uses the separate Live key when one is saved, else the OpenAI API key
from Settings → API keys (liveCallKey in the new server/live-settings.ts, where
the Live settings helpers move out of config.ts). GET /api/config reports
live.keySource ("live" or "openai") beside configured, never the key. No other
key is used. Without either key, POST /api/live/session answers 409 needsKey
with "Live calls use your own OpenAI key. Add it in Settings → API keys.", and
the desktop and web app show that sentence under the call button with an Open
API keys button (opens Settings at API keys), in place of the inline key field.
The call's settings say where the key comes from and offer Remove only for a
separate Live key. Only OpenAI GPT-Live is supported, so the copy names OpenAI.

The daily snapshot counts openai_live only for a separate Live key;
call_started is unchanged. Copy in en, es, pt-br (and ja, tr, vi, zh-tw for the
OpenAI key row), the help page, the verification guide, the design spec and the
analytics docs follow. The key-form cancellation recipe goes with the form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live calls for everyone, with your own OpenAI key (no Pro gate)
The Cloud health snapshot added {highlevel: {connected: false}} on every
home whose connected apps were set up, even when HighLevel never was, so
Admin marked every Cloud "Needs a look" (connector-disconnected).

HighLevel now joins the connectors report only while a connection is saved:
signed in (connected) or needing sign-in again (not connected). Composio
already lists only apps with an account. The item shape is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DuckDB honours an interrupt only on a statement that is already
dispatched, so a cancel or timeout that lands first is a native no-op
while the run's interrupted flag is already set, and that flag keeps
every later delivery out. The statement then runs uncancelled and the
lane queue holds the statements queued behind it.

Record only the first cause and keep calling connection.interrupt()
until the statement settles or the run's own deadline passes: an early
abort lands once dispatch happens, and no cause blocks a later one.

Co-Authored-By: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-Authored-By: GLM-5.3 (Architect) <noreply@z.ai>
Paste an x.ai/bot link into Templates → Import: Maus shows the public card
(name, creator, description), a prompt to copy into your own Grok Bot, and a
box for its JSON reply. The reply (openmaus.grok/1, or pi-grokbot-import's
grokbot-bundle/v1) becomes an ordinary openmaus.package v2 and goes through
the usual preview and import: skills off, routines paused, no model, apps
listed as connector requirements. Event and unreadable routines are listed
under Left out with their original text. Start from description makes a bot
from the public card alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in with Cursor to import everything: the person signs in to their own
Cursor account in the browser (the PKCE flow Cursor's CLI uses), and the card
then loads the whole template from GetGrokBotTemplateImportDetails and opens
the preview. The token is kept in the data folder (0600), sent only to
api2.cursor.sh, masked wherever the app redacts text, and deleted on sign-out
or a 401. Any failure keeps the card and the copy-paste export, with one line
saying why. Request shapes follow pi-grokbot-import (MIT), reimplemented.

After Add, a Grok Bot with apps to connect or left-out routines offers
"Have your Chief of Staff finish the setup" (or the bot itself without a
Chief): its chat opens with a prepared, unsent message listing the link, the
apps to connect, tools with no match and the left-out routines verbatim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud health: list HighLevel only while a connection is saved
A new automation "when": the AI limit resets.
- Routines gain a limit_reset schedule {engine, repeat: once | every_reset}. Its time is derived, never taken from
  input: the engine's reset plus a minute, or none yet ("runs when the limit resets (time not known yet)").
- server/limit-resets.ts keeps each engine's limit from plan usage (Claude five_hour/seven_day, Codex
  primary/secondary windows) and from refusals (Claude's rate_limit_info, Codex's "try again at …" words): the windows
  at their limit decide (latest reset), else the fullest window; a live refusal wins unless a later window is still
  full. Routines are retimed whenever that changes, and usage is polled while one is waiting.
- create_trigger when=limit_reset (engine defaults to the bot's own), list_triggers shows it, TRIGGER_PROMPT and the
  tool description cover "run this when my limit resets" and setting up a continuation when warned near the limit.
  A turn on an engine at 90%+ is told so on its clock line.
- A turn stopped by a usage limit with a known reset offers "Continue at 3:40 PM when your limit resets": one click
  creates a one-time limit-reset automation in that conversation (the usual card with Pause, Edit, Undo); it runs in
  that conversation and is told the previous turn hit the limit.
- Near-limit warning on the Automations page ("Claude: 92% used · resets 3:40 PM") with "Move to after reset" for
  schedules due before the reset on that engine (only their next run moves), and a compact notice in the bot's chat.
- Calendar: each engine's next reset is a labelled marker; dropping a bot or an automation on it makes a limit-reset
  automation instead of a fixed time; the editor's When has "When my AI limit resets" with an engine picker.

Usage-limit failover, on the existing automatic recovery:
- Claude's startup hold also proves a usage-limit refusal (synthetic usage_limit_reached + error result with no new
  cost, process stopped) and rejects with TurnUsageLimitRefusedError; an engine known to be refusing raises the same
  error before dispatch, so Codex and automation runs also move without spending a refused turn.
- The backup is never another sign-in to the same subscription engine (that circumvents provider usage limits);
  another engine or a pay-per-use key is fine. One line: "Claude hit its limit (resets 3:40 PM), so Codex took over."
- After the reset the next turn goes back to the original engine with one line; no backup → the Continue button.

Moved out to keep pinned files shrinking: routine schedule helpers (routine-schedules.ts), routine request schemas
(routine-request-schemas.ts), the routine run card (routine-run-card.ts), projectCalls (lib/routine-calendar.ts).
Sealed test fixtures no longer read this machine's keychain for plan usage. Catalog goldens re-pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings → Import (next to Backups; on the Account page in Simple mode) has
two sections: From your AI apps, which is the welcome tour's skills and MCP
tools import (the same rows, client and /api/setup-import route; tools
arrive off, logins and history are never read), and From Grok Bot. The
Grok Bot import is now one shared component, GrokImportFlow, used by
Templates, Settings and an optional "Have a Grok Bot? Paste its link" row
in the welcome import step (no new step).

The Grok Bot mark is the symbol from the "Grok Bot" wordmark on x.ai's
public share page, kept as path data only and filled with the ink colour,
on the box heading, the card, the Cursor sign-in button, the Settings
section and the welcome row.

TeamImportDetails moves to its own file and the Add call to
src/lib/template-add.ts, so TeamLibraryPanel drops under 1,000 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud home on a plan that sleeps answers the Admin's signed GET /api/cloud/power (busy codes, next due run, resume
noticed from the clock) and POST /api/cloud/power/sleep (yes only when idle). Once it agreed, its pages close their
event stream and stop polling until the person acts, and the desktop's held Files and lending polls answer 503 with
x-omb-cloud-power: asleep. A boot that follows a sleep the machine was stopped for doesn't fire run-on-startup routines.
The edge holds requests while the server starts when OMB_CLOUD_EDGE_HOLD is set (0s by default).

Nothing changes unless the Admin asks: it never does for a plan that doesn't sleep. The shared-computers routes moved to
server/routes/shared-computers.ts and the routine due-time logic to server/routine-due.ts (file-size ratchets).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
https://x.ai/bot/marketplace/bots/<slug> is accepted as well as a share
link: Maus reads that page's Add link (its entry's addHref, /bot/<id>)
and loads the share card from there. Both pages are fetched only from
x.ai, with the same time, size and redirect rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the Admin's session says My Cloud sleeps (cloud.power, only for a plan that sleeps), or My Cloud answers a held
poll with x-omb-cloud-power: asleep, Files sync and lending make no request to it until it wakes; the session is read
every 15 s meanwhile. Opening My Cloud while it sleeps asks the Admin to wake it first, shows a waking state and gives
the sign-in check 30 s, so a slow wake doesn't pair again. Copy says it sleeps when idle; analytics know the plan.

The connected-apps broker asks the Admin to wake a Cloud whose installation isn't polling when it queues an event for
it, signed with CLOUD_GRANT_SECRET, at most once a minute (migration 0003 adds wake_requested_at). Off until
CLOUD_ADMIN_URL is set; it never fails the event.

Without cloud.power and without that answer nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sign-in only appeared on a loaded card, so the Import page and the
Templates box showed no way to sign in first. The box now offers it (or
"Signed in to Cursor · Sign out") under the link field until a card
loads, and the card keeps it after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Computers are drawn beside the bots that use them, with their newest screen:
the frames bots' own turns capture, plus small budgeted captures of running
machines while a map is open (never a wake or a create). A Show computers
switch is remembered per workspace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A composer floats at the bottom of the Team map. Tag bots, a team or
@everyone; Send delivers one normal message to each tagged bot's own chat.
Tagged cards light up while typing, and a line rises to each one on send.
The @ list is shared with the chat composer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A real sign-in was refused by GetGrokBotTemplateImportDetails, and Maus
forgot it with "has expired", without saying what Cursor answered.

- The sign-in poll is POST /auth/poll with the uuid and verifier, falling
  back to the GET form, as Cursor's CLI and pi-grokbot-import do.
- The refresh token Cursor gives at sign-in is kept (same 0600 file,
  masked like the access token). On a refusal Maus refreshes once
  (/oauth/token with the CLI's client id) and asks again.
- A refusal that stays says Cursor's own code and message, on the card and
  in the server log (never a token), and the card's sign-in line updates
  to signed out instead of still saying "Signed in to Cursor".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cursor refuses a template's setup to an account without Grok Bot
("requires an Ultra subscription or a Premium self-serve team seat").
That is not an expired sign-in, so the sign-in is kept and the card says
Cursor Ultra or a Premium team seat is needed, with the export prompt and
Start from description as the ways on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run when my AI limit resets, and continue on the backup engine
Import a shared Grok Bot, plus a Settings → Import page
The call view no longer asks for a key inline: without a key it shows
"Live calls use your own OpenAI key. Add it in Settings → API keys." with
Open API keys, and calls once a key is saved there. The journeys now walk that
flow and check the call view saves no key itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Send no longer draws lines across the canvas: each tagged bot's card shows an
accent border that fades in about a second (static, then gone, with reduced
motion). Sidebar and room previews skip the screen frame a computer turn ends
with and show the latest real message, or nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The marketplace-page change asks to "Paste a Grok Bot link …", and a
Cursor refusal now says Cursor's own code ("Cursor refused the sign-in
(HTTP 401). Sign in again."). The route tests still expected the old
sentences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Optional per-bot vpsAlias overrides the app-wide vps.sshAlias, so one
OpenMausBot instance can host bots on different VPS hosts (inventory,
container naming and every bot-scoped VPS call site resolve through
vpsConfigForBot()).

Conflicting containers and unscannable hosts fail closed; client-role
settings cannot set the alias. Container inventory rows carry the alias in
use, and the alias keys (vpsAlias, vpsAliases) are withheld from paired
phones like sshAlias. Settings adds an SSH alias field for VPS-backed bots.
- Clear a bot's vpsAlias in every desktop reducer merge, not just some
- Skip the relocation guard when the resolved host does not change
- Rescan the guard boundedly when the bot moves mid-scan, else 409
- Redact withheld alias values hiding inside companion strings
- Restrict VPS remove to aliases the inventory scans
- Scan inventory aliases concurrently while keeping order
- Correct the SSH alias settings path in docs
test: fix main (Live call journeys and Grok import route tests)
HTML files a bot attaches or links get a preview button beside the
download, the same way CSV and TSV tables do. The page opens in a dialog
with source, reload and download actions.

The frame is an empty sandbox with an inline srcdoc and a CSP that fetches
nothing, so the page's scripts never run, remote assets never load, links
never navigate, and the app's origin stays out of reach. Previews stop at
2 MB.

Closes #3078
Team map: show each bot's computer with a live screen
Cloud homes can report when they are idle and get ready to sleep
Desktop and broker: leave a sleeping Cloud home asleep, and wake it when needed
Templates → Explore opens with fifteen ready-made bots: the six built-in
roles with fuller instructions and their own look, five everyday roles
(writer, data analyst, meeting notes, travel planner, study buddy) and
four common jobs (humanizer, design critic, sales call coach, plant care
log). Each card has category chips, an example prompt and an Add button
that opens New bot already filled in for review.

A ready bot sets who the bot is and how it looks, plus starter notes and
paused routines; the model, approval level, computer, folder and apps
stay the person's own New bot defaults. The New bot role list keeps its
six roles, now drawn from the same catalog.

Closes #3094
With no model chosen, the OpenRouter engine defaulted to a paid model
(Llama 3.3 70B before the catalog loaded, then the catalog's first row),
so a new account with no credit got HTTP 402 on its first turn.

- A key whose /key answer says is_free_tier (asked once per key, cached
  by the key's SHA-256) now defaults to a free model that takes tools:
  a short preference list first, then the first free tool-capable model
  in OpenRouter's order. Before the catalog arrives it defaults to the
  first preferred free model, and a turn with no model waits up to 4 s
  for the catalog. Paid keys and chosen models are unchanged.
- The picker marks free models "(free)"; for a free-tier key the free
  tool-capable models come first.
- OpenRouter turns say in plain words when a model needs credit, when the
  privacy settings block free models, when a model can't use tools, and
  when the free-model limit is used up. Each keeps its HTTP status so
  retries, engine switching and health codes classify it as before.
- Settings → API keys says when the key is a free account; the docs page
  gets a "Free OpenRouter models" note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex prints only "Try again at 5:23 PM." when the reset falls on its own
local date, and drops the seconds. A refusal during the printed minute, or
one that arrives just after it, was read as the same time tomorrow and kept
Codex blocked (and its turns on the backup engine) for about a day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a shared workspace, POST /api/routine-runs/seen-all stamped and returned
every failed or missed run, including runs of bots hidden from the member
calling it. The route now passes the caller's visibility, the same
routineVisible check GET /api/routines uses, and markAllSeen applies it to
the probe, the stamp and the returned runs. The default stays everything for
other callers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Routines: Mark all as seen covers only the runs the person can see
Make an OpenRouter key work out of the box on OpenRouter's free tier
feat(templates): a gallery of ready-made bots
feat(chat): preview HTML file attachments in a sandboxed frame
fix(server): a data lane's early abort no longer strands the statement
Bots on My Cloud reach for these in their shell daily and found none. One
apt layer above the runtime's, so the Chrome layers stay cached: about 28 MB
unpacked, 13 MB compressed. The cloud-home boot smoke runs each as maus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Cloud home and server images ship dist-server without the repo's
package.json, so every Cloud home reported its version as "unknown" to the
Admin's health checks and to the apps. The bundle's own package.json now
carries the version, and the server reads it before the checkout's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud customer's Google sign-in in his bot's cloud browser stopped at the
passkey step (/v3/signin/challenge/pk) and the security-key step
(/challenge/sk/webauthn): the WebAuthn request never ended, and "Try another
way" did nothing for the bot or for him in the hand-over view. A headless
Chrome has nowhere to show its passkey sheet, yet the sheet holds the tab's
input until the request ends. #3050 sent WebAuthn to CDP's virtual
environment, so input works, but the request still waited forever there.

Real Chrome on a computer without the person's passkey shows its sheet, the
person closes it, and the page gets NotAllowedError and offers its other
ways. Headless bot browsers now do the same: each tab gets the virtual
environment with one built-in authenticator that holds no passkey and never
verifies the user (server/browser/cdp/passkeys.ts). Measured on Chrome 155,
macOS and Linux (the Cloud's Chrome for Testing): every passkey or security
key request (sign-in, conditional, registration, platform-only) ends in
about 20 ms with NotAllowedError, and no credential is ever created, so no
site can leave a passkey behind in a browser that forgets it. Pages see a
platform authenticator and conditional mediation, as a desktop Chrome with a
passkey provider reports. Same on both engines: the Chrome engine at target
setup, and agent-browser (today's engine, the customer's) through the
identity sidecar, before the page runs. Headed windows and the person's own
Chrome keep the real passkey sheet.

The bot's notice now says it plainly first: this account wants a passkey,
this browser has none and turns the request down at once (Google may say
something went wrong), so do not retry; choose "Try another way" or use the
person's own computer's browser; then the ways that work, as before.

Tests:
- server/browser/passkey-wall.e2e.test.ts (Chrome engine, real Chrome): the
  passkey and the security-key steps end with NotAllowedError within 2 s;
  from the email step, Try another way, the options and a code entry reach
  the signed-in page; a registration is refused.
- scripts/testing/browser-passkey.e2e.test.ts (new, agent-browser through
  the launcher and the identity sidecar, headless; added to the browser
  identity CI job): the passkey request ends and Try another way opens the
  options. scripts/verify-browser-identity.ts's bot-browser setup is now
  withBotBrowser(), shared by both e2e tests.
- Unit: the sidecar sends WebAuthn.enable and the authenticator before the
  page runs, headless only; the notice's wording and order.
- Mutation-checked: without the authenticator all four passkey-wall tests and
  the agent-browser test fail (the request still waits); with the user
  verified, the registration test fails (a passkey would be created).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CI failure on release/v0.1.117 (passkey-wall.e2e, ubuntu: "Try another
way" answered without the next page's address) is a race in every action's
answer, not in the passkey step. An action's answer reads the page right
after the input. A link, a form or a script asks Chrome for a navigation,
and Chrome starts it a moment later: a form's submit() and a script's
location change run in a task after the click, and the browser learns of a
link's navigation over its own channel. Read before that, the page is the
old one, and the bot was told "The visible text of the page did not change"
while the next page loaded.

Measured, Chrome engine on Chrome 155:
- macOS: a script's location change and form.submit() were missed 8 of 8
  times; a plain link was always seen.
- Linux (a Cloud-like Fly machine): a plain link was missed 3 times in 31;
  the passkey-wall file failed 1 run in 12 on main.

Now an action that reports what changed first lets the page's own queued
tasks run (one isolated-world turn of about 20 ms; a navigation the browser
has already begun holds it until the next page commits). When the page asked
for a navigation in this tab since the action began (Page.
frameRequestedNavigation), the answer waits until the tab has the new
document with its DOM, moved within the page, or stopped loading: at most
10 s and the call's budget. Popups keep their own note. Nothing runs in the
page's world, and nothing is stopped past its time.

Test: checklist.e2e, on real Chrome: a link, a script's location change and
a form the page submits, each twice, answer "The page is now <next page>";
a link within the page answers at once. Mutation-checked: without the follow
the script case fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What a bot's browser tells sites about its languages and its clock, measured
on a Cloud-like Fly machine (Linux, Chrome for Testing 155, agent-browser):

- agent-browser (today's engine): navigator.languages was ["en-US"] while
  the Accept-Language header said "en-US,en;q=0.9". A headless Chrome on
  Linux tells pages only its first language (--lang and --accept-lang do not
  change that; measured), and no desktop Chrome has a one-language list with
  a two-language header. The identity connection now sends the person's
  languages as a list with the identity override, on every page, frame and
  worker before it runs: ["en-US", "en"], and Chrome writes the header.
- The Chrome engine passed the header's form to the override, so
  navigator.languages read ["en-US", "en;q=0.9"]. Both engines now take one
  list from languageList() (chrome/wrapper.ts): the person's language, its
  base, then English.
- Time zone: the launcher baked in the zone the server had when it was
  written. A Cloud gets its owner's zone from the app at any time (#3054),
  so its browser kept UTC until the next restart. The launcher now follows
  the server's zone, and the next browser started tells time in it.

Read on the same Fly machine and left as they are, honestly: WebGL is
SwiftShader (the machine has no GPU), no media devices or voices, the
Chromium brand of Chrome for Testing, and agent-browser's own Runtime domain
(CDP detection), which the Chrome engine does not use.

Tests: a checklist e2e on real Chrome (navigator.languages ["en-US","en"],
header "en-US,en;q=0.9"; mutation-checked with the old q-form); the identity
check now wants navigator.languages to equal the header's languages (fails
on Linux before this change); unit tests for languageList, the sidecar's
override and the launcher following a zone change (mutation-checked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This computer and My Cloud showed different bots, logins and settings, and
nothing compared them or closed the gap. The only way to get a bot over was
Copy this computer's bots and chats, which replaces everything on My Cloud;
logins needed a click each in another page, and a later change never followed.

Settings → MausBot Cloud is now a first-level page. At its top, This computer
and My Cloud shows both sides with counts and the differences in words, Send
everything to My Cloud (adds and updates, never deletes), Keep My Cloud up to
date with this computer (on by default), what stays separate, and Choose what
goes with a switch per item. My Cloud's own page shows a strip when this
computer has something it lacks (Bring them over · Not now), and the switcher
says what is not on My Cloud yet, with Send.

One mechanism behind all of them (electron/cloud-send*.mjs): both servers
answer GET /api/cloud-send with a short hash per part and never a secret; main
plans three-way per part (a change here goes, a change on My Cloud is kept,
something removed there stays removed) and writes through My Cloud's own
routes over one owner session per send. POST /api/bots keeps a sent bot's id
and conversation id, so its logins stay kept to it and Bring newer chats adds
its chats. Settings → Logins' Also use on My Cloud is the same send for one
login.

Removed: the old one-login send path in cloud-logins.mjs and its e2e (covered
by the new one), the copy card's places line, and the switcher item that led
to the replacing copy.

Docs: Getting started → Using the desktop app with My Cloud replaces "This
computer and My Cloud". index.ts and main.mjs keep their pinned sizes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the passkey file and the identity file started their first
Chrome launches together, and the identity probe ran past its 30 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud home every engine process starts its own copy of each MCP server,
and a machine without swap that runs out thrashes long before the kernel's
OOM killer acts: the health check stops answering and stalled turns read like
a provider outage.

- A turn that needs a new engine process waits until one more fits (available
  memory, a tenth kept free, engines admitted but still growing), telling the
  chat so and again every ten minutes; Stop ends the wait.
- An idle engine gives way first; about to run out, the home stops its newest
  busy engine rather than freeze.
- Engines and everything they start are born with oom_score_adj 1000; the
  server starts at -800 and Caddy at -900.
- A turn stopped for memory, by the home or the kernel, fails saying so, and
  a stall while memory was short says so too; health reports out_of_memory.

Only on Cloud homes; desktops and self-hosted servers are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Google shows its other ways after a request of its own, so the click's answer
can come before them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A send asked while another runs waits for it, then runs as it was asked,
  so Also use on My Cloud never reads another send's outcome.
- Replacing a skill reads My Cloud's copy first and puts it back when the new
  one is refused.
- A login kept to one exact host is keyed apart from another account on the
  same site.
- A bot reads as unused only while its conversation holds nothing but its own
  greeting under its current name: a renamed starter goes, and a bot that
  reached My Cloud without its chats is never mistaken for removed there.
- POST /api/bots checks a kept id again beside the synchronous write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud homes wait for memory before starting another engine, and say when memory ran out
Servers built into an image report their version
Cloud home image ships python3, pdftotext and unzip
Browser: a passkey request without an authenticator fails like real Chrome, so sign-in can pick another way
Browser: tell sites the person's languages as Chrome does, and the owner's time zone
feat(cloud): one place for This computer and My Cloud, and Send everything to My Cloud
A stopping server's SharedComputers.close() woke the desktop's held poll, which then re-authorized against the emptied
registry and answered 403. The desktop reads 401/403 as a lost sign-in: its switch asked the person to open My Cloud and
it spent its quarter-hourly re-sign-in on a Cloud that was only restarting. Once closed, the registry now answers 503
("restarting"), which the desktop shows as waiting and retries.

The restart e2e flaked because the turns a restart resumes wrote the same fake-engine dump as the turn the test awaited.
Each fake engine now dumps its own file, and every lookup matches its bot (and thread).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cause: the chat runtime accepted a Local VM computer server that answered
tools/list with no tools. The turn ran with no computer tools, while the
system prompt still said the Local VM tools were mounted. The bot ended
with "Done." and the person saw no error.

Change: mountChatTools fails the turn with "The Local VM listed no tools"
when the harness's Local VM mount lists none. A tool selection that leaves
no computer tools still mounts as before, and configured MCP servers keep
their skip behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A keyboard activation of the chat header's computer button now lands on the
panel's entry point: its active tab, or its close button when the panel has no
tab row (the remote-client panel). Closing from the panel puts focus back on the
button that opened it.

The entry ring follows the panel's own tab selection until the keyboard user
leaves the tab row, because an Auto place resolves its surface after the panel is
up and the panel then moves to that tab.

- src/lib/computer-panel-focus.ts records the opener and the keyboard intent. The
  lazy panel takes the one-shot intent on its first render and defers the focus
  by one frame.
- A panel close control hands focus back before the close is dispatched: an
  unmount cleanup would run after React has removed the panel, when the browser
  has already dropped focus to the body.
- Fallbacks in order: the chat header button, a visible sidebar row, then the
  composer.
- Proof: unit tests for the module and both panels, a control-omb ui regression
  in the renderer smoke job, and both panel shapes in the cloud preview fixture.
  The cloud preview regression no longer pins the launcher's exit code on
  Windows, which cannot signal a graceful exit.
When a DST change repeats an hour, setHours resolves "1:50 AM" to the first
1:50 AM. Once that one has passed, the time-only reset Codex printed is the
second 1:50 AM, so the refusal is no longer dropped as already past.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.117
The v0.1.117 release's macOS job ran out of memory in `tsc -p
tsconfig.server.json` (FATAL ERROR: Ineffective mark-compacts near heap limit,
exit 134). macos-14 runners have 7 GB, so Node's default heap stops near
2 GB, and the server typecheck now peaks just above it. Linux and Windows
runners have more memory and passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release: give the macOS packaging step a 4 GB Node heap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Browser panel left open kept its bot's browser running for hours: both
engines refused the idle close while anyone watched. Watching no longer
counts as use. Opening a view, a person's input through it, taking and
handing back control do, and a browser a person holds still never closes.

Before an idle close the views are told the browser is asleep instead of
gone, so none reconnects and starts it again. The v2 panel stays attached,
shows that the browser closed unused with a button to open it again, and
picks the browser up again when the bot's next call starts it. v1 views
(agent-browser, phones) end with a non-retryable error marked asleep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud home has 4 GB, and each Chrome costs about 300 MB before pages.
browserEngine.idleTimeoutMinutes now defaults to 3 there; an explicit
setting still wins, and desktops and servers keep 10.

The new engine's minute tick (idle close and stray sweep) also runs while
any Chrome it started is still running with the engine switched off, not
only while the engine is in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deleting a bot or profile asked only for the agent-browser OpenMausBot
installed itself. A Cloud home's image installs it on PATH, so the
cleanup found none and acknowledged at once: the deleted bot's browser
kept running (until agent-browser's own hour) and its saved sign-ins
stayed. On a Cloud home the image's agent-browser now closes the session
and erases its state; elsewhere a PATH agent-browser still only closes
the running browser, so a wrapper never holds the journal. The deletion
code moves from server/index.ts into the browser host.

On a Cloud home, whose HOME is this server's alone, the minute's sweep
also owns every bot-<id> session, so a deleted bot's browser closes
within a minute even if this run used it. Other sessions under the same
HOME are still left alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome for Testing 155 keeps a --top-chrome-webui renderer in every bot
browser for the omnibox popups (chrome://omnibox-popup.top-chrome/ and
its AI-mode page) and the WebUI reload button, none of which headless
ever shows: about 50 MB per browser. The new engine's headless Chrome
now disables WebUIOmniboxPopup, WebUIOmniboxAimPopup and
WebUIReloadButton. What a page can see is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every OpenCode session started a Node stdio proxy for each of OpenMausBot's own
MCP servers (agents, browser, Data, HighLevel, computer): three in a plain bot
turn, about 20–30 MB PSS apiece on a Cloud home, and the agents proxy parses a
790 KB bundle each time. They only forward to this server.

- /api/internal/mcp-http/<name> serves those servers over MCP's Streamable
  HTTP transport (JSON responses; 202 for notifications; 405 for the event
  stream). The turn's capability rides the Authorization header and the
  internal endpoints behind the answers check it, as they check the proxies'.
  The agents server's settings ride one allow-listed header.
- The request logic moves into side-effect-free modules
  (harness-mcp-request.ts, drivers/agents-mcp.ts) that the stdio proxies and
  the endpoint share.
- An ACP driver opts in with `ownMcpOverHttp` (OpenCode, which advertises
  mcpCapabilities.http). Only a recognised own proxy on loopback with its
  capability is converted; servers behind a tool-selection gate and the
  person's own servers stay as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"lists each engine's limit and moves one automation past the reset" pinned
NOW to 2026-10-19T10:00Z, but the route clamped the new run time with the real
Date.now(). Once the wall clock passed the fixture's reset, the run moved to
the real now and the test failed on every run (since about 11:00Z today). The
route takes an optional now (Date.now by default) and the test passes its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An engine stayed up ten minutes after every turn, whoever the turn was for.
After a Chief handed work to four teammates, their four idle engines and
their MCP servers held about 1.35 GB for those ten minutes on a 4 GB Cloud
home (OpenCode 1.19.3, measured).

- `engineIdleMs` decides each thread's keep-alive. On a Cloud home a thread a
  person wrote in from any channel, or opened or read in the app, in the last
  30 minutes keeps the configured time scaled by the memory left (all of it
  with half the machine free above the floor, down to a tenth); any other
  thread, such as a teammate's delegated work or a routine, keeps its engine
  30 seconds. Desktops and self-hosted servers keep the configured time.
- server/thread-presence.ts holds when a person last had a thread in front
  of them: the per-thread "person asked" time the server already kept, plus
  the app's read and switch requests for bots and rooms.
- ACP engines and Claude Code use it; Claude's keep-warm holds still win.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every OpenCode thread ran its own `opencode acp` (about 360 MB before a
prompt, about 450 MB working), plus its MCP servers. OpenCode runs several
ACP sessions in one process, each with its own folder and MCP servers: five
sessions measured 811 MB PSS in one process against 2,381 MB in five
(OpenCode 1.19.3 on a 4 GB Cloud home, each with three stdio MCP servers and
one prompt).

- The ACP connection moves out of core.ts into drivers/acp/host.ts: one
  process, many linked threads, every request and update routed by its
  sessionId, each session's own idle deadlines.
- A driver opts in with `shareProcess` (OpenCode only). Threads whose spawn
  contract matches apart from folder and tool selection join a running
  process, up to six at once and twelve over its life; initialize and
  authenticate run once per process.
- Closing one thread's session sends session/close and leaves the process to
  the others. OpenCode keeps a closed session's memory and MCP servers until
  it exits, so a process holding closed sessions ends once none of its
  sessions has run a turn for a minute; the next turn reloads its session in
  a new process. A stall, a cancel that never returns or a failed reload
  retires the process for new sessions; a process that is ending takes none.
- Engine memory on Cloud homes knows which threads a process runs: the
  driver asks for admission itself, for a whole process or for one more
  session (200 MB), and relief or an OOM kill names memory for every task the
  stopped process ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(limit-reset): the after-reset route uses the injected clock (fixes main)
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	server/routes/tasks.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Performance: Cloud memory, browsers and server (combined)
chore(release): bump version to 0.1.118
agent-browser started every Chrome on a new temporary profile and carried only
a cookie snapshot between launches, so each idle close, restart, crash or app
restart lost localStorage and IndexedDB sign-ins. A saved session now runs
Chrome on a profile of its own under the data folder (AGENT_BROWSER_PROFILE);
the Temporary browser and My Chrome are unchanged.

- A Chrome whose daemon was killed, or a lock naming another host, no longer
  blocks the next launch on that profile; the profile itself is never removed.
- The orphan sweep finds Chromes on kept profiles and never deletes them; their
  DevTools ports stay closed to pages.
- Signing out of a site while the browser is stopped clears the profile too.
- Deleting a bot or profile deletes its kept profile; workspace backups leave
  kept profiles out, as they do the new engine's.
- The disk cache of a kept profile is capped at 64 MB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a remote Cloud every key went in a request of its own and every frame waited
for the panel's acknowledgement before the next was sent, so typing fell seconds
behind and the picture ran at a few frames a second.

- The server tells the panel it takes batches; the panel then sends every input
  queued behind a request in the next one (up to 64, under 24 KB). The server
  runs them in order with the same per-input confirmation, drops moves a later
  move replaces, and stops at the first input the browser does not confirm; the
  panel still sends that batch's releases on their own. An older server gets
  single inputs as before.
- Two frames may be on their way to a view before it acknowledges any; the next
  waits for its acknowledgement as before, so a slow link still sets the pace.

Measured with a 160 ms round trip (local delay proxy, real Chrome): typing 30
keys at 12 a second lagged 7.5 s after the last key, now 0.19 s; frames went
from 6 to 12 a second. Local is unchanged (15 fps, no lag).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows taskkill /T can outlive the close budget on a loaded
machine even though the tree exits moments later, so a lapsed
budget was failing turns whose outcome had already been decided.

- pass a platform-conditional close budget to killCliTree: 15
  seconds on Windows and 5 seconds elsewhere, leaving the 5
  second default for every other caller
- record whether a call was in flight at close entry; when none
  was, resolve close and write a chat-mcp warning line instead
  of throwing, keeping the existing throw for a call in flight

Co-Authored-By: MiMo-V2.6-Flash <noreply@xiaomi.com>
Co-Authored-By: GLM-5.3 (Architect) <noreply@z.ai>
Set TZ inside the test instead of skipping it unless the host is
already in America/New_York, so UTC runners exercise it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the main window uses titleBarStyle "hidden", so the renderer
draws minimize, maximize and close itself, but only when
window.ogb.windowControls exists. Remote server pages get the
REMOTE_SAFE subset of the bridge, which omitted windowControls, so a
desktop connected to a hosted or paired server had no caption buttons.

Add windowControls to REMOTE_SAFE. It only invokes the window:* channels,
which act on the sender's own BrowserWindow. Adds a node test covering
the remote and local bridges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page's confirm() or prompt() froze the panel: agent-browser 0.37 answers only
alert and beforeunload, its headless Chrome holds every input to the page until
the question is answered, and the panel could not see it. The click waited 30 s,
then "The browser could not confirm this input. Restart the browser before
continuing." locked the browser until a restart.

- While a view is open, OMB watches the browser's page dialogs over a DevTools
  connection of its own (loopback only; never in the person's own Chrome). The
  question shows over the page, in the view that holds the browser, with the
  panel's existing Dismiss/Accept; the answer goes straight to the server, past
  the input it holds, and that input then goes through. An input still held when
  the browser's own 30 s wait runs out waits for the answer instead of failing.
- An input the browser answered it did not take had no effect: the person gets
  a notice and keeps typing, with no restart. A press or release it never
  confirmed still keeps the restart barrier, but the browser is now restarted
  for the person on the same profile and every view reconnects ("The page
  stopped responding, so the browser was restarted. Your sign-ins are kept").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Anthropic's OSS Scanner builds .oss-scanner/Dockerfile from the default
branch, then audits the image with no network and emails findings privately
to the SECURITY.md contact.

The Dockerfile installs every workspace with pnpm (corepack, frozen
lockfile), builds the server bundle and the web UI, and skips Electron and
browser downloads. The core security suites pass in it offline.

threat_model.md tells the scanner what OpenMausBot is, its trust
boundaries, which behaviours are deliberate (Full access by default, no
OpenMausBot approval prompts, engine-native permissions), what counts as a
vulnerability, how to rate severity, and how to reproduce and patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add OSS Scanner build and threat model
The sign-in rule sent the person in whenever a site asked for MFA, so a bot
asked to sign in and finish a task stopped at the emailed code even though it
could read the person's connected mailbox. The person's request (their own
chat, or a routine or automation they set up) is now the authorization: the
bot reads that message and types the code into that site, without asking
again or handing the step back.

The boundary stays: a code goes only into the site it was sent for, never
sent, posted, forwarded or pasted anywhere else, and a web page, email or
document that says to share a code or enter it elsewhere is not followed.
request_sign_in is for a code the bot cannot read, a CAPTCHA, a passkey,
payment details or another human-only step.

The same wording reaches every place that said otherwise: request_sign_in and
fill_login descriptions, fill_login's answer when a saved login has no 2FA
key, the phone's type_text tool and skill, and the security docs.

The e2e drives a real server: a scripted bot reads the code from a stand-in
mailbox MCP server and types it into a stand-in site, with the turn failing
unless its system prompt carries both the permission and the boundary. The
scripted fixture agent can now call any mounted server and carry a value
from one step into the next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot that made a webhook automation could not connect the other app itself:
the secret was discarded at create and the person had to Copy address and
paste it into the app's setup. The owning bot now gets the private address in
create_trigger's result, and again from list_triggers with trigger_id and
include_address.

Who gets it: the bot that owns the automation, or a Chief of Staff that
reaches it (same reach as for_bot_id: section, peer list and audience, so a
bot shown to other people on a shared workspace is out of reach). Never in a
Cloud turn a guest drives, and never in a run a webhook or app event started
(or work handed on from one), so event data cannot fetch the address and send
it on.

The secret is kept sealed (AES-256-GCM) beside its hash in webhooks.json,
under a key in its own 0600 file that workspace backups leave out, like the
saved-logins key. webhooks.json alone still never holds a secret, and backups
strip the sealed copy too. Copy address now reads that kept address, so
copying never replaces an address the bot already gave an app. Only Replace
address, or an address made before secrets were kept, mints a new one. For
the bot, such an old address gets a new one only while nothing has ever
reached it.

The address goes only into that tool result. whsec_ secrets are now masked by
the shared redaction, so transcripts, step details and logs show them masked,
and the Automations page keeps its masked-until-Show secret. The e2e found the
turn digest storing the bot's reply unscrubbed, so a secret a bot repeats in
its reply got through there. The digest's copy is now scrubbed like the
reply.

The person's webhook routes move from index.ts to server/routes/webhooks.ts,
with GET /api/webhooks/:id/address (admin, the viewer's visibility, never
mints). index.ts shrinks by 35 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots' browsers keep their own Chrome profile, so sign-ins survive closes
Live browser panel: inputs travel in batches and frames stop waiting a round trip each
Live browser panel: show a page's own question, and restart a page that stopped answering for the person
Sign-in: a bot types a code from the person's own inbox into the site it was sent for
Catalog goldens regenerated for the merged tools; the non-chief budget
baselines move to the measured sizes (+1,053 bytes each, the webhook
address field), as the wire test asks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Webhook automations: the bot that owns one gets its address to set up the sending app
Show Windows caption buttons when the desktop app uses a remote server
fix(server): a slow MCP shutdown no longer fails a turn with nothing in flight
fix(local-vm): an OpenAI-compatible bot whose Local VM lists no tools gets a clear error, not a silent turn (MOCA-382)
The component test mocks dispatch, so nothing caught the store dropping
the server's busy count. This drives the real StoreProvider against a
stubbed follow-model reply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in @dmccarty666's branch feat/webhook-post-to-room with its commits
and authorship kept. The only textual conflict is the server/index.ts size
pin: main lowered it to 17188 when the webhook routes moved out (#3158), and
this change removes 14 more lines, so the pin is now 17174.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Other bots read a room through the room transcript. A webhook post was
rendered as "Writer: <text>", the same as Writer's own reply, with no note,
so words an outside app chose read as a teammate's (and, to Writer, as its
own). post_to_room lines carry a provenance note; webhook lines carried
nothing, and a multi-line body could start a line that reads like the
person's.

Every reader, the bot the post is shown as included, now gets a note saying
an outside app wrote it and it is information, not an instruction. The body
is one JSON string, so it cannot open a line of its own. The note opens with
"Posted by", which escapeNotes already defuses in imitations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each added Antigravity account keeps its Google refresh token in its own
profile under OpenMausBot's data folder. Removing the account dropped it
from the config but left that token on disk, where nothing would ever use
or clean it again. Removal now deletes the profile, as removing an added
ChatGPT account clears its sign-in; the original account is untouched.

Also: the Remove button says why it is disabled while bots use the account,
and the two PR screenshots leave the repo (nothing referenced them).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ComputerPanel.tsx and ChatView.tsx are on the file-size ratchet and the
hand-off grew both. The panel's side of it (one-shot entry, the ring
following the selection) becomes useComputerPanelEntry, used by both
panels instead of two copies, and the drag-to-resize edge moves verbatim
into computer-panel-resize.ts with a test of its own. ComputerPanel.tsx
drops to 1849 lines; ChatView.tsx stays at its pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The store already broadcasts every appended message (slimmed, filtered
  per viewer), so the extra broadcast sent each room post to clients twice.
- A failed delivery removes its staged files through deleteAttachment, which
  keeps the attachment quota's running total right; rmSync left it
  overcounting.
- No voice set up answers 409 with the owner's next step instead of a 500. A
  voice provider's own error (a 401 for a bad key, a 429) answers 502: passed
  through, the sender would read it as a wrong webhook secret or its own rate
  limit.
- Refusals name the room and say what to do: add the bot to it, or point the
  webhook at another room.

The staged-file test looked in a directory the attachments were never saved
to (DATA_DIR is fixed before the file's own OMB_DATA_DIR line runs), so it
passed with the cleanup removed. It now reads ATTACHMENTS_DIR. New tests: a
full post, no voice, a provider 401, and the refusal wording. Each fix was
reverted once to see its test fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- dispatch() kept its own copy of every check admit() now holds (pause,
  missing bot, event type, duplicates, queue depth, rate). Both delivery
  paths go through admit(), which returns the delivery id or the finished
  ignored/duplicate receipt, so the receipt is no longer rebuilt from the
  last attempt.
- The room sink got a spread of the stored trigger, which carries the
  secret's hash and, since secrets are kept, its sealed copy. It gets the
  public trigger.
- An edit with groupId null takes the room off, so a room webhook can go
  back to posting in its own thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode hides the model picker in the chat header, so its sidebar rows
should not name the model either. Adds a Simple-mode test for all three
densities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A member's webhook list, its attempts and the live webhook frames were
filtered by the bot alone. A webhook attempt keeps a preview of its payload,
which for a room webhook is the message it posted, so a member who could see
the bot but not a room it posts to could read that room's posts there. A
room webhook now needs both, as a room routine already does (webhookVisible
beside routineVisible), in the list, the address route and the SSE frames.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's sidebar, onboarding tour and editor now say Automations. The Today
page's tile, empty state and buttons still said routines, so they named a
screen the sidebar no longer shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The scripted engine and a loopback Chatterbox stub, so nothing external is
reached. One delivery with text, a voice note and an image lands as one
bot-authored room message carrying both attachments, both served; Herald's
engine never runs and it gets no new task. A retry is a duplicate, a wrong
secret is refused, and the Test button answers 400. Another member's turn
reads the post with the outside-app note, its forged line inside one JSON
string. After Herald leaves the room the next delivery is refused with the
plain message, synthesizes nothing and posts nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bounded announcement recovery stays: up to three nudges a turn, each
only after tool progress, now also for OpenAI-compatible endpoints.

Two parts come out:
- Refusing, as a turn-ending error, any call after a nudge that repeats one
  made before it. OpenMausBot's own tools never carried the read-only mark
  (their view returns early), so a second screenshot or file read after a
  nudge ended the turn, and computer use repeats clicks, keys and scrolls
  on purpose. Whether a call runs stays with the turn's permissions; the
  nudge text still asks the model not to repeat a finished operation.
- Appending xfce4-terminal argument advice to any MCP tool named launch_app
  whose description says Linux. That belongs in the tool's own description.

Also: "Let me know ..." is a closing, not an announced action, so it no
longer earns a nudge (a second one now fails the turn).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge with main replayed this branch's source-hashes.json lines at
their old offsets, which now sit inside other locales' blocks, so
i18n:check failed for ja and pt-br. Main's file plus the twelve pt-br
hashes for the new strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ProfileFields moves out of SettingsModal.tsx (on the file-size ratchet,
  it grew by 120 lines) into ProfileSettings.tsx with the photo picker.
  The picker reuses isImageFile/IMAGE_MAX_BYTES and the store's api
  helper, loads the picture once per step, and keeps the zoom draft.
- A name or email save no longer re-sends the photo address it read on
  mount, which could put back a photo removed in another window.
- The server checks profile.avatarUrl with the shared botAvatarUrlSchema
  instead of a copy of its regex.
- The sidebar picture falls back to the initials when the stored file is
  gone (a restored backup carries the address, not the file).
- The tab row's wheel handler called preventDefault inside React's
  passive wheel listener, which only logs a warning; it now scrolls only
  when the row overflows and lives in computer-panel-tabs.ts, so
  ComputerPanel.tsx stays at its pin.
- Tests: schema accepts only stored attachment pictures, a client-scope
  session gets the address but not the email, the picker's limits,
  removal, the fallback, and the wheel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The volatile half now reaches a new process only in its first message, so a
compaction can summarize it away while the warm process still believes the
conversation holds it. A compact_boundary clears that belief and the next turn
carries the note again. The fake CLI plays compact_boundary with
FAKE_CLAUDE_COMPACT and records the raw prompt file as systemPromptFile.

A resumed relaunch is now tested too: the prompt file stays byte-identical and
the first message carries the current volatile half.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The volatile half travels in a user message, next to the webhook payload the
rule guards. Webhook turns start their own thread, so keeping it stable costs
no cache reuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The scrub also cut every withheld value out of every kept string. A
natural alias such as "vps" then turned each bot's cloudBackend "vps"
into "[redacted]" and edited the user's own messages on the phone, and
a leaked resume cursor would have blanked model ids the same way. No
phone-reachable route puts an alias inside a string (the inventory and
the alias PATCH are not on the companion's allowlist), so withholding
vpsAlias and vpsAliases by key, like sshAlias, is the whole job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Six ratcheted files grew. Code moves out rather than in:
- server/vps-hosts.ts: vpsSshAliasForBot, vpsConfigForBot and
  vpsAliasesInPlay leave config.ts (back to its pin), with their test.
- src/components/VpsComputersCard.tsx: the Settings VPS list leaves
  LocalComputerSection.tsx (1605 -> 1475).
- src/state/bot-duplicate.ts: what a copy takes from its source leaves
  store.tsx (3581 -> 3570).
- server/store.ts: the load-time drop of an invalid vpsAlias goes; every
  reader already validates it through isValidSshAlias and falls back to
  the default, so store.ts stays at its pin.
- vps-computer.ts and index.ts: the new inventory and routing code is
  written tighter so both stay at their pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The per-bot move guard now refuses while any VPS lifecycle action
  runs, before and after its scan, as the default alias's guard does:
  a Start or Remove landing on the old host after the scan would leave
  a container behind there.
- The per-bot e2e also drives the preview, the panel's provision and
  the bot's deletion, and checks every docker call went to the bot's
  own alias. Each of those call sites, the status route and the turn
  mount now fail it when pointed at the default instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Setup mode overrides the standing instructions, so it stays next to them in
the system prompt. A bot enters it once, so keeping it stable costs no cache
reuse; moving it put it after every other section, in a user message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new Claude session's first message now starts with the volatile half of the
instructions. The turn-clock and routine-results e2e tests check the person's
words, so they strip that note the way the fakes do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
My Cloud's strip ended a send with "Some could not be brought over. See This
computer's Settings → MausBot Cloud." and nothing else: the strip dropped the
reasons main had recorded, and a send that stopped as a whole (no session,
pairing refused, My Cloud gone) was recorded nowhere, so Settings showed an
earlier send's result instead. The strip now says what failed and why, for
example "2 logins and 1Password couldn't be sent: <reason>", with Try again;
a send that stops is that send's outcome; the notice carries the failed kinds
(bots by name, logins only counted, never a site) and the first reason.

1Password: a token My Cloud's 1Password refuses was reported in My Cloud's own
words ("paste it here"). It now says the token was this computer's and where
to connect it again. A token 1Password already refused on this computer is not
handed over at all, with the same plain reason.

Send everything (Settings, My Cloud's strip, the switcher) now also brings the
chats, through Bring newer chats: it adds the conversations and messages My
Cloud lacks under the same bot and conversation ids, and never replaces or
deletes anything. Keep My Cloud up to date does not send chats (each send would
export and upload this computer's bots and chats), and neither does a send of
one item. The result counts them ("Ember, 3 skills and 48 chats"); the page's
Stays separate line and the docs say so.

Tests: e2e (two real servers) for chats under the same ids, a second send
adding only new messages and nothing twice, and My Cloud refusing this
computer's 1Password; unit tests for each reason; a new Electron smoke runs
main's handoff client against the packaged server over the real utility port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(cloud): say what Send to My Cloud could not send and why, and bring chats with Send everything
Webhooks: post straight into a room (from #3139)
chore(release): bump version to 0.1.119
The default alias reaches a member (non-admin) session only as
configured-or-not (configForAccess), but a bot's own vpsAlias rode on every
bot record and live bot frame, so anyone on a shared workspace could read
which server each bot's computer lives on.

- memberBot drops vpsAlias for every member, including one who can see
  every bot; the owner and admins share the everything-visible path and
  keep it (VisibleSet.member tells them apart).
- Every member JSON answer goes through memberBody, not only a member who
  has something hidden; rooms stay untouched for a member who sees them all.
- Live and replayed frames: the shared member frame for a bot is built
  without the alias (memberFramePayload).
- index.ts shrinks by five lines; the ratchet pin goes down with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The Server (SSH alias) field shows only on a saved bot. In the New bot
  defaults editor its value broke saving (the defaults schema is strict),
  and at creation it made the new bot wait on an SSH scan of the default
  host; a new bot starts on the default server.
- vpsAlias joins the bot audit fields beside cloudBackend and autoStartVps,
  so moving a bot to another server shows in the local admin activity log.
- The computer panel re-reads its status when the bot's server changes.
- One duplicate module: duplicateBotProfile moves next to
  restrictedCopyRequest in src/lib/bot-duplicate.ts, with a test that a
  copy keeps its source's server (store.tsx pin down by one).
- The "remove this bot's VPS computer" refusal and the docs say where:
  Settings -> Local VM -> Self-hosted VPS computers.
- Tests for the two refusals nobody pinned: an unreachable old server is a
  503 that keeps the alias, and a member session or paired phone gets 403.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's call: sending to My Cloud should just happen. Before, nothing went
until the person pressed Send everything or Bring them over, and chats went only
as a copy of this computer's whole workspace.

Now the first time this computer meets a Cloud (a new one, or one it never sent
to) Keep My Cloud up to date sends everything by itself: bots, skills, logins,
1Password, settings and chats. After that it keeps going while the app is open:
other changes a minute or two later, new chats at most every five minutes, and
nothing while My Cloud sleeps. Turning the switch off stops it; off before the
first connect means nothing goes, the first send included.

Chats go by row, never as a copy. Each server lists its bot conversations'
newest stored row (GET /api/cloud-send/chats) and hands main the rows after a
point (GET /api/cloud-send/chats/rows, 300 a page, starting a conversation over
when the row it stopped at was deleted). Main keeps, per Cloud and conversation,
the last row My Cloud took, and sends only what is newer, a few conversations
per request over the send's one owner session; attachments the rows name go
first unless My Cloud has them. My Cloud adds the rows with Bring newer chats'
own merge, one conversation at a time (addSentChats): only what it lacks, never
replacing or deleting; a conversation removed there is never brought back, and
one a bot is answering in waits for the next run. A Cloud too old for rows gets
Bring newer chats' copy, only from the first send or one the person asked for.

What the person sees has nothing to press while all is well. Settings → MausBot
Cloud: online and version, one line on where things stand (sending with
progress, everything is there, or what couldn't go with one Try again), the
switch, and More for the comparison and a manual send. My Cloud's strip shows
the first send arriving, then what came, and any failure with Try again; Bring
them over, Not now, Choose what goes and Use this computer's are gone. The
switcher's send line shows only while the switch is off. Help text and the docs
page say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's call, for people who aren't technical: things should just happen,
without buttons to press.

Bug: on My Cloud's page in the desktop app, Settings → MausBot Cloud's
"Change what's lent" switched the window back to This computer, because the
only thing the page could ask main was to open this computer's Settings. My
Cloud's page now has the switch itself: "Let My Cloud use this computer", one
switch and one line saying what is lent ("My Cloud can use Desktop, Documents
and Downloads (read only) on this computer"). Main answers it through the same
handlers as this computer's Settings (electron/cloud-lending-ipc.mjs, which
also takes the lending IPC out of main.mjs): the page learns on/off, how it is
going and folder names, never a path; turning it on needs the person's click
and a native confirmation naming what goes.

Turned on with nothing chosen, lending now lends the usual folders, read only
(Desktop, Documents, Downloads, each only if it exists and passes the same
checks as a folder picked by hand). A folder lent before and gone since is left
out instead of failing the whole switch; the end-to-end test found that one.
Other folders, editing and the screen wait under "Choose what's lent" on this
computer; "Lend the same again" is gone (the switch does it).

Gone because the send to My Cloud does them by itself: Settings → Logins' Also
use on My Cloud (for each login and for 1Password; the line saying where each
login is stays), and Bring newer chats on My Cloud's card. Copy this computer's
bots and chats, which replaces everything on My Cloud, waits behind a "Start My
Cloud over from this computer" link. Other servers keep Bring newer chats.

Docs and help text say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OMB_ATTACHMENTS_MAX_BYTES sets the attachments store ceiling (default stays
512 MB), and the full-store error now reads "512 MB limit" instead of a raw
byte count.

Refs #3144
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in 10 PRs: account removal, Codex reset time, bounded nudges, model badge, Pop skin, panel focus, busy-thread note, Claude stable prompt, room saves, Today page
A page of 300 rows could pass My Cloud's body limit and keep a conversation from
ever going: pages now stop at 2 MB of stored rows past their first, and a single
row over 1 MB goes with its text shortened. An attachment is written under a
name of its own and linked into place, so its name never shows a partial file.
Settings' Try again sends once per click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub MCP v2.0.2 tags header-routed arguments with "x-mcp-header". Strict
Ajv refused the unknown keyword, so chat turns skipped the whole server.
Register just that keyword as an annotation; other unknown keywords are
still refused and every constraint is still enforced.

Fixes #3140
When the computer panel is too narrow for its tabs (Computer, Routines,
Android, Browser, Data, Files), a plain mouse wheel now scrolls the tab
row sideways, so every tab is reachable without a trackpad or shift.
It only acts when the row overflows, and the row hides its scrollbar.

Taken from #3031 (the profile photo there is held for an owner decision).

Co-authored-by: Kalyel Nunes Laurindo <kalyel.laurindo@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/ComputerPanel.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Turning lending on from My Cloud's page brings back the earlier choice, which can
include editing and the screen; the native confirmation now says so instead of
always reading 'without changing anything'. A folder is skipped only when it no
longer exists; any other refusal (the home folder, a file) still fails the switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Bring in #3031: your profile photo, and the mouse wheel scrolls the computer panel's tabs
Computer panel: the mouse wheel scrolls the tab row sideways (from #3031)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
People with a Google AI subscription look for "Gemini" and could not
find a way to use it: Google moved personal Gemini accounts (free, AI
Pro, AI Ultra) from Gemini CLI to Antigravity on 2026-06-18, and
OpenMausBot's Antigravity engine is that path. Its name now says so, so
searching for Gemini finds it. The docs page says the same and is titled
to match. Instances someone renamed keep their names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engines: list Antigravity as "Google Gemini (Antigravity)"
Every mounted mascot ran its own requestAnimationFrame loop: animated ones
redrew at display rate (120 Hz on ProMotion) even for the slow idle
breathing, and still ones re-armed a timer and a frame four times a second
forever.

- mascot-clock.ts: one clock for every mascot. One frame serves all that are
  due; between slow frames it sleeps on one timer; with nothing moving it asks
  for nothing. A shared IntersectionObserver skips off-screen mascots, and the
  clock stops while the document is hidden. A live prefers-reduced-motion hook.
- mascot-motion.ts: MOTION and bodyTransform move here from CursorAvatar, with
  the cadence: each mascot asks for its next frame from how fast it visibly
  moves at its rendered size (20, 30 or 60 fps on one shared 60 Hz grid), full
  rate for blinks, spins, morphs, enter and settle, confetti, trails and glyph
  fades, and no frames for loops that move an edge less than 0.2 px.
- CursorAvatar redraws the face only when it changes and the effects layer
  only when its picture changes. Still mascots draw once per change and show
  their state's face. Reduced motion stops body motion, effects, the glyph
  cycle, blinks, spins and expression cycling, and follows the setting live.
- List rows are still by default: thread chips, notifications, new-chat and
  bot-picker rows, Today lines; the mention menu animates only its highlighted
  row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mascots: one shared clock, draw only when something changes, pause off-screen
Since the volatile half of a bot's instructions rides a new session's first
message (07a8c013e, in #3164), the follow-up turn this test reads starts with
that <system-reminder>. main fails it on every run. The test now drops the note
with the fakes' own splitLaunchNote before comparing, as the other e2e tests
read a prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every held engine writes the one dump file. After the lead is interrupted, the
writer's engine can start and replace it, so the second send called
coordinate_bots with the writer's own tools and got "Choose a teammate, not
yourself". main fails it locally and on Windows CI. The test now waits for the
dump of the lead's own turn (its prompt carries the line just sent) and uses its
tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test: fix two e2e tests main fails since #3164 (launch note in steer, cloud-personal tools race)
fix(mcp): let GitHub MCP's tools through the schema check
Let a team server raise the 512 MB attachments limit
fix(cloud): lend this computer from My Cloud's own page, and drop the buttons that now happen by themselves
Main now has the simpler Cloud controls (#3166). The docs page keeps its
wording plus this branch's "chats go by themselves"; the locale hashes
keep both sides' new keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A real-user run (packaged desktop app + a real test Cloud) found My Cloud's welcome still asking "What should My
Cloud start with?" with "Copy to My Cloud" picked, beside the strip saying everything had already come over. Clicking
it showed a red "already has bots and chats of its own ... open Settings → Servers" refusal.

- While Keep My Cloud up to date is on, or once a send has run, the welcome's Bring your stuff step is done by itself
  and it moves straight on to the AI: no Copy, no fresh-start choice, no button. Back on that step it says so in one
  line ("Bringing this computer's bots, chats and logins here…" / "…came over from this computer"); a fresh start
  only behind More. No choice is shown while main has not answered (1.5 s at most).
- The send notice tells My Cloud's page whether Keep My Cloud up to date is on (`auto`).
- The Copy card no longer says "Sign-ins and keys stay on this computer" (logins and 1Password do go now): it names
  the Claude or ChatGPT sign-in and API keys, which still stay.
- The refusal no longer says "of its own" or sends anyone to Settings → Servers: "{server} already has bots and
  chats, so nothing was copied over them." Same for main's own message and the docs table.
- es, ja, pt-br, tr, vi and zh-tw updated for the changed and new strings.

Tests: CloudWelcome.test.ts (6 new), cloud-send.node-test.mjs (auto), CloudMove.test.ts (wording). Mutation check
11/11 caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub's macOS runner is a 3-core M1 VM where Chrome by itself, with none of
the driver, takes 0.7-1.5 s to start and show a page and 60-75 ms to click
(uneven frames); on this M5 and on the Linux and Windows runners a click is
33 ms. The driver adds about nothing on every machine, so 1500 ms and 120 ms
measured the runner, not the driver.

The test now measures Chrome alone in the same run, interleaved with the
driver's samples (ten bare and driver starts, twenty bare and driver clicks),
and each limit is the target or Chrome alone plus the driver's budget,
whichever is larger: the targets stand wherever Chrome itself meets them. The
cold-start tail is the second slowest of ten, since with five samples p95 was
the single slowest start and one runner hiccup failed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The macOS runner's Google Chrome updates itself during the job (155.0.8059.40
to .82). The test service calibrated the identity once per process, so a
profile last opened by the new version was refused by the old one ("This
browser profile was last opened by Chrome 155.0.8059.82; Chrome
155.0.8059.40 is older"): the stream's wake and the bot's next call after an
idle close failed. The service now reads the identity again when the binary's
fingerprint changes, as the server's launcher does, and retries a failed read.

The stream suite closes any socket a failed test left open before closing its
server, which otherwise waits for it until the hook times out, and the tool
assertions show the tool's own text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every failure of "ends a scroll on a sharp frame at full size" on macOS,
Windows and Linux had a sharp 2560x1600 last frame that came before the
test's fixed mark, after which the page sent nothing (the spinner had
scrolled away). The last frame is now the one the stream ends on: a sharp
frame well after the last wheel, or whatever frame the stream stays quiet on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Windows runner the server's event loop can be busy for seconds. A
request sent then on an idle kept-alive socket is reset when Node's 5 s
keep-alive timeout fires before the server reads it ("fetch failed / read
ECONNRESET"): 12 of 13 such failures in CI were this file, a different test
each time. Reproduced on Node 24 with a stalled server; with Connection:
close the same request waits and is answered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The macOS image ships Chrome 155.0.8059.40 and its updater replaced the
app during the suites (to .82 on Oct 16; calibration found two binaries
in one run on Oct 19). The job now locks the bundle before the suites and
fails if the version changed anyway, so a red S4 is about the driver.

docs/ci.md says how the latency targets are judged against Chrome alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With an Anthropic key saved and "Use this key for every Claude bot" on (also the default for a key with the switch
never touched), every Claude instance got ANTHROPIC_API_KEY except claudeApi itself. Bots already set to "Claude (API
key)", the starter bot among them when there was no Claude sign-in, then failed every turn with "No Anthropic API key
— open Settings → API keys." Found in a real-user run of the desktop app and My Cloud (0.1.119 and main).

- server/config.ts injectedEnvironment: Claude (API key) always runs on the key; "every Claude bot" adds every other
  Claude instance and never takes the key away from it.
- My Cloud's engine cards: a Claude connected through an API key says "Runs on your API key." instead of "Use your
  Claude subscription.".

Tests: config.test.ts (claudeApi and plain Claude both get the key with every on, base URL too, nothing without a
key; a key save now reloads claudeApi as well), CloudEngineSignIn.test.ts. Mutation check 5/5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Watched on a runner: about 30 s after headless Chrome starts it launches
its bundled GoogleUpdater, and 155.0.8059.85 replaces 155.0.8059.40 in the
app a minute later. With the bundle locked the version held for 18 minutes
and Chrome still launched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A real-user run (packaged Linux app + a real test Cloud) turned on "Let My Cloud use this computer" on My Cloud's page
and got "Could not change what is lent. Try again." every time. On Linux without ~/.config/user-dirs.dirs, Electron's
app.getPath("documents"/"downloads") is the home folder itself; the folder check refused it as "the entire computer or
home folder", and that one refusal failed the whole switch.

- Usual folders: one the system places at the home folder or a whole disk is looked for by its usual name in the home
  folder (~/Documents, ~/Downloads); one that still can't be lent is left out (deduplicated), never failing the switch.
  Folders a person picks by hand refuse the home folder and a disk as before.
- Nothing to lend (no Desktop, Documents or Downloads, nothing chosen): nothing is lent and the page says so in plain
  words, with no Try again.
- The folder checks carry codes; main passes a refusal a person can act on as lending-refused:<code>, and both the
  page switch and this computer's Settings say it plainly. "Could not change what is lent. Try again." stays only for
  failures trying again can fix.
- es, ja and pt-br updated; docs/cloud-pro.md says how the usual folders are found.

Tests: cloud-lending-ipc.node-test.mjs (home/disk fallback, dedupe, gone and file folders, real folder checks on a
temp home with Documents only, plain refusals), CloudLending.test.ts, LentComputersCard.test.ts. Mutation check 10/10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It is no longer true: once My Cloud is ready, this computer's chats go to it by themselves (Keep My Cloud up to date).
Found in the real-user run; the card now says only that the personal Cloud account is separate from organization
sign-in. es, ja, pt-br, tr, vi, zh and zh-tw follow. A test keeps the old sentence out (mutation caught).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seen on a real test Cloud: the strip read "1Password couldn't be sent: 1Password did not accept this computer's token
on My Cloud: … Connect 1Password again in this computer's Settings → Logins, then send again." There is nothing to
send by hand any more, and "1Password" came twice. Now: "…: My Cloud's 1Password did not accept this computer's
token: … Connect 1Password again in this computer's Settings → Logins, and it goes to My Cloud by itself." Same for the
token this computer itself refused (server/login-handoff.ts). Tests follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a real test Cloud, My Cloud's strip and Settings offered Try again after My Cloud's 1Password refused this
computer's token; pressing it re-ran a whole send ("Bringing this computer's bots, logins and chats here…") to fail
the same way. A failure from 1Password refusing the token is now recorded as final; the notice tells My Cloud's page
when every failure is final, and the strip and Settings show the plain line with no Try again. Any other failure, or a
send that stopped as a whole, keeps Try again.

Tests: cloud-send.node-test.mjs (final recorded, notice final only when every failure is), CloudSendCard.test.ts
(Settings and strip without Try again; back with one failure that can be retried). Mutation check 7/7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a real test Cloud, My Cloud's two-line send strip ran under the Simple sidebar's collapse bump ("‹"): the bump was
pinned 7px from the window's top, whatever sat above the app (this strip, an update, My Cloud asleep), at the
sidebar's right edge, which can be anywhere along a centered, wrapping line, so no padding on the strip could clear it
at every sidebar width. The bump now takes the sidebar's top as well as its edge (same ResizeObserver: a strip above
the app moves and resizes the sidebar) and sits 7px below it.

Test: SidebarSimpleTop.dom.test.ts (a 58px strip, the narrowest 240px sidebar: the bump sits at 65px, at its edge).
Mutation check 2/2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump the Local VM / VPS image's cua-driver from 0.20.0 to 0.37.0 (exact,
SHA-256-pinned wheels; image layer 6, tag driver-0.37.0-v6). With only the
driver swapped, the eval's form task went from 0/3 to 3/3.

- Every MCP bridge (Local VM, VPS, this computer) and lent-screen results keep
  an error result's text and drop its images. 0.37.0 attaches a screenshot to
  a failed run_steps recovery read, and the Anthropic API rejects non-text
  content in an is_error tool_result, which fails the turn.
- The daemon runs with CUA_DRIVER_WINDOW_CHANGE_TIMEOUT_MS=200 (default 800),
  --cursor-reduced-motion on and NO_COLOR=1: a foreground key goes from about
  860 to 280 ms, a pixel click that moves the cursor from about 1050 to
  410 ms, and desktop_error shows plain log lines.
- The VM and VPS prompts say to read a window before pixel actions and to send
  keys, typing, scrolling and pixel clicks with delivery_mode "foreground":
  X11 background keyboard input needs /dev/uinput, which the container lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome for Testing 155 on Windows cancels a fresh profile's first
navigation now and then: net::ERR_ABORTED a moment after the request
starts, with nothing else navigating. On GitHub's Windows runner that was
35 of 110 fresh starts (8/30, 3/40, 24/40 on three runners); none of 30
for the runner's Google Chrome and none of 30 for the same build on macOS.
A second request went through every time (27 of 27).

The launcher's identity check is such a first navigation, so it failed
with "Chrome could not be started (Navigation to http://127.0.0.1:.../
failed: ERR_ABORTED)" and the bots fell back to the engine's own browser,
without the real Chrome's identity or their own profile. The check's page
is ours and has no side effects, so it is opened once more after that one
cancel; any other failure is reported as before.

verify-browser-identity.ts now fails with the bot's open call's own error
instead of waiting 30 s for a probe page that never loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review finding [14], and seen in a real-user run: the welcome ticked Bring your stuff and said "Your bots, chats and
logins came over… New ones keep coming by themselves" as soon as Keep My Cloud up to date was on, before anything had
come (the first send can be a tick away), after a send that failed as a whole, and after one login sent by hand with
the switch off.

- "Came over" only after a whole send (first, auto, Send everything) went through, saying what it brought in the
  strip's words ("4 bots, 2 skills, … came over from This computer."), plus "New ones keep coming by themselves." only
  while the switch is on. Nothing gone yet with the switch on: "Bringing…" with a spinner on the rail, not a tick; the
  tick (and the saved step) comes with the result. A failed whole send, a one-login send with the switch off, or a
  desktop too old to say (no `auto` in its notice) keep the choice to copy or start fresh.
- The welcome still moves straight on to Connect your AI, but no longer moves keyboard focus when it does so by itself
  (it drew a focus box around the heading); a step the person opened again is never left for them.
- "cloudWelcome.bring.sent" is gone; "cloudWelcome.bring.keepsComing" is new (es, ja, pt-br).

Tests: CloudWelcome.test.ts (the rule's table, moving on and ticking only on arrival, no focus, staying on a step the
person opened, switch off wording, failed/one-login/older desktop keep the choice). Mutation check 11/11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cancel that hit the identity check also hits a bot's first page on a
fresh profile: Chrome for Testing 155 on Windows (the one agent-browser
installs, which the driver uses where Windows has no Google Chrome)
cancels the first network navigation of a profile that never navigated.
Measured on GitHub's Windows runner, 30 starts per runner:

- the bot's first navigation, as today: cancelled 35 of 150
- after a data: page: 16 of 120, so it must reach the network
- after a local page in the same tab: 0 of 90
- after a local page in a tab of its own: 0 of 60
- a profile's second start: 0 of 90

So LocalBackend opens a loopback page of its own, in a tab of its own,
once, when Chrome starts on a profile it just created on Windows, and
closes it before any bot call; the startup tab stays in front with its
history untouched. Profiles that navigated before, and other platforms,
start as they did. The warm-up never fails a start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With "Use this key for every Claude bot" on, plain Claude runs its turns on the injected ANTHROPIC_API_KEY (`claude -p`
uses it ahead of any login), yet its snapshot said billing "subscription". The chat usage line and Bot settings → Usage
then read "$0.40 equivalent — on your subscription, not billed" while Anthropic charged the key; cache keep-warm (opt-in)
pinged on the key although its gate refuses metered keys; and My Cloud's tile could say "Runs on your API key." beside
that caption.

- server/drivers/claude.ts snapshot: one rule for every Claude instance, Claude (API key) included. A key in the turn's
  environment, or the CLI's own API-key sign-in, is billing "metered" with account method "api-key"; otherwise
  "subscription". The usage caption, Bot settings → Usage, the keep-warm gate and My Cloud's tile all read that snapshot.
- server/testing/fake-claude-cli.ts: FAKE_CLAUDE_AUTH=api-key, a CLI signed in on its own API key.

Tests: claude.test.ts "ClaudeDriver billing" builds claude and claudeApi from instanceConfigs with every Claude bot
on/unset/off and a key present/absent, plus the CLI's own key and an inherited key (3 of 8 fail on the old driver).
Mutation check 8/8. Isolated fixture (fake CLI, keep-warm on): every on now reports metered + api-key and opens no
keep-warm window (before: subscription, window "warm"); every off is still subscription and stays warm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR #3180's Windows shard (vitest windows-latest 1/4, pnpm test:electron) failed two new tests; the product was right.

- The usual-name fallback test wrote POSIX paths by hand while usualFolderPaths joins with the platform's path
  module, so on Windows it looked for \home\me\Documents and never found it. It now builds every path with
  node:path, rooted at this disk's root, exactly as main does.
- The real-folder-check test set only HOME, but os.homedir() reads USERPROFILE on Windows, so the temporary home
  was an ordinary folder there and was lent as itself. It now sets both, asserts os.homedir() is the temporary
  home, takes the home's spelling from realpathSync.native (the long name, as fsp.realpath gives, not RUNNER~1),
  and removes a variable that was unset instead of setting it to "undefined".

Checked on macOS with two shims that make os.homedir() read USERPROFILE and path.join use win32: both old tests
fail under them, both new ones pass. Mutations caught: no usual-name retry (2 fail, also under the USERPROFILE
shim), retry on any refusal (1), no dedupe (1), lending the system path instead of the usual name (2), the
HOME_OR_ROOT code removed (1), the usual name joined with "/" (1 fails under the win32 shim; the old test could
not catch it), the test setting HOME only (1 under the USERPROFILE shim).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot whose own server was gone for good (cancelled VPS, alias dropped
from ~/.ssh/config) could be neither deleted nor moved: both refused with
a 503 until that server could be listed, and nothing in the app got the
person out.

- Moving a bot to another server (or back to the default) goes ahead when
  the old server cannot be listed. A reachable old server that still holds
  the bot's computer keeps refusing with 409, as before.
- Deleting a bot goes ahead when its server cannot be listed, for every
  bot, including one already switched to another computer.
- Both answers carry a plain notice: what may be left on that server and
  the docker command that removes it once the server is back. The bot's
  Server field shows it; a deletion shows it at the top of the chat for
  20 s. Only the owner and admins can move or delete, so only they see the
  alias in it.
- Docs: unreachable servers no longer block a move or deletion; the
  privacy line now says aliases stay out of the settings and bot records
  phones and members get, and that a reported SSH error can still quote a
  server's name.

Tests, failing first: the bot-patch unit test and a new real-server e2e
with an unresolvable alias (move off, switch to Boat, delete) both
returned 503 before the change. Mutation checks: restoring either 503,
dropping either notice, not handing the DELETE answer on, or not
rendering a note all fail a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the bridge removes a screenshot from an error result, the note now says
plainly that the screenshot this error mentions was removed and that the
bot must call get_window_state for that window and take x,y from its new
screenshot before any pixel action. run_steps' recovery read still promised
"one follows, take x,y from it"; that phrase is rewritten when its picture is
removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Japanese nothing-to-lend message says to pick a folder under 「貸し出す内容を選ぶ」, but ja.json had no
lending.more, so that button showed the English fallback "Choose what's lent" and the label named was nowhere on
screen. ja now has lending.more = 貸し出す内容を選ぶ (accepted in source-hashes.json; the line added by hand, so the
accept command's reorder of three unrelated ja hashes stays out).

Every language checked: en, es and pt-br already name their own button, Settings title and MausBot Cloud. The
other eight show the English message with the English button, which matches; their "Settings" stays English as
in every other untranslated "Settings →" string there (14 to 37 of 48 per language), the repo's English fallback.

The new test fails before this change (ja: Choose what's lent) and catches each of these: the ja button removed,
the ja message naming another button or another Settings title, es dropping its button from the message, pt-br
naming another section, and a language translating the button without the message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Six scripted reply shapes chosen to stress the speak pipeline's text
splitting, committed as a deterministic fixture so any measurement can
replay identical bytes:

- unpunctuated run, first block 319 chars
- code list, first block 211
- em-dash list, first block 153
- typical medium reply, first block 26
- staccato reply, one 92-char block
- mixed reply whose last block is 319

Every manifest number comes from running the real toUtterances splitter
(server/tts/speech-text.ts) on the committed replies, never from
estimation: 116 blocks total, mean 65.78 chars. The generator fails the
build if a pinned first block drifts. Fixture files are LF-normalized on
read so Windows checkouts keep identical ids. A colocated test
regenerates the corpus and manifest byte-for-byte against the committed
files.
Wire types plus a renderer-side recorder installed only by
?ombVoiceProbe=1; the speak path records delta arrival, message frame,
playback start and per-block bounds. With the sink absent, the shipped
speak and discard-delta path is unchanged; store and tts tests pin that.
FAKE_CLAUDE_STREAM_CADENCE streams a scripted reply as chunked
text_delta frames before the assistant message; FAKE_CLAUDE_MARKER_REPLIES
answers a prompt containing a marker with that marker's reply, so the
driver's message replays over several CLI launches stay aligned.
Firefox, the image's own browser, kept its profile inside the container, so
deleting or replacing a Local VM signed the person out of every site.

- The image's start-up script now keeps ~/.mozilla in the durable folder, as
  it already did for Chrome and Chromium, and clears Firefox's stale lock
  symlink, which names the old container's address.
- Before a desktop from an older image is removed (Delete, Delete and
  recreate, or the automatic update), it is stopped and its Firefox profile is
  copied into the durable folder with the runtime's cp, which works on a
  stopped container. An existing durable profile is never overwritten. If the
  copy fails, the desktop is kept.
- The confirms now say plainly what is kept (the durable folder and website
  sign-ins) and what is deleted (apps installed inside the desktop and files
  outside the durable folder), in English and the seven languages that
  translate them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drives the committed corpus through the real app pipeline: the fake
claude CLI streams each corpus reply as text_delta chunks, the driver
forwards them, the renderer store records arrival, and the Speaker
speaks. Writes one JSON run log per label under
fixtures/voice-latency/logs/: per-reply rows carry t0-to-first-audio,
gap counts and gap totals, and a summary carries worst cases plus run
provenance (corpus fixture id, base and measured-build commits, date,
machine, config summary with keys stripped). One warmup reply is spoken
and discarded first.

The harness reads the live config's tts section into the disposable
fixture server (loopback only, torn down after the run) and never
modifies the live config or logs keys.
A conversation longer than one page (300 rows, or 2 MB) landed on My Cloud stored but hidden: every page carried the
thread's real leaf, so a page without it changed nothing visible and the next page hung off a row My Cloud was not
showing. My Cloud's bot read the same cut-short path. A context summary was dropped as Bring drops one, so a summary
ending a send left everything after it hidden too. And My Cloud answered "removed" for a conversation it never had
when its rows were older than its last Copy, which came from another computer.

- This computer's rows route now gives each page its own leaf: the deepest row of this computer's active path whose
  path from the root is all in this page or an earlier one. A page never ends between a path row and a row above it
  that was stored after it (a screen frame inserted above the next line), so the pages always continue one another.
- By-row sends add context summaries like any other row.
- Only the sender's own `sent` decides that a conversation My Cloud lacks was removed there.
- The paging moved from message-db.ts into cloud-send-chats.ts, which keeps message-db.ts under 1,000 lines.

Proven through the real send: server/cloud-send.e2e.test.ts "a long conversation, sent in pages by the real send"
(two real servers, main's own wiring, tool-heavy turns). At c3643c10 My Cloud's path ended at 300 of 771 rows (a new
bot's first automatic send), 155 of 617 (a Bring-made conversation sent from its first row), 155 of 463 (a later
two-page send) and 155 of 310 with 0 of 1 summaries; now each matches this computer row for row.
Unit: server/cloud-send-chats.test.ts "a conversation sent in pages" (3+ pages into an empty conversation, into a
Copy-made one with a phone reply in place, a later 2+ page send, a summary ending a send and at a page boundary, a
page that would end inside an insert, one that must reach past its size) and "POST /api/cloud-send/chats" (a
conversation never had, after another computer's Copy). All 7 fail at c3643c10. Mutation check 6/6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's side of sending chats by row:
- A page says it went before (`sent`) when the conversation's cursor is there as the page goes, not as the send began.
  A conversation split over two requests and removed on My Cloud in between now stays removed instead of being made
  again from its later pages.
- Once My Cloud does not take a page (its bot is answering, say), the conversation's later pages wait for the next send
  too, so its cursor never moves past rows My Cloud never stored.
- "Removed" is kept only for a conversation this computer sent before; any other one goes again next time.
- The attachment check goes in requests of at most 2,000 names, My Cloud's limit, so a picture-heavy batch no longer
  stops the chats on every send.

Tests (electron/cloud-send.node-test.mjs): "a conversation split over two requests…", "once My Cloud does not take a
page…", "a conversation this computer never sent is never kept as removed…", "more attachments than My Cloud checks at
once…". All 4 fail at c3643c10. Mutation check 5/5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The switch only stopped the next send: the first send, the whole history 20 s after launch, carried on to the end
after it was turned off, and so did one queued behind another send or started during the comparison.

A send Keep My Cloud up to date makes (first or auto) now checks the saved switch, and whether the background loop
was stopped, before each item, before each conversation and before each request; the tick checks it again after
comparing, and a queued background send checks it once it may start. It stops cleanly: what My Cloud already took
keeps its cursor and baseline. The outcome says `stopped: "off"`, Settings says "Sending stopped because you turned
off Keep My Cloud up to date. What hadn't gone yet stays on this computer.", and My Cloud's strip says what came,
never that everything is there. Turned on again, a first send the switch stopped goes on as the first send. A send
the person asks for (Send everything, the strip's Try again, the switcher) is not stopped.

Tests: electron/cloud-send.node-test.mjs "turning off Keep My Cloud up to date stops a send under way…" (45
conversations, off after the first request: no second request, no conversation read after it, the rest goes when it
is on again) and "turned off while the last conversation is read… turned off between bots…"; src/lib/cloud-send.test.ts
"a send the switch stopped". Both node tests fail at c3643c10. Mutation check 6/6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A real buyer's Cloud was ready 40 s after paying, but its first send waited for the next two-minute check and
  started at +103 s. Main's account changes now kick Keep My Cloud up to date (next to cloudPower.changed()): a Cloud
  this computer has not sent to yet is checked a second later. A kick never comes before the first check after the
  app starts, never puts off a check already due, and never starts a check while one runs; one that arrives mid-check
  brings the next check forward instead.
- A send that failed as a whole (no owner session: the Admin gave no code, or pairing failed) retried every two
  minutes with chats waiting, a new sign-in at the Admin each time. It now waits half an hour like any other failed
  send, unless something on this computer changes; chats wait with it.

Tests (electron/cloud-send.node-test.mjs): "a Cloud this computer has not sent to yet gets its first send a moment
after it is there…", "a kick while a check runs never starts a second one at once…", "main's kick, on the account's
changes, brings a new Cloud's first send forward", "a send that fails as a whole waits half an hour…" (one sign-in in
30 minutes, was 16). All 4 fail at c3643c10. Mutation check 8/8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Settings → MausBot Cloud, a turn-on main refused (a Linux computer with no Desktop, Documents or Downloads) left
the switch on and reading "Starting…" right above "Nothing is lent yet: …", until the person turned it off. The
switch kept the person's click as "on" for good: draftOn was cleared only by turning it off. So any way nothing
ended up lent (a refusal, a failure Try again fixes, main stopping lending, the last folder removed) read "Starting…".

- draftOn now lasts only while the turn-on is on its way; after it the switch, the status line and the off line
  ("Off since …") say what main says.
- A turn-on that didn't happen keeps Choose what's lent in reach under the off switch until lending is on, since
  the reason says to pick a folder there; a folder picked there is lent, and once lent the choices sit behind an on
  switch again. The off view is otherwise unchanged.

My Cloud's own page needed nothing: its switch already shows main's answer.

Tests (CloudLending.test.ts), all three failing before: a refused turn-on is off with its reason, never Starting…,
and a folder picked under Choose what's lent is lent; a Try again failure is off and the next flip lends; once on,
main stopping lending shows off with why. Mutations caught: a failed turn-on keeping draftOn (2 fail), a lent one
keeping it (1), the choices never kept (1), the choices only while on (1), lending on never ending it (1), the
settle callback never called (3), the failure flag lighting the switch (2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record runs never call the live engine and never read an engine key.
Synthesis comes from a loopback stub that speaks the ElevenLabs wire
shape with modeled timing: clip duration 70 ms per char, synthesis
latency RTF 0.5 (35 ms/char), which reproduces the pinned 319-char
worst case at 11.2 s. Timing is pinned in the manifest and stated in
every run log, with synthesis-derived numbers labeled modeled.
Provider/model/voice labels are constants, identical on both sides of a
before/after pair.

The harness drops its live-config and OMB_TTS_KEY resolution entirely:
a record run is keyless and self-contained. OMB_ELEVENLABS_API becomes
harness-internal plumbing pointing the fixture server at the stub.
Keyless stub synthesis at RTF 0.5, warmup discarded, 24/24 corpus
replies measured. Worst-case first audio 21,341.9 ms
(unpunctuated-run-319); 2 gaps totaling 7,331.2 ms, longest 6,751.7 ms
(mixed-late-319's 319-char tail block). All numbers ride the modeled
stub timeline and are labeled modeled in the log.
For My Cloud's welcome (review finding [14]): the notice's `last` is any send, so a send of one login with
Settings → Logins replaced the result of the send that brought everything. The notice now also carries:
- `whole`: the latest send of everything (first, auto, Send everything, the strip's Try again, the switcher), in
  `last`'s shape, with `error` when it failed as a whole and `stopped: "off"` when the switch stopped it. A send of one
  login or item never replaces it.
- `arrived`: what reached My Cloud from this computer over all sends (bots, updatedBots, skills, logins, onePassword,
  settings, chats: { conversations, messages }).
Both are kept in cloud-send.json, and are optional in the type: a desktop from before sends neither.

Review finding [16]: with a desktop from before, Close on My Cloud's strip did nothing, since that desktop never marks
a result seen; the strip now remembers Close itself for that result.

Tests: electron/cloud-send.node-test.mjs "My Cloud's page is told the latest whole send…"; CloudSendCard.test.ts
"Close on My Cloud's strip works with a desktop from before it was kept there". Mutation check 5/5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
draftOn now only covers a turn-on that is on its way, so its name says that and the comments go (AGENTS.md: a
better name, not a comment; no history or narration in the new tests). No behaviour change: the same tests pass
and the same seven mutations fail them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
synthesize() now requests streamed delivery (stream=true) on the
configured flash model and exposes first audio before the clip
completes: a Synthesis carries firstAudio (first wire chunk) and
audio (the whole clip). speak() and both of its callers keep
consuming whole clips, so app behavior is unchanged; the stream
lands in the provider contract and the record protocol.

The record stub serves the streamed wire shape when asked: first
chunk at the pinned modeled first-byte latency (synthesis.firstByteMs,
300 ms in the manifest), remaining chunks spread so the last byte
still lands at the whole-clip synthesis time. Requests without the
flag get the old held-back whole clip, keeping before/after totals
comparable.

The committed synthesis-leg row (logs/firstbyte-c37afc9db95c.json)
measures the 319-char unpunctuated reply through the real synthesize()
against the stub: first byte 314 ms, whole clip 11,177 ms, both
modeled. Produced by scripts/testing/voice-latency-firstbyte.ts.
Playback waited for each block's clip to finish synthesizing while
later blocks sat unsynthesized: with one render in flight, a long
synthesis (the pinned 319-char worst case models 11.2 s) starved
playback after the first clip ended. The Speaker now keeps a window
of three renders in flight and plays them in order; generation
itself is unchanged.

Offline tests pin the mechanics: at most three blocks in flight,
block j+3 starts only after block j has played, prefetched blocks
play in order even when synthesis completes out of order, and a
prefetched block's error surfaces only after earlier blocks finish
playing.
Reverts 338e2e0c3 and ae2365600 (the Settings switch staying on and reading "Starting…" after a refused turn-on),
at the owner's call to ship the Windows test fix and the Japanese label first; the switch fix is noted under Later
in the PR. CloudLending.tsx is back to this PR's own version. The Japanese label test stays, without its history
comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Browser S4 and comms e2e: hold on GitHub's macOS and Windows runners
Found in a real-app run (the path to My Cloud cut for 8 minutes while chatting): once the network was back the
sidebar recovered in seconds, but sending stayed "unreachable" and the two messages waited 18 minutes, for the
half-hour round. A check only looked at My Cloud when this computer's items changed or 30 minutes passed, and chats
alone needed the last look to have found it ready.

- A check looks at My Cloud again each time (every two minutes) while the last look found it away: unreachable,
  asleep, outdated, or this computer's server not ready. When it is back, what waited goes at once, chats included,
  even when a send had failed before it went away.
- Main's kick on the account's changes now also looks at a Cloud the last look found away, at most every 30 s.
- Never while signed out: a look then is a new sign-in at the Admin, so signed out keeps the half-hour round. A Cloud
  that stays away is read once a check and never signed in to, and every look counts as one, so a run of failed
  looks no longer makes every check look.

So a send stopped by being offline goes on by itself once My Cloud answers, from the cursors My Cloud already took.

Tests (electron/cloud-send.node-test.mjs): "once My Cloud is back after being away…", "a kick when the account
changes looks at a Cloud the last look found away…", "a Cloud that stays away is read once a check and never signed
in to…", "a send that failed before My Cloud went away is tried again as soon as it is back". All 4 fail at
c3643c10 and at 18a607551. Mutation check 8/8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Browser: open the identity check's page again when Chrome cancels it
Let My Cloud use this computer works on Linux without XDG folders, and says why when it can't
VPS computers: each bot can use its own SSH alias (from #3087)
The image bump left every existing Local VM unattachable, and an Auto bot
then fell through to this computer's own desktop on Mac and Windows, an
unattended 7:00 routine included. A VPS desktop on the old image did the same.

- A bot whose Local VM, or VPS container, exists but needs preparing or
  recreating has its place unavailable this turn: this computer is never
  mounted instead, and select_computer does not offer it either.
- After an update the server prepares the new image once in the background
  and recreates each old Local VM by itself as soon as nothing uses it: stop,
  copy the Firefox profile into the durable folder, remove, run. If the copy
  fails, the old desktop is kept and the turn says why.
- A chat in Auto gets no computer and a plain note that its desktop is being
  updated. A turn whose place is the Local VM, a channel speaker's and an
  unattended run wait for the update with one plain line in the thread.
- Settings shows the update instead of "Prepare" or "recreate it". A VPS
  desktop is not recreated automatically (that deletes the files on it): the
  bot is told the person can replace it from its Computer panel.
- The boot discovery of existing desktops moved out of index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size ratchet failed: server/config.ts grew to 1445 lines (listed at 1443) and server/drivers/claude.ts to 2169
(listed at 2163). Code moves out instead of a pin going up; behaviour is unchanged.

- server/drivers/claude-billing.ts: claudeBilling(), what a Claude instance's turns bill, read from the turn's
  environment and the account the CLI reports. The driver's snapshot spreads it.
- server/anthropic-key-env.ts: anthropicKeyEnv(), which Claude instances run on the workspace Anthropic key.
  injectedEnvironment uses it.
- Ratchet pins lowered to the new counts: server/drivers/claude.ts 2160, server/config.ts 1441.

Tests: ratchet, config and Claude driver tests pass; mutation check 12/12 on the moved code (claude.test.ts
"ClaudeDriver billing" plus config.test.ts env injection). Isolated fixture unchanged: every Claude bot on reports
metered + api-key with no keep-warm window; off stays subscription and warm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #3176, #3182, #3180 and #3165. The locale catalogs and source-hashes.json merged without conflicts: both
sides' keys are kept, and i18n:check passes (12 languages, 6186 English strings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review finding [13]: no send carried a room's chats any more; a send by row listed bot conversations only, and rooms
needed a Copy to exist on My Cloud.

- This computer lists each room's threads with the bots' conversations (bot-to-bot channels are not rooms), busy
  while a bot answers in the room, and serves their pages like any other, each with its room: name, members,
  default responder, bulletin, section, setup, and the thread's own entry (never this computer's folders).
- Main sends a room's pages with its room, to My Cloud's same chats route, under the same cursors.
- My Cloud adds them with the same merge. A room it lacks and never had from this computer is made under this
  computer's ids, with the members My Cloud has; a room or a room's thread removed on My Cloud is never made again;
  a room waits while none of its bots is there yet or a bot is answering in it. Store.createGroup takes the ids.
- A bot that holds nothing but its greeting still goes when it is in a room, since the room's chats need it there.

Tests: server/cloud-send-chats.test.ts "a room's chats" (listed, busy, no bot-to-bot channels; made under the same
ids with three pages and more whole; never made again once removed; waits for its bots) and "a room's thread waits
while a bot answers in the room"; electron/cloud-send.node-test.mjs "a room's chats go with the room…";
server/cloud-send.e2e.test.ts "a room goes with its chats…" (two real servers: 610 messages, the room on My Cloud
under the same ids, its path equal row for row; fails at c3643c10); server/cloud-send.test.ts (a starter put in a
room is in use). Mutation check 16/16.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in a real-app re-test (Linux app, a test Cloud):
- A: the network came back and the next check started the send, but a minute-long blip on the way to the Admin made
  it fail as a whole ("Cloud request failed.", a gateway error). The send then waited the full half hour: My Cloud
  still read as online, so the look-again-while-away logic never applied.
- B: Try again went through, yet Keep My Cloud up to date stayed paused on the earlier failure; new chats waited
  another 20 minutes.

Now a send that fails because nothing answered (a fetch that failed, a timeout, a 5xx from the Admin or My Cloud,
followed through each error's cause) marks My Cloud away and tries again at the next check, then 4, 8 and 16
minutes on, then each half hour, so a Cloud that stays down is never signed in to every check. A refusal (401, 429,
anything else) still waits the half hour at once. Any send of everything that went through, the person's included,
ends the wait. openOwnerSession keeps the grant's error as the cause and pairing's status, so the difference
reaches the send.

Tests (electron/cloud-send.node-test.mjs): "nothing answering on the way to My Cloud is told from a refusal", "an
owner session that could not open says whether nothing answered or My Cloud refused", "a send that fails because
nothing answered tries again at the next check, then waits longer each time…", "a whole send that went through,
whoever asked for it, ends the wait an earlier failure began". All four fail at 0cbb0467e. "a send that failed
before My Cloud went away…" now fails its sign-in the way an offline computer does, with a network error. Mutation
check 11/11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Composio ties every connected account to one user, and a tool router Session reaches only its own user's accounts, so a
Cloud with its own installation saw none of the apps connected on the person's computer.

- POST /v1/installation/share {for}: a one-time code (10 minutes, only its hash kept) that only the named installation
  can redeem. The desktop mints it for the installation id its own My Cloud reports over the owner session the Admin
  verified, so only that Cloud can spend it, once.
- POST /v1/installation/adopt {code}: from then on the installation acts as that Composio user (shared_user_id). Refused
  with 409 has_connections while it has active connected accounts of its own, which stay reachable.
- Sessions, the connected inventory, authorize, triggers and event routing follow the acting user. An instance one
  sharing installation binds is never listed as unbound to the other, and never deleted by it.
- GET /v1/me adds `user` (a digest of the acting user) and `shared` once migration 0004 is applied. Before it, /v1/me
  carries no user, as the old code did, so no desktop tries to share; every query reads installations.*, so the code
  runs there too and sharing answers 503.

Tests: sharing.test.ts (bound code, single use, expiry, own connections kept, tools run as the shared user, an app
connected afterwards is on both, triggers and events across the two, a database before 0004). The fake Composio learns
tool router Sessions. Mutation check: every rule caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The move to My Cloud carried bots, chats and files, never the connections they reach other services with ("Saved
credentials, provider and MCP connections ... are not transferred"). Now a move carries them once, credentials
included, as functions the move calls (electron/cloud-connections.mjs):

  collectConnections(local): this computer's connections by name, never a secret
  sendConnections(collected, target, { local }): { moved, runsHere, kept, missing, failed, release }
  adoptComposioId(target, { local, here, there }) and releaseConnections(pending, { local, target })

- Keys go first (OpenAI, OpenRouter, Anthropic for Claude (API key) only, xAI, Mistral, Cerebras, Groq, Meta,
  OpenAI-compatible, OpenCode), and their engines are waited for, so bots that follow keep their own engine and model.
- MCP servers go with their env and header secrets. A server's own-account sign-in (OAuth) goes with it: tokens,
  client and the app's secret. My Cloud refreshes it from then on and this computer forgets its copy without signing
  out, so the two never spend one refresh token; one that refreshed meanwhile goes again, replacing only the one moved.
- A server that needs this computer (a program by path, a file or folder here, a local address, a program My Cloud
  lacks) goes marked runsOn { environmentId, label }: kept for "Use my Mac", never started, tested or signed in to
  there. MCP settings say which computer it runs on.
- Connected apps: My Cloud's installation adopts this computer's Composio user (the broker's one-time code), or the
  person's own Composio key and user. A Cloud with its own keeps them, and the result lists what it lacks.
- HighLevel goes with a Private Integration token or an OAuth sign-in (then forgotten here like an MCP sign-in). A
  sign-in My Cloud already has of its own is kept.
- A bot on My Cloud is told, from My Cloud's own state each turn, of servers to sign in to there (with a /?connect=
  link that opens the page), HighLevel or assigned connected apps not connected there, and servers that run on the
  person's computer.

Secrets reach main only over the server's private port and go only to the owner session. Nothing calls these yet; the
move will. server/index.ts stays at 17174 lines.

Tests: cloud-connections.e2e.test.ts (two real servers, the broker Worker, a fake sign-in server, a fake HighLevel and
its relay: the key works there, the moved sign-in refreshes there, HighLevel's rotating refresh token is unspent, a
runsOn server is never tested there, Gmail is connected there, the bot is told, a second move spends nothing, no secret
in any answer or log; and a Cloud that keeps its own apps), cloud-connections.node-test.mjs,
cloud-connections{,-host,-prompt}.test.ts, mcp-registry.test.ts, connect-link.test.ts,
McpServersPanel.embedded.test.ts. Mutation check: 52 of 52 caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh workspace's first bot is now the Chief of Staff. The seed is the one
the server runs at boot, so desktop, headless and Cloud get the same start;
existing workspaces are left as they are. Its profile stays empty, so an
untouched starter still reads as unused when sending to the Cloud.

The Chief's prompt says it is the person's assistant, does the work itself,
and adds a specialist with create_bot without asking when a job needs one
(an ongoing area, a different skill set, or work in parallel), then says so in
one line. It is shorter than before.

create_bot no longer waits on a card when the Chief picked the bot itself:
every create_bot applies at once with an Undo, inside the per-turn and
workspace caps. The suggestion path is deleted: TeamSetupRequestService.suggest,
the request's suggestion flag, the "Add bot / Not now" card, its decision note,
the schema field and the two Not now strings. A Cloud conversation its owner did
not drive still waits for the owner, as every bot-requested change does.

Tests: the seed is the Chief and leaves existing workspaces alone; the prompt
says the new things; a create_bot with suggestion: true applies at once at Ask
with an Undo and no card, and the fifth in a turn is refused. Tests that used
a suggestion only to get a waiting card now use a credential card or a durable
fixture approval; the ones that pinned the suggestion card are deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved server/index.ts by keeping both sides: main's per-bot VPS config
(vpsConfigForBot) and this branch's outdated-desktop report in mountBotVps
and the preview surface. The ratchet pins use each file's real line count:
server/index.ts 17154 (main 17165), src/state/store.tsx 3542 (main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Four fixes to how the control plane places managed endpoints across
Cloudflare accounts:

- Account room is real free capacity, min(tunnel room, DNS room) from the
  last scan, never below zero. Dormant endpoints hold no tunnel or record and
  no longer make room negative. An account whose scan shows no free tunnel or
  no free DNS record is never chosen, or moved to, while another eligible
  account has room; with none anywhere the primary is tried as before. A row
  that never handed out an address also leaves an account its scan shows full.
- A DNS record quota refusal (cf_api_81045) now acts like a tunnel quota
  refusal for a row that never handed out an address: it gives back the
  tunnel it holds there (created or adopted, re-verified by ID and name),
  closes the account for ten minutes, and moves to an account with room in
  the same request. A ready endpoint stays where it is.
- The idle scan also reclaims tunnels left by provisioning requests that
  stopped (lease expired, row untouched for the quiet period), and deleting a
  row that never handed out an address leaves it movable.
- OMB_DNS_RECORD_LIMIT is 3500: the openmausbot.com zone is on Pro.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Chief had no way to see the team library, so templates stayed something
the person had to pick. A new Chief-only, read-only tool, list_team_library,
returns each ready-made team's name, one-line summary and roles (name, title,
a clipped line of what it does, and which one leads); the Chief creates the
roles it needs with create_bot. A team whose file can't be read keeps its name
with no roles, and an unreachable library says so plainly.

The Chief's prompt gains one sentence pointing at it. To keep the catalog inside
its budget, create_bot's description is tightened, so a Chief's tools/list grows
by 82 bytes in all while its prompt is 164 characters shorter than before.

The new route lives in server/routes/internal-chief-team.ts, which also takes
the team-setup catalog route out of server/index.ts unchanged, so index.ts
shrinks by 13 lines.

Tests: the library roles (manifest, v1 Markdown and v2 packages, lead, a
missing file, clipping, an unreadable catalog); the routes (Chief only, 502,
an expired capability or a lost Chief role while loading, the moved catalog);
the HTTP wiring refuses a non-Chief; goldens and the Chief-only tool lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moving to My Cloud carries this computer's MCP servers, sign-ins, keys, connected apps and HighLevel, once
Cloud computer becomes cloud desktop, Local VM becomes private desktop,
engine becomes AI, MCP servers become custom tools, the bot's Computer tab
becomes Screen, and prose My Cloud becomes the Cloud, on the chat, place,
sidebar, routine, Team map, Files, Cloud and Settings top-level strings.
Keys are unchanged; every pack gets real translations for each changed key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New people never design a team now. In Simple mode (the default for a new
person), New bot, Create new bot in the New chat panel and Cmd+N open the
Chief of Staff's chat with a short starter in the composer ("I'd like another
bot to help me. Ask me what it should do."), and the Chief adds the bot. The
starter leads whatever was already typed there and is never stacked twice.
Without a Chief, and always in Advanced mode, the New bot form opens as before.

The + menu shows Create team and Templates only in Advanced mode. The Cloud
welcome's Start fresh says "Start with your assistant. It brings in
specialists when a job needs them." and offers one Continue in Simple mode;
Advanced keeps Choose a team. Advanced mode keeps every entry point.

The two new strings are written in all 13 languages and accepted.

Tests: the hand-off (starter, its thread, no stacking, the form without a Chief
or in Advanced, General's Chief first), the Simple and Advanced + menus, and
Start fresh in both modes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use this key for every Claude bot no longer breaks Claude (API key) bots
Local VM: Cua Driver 0.37.0 and text-only error results
In the real-app re-test each retry after a blip ran about a minute late (+3 and +5 minutes, not 2 and 4): the kick
after an account refresh looked at My Cloud, found it there (only the Admin's pairing was failing), and scheduled the
next check a full two minutes on, past the end of the wait. While a send waits after a failure, the next check now
comes when the wait ends, if that is sooner than two minutes.

Test (electron/cloud-send.node-test.mjs): "a kick while a send waits after a blip never puts the retry off…" (fails
at a80e1f017). Mutation check 3/3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The welcome no longer shows a list of model providers. When an AI already
works (a signed-in CLI, an API key, an organization's model), the step is left
out and the AI is used. When none does, one plain "Connect an AI" step leads
with the recommended sign-in (a Claude account, then a ChatGPT plan) and folds
every other way, the organization sign-in included, under Other ways. Once the
step is on screen it stays, so it never vanishes under the person.

On the Cloud's own welcome the AI step finishes itself when an AI already
works there (one signed in, or the plan's included credit), so bots start on
the included AI with no question. When none works it shows the same shape:
the Claude sign-in first, the other ways folded, with the live check after a
sign-in kept.

The last step introduces the Chief of Staff: "Meet your assistant", which does
the work with you and brings in specialists when a job needs them, with the
same name and colour choice. The welcome opens on the Chief when there is one.
A bot that is not a Chief keeps the old words.

Strings: new and changed ones in all 13 languages and accepted; the four that
only the old list used are removed.

Tests: beatsFor with aiReady and the recommended sign-in; the flow skipping
the step, keeping it once shown, and the Chief's words; the step's one
recommendation, Other ways and connected line; the Cloud step finishing itself
for credit and for a signed-in AI, and leading with Claude when none works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: the file-size pins (set to the measured counts: server/index.ts
17137, Sidebar.tsx 2335, claude.ts 2160) and source-hashes.json, regenerated
with --accept for every pack from the merged catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When this computer's bots come over to the Cloud by themselves, the Bring
step says so in one line and, behind More, offered a fresh start with Choose
a team. In Simple mode that line is all it shows now; Advanced mode keeps More
and the team library.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The failed-turn next steps, routine recovery notes, quota switch cards, model and
team-setup cards, the hosted-desktop and sharing notices, and the tray menu now
say AI, cloud desktop, private desktop, Screen panel and the Cloud, matching the
new English labels. Tests follow the new copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.120
Model choice is an Advanced-mode thing now. In Simple mode the bot panel's
Details tab has no model picker, thinking level or More model settings, and its
search finds no model page; the New bot form (used when there is no Chief) has
no Model section. Bots use the default AI.

So nobody gets stuck, a bot whose AI doesn't work shows one plain line in its
Details tab, "{name} has no AI to think with yet.", with Connect an AI, which
opens Settings at the AI page. A link that truly needs a model (a place that
needs one) still opens the model page, and Advanced mode keeps every picker.

The Simple tour's second step no longer points at the model: it says the
panel holds the bot's instructions, schedules and apps.

Strings in all 13 languages and accepted.

Tests: the Details tab picks no model and shows the line and its action for a
missing, signed-out or unavailable AI; the panel search; the New bot sections
in Simple and Advanced; the Simple tour copy. The tests that pinned the
Simple model card are deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Control plane: place new Secure HTTPS addresses where there is room
The welcome no longer says engine, MCP server, server or the bot's
computer. Imported tools are "tools" that turn on in Apps, the tour
talks about the bot's screen, and Cloud "runs your bots in the cloud".
"this computer" stays only for the person's own device.

A new guard keeps onboarding.* and cloudWelcome.* free of those words.
This computer as a place name, My Cloud and lent are listed as pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The feed only went read through a click on the entry or Mark all read, so the
badge kept counting notifications for conversations already opened. Reading a
bot or room conversation now marks that thread's feed entries read, questions
and approvals included, and tells every open app so its badge drops at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An external runtime reads its results with assignment_status. The teammate's
reply is still recorded in its pinned conversation, but no longer marks that
conversation unread for a person who never reads it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cadence branch returned before the const finish declaration, so its
completion timer hit the temporal dead zone and killed the fake CLI with
an uncaught ReferenceError: no result frame, no Stop hook, no cost
persistence. Define finish before the branch so both paths share it.
Drop the developer hostname from the run log (platform and arch remain),
and poll the abort signal in the render, settle, idle and reply loops so
a Ctrl-C after the fixture is up unwinds to the finally teardown instead
of being ignored until a second signal kills the process.
The README promises the manifest carries the gap threshold both sides
share, but the generator only wrote cadence and synthesis. Write
gapThresholdMs and pin it in the fixture test.
Derive first audio from the earliest playback start across all blocks:
a block the probe never saw finish no longer nulls the whole reply's
first-audio latency, while gap accounting still requires both bounds.

Track the pending first delta per thread instead of in one module-level
variable, so interleaved threads cannot consume each other's t0; the
completed-message recorder now takes the message's thread id.
The committed run was recorded while the cadence replay crashed the fake
CLI before its result frame, still carried the recording machine's
hostname, and pinned a base commit from a stale line. Re-record on the
branch tip with the fixed fake CLI, probe and harness.
The host-anonymity fix dropped the hostname but kept only platform and
arch; the finding asks for the first CPU model with a null fallback so
the log still describes the machine class.
store.tsx is file-size ratcheted and must stay identical to its upstream
base; tap the frames where they arrive in openLiveEvents instead, before
the consumer callback, with the same bot-text and runtime guards.
On the welcome's Connect an AI step, and on the Cloud welcome's, the
sign-in card said "Sign in to Claude Code on this server ...". It now says
"Use the Claude account you already have. You sign in on their own
website, so your password stays with them." Every sign-in under Other
ways says the same; a local-model setup keeps its own words. Settings
keeps the full setup text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs' engine screenshot showed the welcome's old "Your engines" list
with Ready and Needs setup, which the welcome no longer has. It now shows
the Connect an AI step (Midnight, 1280x720 like the other shots), and the
two captions say what it shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
My Cloud (and this computer's server) now answer what the one-time move to My Cloud needs:

- capabilities.move: 1 in /.well-known/openmausbot/environment, on a Cloud home only: nothing moves into a Cloud
  that does not say it takes a move.
- Lines the owner wrote on their computer arrive as My Cloud's owner's. A bot conversation sent over the owner's own
  session gets the owner's person key on each user line that names nobody and that no one else and no automation wrote
  (not a peer's ask or aside, a relayed or script line, a routine's, webhook's or app event's own prompt), and on each
  card answered in that computer's own window. Without this a moved conversation could never use the lent Mac or feed
  its bot's memory there. Rooms keep their lines as they are.
- GET /api/cloud-send/manifest, on both servers: bots, skills, logins, 1Password and settings as Send compares them,
  memory notes, rooms with their members, connections, conversations (rows, newest) and the attachments their rows name.
- GET /api/cloud-send/chats/ids (this computer: row ids and the visible path, 5,000 at a time) and POST
  /api/cloud-send/chats/verify (My Cloud: which of those ids it lacks, and whether the path holds in order inside its
  own, with its leaf and length on the last chunk). Ids only.
- POST /api/cloud-send/verify-secrets, on a Cloud home only, and the same ask over this computer's private port:
  HMAC-SHA256 under the asker's nonce of each login (with its 2FA key), 1Password's token, each AI key, each MCP
  server's own secrets, the person's own connected-apps project and a HighLevel token. Nothing secret comes back; a
  sign-in that refreshes itself is left out, since only one side ever holds it.
- GET /api/cloud-send?item=<key>: one item (a bot with its skills), so a send can record each item as it goes.
- threadHeads counts each conversation's rows.

Tests: server/cloud-owner-lines.test.ts, server/cloud-send-verify.test.ts, and new cases in cloud-send-chats,
routes/cloud-send, login-handoff and environment tests. Every new test fails on 3c4a00084.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's send (electron/cloud-send.mjs) gets the one-time move as a reason of its own, and loses the switch that sent
by itself:

- send({ reason: "move" }) carries everything this computer has: what the person once kept here goes too, what was
  removed on My Cloud stays removed. It goes only to a Cloud that advertises capabilities.move, over one owner session
  that counts as someone using My Cloud, so it stays awake (label "Move to My Cloud", no background header).
- Apps and keys go first (cloud-connections.mjs's collectConnections and sendConnections, over the same session), then
  bots, skills, settings, logins, 1Password and the chats by row. A sign-in that refreshes itself (an MCP server's own
  account, HighLevel's) stays here in the first pass and goes in the final one (send({ reason: "move", final: true })),
  where this computer lets go of its copy once My Cloud has it; one it could not let go of yet is kept and let go of on
  the next final pass.
- Each item is recorded from My Cloud's own answer as soon as it went (GET /api/cloud-send?item=), and a bot a send
  made on My Cloud is marked until its fields are recorded, so a send cut short goes on from the item it reached and a
  half-made bot gets all its fields, not My Cloud's defaults.
- check() (cloud-send-check.mjs) says what did not arrive: the two manifests compared (a part My Cloud took its own way
  counts as carried), each conversation's rows and visible path ("equal", "inside" a longer one, or "broken"), the
  attachments, and each credential by its fingerprint under a fresh nonce.
- The snapshot counts the conversations still to go, and a pass's result says how many did not all go (left).
- installCloudSend exposes move() and check() for the move's trigger.

Dropped, as the design decides (#3163 and #3186 stay as ancestors):
- Keep My Cloud up to date: the switch, the two- and thirty-minute checks, the first send by itself, the kick on
  account changes and the backoff, the cloud-send:auto IPC and the preload's setAuto.
- A send the switch stopped (70f7cb579): halted, cancelled and stopped "off".
- Close remembered on My Cloud's strip for older desktops (18a607551's strip part; notice.whole and notice.arrived stay).
- The side-by-side comparison and More on Settings → MausBot Cloud.

Main's manual Send everything stays, on the new engine: Settings → MausBot Cloud says what is not on My Cloud yet
("Not on My Cloud yet: 2 bots, 1 login and 12 chats"), with Send everything, and Try again when something failed. My
Cloud's strip shows a move arriving and what it brought; the welcome follows a move or Send everything, and a desktop
too old to say (no notice.whole) keeps its choice. Wording, docs and verification notes follow, in en, es and pt-br.

Tests: electron/cloud-send-move.node-test.mjs, electron/cloud-send-check.node-test.mjs, and
server/cloud-send-move.e2e.test.ts on two real servers with main's own wiring: a conversation of 1,599 rows and more
with 22 context summaries, a 610-message room and one both sides added to pass the path check; MCP servers with a key
and a header token, an MCP sign-in of its own, an AI key, HighLevel by its token and the connected-apps account (fake
broker) arrive with equal fingerprints; a moved conversation may use a lent Mac and feeds its bot's memory on My Cloud;
a move run again changes nothing there. Every new test fails on 3c4a00084; tests of the removed switch are removed with
it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
My Cloud updates before desktops do, so its page talks to released desktops whose Keep My Cloud up to date sends by
itself ("first" and "auto", and `auto` in the notice). The welcome counts those as whole sends and shows "Bringing…"
while such a desktop's switch is on and nothing has gone yet; the strip shows that desktop's first send arriving and what
it brought, as it does a move. Without this, a released desktop's person would be offered Copy to My Cloud while their
things were already on their way.

Tests: CloudWelcome.test.ts and src/lib/cloud-send.test.ts, which fail without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the tool bridge on, find_tool's description names every hidden tool,
so list_team_library added 19 bytes to a Chief's bridged list and pushed
four profiles a few bytes past their budget. find_tool also said "A tool
in your tool list is called directly, not found here.", which the bridge's
prompt section already says on every bridged turn ("A tool that is in your
tool list is always called directly."). Dropping it makes every bridged list
smaller than before: a Chief's by 42 bytes, any other bot's by 61. No budget
baseline moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
electron/updater.test.mjs failed on main (release CI run 39482166432, vitest shard 1/4 on ubuntu, windows
and macos): "another server's page never gets the update bridge; My Cloud's does, even while the sign-in
restores" and "My Cloud's page hears "Restart to update" once the sign-in it loaded before is restored",
both with ReferenceError: cloudLogins is not defined.

The test runs ensureCloudAccount() from main.mjs's source text in a vm context it builds by hand.
#3186 (ff6245ea1, "a new Cloud's first send goes at once") added cloudLogins.kick() to that function's
onState. The test's context had no cloudLogins, so every sign-in change it plays threw. Bisect over
today's merges: green up to #3165 (f2f4061bd), red from #3186 (3c4a00084); inside #3186, green at
ff6245ea1^ and red at ff6245ea1. #3186 merged after its CI was stopped, before vitest finished.

The app is not broken. Since green main (0def8ed32), main.mjs changed in two lines: this kick, and
#3180's usual-folders line, which is outside both pieces the test reads. updaterPageAllowed and
updaterPageOffered are unchanged. In the app, cloudLogins is a top-level const. main.mjs has no
top-level await, nothing before that const calls ensureCloudAccount() synchronously (checked with an
acorn walk that does catch planted cases), and the account client only publishes state from its
methods, never from its constructor. So onState never runs before cloudLogins exists. onState also
sends the update state before the kick.

Fix: the test's context gets cloudLogins: { kick: () => {} }, next to its cloudPower and includedX stubs.

Tests: updater.test.mjs 8/8 (2 failed before). Mutation check, 6/6 caught: no cloudLogins in the
context (the 2 fail again with the ReferenceError); onState without sendUpdaterState() ("hears Restart
to update" fails); updaterPageAllowed true for any page (4 fail); no bridge while the sign-in restores
(1 fails); a restored offer that ignores which server is shown (1 fails); a kick that throws (2 fail,
so onState does reach the stub).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bot panel's Custom tools, Tool selection, Browser, Memory and Voice pages,
the Apps page's custom tools section, the AI sign-in lines the Cloud's own
sign-in screen shows, the Linux local control note, the Cloud place refusals,
the pair page and the docs that point at renamed controls now use the same
words as the labels: AI, cloud desktop, private desktop, Screen panel, custom
tools and the Cloud. Translated in all 11 packs.

src/locales/everyday-words.test.ts fails when an everyday key says engine,
instance, server, MCP, Composio, Cloud computer, VPS, Local VM or workspace,
with nine allowed keys and their reasons; This computer, My Cloud and lent are
listed as pending. vocabulary.test.ts says the new names in its hints, and
words.test.ts drops its now-empty allowlist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The catalog route now lives in server/routes/internal-chief-team.ts, so server/index.ts has 105 `path === "/` guards,
not 106, and the exact-count ratchet failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The welcome replaced the setup's own description with "You sign in on their own website…" in every state, so an AI
that still has to be installed from Terminal, or one that finishes signing in there, lost the line that says so.
plainSignIn() keeps the plain line for a website sign-in, or a setup the app does by itself before one; a step
finished in Terminal keeps the setup's own instructions. Same rule on the desktop welcome and the Cloud welcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removing the suggestion card also removed the only tests of a team-setup card that waits: the decision, and the Chief
continuing once with it. Such a card is still shown on a Cloud in a conversation a guest drove, so this pins it there:
create_bot leaves one card and no bot, the owner's answer adds the bot and continues the Chief once with the decision,
and answering again starts nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lending switch becomes "Let my bots use this Mac" (this PC, this
computer). Turned on, the bots' browsers on My Cloud go out through this
computer, so sites see the person's home connection instead of a data
centre, and they can read Desktop, Documents and Downloads as before.

- Device link: one WebSocket per lent computer to
  /api/shared-computers/<id>/link, signed in like the poll (session plus the
  grant's secret), carrying flow-controlled TCP streams with pings both ways.
  Advertised as capabilities.deviceLink; held like the poll in cloud-power;
  never dialled while My Cloud sleeps (the power gate, and a 4001 asleep
  close).
- Home internet: the egress gate gets an optional upstream. Reddit is
  refused first, this machine's names and non-public addresses stay on
  My Cloud's own way, and everything else is a stream the computer resolves
  and checks: ports 80 and 443 only, never loopback, itself, its networks,
  the home's public address, private, link-local, metadata or reserved
  ranges, after unwrapping NAT64 and 6to4. One address list, moved out of
  policy.ts, serves both sides. When the computer is away, pages load from
  My Cloud's own connection and the page and the bot say so.
- The switch: no native confirm (the real click stays); the internet
  connection is a scope of its own and can be the only one; nothing chosen
  lends it with the usual folders; lendByDefault() gives the move its
  default grant and never undoes the person's own Off; a lent folder deleted
  since is left out instead of stopping all lending.
- Files: reads up to 2 MiB, writes stay at 256 KiB, text that would not fit
  the result body is refused with the way to read it; Windows browser
  profiles, credential store, vault, Protect keys and Startup, and ~/.cua,
  are out of reach.
- Tray reads In use while bots use the computer, browsing included; while
  the switch is on the app opens at login, out of sight.
- Words in 12 locales, docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A webhook that runs the owner's own routine does not make a bot's changes wait; a conversation a guest started or
drove, or a run of a routine a webhook's run made, does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The VPS case of server/desktop-updates.e2e.test.ts failed on ubuntu in the
0.1.120 release CI: select_computer offered "this computer" with its plain
"not configured" reason instead of barring it for a bot whose VPS desktop
is old.

The product was right; the fake VPS was not answering. Its docker script ran
sed, but the server under test hands its children only node's folder and
OMB_EXTRA_PATH. On a Mac the server's login-shell probe (/bin/zsh) adds
/usr/bin; an Ubuntu runner has no /bin/zsh, so the container inspect died
with "sed: not found" and the server read the VPS as one it could not check,
not as an old desktop, so the rule under test never applied. It fails the
same way at #3181's own tip before it merged main (ddd873d5f), so none of
the later merges caused it; that branch never ran vitest on Linux.

The fake now sets its own PATH, and the server runs sealed
(OMB_TEST_SEALED_PATH=1), so a Mac sees the same PATH as Linux and a fake
that leans on the machine fails on every platform. The case runs twice: on
the default VPS alias, and for a bot pinned to its own alias while the
default is a server that holds none of its desktops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix the updater test on main: its copy of the Cloud sign-in was missing cloudLogins
Old-desktop e2e: the fake VPS answers on Linux too, and covers a bot's own VPS alias
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every bot message in the chat gets an Add reaction button with 👍 👎 ❤️ 😂 🎉 👀;
everyone in the conversation or group sees reactions under the message, one per
person. A 👍 or 👎 on a bot's message is the person's reply to it: it starts the
bot's next turn, or waits behind the running one, with a prompt that reads it as
yes or no, so "Shall I send it?" plus 👍 goes on by itself. In a group it is
addressed to the bot that wrote the message. On an open approval or one-question
card it answers the card through the same checks a spoken answer on a call uses.
The other reactions start no turn; the bot reads them with the person's next
message, and in groups under its line.

- shared/reactions.ts: the set, what answers yes or no, and one normalizer for
  clients and chat channels (skin tones, the presentation selector, Slack names)
- server/reactions.ts and server/routes/reactions.ts: the rule and the route,
  out of index.ts; who reacted comes from the session only, never the body
- server/person-replies.ts: the late question answer's delivery, moved out of
  index.ts, now carries reactions too; a person's 👍 reaches a bot once, and
  one still queued is taken back when they remove it
- the guarded send route takes a relayed 👍 or 👎 (the Slack worker's half)
- bots ask a plain yes or no in one sentence instead of a widget
- reaction lines draw no bubble; retrying one keeps it a reaction
- strings in all 12 languages, docs page, verification recipe and evidence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f20c4552d times the retry of the send that went by itself. That send, its checks and its retry timer are gone on this
branch, so both of its hunks resolve to this branch's side: nothing of it remains to time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/locales/source-hashes.json had both sides' new keys; both are kept, and
i18n:check passes on the result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner wants MCP servers called MCP servers. The MCP screens, the bot's MCP section, the MCP call limit and the
pointers to them say MCP servers again, in every language that had them. Pointers that named the old Plugins page now
say Apps → MCP servers, which is where the list lives. The everyday-words guard no longer bans MCP and lets "MCP server"
through its server rule; the MCP screens are left to it as technical pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner wants MCP servers called MCP servers. The import step counts MCP servers again in every language that had
them, and its pointers name Apps → MCP servers, where the list is (the old Plugins page name is gone). The welcome's
word guard lets "MCP server" through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A person's 👍 and 👎 on one message share a send id prefix plus how many
  went before, so 👍, 👎, then 👍 again tells the bot each change, while
  putting back the answer it already has sends nothing.
- A waiting answer is taken back only once the new one is on its way: a
  change the server refuses (a spend cap) keeps the earlier answer queued.
- Reactor names go into the bot's notes as one line without brackets or
  parentheses, so a name cannot close a note or add lines.
- The yes or no prompt says a word or a 👍 or 👎 answers it, so a typed answer
  stays valid where reactions are not relayed yet.
- The renderer undoes only its own refused tap: another person's reaction
  or a later tap that arrived meanwhile stays.
- A room offers reactions only to a viewer who may write there, as the
  one-to-one chat already did; ClusterLabel moved out of GroupView.
- ArrowUp edits the last typed message, never a reaction's hidden line.
- ChatView tests that mock cloud-guest also stub useReactor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode's sidebar is now Today and the chats. Automations and Team map sit as icons beside the profile, ahead of
Apps and the update button, like an app's bottom bar: tooltips, the open one marked, and the failed-run dot on
Automations. Advanced mode keeps them as rows under Tools. Team map gets a people icon instead of the network one,
on the rail and on its page too, and the avatars-only rail now has it in Simple mode as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While the Mac lends its internet connection, a bot's browser on My Cloud now
opens only Instagram, YouTube (with its videos and its player's check) and
Google (sign-in and search, every country) through it. Every other site loads
straight from My Cloud, and Reddit is still refused first.

Measured on a Frankfurt test Cloud with the Mac on a home connection in India,
sending everything through the Mac made pages 1.7 to 30 times slower (median
loads: Wikipedia 2.0 s to 5.9 s, the Python docs 0.6 s to 3.6 s, BBC News
1.9 s to 58 s) and a 20 MB download 0.14 s to 24 s, while only the blocking
sites gained anything (Instagram's login page: 429 direct, 200 through the
Mac). The list lives on My Cloud alone (server/browser/egress/home-sites.ts),
so a new site needs only a Cloud update.

- The gate asks for its upstream per destination; the registry offers the
  Mac only for those names. The away notice is said only when one of them
  loads from My Cloud's own connection.
- The device link's opening is bounded (15 s): a Cloud address that takes
  the connection and never answers the upgrade no longer leaves lending
  waiting forever (CodeRabbit).
- Words in 12 locales and the docs say which sites go through the Mac.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An earlier Send or Bring left this computer's conversations on My Cloud with lines that name nobody, and on a Cloud home
such a conversation can never use the lent Mac or feed memory. The move now names this computer's row ids of every bot
conversation My Cloud has (POST /api/cloud-send/chats/owner, owner's own session only, ids only, at most 10,000 ids and
200 conversations a request); My Cloud stamps the ones that are the owner's own lines or cards answered in that
computer's window, as it does for arriving rows, never a room's, someone else's or an automation's. What its bots recall
looks again at once. The chats check counts the owner's lines My Cloud holds without the owner (`unstamped`), and the
move's check fails while any are left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 👍 that waited behind a busy bot and was then taken back left its sendId cancelled, and the
counter-based id reused it the next time the person chose 👍 again, so the change was refused
with a 409. Each reaction's answer now takes its sendId from that reaction's own stamp, which
only ever moves forward, so every change is new and a withdrawn one never comes back.

In the app, two quick taps on one message could be answered out of order and the older answer
overwrote the newer reaction. Only the newest tap's answer (or refusal) now changes the message,
across the react button and the chips. The rollback copy is updated after commit, not in render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The real app showed "My Cloud hasn't used this computer yet" on the very
page whose tray said "Your bots are using this computer now", and My Cloud
said "Not used yet": browsing through the device link was nobody's use.

- Activity on this computer lists each website opened through the internet
  connection ("Opened a website", with its name), refused ones with the
  computer's reason, once per site and outcome every 10 minutes, so a
  page's many connections are one line. "My Cloud last used this computer"
  follows it.
- My Cloud marks the lent computer used when a page opens through it (not
  for a refusal), at most once a minute.
- My Cloud's page says "1 folder", not "1 folders", in all 12 locales.
- The flow-control test now writes in odd sizes, so a sender that goes past
  its room fails it every time (that mutation used to survive on aligned
  reads).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ten Halloween bodies a bot can wear (pumpkin, ghost, witch, bat, cat, skull,
monster, mummy, vampire, spider), drawn flat in one colour with dark-grey
accents and a carved face: two tall pill eyes and a small smile that glance
around, blink, and startle into round eyes with an open mouth. The bodies are
generated by `pnpm gen:halloween` into shared/halloween-bodies.ts and are
accepted wherever a bot body is (shared/bot-body.ts).

- MausAvatar renders Halloween ids with the new CarvedAvatar; every other body
  is unchanged.
- The face editors gain a Halloween row.
- A Halloween skin (plum ground, pumpkin accent, candle glow, cobweb and two
  bats behind the chat, off under reduced motion), with Windows caption colours
  and P3 accents.
- "Dress my bots up" in Appearance: while the skin is on, each bot shows its
  colour's costume; its own body comes back when the skin changes. A Halloween
  body picked on purpose is kept in any skin.

Phones store mascotBody as a string and fall back to the default body for ids
they do not know, so they keep working until they get the carved face.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each screen call My Cloud makes on a lent computer holds this computer's screen lock, and a heartbeat refreshes it
every second: it asks My Cloud whether the job is still wanted, then renews the lock, and a renew takes the lock.
A heartbeat still waiting for My Cloud's answer, or a renew still on its way, when the call ended landed after the
release and took the lock again for the finished call. Nothing released it until the 40-second expiry, so every
call in that window was refused with "This computer is in use locally or held by a person", although nobody was
using the computer. A slow call (bring_to_front, list_windows) made this likely; a real Cloud bot gave up on it.

Once a call ends, its heartbeat no longer renews, and the release waits for a renew already sent.

Tests (cloud-lending.node-test.mjs): a screen lock that behaves like the desktop server's, and a call that ends while
the Cloud's lease answer, or the renew, is still on its way; the next call must succeed and the lock be free. Both
fail on main with the refusal and pass here; removing either half of the fix fails its own case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A model that runs on extra usage can be refused with credits_required /
out_of_credits while the plan's own windows still have room. That refusal
was read as a plan usage limit: the turn said the account had reached its
limit until the billing reset (eleven days away), and the whole engine
was held as blocked until then, so the chat showed "at its limit" and
automatic recovery sent every new turn to the backup engine, other models
included.

- A credits refusal names the cause and the way out, with no countdown,
  and holds no engine. Neither does one model's weekly window: only a
  window every model shares holds the engine.
- A turn that completes on an engine ends any refusal still held for it.
- The chat's limit chip explains a held engine on hover and checks usage
  again when clicked; a person's refresh no longer joins a background read.
`pnpm gen:halloween --swift <file> --kotlin <file>` also writes the phone catalogs, from the
same traced paths as shared/halloween-bodies.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chief first: one assistant that adds its own specialists, and a welcome that asks for nothing up front
feat(mascots): Halloween bodies, carved face and a Halloween skin
- source-hashes.json: three-way merge per key, no clashing keys.
- File-size and index-route ratchets: set to the merged tree's exact counts. Every value is at or below main's.
- Tool-catalog goldens regenerated. With main's chief-first catalog plus this PR's yes/no guidance, seven profiles grew by about 1,214 bytes (about 2.1%). Their BUDGET_BASELINE entries moved to the measured sizes.
- i18n:check, tsc (app and server), oxlint, the ratchets, the catalog/bridge wire tests and the reactions and store tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CloudWelcome.test.ts: kept main's Simple-mode and Advanced-mode split (chief-first). The Simple-mode case checks S1's wording: what arrived, and nothing about more coming. The Advanced case uses the move's running reason.
- source-hashes.json: three-way merge per key, no clashing keys.
- i18n:check, tsc (app and server), oxlint, the Welcome tests, both ratchets, the catalog wire test, the cloud-send/connections/chat-merge vitest suites (75) and the Electron send/move/connections node tests (88) pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
React to a bot's message to answer it
src/locales/source-hashes.json merged per key from git's three versions,
keeping both sides' keys. The ratchets and the tool-catalog goldens are
unchanged by the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bot-turn cases of use-my-mac.e2e start the fixture engine and browser
engine by their #! line, which Windows does not run, so they run on Linux
and macOS only, as the repo's other bot-turn e2e files do. The link, sleep
and Off cases still run on Windows.

home-sites.ts no longer names this pull request in a comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each accepted link listened on the wake period's sleep signal and only
dropped that listener when the Cloud slept. A Cloud that stayed awake
through many reconnects kept one listener, and the closed socket it holds,
per reconnect. The listener now goes when the link closes.

Review: CodeRabbit on server/device-links.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
My Cloud chose a link by the internet grant it saw when the link opened.
A computer that registered again without its internet connection kept
an open link that My Cloud still sent pages through. A registration that
lends or takes back the internet connection now ends the link; any other
registration keeps it.

Review: CodeRabbit on server/shared-computers.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
My Cloud chose a link by its owner, internet grant and socket alone, so a
desktop session revoked on My Cloud kept carrying the bots' pages until
the link dropped by itself. A link now asks whether its session is still
live at each page, so the next page goes My Cloud's own way at once, and
at each ping, which ends the link.

Review: CodeRabbit on server/index.ts (the route's device).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While My Cloud is too old for the device link, the line under the switch
on My Cloud's page said only that My Cloud is updating, and Settings said
the internet connection was lent. Both now name what works already (the
folders, the screen) and leave the internet connection to the updating
line.

Review: CodeRabbit on src/components/LentComputers.tsx (outside the diff).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/locales/source-hashes.json merged per key from git's three versions,
keeping both sides' keys. File-size ratchet set to the merged tree's
counts: server/index.ts 17,070, src/state/store.tsx 3,525 and
server/store.ts 2,450 as on main, electron/main.mjs 3,427 from this
branch. Tool-catalog goldens unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(browser): accept metadata blocks after other refused targets
fix(limits): out-of-credits refusals say so, and a working turn clears a stale limit
fix(lending): a lent screen is free for My Cloud's next call once a call ends, not refused as "in use locally" for 40 s
source-hashes.json merged per key (three-way); ratchet pins taken from main, which match the merged files exactly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: five language packs (de, fr, hi, uk, zh) merged key by key, with no key changed differently on both sides;
source-hashes.json taken from main and re-accepted for every pack; server/drivers/claude-limits.ts keeps main's
modelWindow() check with this branch's "another AI" wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat's connect card stopped checking the account after 75 checks
(five minutes), while a Composio sign-in link stays usable for ten and the
account only turns EXPIRED after that. A card whose link lapsed kept
saying "Waiting for sign-in…" with a spinning "Open again" button, which
reads as "opening" when nothing is happening, so people kept pressing it.

The card now checks for the link's whole life plus two minutes, so the
server can turn an expired account into a failed card with Try again,
and checks again whenever the window regains focus, which is when a
sign-in finished in the browser is most likely to have landed.
"Open again" spins only while it is actually requesting a link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Everyday screens say AI, Cloud desktop and Screen, not engine, server or Local VM
On a Cloud home, a turn's engine was let in when about 700 MB was free.
The bot's own browser (agent-browser's daemon and Chrome, 270 to 390 MB
on an 8 GB Cloud home) starts later in the turn, in another process
group, so the guard never counted it. Eight browsing bots on an 8 GB
machine without swap were all let in, then ran it out of memory. When
the guard stopped a bot for memory, its browser stayed open until its
3-minute idle close, so the memory did not come back.

Admission now adds BROWSER_BYTES for a thread whose bot may browse and
whose browser is not running yet. The share stays held until that
browser has run 30 s, because a new Chrome grows as it loads its first
pages. When the guard or the kernel stops a busy engine for memory, the
server closes that bot's browser as soon as no turn holds it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(cloud): a burst of browsing bots waits for memory instead of being stopped, and a stopped bot's browser closes at once
Main's plain words (#3205) renamed the old switch to "Let Cloud bots use
this computer" while this branch makes it "Let my bots use this
Mac/PC/computer" (DESIGN §5). The merge keeps this branch's switch and
takes main's words everywhere else:

- Locales: merged per key from git's three versions. Where both sides
  changed a key, this branch's string stays, except two that now read
  main's sentence with this switch's name ("No computer is shared with
  the Cloud…", "…so Cloud bots can reach them here"). Their translations
  are main's with the switch name replaced by each pack's own title,
  accepted with generate-locale --accept, which changed only those two
  hashes per pack. Every other translation keeps the hash of the side it
  came from.
- Tray: "Your bots can use this Mac" with main's "Stop sharing" and
  "Sharing settings…".
- Bot-facing lines: main's "shared with the Cloud" with this switch's name.
- Docs: this branch's text; docs/cloud-pro.md names the tray's new items
  and "Shares:".
- File-size and index-route ratchets and tool-catalog goldens unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Add a Cloud sheet lists each plan with its promise and its cloud desktop
hours a month; how many may run at once is only small print ("up to 6 at once"),
from the Admin's allowances. Under the list, the chosen plan's card gives the
website's benefits (openmausbotwebsite PR #42), every number from the Admin:
cloud desktops as many as your bots need with the month's hours, voice, apps,
the phone, the machine with its swap, storage with its backup days, and
"Everything in <plan before it>, plus ...". The app's own word, cloud desktop,
stands in for the website's "cloud computer".

The app reads the Admin's new cpuKind, swapMb and snapshotDays when present and
leaves them unsaid otherwise. All 12 locales are updated and accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts: the browser host takes both main's engine-memory
browsers and this branch's device way out. Main's change grew
server/index.ts to 17,072 lines against its pin of 17,070. The pin stays
at 17,070 and the browser host now hands its browsers to the memory
guard itself (a `memory` dep, with a test that fails without it), so
index.ts is back to 17,070. Tool-catalog goldens unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/lib/session.ts
Only under the move reason, over the move's owner session:
- automations (routines with their finished runs, scheduled calls, webhooks, app events) arrive under the same ids,
  switched off, as the owner's, with this computer's folder named as My Cloud's; a webhook gets its own address and
  secret there; an app event goes in the final pass and this computer lets go of it, so it is collected once
- bot files (workspaces/<bot>/, task-workspaces/<bot>/) by path, size and sha256, in resumable parts, never over a
  file My Cloud has: on a conflict both are kept; the space check and volume growth move into cloud-space.mjs
- memory merged for bots on both sides (notes, topics, daily logs, the journal), learned About me facts, each team's
  context and memory, every fact once
- archived, pinned, Chief and its teams, projects, fallback models, playbooks, package, library skills on the bot;
  each conversation's model, approval, snooze and project; a room's time limit and audience floor
- rows over 1 MB go whole; My Cloud's attachment store limit is enforced and said, partial files cleaned up, and the
  limit is 8 GB on a Cloud home
- imported, library and Claude Code skills (kept as imported skills); a model on the home network stays here
- every new kind is in the manifest, so check() covers it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bots' browsers on My Cloud opened the sites that turn away data
centres through the lent computer whoever drove the turn, so a turn
confined for a guest could use the owner's home connection. The
internet connection now follows the same rule as everything else the
computer lends (cloud-lending.ts):

- A browser goes out through the computer only while the last turn that
  held it may use the lent computer. That is checked at each connection,
  against the turn that holds the browser.
- A browser that no turn has held yet is the person's own, for example
  the live view.
- A guest's pages stay off the computer after its turn ends, until one of
  the owner's turns uses that browser again.
- Without the rule, no browser that a turn holds may use the computer.

TurnResources names the holder of a resource, and the egress registry
passes the browser session to the device.

Review: CodeRabbit on server/index.ts (guest-confined turns).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the case that quits the first connector is skipped, so it
kept lending beside the sleeping-Cloud case's own connector and could
lend again after the Off case. It is closed first; close() is a no-op
where it already quit.

Review: CodeRabbit on server/use-my-mac.e2e.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the open thread was deleted, the server opened the newest-created
thread that was left. The sidebar sorts by latest activity and shows six
open threads, so that thread was often hidden below the fold and popped
into view as an extra row: delete two threads, three new ones appear.

The replacement is now picked in the sidebar's own order (pinned first,
then latest activity), skipping routine runs and archived threads and
preferring threads the list shows (not closed, snoozed or opened by
another bot). orderedThreadList and isSnoozed move to shared/wire.ts so
the server and the sidebar share one ordering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bot's "…" menu gets "Delete all threads…" in both Simple and
Advanced mode, under the thread items. It sends every thread except
routine runs through the existing bulk delete, reuses the bulk confirm
(pinned-thread count, and the "a new empty conversation will be
started" note when nothing is running), and then says plainly what
happened: "Deleted: 4." or "Deleted: 3. Kept because they are
running: 1."

In Advanced mode, "Select threads" now opens collapsed folders while
selecting, so "Select all" also picks the threads inside them.

BotDeleteMenuItem moves next to the new menu code in BotMenuDelete.tsx,
which keeps Sidebar.tsx under its size pin (now 2318).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Logins wording: main's "the Cloud" with S1's meaning (Send everything, no keeping up to date); es and pt-br
retranslated, the other locales fall back to English until the line goes. source-hashes.json merged per key.
server/index.ts held at its pinned 17,070 lines by folding main's two added lines into their statements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3222 hooked the engine memory guard to the bots' browsers with two new lines in server/index.ts, which took it to
17072 against its 17070 pin and turned main's file-size check red. createBrowserHost now takes the guard as a dep and
hands it engineBrowsers itself; index.ts passes engineMemory in the existing call. Same behaviour, pinned by a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run of a schedule, Run now, startup run, webhook or app event still works
in its own hidden conversation with a fresh session. Only its result comes
to the bot's main chat (or the chat the routine chose): one bot message with
a small caption naming the automation, its time and See run.

- NOTHING NEW as the last line: no message, no unread mark, no notification;
  the trigger card, Automations and Today say "Nothing new".
- NEEDS INPUT: the question is that message, marked "needs you"; the person
  answers in the chat by typing or with a 👍/👎, and the chat's session reads
  the report as [Your automation "Name" asked at ...:].
- A card the run waits on is copied into the chat; answering the copy, or
  reacting to it, answers the run. A sign-in, connection or key it needs is
  named in one line.
- A failure is said once per run of failures.
- Nothing is written into a chat while a turn runs or settles there: the line
  is held and written right after that turn, ahead of queued messages, in
  the order runs finished, and survives a restart.
- Webhook and app-event runs are hidden and no longer take over the selected
  chat; on a Cloud home they report into one "<name> · Results" chat.
- The "Run routines in the conversation" setting and the per-run status card
  for new runs are gone; old cards still render, and a run with no chat of
  its bot to speak in (a room goal, a run reporting to a room) keeps its card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Threads: deleting one no longer pulls hidden threads into view; Delete all threads… in the bot menu
Automations report into the bot's chat
src/locales/source-hashes.json merged per key (three-way, no key conflicts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(cloud): plan cards sell on hours, in the website's words
src/locales/source-hashes.json merged per key (three-way, no key conflicts).
file-size ratchet set to the merged tree's exact counts: server/index.ts 17049,
src/components/ComputerPanel.tsx 1835 (both below main's pins).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Take control right where you watch the bot's computer
Main's ratchet fix hands the engine memory guard to the browser host as
`engineMemory`, the same move this branch made as `memory`. The merge
takes main's name and test and drops this branch's copy. The browser
host keeps this branch's device and `mayLend` deps, and main's test
fixture gains `TurnResources.holder`.

src/locales/source-hashes.json is merged per key from git's three
versions. server/index.ts pin set to the merged count of 17,051, two
under main's 17,053. Tool-catalog goldens unchanged after regenerating.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts takes main's browser-host wiring (engineMemory passed in); its pin lowers to the 17,051 lines it has.
source-hashes.json merged per key with no conflicting key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/locales/source-hashes.json is merged per key from git's three
versions. The server/index.ts pin takes main's 17,049, which is the
merged count. Tool-catalog goldens unchanged after regenerating.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes main's server/index.ts pin (17,049, the lines it has); source-hashes.json merged per key with no conflicting key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3218's new ComputerPanel.takeover test pressed the "Computer" tab, which
#3205 renamed to "Screen" (computer.tab.computer). #3218 was written on a
base without #3205, so the combination on main can't find the tab. The
test presses "Screen" now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use my Mac: bots on My Cloud open the sites that refuse data centres through this computer
The Supamaus account's zone moved from Free (200 records) to Pro on Oct 21.
Its configured record quota drives account ranking, /healthz and the usage
alert, so at 200 the zone read as full and took no new endpoints while the
primary account sat at 996 of 1,000 tunnels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chief first makes the seeded bot its team's Chief, which answers a
teammate's failed run with a Team incidents turn of its own. The e2e
suites that check one bot's failure path or what a turn mounts
(automatic-recovery, thread-model-follow, limit-reset, routine-recovery,
cloud-home-server, cloud-computer-lazy, openai-compat-vm, surface-pins,
desktop-updates) step it down, so its turn no longer lands in their
prompt counts, notifications and dumps. peer-allowlist's helper steps
it down before hiding it, which the product requires, and
webhook-address expects the starter among the Chiefs.

Plain words renamed the Computer panel to Screen: docs/analytics.md
follows the docs site page, and two renderer smoke tests use the new
button name and preset wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make main green: tests for Chief first (#3204) and plain words (#3205)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel remembers each conversation's tab in localStorage. On CI (Node
24) happy-dom's storage persists across tests, so the one failing press
left the panel on Browser and five later tests opened there and found no
Take control button: 6 failures from one. Each test now gets its own
Map-backed localStorage, as ComputerPanel.tabs.test.ts does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prefetch a window of three blocks in the Speaker
test(take-control): the panel's Computer tab is called Screen now
Control plane: mausbot.si zone is on Pro (3,500 DNS records)
chore(release): bump version to 0.1.121
Lending turned on from My Cloud's page lent folders and the internet
connection only. Apps and screen sat under Choose what's lent in This
computer's Settings, which My Cloud's page can't reach without leaving
My Cloud. A bot that found the screen not lent said only "no
computer-control grant", so a person who had turned lending on could not
find what was missing.

My Cloud's page now shows an Apps and screen tick under the switch while
lending is on (disabled, with the setup hint, until computer control is
set up). Ticking it needs a real click (the preload rule the switch
uses), and main then asks in a native dialog of its own before lending
it: a page served by the Cloud must never grant control of the computer
alone. Unticking needs neither.

The refusal for computer_tools/computer_call and list_shared_computers
(a `screen` sentence for an online computer that lends no screen) now
name both places to tick it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Screen tab's tile shows the bot's last screenshot, not a live feed.
Until the first one arrives (about 20 s while a cloud computer
connects), it showed only "Working on a task" beside the bot's avatar,
which read as a broken live view. It now says "Working on a task. Its
screen shows here soon; open full view to watch it live." and centres
the wrapped text. Japanese is updated and accepted; the other languages
show English here as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud that sleeps, clicking Wake it now cleared the "My Cloud is asleep"
strip for a second and then it came back, and bot replies never appeared. The
page reconnected from a cursor before the home's "going to sleep" frame, the
server replayed that frame, and the page closed and went quiet again.

- Server: the replay buffer keeps only the sequence slot of live-only frames
  (screen pictures and now the power frame), so a resuming stream never gets
  the sleeping frame again and still sees no gap.
- Page: the sleeping frame moves the cursor like any other frame before the
  stream closes (unless a snapshot is still loading), so waking resumes after
  it, also against a Cloud that still replays it.
- Page: waking sends one ordinary request, which counts as someone using the
  home and ends a sleep it agreed to but has not carried out.

Tests: a real Cloud-mode server e2e (idle windows shortened by a test-only
load hook) reproduces the loop; unit tests for each half.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud asleep: Wake it now no longer falls back asleep, and replies show
The desktop runs the one-time move by itself, in phases kept in one journal
(userData/one-home.json): copy, wait for a quiet moment, freeze this computer's
server (moved.json), final pass, check (three passes at most), switch, done.
Before the switch any failure lifts the freeze and tries again later; from the
switch on it only goes forward. At the switch My Cloud switches on what was on
here, keeps which computer the bots came from (each bot is told what stayed
there), and each webhook's bot says once that its address is new; this computer
is lent by default and its phone link stops. If My Cloud ends, this computer is
home again at once, then restores My Cloud's backup from the held Cloud (started
for export only) and switches on what was on there. A trial Cloud keeps a moved
key saved but unused until its Claude credit runs out. Thirty days after the
move, once paid for, the frozen copy is deleted; a newer app tops it up first.

Also fixed on the way: a routine's switch now goes with it, a part changed on
both sides no longer fails the check, and two different bots of one name are
both kept, the arriving one named after this computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(bot-panel): a working bot's screen tile says its screen comes soon and how to watch it live
fix(lending): tick Apps and screen on My Cloud's page, and a bot says where to tick it
MausBot Cloud sells three plans now: Starter $15, Pro $49, Max $99. The
$15 Starter has what Personal had and never sleeps. Personal is no longer
sold; its subscribers keep it and the app still names it Personal.

- Offers: parseCloudOffer/parsePublicOffer leave out a `personal` plan an
  older Admin may still list, so no Personal card, no Personal preselected
  (a recommended "personal" falls back to Pro, else the first plan left), no
  Personal checkout, and Pro's "Everything in ..." line builds on Starter.
- Trials: parseCloudTrial reads the Admin's additive `switchTo: {tier,
  amount}` (a known tier, whole positive cents; anything else is dropped).
  cloudTrialView uses switchTo, else an older Admin's personalAmount as
  Personal, and says "Prefer {plan} at {price}? ..." only for a trial on a
  plan above that target; with neither it says nothing about switching.
  The offer is no longer fetched for the trial's notice.
- Locales: cloudTrial.preferPlan replaces preferPersonal/preferPersonalNoPrice,
  cloudBuy.promise.personal removed, in all 12 locales; source hashes merged
  per key.
- Docs: cloud-pro.md documents switchTo and the Personal filter; plan lists
  and the docs site's X research allowance name Starter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud: three plans (Starter $15, Pro, Max); Personal only for its subscribers
Settings opened from the New Bot model picker (Add API keys, Engines)
landed under the dialog. New Bot now hides while Settings is open and
comes back with its draft when Settings closes.

Fixes #3238

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
My Cloud becomes the only home: the move runs by itself, and everything comes back if My Cloud ends (S3)
The buying sheet's Choose screen lists the Admin's plans as cards: name,
"Most popular" on the recommended plan only, the price per month, the plan's
promise, its own button (Start free trial, or Get {plan} without a trial)
with its terms in one line, then the same rows in the same order on every
card, in the website's words: always on, cloud desktops as many as the bots
need (how many at once as small print), the month's cloud desktop hours,
CPUs and memory (swap as small print), storage and what it grows to, voice,
and daily backups. Every number comes from the Admin's allowances. Cards sit
side by side on a wide sheet (a subgrid lines up buttons and lists) and
stack in a narrow window.

The plan an account already has says "Your plan" instead of a button
(`current`, from the verified entitlement's tier); a plan no longer on sale,
such as a Personal subscriber's, is shown only for that subscriber when the
screen is given it (`own`). The radio picker, the chosen plan's benefit card,
the "Everything in X, plus..." line and the per-plan due-today box are gone;
the trial's timeline stays under the cards when every plan has the same
trial, ending at "First payment". Locale keys follow in all 12 locales, with
source hashes merged per key; unused keys are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- electron/main.mjs was 3436 lines against its pin of 3427: the Apps and screen
  confirmation that came with the lending fix grew it by 9. Main's own dialogs for
  lending this computer (the folder picker, a server's computer access, and Apps and
  screen) move to electron/lending-dialogs.mjs, unchanged in wording and defaults.
  main.mjs is now 3420 lines and its pin goes down to 3420.
- electron/lending-dialogs.node-test.mjs covers each dialog (Cancel is the default,
  only the dialog's own button grants, no window means no grant) and main's real
  sharing:save, sharing:folder and cloud-lending:screen wiring.
- electron/cloud-move.node-test.mjs expected the page's cloudLending bridge to be
  open/state/set. screen is meant to be there: it is Apps and screen on My Cloud's
  page, behind the same real-click rule and main's own dialog, and
  cloud-lending-ipc.node-test.mjs tests that rule. The expectation now includes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Threads turned off in Appearance, Advanced mode had no way to open a
bot's idle threads. The chat's ⋯ menu now lists them (and New thread)
whenever the sidebar does not, not only in Simple mode.

The menu's submenu also opens and takes clicks when the menu sits below
its trigger rather than anchored.

Fixes #3211
- server/default-model-selection.test.ts runs index.ts's own defaultSelection with
  the names it reads passed in. The one-home move added heldKeys to its refusal, so
  all seven wiring tests threw "heldKeys is not defined" on every platform. The
  harness now passes heldKeys (null: no held trial key), as it passes cloudCredit.
- server/cloud-send-kinds(.e2e).test.ts expected My Cloud's folder joined with "/".
  restorePaths joins with the destination's own separator, so on Windows CI, where
  the test's Cloud runs in a Windows folder, the routine's prompt and run output said
  "\". The expectations now use join(), as the attachment's path there already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A mount point that is clearly a separate disk can now be lent as one choice
instead of folder by folder: a direct child of /Volumes on macOS, a drive letter
on Windows, a real-disk mount outside the system directories on Linux. The home
folder, the system disk and virtual filesystems are still refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
On a Cloud home each engine turn, its shell and MCP servers run inside an
unprivileged bubblewrap box (server/bot-box): HOME with the data folder
replaced by an empty one, only the turn's folders put back, a private
/tmp and /proc, and a network namespace whose only ways out are the egress
gate (public addresses only) and the harness gate (/api/internal/ only).
Off everywhere else unless OMB_BOT_BOX=1. The cloud-home image gets
bubblewrap, socat and pnpm. A self-check runs the probe inside a real box
at boot and the Admin reads it at GET /api/cloud/box and in the health
report.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Once the person's bots moved to My Cloud, every path that shows a window opens My Cloud: waking it through the Admin,
signing in again by itself, and this computer's own screen while My Cloud can't be opened. Copy this computer, Bring
newer chats, Send everything, the login sides, the switcher for people whose home is My Cloud and the fall-back-to-local
dialog are gone. Someone with no Cloud sees nothing change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A new Terminal choice in My Cloud's computer-access card, with a confirmation.
It is never lent by the page toggle or the usual-folders default, never carried
over from Computer access, and cleared when lending is turned off. Mac, Linux
and Windows share the same grant.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Found on the Fly test machine: the harness bridge sat at the fixture's own
port so the loopback check could not fail, the probe counted its own spec
as a leaked secret, the host temp file went to os.tmpdir(), TMPDIR=/tmp in
a turn's environment put the host's /tmp back over the box's private one,
and a by-hand box-check.js bundled in a subfolder looked for its probe
under the wrong root. The bridges now keep none of the engine's stdio.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Found on the Fly test machine: the root supervisor's allow-list dropped the
switch, so a home could not turn its box off.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The desktop picker warns, and only then lends the home folder itself. The
folders above it and the system disk are still refused, and no other folder
gains anything from asking.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Make main green: main.mjs back under its pin, move test follows the lending bridge
A boxed spawn's provider keys become per-process broker tokens and the
provider base URLs point at the broker inside the box; the broker adds the
real key for a fixed upstream and forwards. A URL MCP server's headers ride
the same way, with one token per conversation that survives its turns.
Keys without a base-URL knob stay raw and are named in the report. The
self-check grows six broker checks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Cloud: plan cards in Add a Cloud, one button each and the same rows on every card
Every box on x86-64 loads a seccomp filter (built here as classic BPF, no
native module) that refuses 34 system calls that only reach the kernel's
attack surface; the self-check proves it with a keyring call that any user
may make and the filter refuses. The root supervisor remounts /proc with
hidepid=invisible and makes Fly's API socket folder root-only before
anything runs as maus. The report carries each layer's state, and
docs/bot-box.md says what each layer stops and why a separate user per bot
is not in this slice.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The threads submenu showed only the 12 newest threads, so with the sidebar
hiding threads the rest could not be opened. It now lists them all, and a
submenu taller than the window scrolls instead of being cut off.
Keeps #3244's lending-dialog extraction and #3243's plan cards; the deleted Copy this computer test stays deleted, the
locales merge per key, and main.mjs's pin is its exact merged count.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
One home S4: the desktop is one window onto My Cloud
T0a: the bot box, every bot turn in bubblewrap on a Cloud home
T0b: the credential broker, keys stay out of the bot box
T0c: box hardening, a seccomp filter in every box and a hardened host
Simple mode used to hand "New bot" to the Chief of Staff: its chat opened
with a starter line in the composer, which looked like nothing happened.
The + menu, Cmd+N and the New chat panel's "Create new bot" now open the
form in both modes; the form itself already shows fewer fields in Simple.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The Simple bot panel is now Bot · Computer. Bot holds the model chip with
a Thinking row taken from the engine's own levels, Instructions edited in
place, a two-way Ask me first / Just do it, and rows into four rewritten
pages: apps as plain switches, routines with switches and Add a routine,
what it remembers as MEMORY.md bullets with Forget and Add, skills with
switches, Remove, paste-a-link Add and Browse, and the working folder as
private or chosen. Computer keeps the screen preview with Watch, a
three-way Where it works and the signed-in sites. Everything automatic
(memory, upkeep, browser, tool grants) stays on in the background;
Advanced mode keeps the full accordion as it was.

The Details, Library and Settings tabs, their search and the strings only
they used are gone; every PageId and settings-section deep link still
lands, links to pages Simple no longer draws land where their section
does.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Fix/new bot dialog behind settings
The Simple panel and picker relabelled low/medium/high/xhigh/max as
Quick/Balanced/Deep/Max and trimmed the list to four. The owner wants what
the CLI offers (claude --effort, codex reasoning effort), so both now show
effortLabel for every level in the engine's effortLevels, as the Advanced
picker does. friendlyEffort/simpleEffortLevels are gone.

The provider mark on sidebar rows (BotModelMark/BotModelBadge) was Advanced-only;
it now shows in Simple mode too.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
A bot on both sides that no send ever recorded (an earlier whole-workspace Copy, or a lost cloud-send.json) and whose
part changed on My Cloud since was planned as "differs" (My Cloud's kept, §2.2), so the move never sent it and never
recorded it, while the move's check (manifestGaps) called the part missing. Every check pass failed, the move thawed and
tried again every hour without end. Seen in the real packaged app on a Docker desk against a staging test Cloud (Oct 22):
three bots' `access` part.

A move now records such a part as settled ([this computer's hash, My Cloud's hash]), as a baseline is recorded, so the
check agrees with the plan. Send everything still leaves the choice to the person.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(cloud-lending): terminal toggle for My Cloud, off by default
Someone in a team sees My Cloud, then each team from the Admin's verified
session (with their role: Super admin, Admin or User), then saved servers.
Choosing a team opens its Cloud in the same window through the Admin's team
pairing (POST /api/cloud/desktop/teams/<id>/pairing), with S4's offline,
sign-in and plan screens named for the team; the choice is remembered across
launches. A team's first open on a device gets one plain line that its admins
can see private chats; a removed member's team leaves the switcher at the next
session check, My Cloud opens and one line says so. In no team and with no
saved server nothing changes.

- cloud-home/cloud-account: parseCloudTeams, state.teams, pairTeam (404 = gone)
- environments.cjs: team places (withTeam, reconcileTeams), menu order, no
  Forget for a team, the window title names the place when there are several
- home-places.mjs (new): the place to open next time, the once-per-team line,
  the left line; environments-file.mjs takes main's file IO
- home-window.mjs: placeOf, show({ place }), the shown place's repair, 401s,
  version watcher and notifications
- main.mjs 3329 -> 3317 lines (pin lowered)
- HomeLine.tsx, named HomeScreen strings, 6 keys in 12 locales
- one-workspace harness: a Team Cloud edge on [::1] and a fake Admin team
  pairing route; 4 new acceptance cases

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The UX spec (team-mode UX.md, copy list): every private chat with a team's bot keeps the
header line, the first one on a device also says it as a sentence. The server marks such a
conversation private on the wire. A computer's one-time move goes to My Cloud only: on a
team every /api/cloud-send route answers one plain line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's newer behaviour and re-applies the chat apps on top of it:
- MCP mounts: main's per-server result budgets (customServerGate, gateRemote,
  attachCustomMcp with the credential broker) stay; app mounts ride along
  through the same gate and remote proxy. turnMounts reads the signed-in specs
  before brokering, as the app catalog is keyed by them.
- Replies and the send route: an app's ui/message, a widget press and main's
  relayed 👍/👎 each mark the reply; a reaction's transcript line wins.
- Message rows, steer queue: fromApp and reaction both travel.
- The transcript keeps main's chat-column and the app's relative box.
- show_html and update_html join raise_escalation in the card tools; the
  agents catalog budget baselines move by the two tools (+2,063 bytes each).
- File-size pins: ChatView is 1,438 lines; agents-catalog.ts stays at 1,000.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
addBot marked a bot `created` only after My Cloud's answer. Killed while the POST was on its way, My Cloud made the
bot 70 ms later (real app, Oct 22: "Otto"), this computer never heard, and the resumed move took it for My Cloud's own
bot: its fields kept My Cloud's defaults (its colour was lost) and the check called the part missing on every pass.

A send now keeps `creating` before it asks. The next send settles it first: a bot My Cloud has is the send's own
(`created`, so every field goes again), one it lacks was never made and goes as new (never "removed"). Without this,
the previous commit (differs kept as My Cloud's in a move) would have let such a loss pass the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The key watch (`before-input-event`) was set up the first time the wait phase asked for the last key, which then read 0
("never typed"), so the move froze this computer at once even while the person was typing. Seen in the real app on
Oct 22: real X keys every second in a bot's message box, frozen 1 s after one (20:28:21.9 key, 20:28:22.9 freeze).

Every move run now sets the watch up first (in the `cloud` dependency each run reads), so the 30 s quiet rule holds,
and a version-change reload of My Cloud's page, which reads the same watch, waits for quiet too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenMausBot adds no approval cards of its own: approvals belong to each
engine's permission system, and Full access is silent. An MCP app's call to
its own server now follows the bot's level with no card:
- reads, lists, read-only tools and app-only tools that are not destructive
  run at every level;
- any other tool runs at Full access, and at every other level, where the
  bot itself would ask first, it is declined (403, -32000) with a plain
  sentence the view can show.

The confirm/confirmed round trip, the Allow bar and its strings, the
document's unused `approval` field, the bridge's allowTimeoutMs and the
engagement argument of callRpc are gone; the phone host page is rebuilt.
An older client's `confirmed` is not passed on.

The app context handed to the model with the person's next message is now
marked as the apps' own words, untrusted and never instructions, like a
reply or a widget quote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 24 new strings in German, Spanish, French, Hindi, Japanese, Brazilian
Portuguese, Turkish, Ukrainian, Vietnamese and Simplified and Traditional
Chinese, each pack accepted against the English source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Clicking a bot on a team's Cloud opens the person's own conversation
  with it, never the team's main chat (src/state/team-chats.ts, through
  openBot). One is made the first time through the server's
  new-conversation route, which T2 records as the person's. A Member gets
  their newest own private chat; an Admin, who also sees members' private
  chats, gets only the one this device opened, else a new one. Group chats
  open as before.
- The window signs in to the team on screen again before its session ends
  (T2 ends team sessions within the hour): the Admin's team pairing,
  redeemed into the window's own cookie, so the page doesn't move. A 404
  from the Admin's team pairing means the person was removed: the team
  leaves the switcher at once and My Cloud opens with one line.
- The window's own "private chats" line is gone: T2 says it in the chat.
- Tests: home-window renewal/404, home-places drop, team-chats, the UI e2e
  renewal case, and a real Team Cloud check (skipped until T2's fixture is
  on main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page that updates its context and sends a message within a second (the
coffee counter: "One more", then "Tell the bot") had the message read
against the context from before, as updates are coalesced to one a second.
A waiting update is now handed over first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A move sends routines, calls, webhooks and app events last, after the chats, but the pass's closing plan used My Cloud's
summary read before they went. Each automation just carried had a record and was missing from that summary, so it was
marked "removed" on My Cloud and its record dropped. Seen in the real app on Oct 22 after a plain move (desk A2's
"Daily digest" and "Sender app"). The switch still turned them on (it reads `on`), but a change to one before the final
pass never went, its later runs were never carried, and the check skipped it.

The pass now reads My Cloud again once the automations went.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Picks up the lend-a-terminal switch. source-hashes.json keeps main's order and
adds only the chat apps' 24 strings for each language, so it stays easy to
merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
If the window opened after the launch's first look, the first to ask was My Cloud's version reload, which then read 0
and reloaded at once. Seen in the real app: the reload came 2 s after a key, mid-sentence, and the draft was lost. A
watch that has seen nothing yet now counts as a key now, so the first freeze or reload always waits its quiet time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 401 from the place's /pair page (its session not yet redeemed) started a
second repair, minting a second code and navigating again. The harness's
session fetch now deletes a Max-Age=0 cookie instead of keeping it empty,
as Electron's session does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
T3: the team switcher, My Cloud | Acme in one window
T2: Team Cloud role and the audience rule (private chats, three memory layers, per-person About you)
The bot box (T0, on by default on Cloud homes) keeps its three live sockets and its seccomp filter in the data folder's
`box/`, made again at every start. A workspace backup refuses special files, so every export from a Cloud home stopped at
"Cannot back up special or live runtime file: box/broker.sock". Seen in the real app on Oct 22: a test Cloud that ended
could not hand its backup to the computer coming home, so the chats made on My Cloud stayed there.

`box` joins the backup's runtime exclusions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot can publish a page it wrote (an .html file, or a folder with an
index.html) to its own public link at MausBot pages, when the person asks
to share it. Publishing the same file or folder again, or passing page_id,
updates the same link, so a routine can keep a page up to date. The chat
shows a card with the link, Copy link, Open and Unpublish, and how many of
the plan's pages are used; at the plan's limit it says so plainly and opens
the usual Get Cloud flow. Phones show the link as text.

One mechanism everywhere: the server asks the Admin for a short-lived
upload token and sends the page straight to the pages Worker. A Cloud home
signs that request with the bootstrap secret it already shares with the
Admin; a signed-in desktop's main process fetches its sign-in's own pages
token and hands it over on the private parent port. A server signed in to
no MausBot account tells the person to sign in. No Cloudflare credential
is held here, and nothing outside the bot's own folders is read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(desktop): Simple mode v3 — a control only where a person must decide; New bot opens the form again
The Admin boots an ended Cloud that its owner's desktop asked to export with OMB_CLOUD_EXPORT_ONLY=1, which
server/move-freeze.ts turns into a freeze for good (no turns, schedules, webhooks or app events). The root supervisor's
allow-list dropped it, so the held Cloud ran as if nothing had ended. Seen on a real staging test Cloud on Oct 22:
"cloud home: not passed to the server: … OMB_CLOUD_EXPORT_ONLY …", and its 5-minute routine ran at 21:10, 21:15, 21:20
and 21:25 while the two computers that came home ran the same routine at 21:25.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the language packs clashed: merged key by key (no key changed both ways; main's 135 removed keys stay removed,
the PR's 24 new ones stay), source-hashes.json taken from main and re-accepted for every pack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both add tools to the chat: show_html/update_html and publish_page/unpublish_page now sit side by side, through one
small agents-chat-card-tools.ts so agents-catalog.ts stays under 1,000 lines (999). Goldens regenerated, budget
baselines set to the measured bytes, Message picks both app and publishedPage, ChatView pinned at its measured 1437,
language packs re-accepted. Also drops a PR number from a test comment on main that the comment-history guard refuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chat apps: pages a bot makes and MCP app views (Excalidraw and others), inline in the chat
One home: a move whose check can never pass (a bot on both sides, or one made as the app stopped)
One home: what a move carries last is never taken for removed on My Cloud
Cloud backups leave the bot box's live sockets out, so an ended Cloud can bring its chats home
One home: the move's quiet moment counts keys pressed before it first asks
Cloud homes pass OMB_CLOUD_EXPORT_ONLY to the server, so an ended Cloud started for its export runs frozen
Publish a page to a link (publish_page)
chore(release): bump version to 0.1.122
Main moved the lending dialogs into electron/lending-dialogs.mjs. The home-folder warning and the "(your whole home
folder)" line now live there (chooseFolder takes an isHome check, main passes isHomeFolder), main.mjs keeps main's
structure with this PR's "folder or drive" titles, with a test for the warning (OK lends it marked home, Cancel and
Escape lend nothing, a drive gets no warning). Language packs re-accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop asks the Admin for its sign-in's pages token; an Admin without pages answers 404 and pagesAccess() is null,
which the server took for "not signed in". Seen in the real app on Oct 22 (staging Admin without openmaus-cloud #143):
"make a one-page note and publish it to a link" gave the bot "Publishing a page needs a MausBot account. Sign in to
MausBot in the app's Settings, then ask again." on a desktop that was signed in.

The desktop now passes the shared sync's `offered: false` note on, and the server answers with the sentence a Cloud
home already gives for the same 404: "Publishing pages isn't turned on for this account yet."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages: a signed-in desktop whose Admin has no pages yet is told so, never asked to sign in
feat(cloud-lending): share a whole drive, and the home folder after a warning
The confirm for lending the whole home folder said keys and logins in hidden
folders such as .ssh become available to the bots. They never do: every lent
folder, the home folder included, refuses personalSecretPaths (.ssh, .gnupg,
.aws, keychains, browser profiles and cookies, .claude, .codex, ...) and this
app's own data and grants (protectedRoots in computer-sharing.mjs).

- The dialog now says: "Everything in your home folder becomes readable by the
  bots you allow. The places that hold keys, passwords and browser data, like
  .ssh and your browsers' profiles, always stay private."
- lending.drivesHelp says the home folder is always read only and its keys,
  passwords and browser data stay private, in all 12 languages (hashes
  recorded for that key only).
- docs/cloud-pro.md says the same.
- A test lends a temporary home folder exactly as the picker does after the
  warning and drives reads through the real lending poll: ~/.ssh/id_ed25519,
  a Chrome profile's Cookies, the app's data folder and its grants file are
  refused, a file in Documents reads, and the listing marks .ssh protected.

Follows #3254 by c-dreamer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
T4: Move to Acme, one bot from My Cloud into a team; an Admin's own chat on any device
Lending the home folder: the warning says what really stays private, and a test proves it
On a Team Cloud a bot's browser follows the audience rule: a member's private chat drives that
member's own browser of the bot, a group chat the group chat's, the main chat the team's. The
session, its saved sign-ins, its profile, the new engine's profile key, a temporary browser, the
live view and the signed-in sites routes are all keyed by bot + audience; a deleted bot or shared
profile is erased for every audience (browser/audiences.json). The live view shows the browser of
the conversation it is opened from, to whoever may read it; with none named, the person's own.

Every Chrome on a Team Cloud runs in its own bubblewrap box (net shared, seccomp, only its own
profile); uploads are linked into that profile first. The shell stays bubblewrap's parent:
agent-browser 0.37 starts Chrome from a short-lived thread, which --die-with-parent would follow.

Settings shows "Open on your phone" to every member: POST /api/team/phone-pairing (and
/api/auth/pairing for a team admin) makes a code carrying the caller's member claim; the phone's
session ends within the hour of the Admin's last check of that member, and each new Admin-signed
pairing of the same member in the same role moves it.

My Cloud and desktops: every audience is the team's, so names, launcher and routes are as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person who moved to My Cloud from two computers had both restore the whole backup and switch on the same automations.
Now the Admin names one computer (cloud.hold.homecoming, the one used most recently), and only that one comes home with
My Cloud's backup, exactly as one computer alone does. Every other computer that moved opens its own copy as it was at
the move, with every automation off, takes nothing from My Cloud, and says so in one line: "Your bots came back to
<name>. This computer keeps its copy from <date>, with automations off."

- electron: parseCloudSummary keeps hold.homecoming; oneHomeCloud gives homecoming {name, here}; one-home.mjs ended()
  goes home again as before when this computer is named or none is, else cameHomeElsewhere: the freeze lifted with
  automations off, journal back with elsewhere {name, since}, the local window, and nothing else. With no answer from
  the Admin it waits; it never guesses.
- server: DELETE /api/move/freeze {automations: "off"} switches every routine, scheduled call, webhook and app event off
  while still frozen, then lifts, so none of them runs; an ended Cloud still refuses. CalendarCallManager.switchOff.
- The line in 12 locales (cloudSend.move.elsewhere, cloudSend.move.elsewhereEmpty).
- Test fixture: addDesk() for a second computer moving to the same My Cloud; the two-desk e2e run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
home-window's connect() left the window alone whenever it already showed My Cloud's origin. With moves off, a person
opens My Cloud from the switcher (the old saved-server mode); when the move later finished, the window stayed in that
mode ("Hosted: My Cloud", the switcher with "This computer"), and since it was never opened as home (`away` stayed false),
My Cloud ending did not bring it back: it stayed on the ended Cloud. Seen in the real app on Oct 22 on the release path
(desktop with moves off, then moves on for testers once the Cloud updated, then the Cloud ended).

Only a window this opened as home is now left as it is; one showing My Cloud as a saved server is opened again as home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The real-app test of the one-time move to My Cloud on Oct 22 found the app saying things that were wrong for the
moment the person was in. Each is now said plainly, in all 12 languages:

- During the move, Settings → MausBot Cloud shows the move's own line instead of Open the Cloud and Switch back to
  This computer, and Use my Mac says it turns on by itself once the bots are on My Cloud (unless the person turned
  it off).
- The move's progress counts only chats while the chats go: the automations after them no longer counted on as
  chats ("6 of 5 chats").
- "No bots yet" only once the bots have loaded; until then "Connecting to your bots…".
- On My Cloud once it is home, the welcome's folders card and Settings' plan card no longer point at an app on
  this computer: the folders are in My Cloud's Settings, the plan on the Plan page.
- The startup screen says "Opening My Cloud…" whenever home is My Cloud; the switcher says "always on" only when
  main's verified plan says so, on the pair page too.
- A page the window reloaded for its newer version says "Updating My Cloud…"; `pnpm dev:server` only in a
  developer's build.
- When the bots come home, each bot that said its webhook had a new address on My Cloud says it has one here again.
- No Product Hunt, star or Cloud offer card while the move goes, or for 5 minutes after it is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every move pass opens its own owner session, a pairing code from the Admin, which allows 10 a device in 10 minutes. A
relaunched move, or one whose check needs extra passes, crosses that: the next pass gets 429, and a failure while
frozen waited FROZEN_RETRY_MS (an hour). Seen in the real app on Oct 22: killed in the final pass and relaunched, the
final pass got "Cloud request failed." (429 on /api/cloud/desktop/pairing) and the move waited an hour.

A 429 anywhere in the error's causes is retried on the short schedule (2, 5, 15… minutes); the freeze is still lifted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- This computer is now its installation (installationOf: a hash of its own server's environment id, the same across
  sign-outs and sign-ins), not its sign-in.
- At done, and at each new sign-in, one-home tells the Admin the move is done (POST /api/cloud/desktop/moved
  {installation}, cloudAccount.reportMove); kept as journal.reported, retried at most hourly while the Admin can't take
  it.
- cloud.hold.homecoming is {installationId, name}. Named and this installation: home as before, whichever sign-in;
  another: its own copy with automations off; not knowing its own installation yet: it waits, never guesses.
- No computer named (no computer told the Admin, older desktops): every computer that moved comes home exactly as before.
- The export ask says which computer this is ({installation}).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- skills/data-dashboards: a short guide (when to use a chat page, a
  published page or a schedule; data, chart, colour, layout and access
  rules) and dashboard.html, a template with DuckDB-WASM 1.32.0 (single
  threaded, worker from a blob) and ECharts 6.1.0 pinned on jsDelivr:
  KPI tiles, three charts, two filters, a table, light and dark, phone
  width, Intl formatting, loading and error states. Mounted only on turns
  that ask for a dashboard, chart, KPI or graph, so other prompts are
  unchanged.
- publish_page bundles .parquet and .arrow data files (the pages Worker
  serves them from openmaus-cloud#feat/pages-parquet); .wasm stays out.
- show_html and publish_page each point at the skill in one sentence
  (+138 bytes per catalog profile, +82 bridged; baselines moved by
  exactly that).
- The Data tools no longer forbid dashboard code when the person asks
  for a dashboard page.
- Cloud and server images ship skills/, so bundled skills reach Cloud
  homes (they read ./skills from /app and found nothing).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine's `runs` part is the hash of its finished run ids. When My Cloud already held the routine (an earlier
whole-workspace Copy) and this computer kept running it, the runs differed with nothing recorded, so the plan kept My
Cloud's version (§2.2) while the check (gaps.runs) still wanted every run made here: "the check found 1 runs missing" on
every pass, and the move retried hourly without end. Seen in the real app on Oct 22 (v0.1.122 build, Copy-leftovers desk).

Runs are history My Cloud adds by id and never drops (adoptRoutine), so in a move a routine whose only difference is
its runs now goes; one whose definition changed on both sides still keeps My Cloud's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every OS:
- electron/updater.test.mjs: ensureCloudAccount's onState now also tells the
  included pages (#3266); the test's world gets the same stub as includedX.
- scripts/docker-image.test.ts: the Cloud home's tools layer installs a pinned
  pnpm (the bot box commit). Count it as a heavy layer beneath the app files,
  read every `rm -rf` of a step (apt's lists come first), and key the engines'
  install, not pnpm's, on ENGINES_CACHE_TAG.
- server/cloud-send-move.e2e.test.ts: a send of some items never carries chats,
  and Bring is gone (S4), so nothing put Kai's and Lux's lines on My Cloud
  before the strip. Use an older app's whole Send everything, which carried
  them, and say so.

Windows:
- server/bot-box/*: the box runs only on a Linux Cloud home (detect.ts:
  not-linux elsewhere). Its gates are unix sockets Windows refuses at a file
  path (EACCES) and its plan is bubblewrap argv over POSIX paths, so those
  suites skip on win32; "off" and the plain wrap tests still run there.
- server/workspace-backup.test.ts: on Windows the box folder holds only the
  filter (no unix socket), and is still checked to be left out.
- scripts/testing/cloud-send-fixture.ts: Windows' kill("SIGTERM") ends the team
  server without its shutdown, so the session registry stays open and every
  member's session is dropped as after a crash. Stop it over IPC there and
  run its own SIGTERM shutdown (as acp-shutdown.e2e does). Fixes all six
  cloud-team.e2e failures, which cascaded from the relaunch.
- .gitattributes: shared/app-frame/app-host.html is LF everywhere, so its
  hash line matches its body on a Windows checkout.
- published-pages, gen-app-fixtures: paths compared with the platform's
  separator; app-docs: the 0o600 check skips Windows like the other mode checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows "/" is the current drive's root: on CI that is D:\ (the checkout),
a separate data drive from the home folder's C:\, which may be shared whole by
design (#3254). The test now names the root of the drive the home folder is on,
which is "/" on macOS and Linux, and C:\ for the test's home on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every pass, check, count and switch of the move opened its own owner session at My Cloud, and each one costs one of
the Admin's one-time codes (10 an account, and 10 a device, in 10 minutes). One uninterrupted move used about 7, so a
move that was killed and went on, or two computers moving close together, got 429 and stalled for an hour in the
frozen pass.

The move now keeps one session (electron/move-session.mjs) for as long as the app runs: cloud-send's passes and check
and one-home's counts and switch all use it, a pass's close keeps it, and it is signed out once the move is done,
paused, or not this account's. A 401 (My Cloud no longer knows it) opens one new session and sends the request again,
once. No Admin change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine whose definition differed here and on My Cloud, as after an earlier copy of the whole workspace, was kept
as My Cloud's and never sent, while the move's check still looked for every run made here: "runs missing" on every
pass, so the move never finished.

In the person's own move, a routine that differs on both sides now goes as one routine (the design's rule):
- its runs are history My Cloud adds by id, so this computer's always go;
- its definition is the one changed last, from each side's `changedAt` (GET /api/cloud-send/kind now says when a
  routine last changed there); when either side can't say, My Cloud's is kept, as for a bot part changed on both;
- when My Cloud's definition is the one kept, it is sent back with this computer's runs, so they arrive without undoing
  what changed there. The same holds for a later pass that carries only new runs.

A bot moving into a team is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three places where the words were wrong for someone the move had not reached yet:
- A new app with a Cloud still on an older image, moves on: the move can't start until My Cloud updates, but the line
  said "Moving your bots to My Cloud…" for good. It now says "My Cloud is updating. Your move starts when it's done."
  (12 languages). That is not the move failing: no day-of-failing line, no Try again, and the move goes as soon as My
  Cloud has updated.
- With moves off, Continue (a fresh start) on the Cloud's welcome ticked "Bring your stuff" though nothing came. The
  step now shows as skipped until something does come over, then as done.
- The switcher said "Your bots live on My Cloud" whenever the window showed My Cloud, also to someone who had not
  moved. It says so only once home is My Cloud; before that, "These bots live on this computer".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- scripts/testing/vitest-shard-weights.json: refreshed from the Windows logs of
  runs 39684923366 and 39684885971 (update-shard-weights.mjs). Last refreshed
  Oct 12, it missed one-home (215 s), routine-recovery (168 s),
  cloud-computer-auto-sleep (106 s) and 140 more e2e files; all of them landed
  in shard 4, whose Linux job ran into its 30-minute cap and was cancelled on
  main (39684885971, 39687280672). With these weights, the Linux test seconds
  per shard come to 1133/1085/1090/1159, where they were 942/958/1000/1566.
- server/cloud-team.e2e.test.ts: the prompt names a memory file the way
  workspace.ts quotes it (JSON.stringify), so on Windows its backslashes come
  doubled; the test looks for the quoted path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make main green for 0.1.122: tests caught up with the product, the Linux-only box off Windows
One home: one owner session for the whole move, so retries and a second computer stay within the Admin's codes
One home: a routine changed on both sides is one routine, with the definition changed last and both sides' runs
One home: "My Cloud is updating" while it can't take the move, a skipped Bring your stuff is not Done, and "live on My Cloud" only once it is home
Data dashboards: a bundled skill with a tested template, and parquet pages
One home: a routine on both sides whose only difference is its runs goes in a move
One home: a frozen pass the Admin refused for too many requests goes again in minutes, not an hour
One home: a window that showed My Cloud as a saved server is opened again as home, and goes home when My Cloud ends
One home: the words a person sees during and after the move
Team Cloud: a browser per member and per group chat, each Chrome boxed; open the team on your phone
Keeps main's one owner session per move, routine merge and move wording, with the homecoming by installation: the done
line's `at` and the back line's `elsewhere` both stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One home: when My Cloud ends, everything comes home to the computer used most recently
Declares the parameterized model picker on initialize so Cursor exposes Fast as its own config option, then sets it from the model slug.
Cursor can acknowledge set_config_option yet keep its default Fast variant, so the driver now checks the echoed fast.currentValue and stops the turn if it differs.
Google's remote MCP servers (Maps Grounding Lite, Gmail, Drive) annotate enum
properties with x-google-enum-descriptions. Strict Ajv rejects the unknown
keyword, so every chat turn skipped the whole server with "MCP tool schema
could not be validated". The keyword is registered as a string-array
annotation, like x-mcp-header: the enum itself is still enforced, and a
malformed annotation is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An over-budget JSON result from a bot's MCP server no longer loses
everything past 8,000 characters. The gate keeps the whole parsed
payload on its side, shows the model the shape (keys, array sizes,
item keys), the first records, a handle and a valid example query, and
lists one read-only tool beside the server's own, query_result, that
runs a JMESPath query over the held result and returns only what it
selects. Answers pass through the same budget, so no path returns the
whole payload. JMESPath cannot run code, so there is no sandbox.

The Claude driver pre-allows mcp__<server>__query_result for every
gated bot-owned server with a budget, added after the harness mounts
so a shadowed project server never gets one; it reads nothing the
server has not already returned, so it never prompts. Non-JSON results
are cut as before, a zero budget lists no tool, and Codex (budget 0)
is unchanged.

Measured on Haiku with a stub Instamart server returning 249 KB: the
blunt cut answered wrong twice (saw 8 of 300 products); shaping wrote
one exact filter/sort/slice query and matched ground truth both times,
at equal or lower cost.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
hermes-agent 0.22.2 re-sends a streamed reply whole under its messageId,
its reasoning block prepended; the ACP driver appended it to the streamed
text. Hermes now drops that chunk.

Fixes #3282
- server/drivers/agents-call-cards.test.ts: show_html's description now ends
  by pointing a dashboard at the bundled data-dashboards skill (#3279); the
  test's end-anchored match includes that sentence.
- server/bot-box/box.test.ts: "the box a bot's Chrome runs in" starts the box,
  whose gates are unix sockets Windows refuses at a file path (EACCES); that
  test skips on win32. Its "no box off a Cloud home" check, what Windows gets,
  is its own test and runs everywhere.
- server/cloud-team-browser.e2e.test.ts: the agent-browser stand-in is a sh
  script, which Windows cannot run as a program, so no command reached its
  log; that one test skips on win32 (a Team Cloud is a Linux machine). The
  file's other checks still run there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make main green for 0.1.122 (2): show_html's dashboard sentence, the boxed Chrome and the team browser stub off Windows
The Apps pop-up has a native X (Twitter) card next to Whop and HighLevel.
- On a paid MausBot Cloud plan it says "Included with your plan" with this
  month's use ("312 of 5,000 X calls this month. They reset on November 1."),
  read from the relay's GET /usage. Nothing to set up.
- Everyone else pastes a treg key there (link to treg.to). It is saved where
  keys already go (the desktop's encrypted store, else the server's config),
  tested at once, and can be tested again or removed.
- With both, the card says the own key is used first; removing it falls back
  to the plan.
- A used-up month says when it resets and how to keep going, and bots' X and
  research refusals now end "Add your own treg key to keep going."

GET /api/x/status names the credential with the same resolver as the X
tools' own routes. The managed install's Composio Twitter tile, which cannot
connect there, is left out unless already connected. All 12 locales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/testing/comment-history.test.ts keeps history in git, not in
comments; the show_html comment from the previous fix named #3279.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make main green for 0.1.122 (3): a test comment names no pull request
hermes-agent 0.22.4 sends the re-sent reply as "\n\n💭 …", so the header
check now trims both ends. The reasoning prepend first appears in 0.22.4,
not 0.22.2.

Reported and diagnosed in #3305.

Co-authored-by: Krishna Dobhal <107910364+krishnadobhal@users.noreply.github.com>
A move with no change in behaviour, to make room in index.ts for the proactive routines wiring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Tool Router Session uses a project's own auth config only when it is
created naming it under auth_configs, keyed by toolkit. OpenMausBot read the
project's configs only when it created a Session, and the long-lived Session
every bot call goes through was reused as long as it had multi-account mode,
so a config added in the Composio dashboard afterwards never reached the
bot's calls or COMPOSIO_MANAGE_CONNECTIONS.

Own Composio key:
- The project's enabled, non-Composio-managed configs that are on for Tool
  Router are read (cached a minute; one per toolkit, the most recently
  updated, the choice logged), and a Session that does not name them is
  replaced once under the same Composio user, so existing connections stay.
- A failed lookup keeps the last list (or none); a config Composio refuses is
  left out of the new Session instead of failing it, and connecting that app
  says why.
- COMPOSIO_MANAGE_CONNECTIONS add accepts auth_config_id (or
  auth_config_override). The id is checked in the person's project before a
  card shows and kept in composio-auth-configs.json for later Sessions.
- A relayed call that fails with Composio's no-managed-auth error gets a
  plain note for the bot, and the next call reads the configs again.

Managed broker: an auth config in the person's project cannot apply to
OpenMausBot's project, so the app answers with one plain line (add your own
Composio project key with an enabled auth config) instead of Composio's raw
error. No broker change.

Project-key helpers move to server/composio-project.ts and request parsing
to server/connector-request-items.ts; server/index.ts and server/composio.ts
both shrink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When no helper writes the summary (none available, failed, empty or timed
out), compaction keeps recent excerpts only. The chat now says so instead
of "Earlier context summarized", in every language. Existing records are
recognised by the same excerpt header, now shared between server and
renderer; a test pins its wording to what stored records carry.

Fixes #3065
Composio: toolkits that need your own OAuth app (Xero, Buffer) connect using your enabled custom auth config
A routine can name checks (calendar, mail, runs): plain code that runs on each tick before any AI turn. Nothing new
starts no turn and leaves no run, only 'checked at'. What needs the AI becomes one batched run. Every routine can use
them, and gains these rules when it does:

- however late the computer wakes, missed checks merge into one, never a missed run;
- the first checks wait two minutes after start;
- while a run works, checks still run but hand the AI nothing until it ends;
- at most 24 AI runs a day, then items wait;
- after a failed run the next waits 15 minutes doubled each time, up to 4 hours, with jitter, and the owner hears once per streak;
- a run of checked items waits for a busy bot without a notice and never fails for being busy;
- a failed read is never 'nothing new': the routine shows why;
- only the checks' next on-time job keeps the desktop awake or wakes a sleeping Cloud, so a 15-minute watch does not hold a Mac awake around the clock.

Routines also gain access (read-and-draft) and deliver (brief) fields, carried through Cloud moves and team backups.
Loading and input cleaning move out of routines.ts to make room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drivers report a tool only when it starts and when it ends, so a long build, test run or wait sends nothing for its
whole run. The stall watchdog stopped such a turn after OMB_TURN_STALL_MS (20 min) while it was still working; the ACP
driver's own prompt-idle guard already spares a turn with a tool running.

The watchdog now tracks each turn's running tools from item.started and item.completed. While one runs, the turn may
stay silent for OMB_TOOL_STALL_MS (default 2 hours, never below the turn limit), so a tool that truly hangs still ends
its turn; the stop reason names the window that ran out.
While the Admin set a new Cloud up, the session already carried its address, and Files (through
the remembered origin) asked it every few seconds: the resolver cached "no such name" before the
Fly app existed, so the first open after "ready" failed with ERR_NAME_NOT_RESOLVED and the old
fall-back dialog sent the person back to this computer, failing again for minutes.

- Nothing takes My Cloud's address before the Admin says ready: the remembered origin skips a
  Cloud being set up, and the home window shows "Setting up My Cloud…" with the Admin's step
  (also for a payment still being confirmed, a home Cloud set up again, and a team's Cloud),
  then opens it by itself once the session says ready.
- Every open of My Cloud goes through the home window (Server menu, welcome, Settings, ready
  notice); before the move it opens as a saved server, as before. This computer in the Server
  menu leaves the screen.
- A Cloud that became ready within 15 minutes (kept in cloud-ready.json across a launch) whose
  name isn't found keeps the setup screen and tries again on 5 s, 10 s, 20 s, 40 s, 60 s, with
  the window's host cache cleared and Electron's own resolver asked past its cache, for 10
  minutes; then the offline screen, which keeps trying. My Cloud never gets the fall-back dialog.
- Words in 12 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The checks a routine names run as plain code over one connected-apps session per check, as the default account of
each app, and only when the bot's own app switches let it read that app.

- calendar: the next 36 hours, each meeting once however many calendars show it; meetings with others 4 hours out
  go to the AI for prep, the 10-minute reminders and today's clashes need no AI, and the next time one is due is
  the only time the computer needs to be awake;
- mail: new inbox mail since the cursor, paged; the newest 20 go to the AI in one run and the rest wait, never
  dropped; the cursor moves only once that run's answer is kept;
- runs: other routines' finished runs since the last check.

A failed or misshapen read is trouble, never an empty list: it keeps the cursor, backs off, and says
'Couldn't read Gmail. Reconnect it' when reconnecting is the fix. State is ids and times only.

One sanitiser (records-block.ts) now frames mail and invites as records and defuses app events and webhook payloads,
which were not defused before. The planner, prompts and readers are ported from Omkar's daily brief (single account).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moonshot refuses a whole request when one tool's parameters schema passes an
undocumented size (about 13.7 KB accepted, 15 KB refused), and Kimi Code
inlines every $ref before it sends, so a small schema can arrive far larger.

One per-provider schema profile (server/tool-schema-profile.ts), first used
by Moonshot: a 12,000-byte cap and depth 30, measured as Go's encoding/json
writes the inlined schema. Fitting loses as little as it can: annotations,
then nested descriptions, then deeper fields, then top-level fields only
(with a note in the tool description); a tool that still cannot fit is left
out with one log line. Servers still validate calls against their full schema.

The profile reaches every place OpenMausBot answers tools/list for a Kimi
turn through OMB_TOOL_SCHEMA_PROFILE: the computer bridge, mcp-gate, the
remote proxy and the connector proxy. The person's stdio servers, which Kimi
launched directly, now go through the existing gate. The chat runtime uses
the same profile for Moonshot's endpoints and moonshotai/* on OpenRouter.
Every other engine's tool lists are unchanged.

A provider that still refuses a tool schema (Moonshot, OpenAI, Anthropic,
Gemini, Bedrock wording) now reaches the person as one plain sentence that
names the tool when the provider does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The saved auth-config choice is written 0600; Windows reports 0666, so the
release CI's Windows shard failed on 438 vs 384. Same guard as app-docs.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make main green for 0.1.122 (4): the Composio test's file-mode check skips Windows
When My Cloud ends, this computer is home again at once: its freeze lifts and
its routines start, the one that runs at every start among them. Bringing My
Cloud's backup home then ends in this computer's restore, which waits for every
turn here to finish (409). The restore met that routine's turn, bring() threw,
and coming home waited five minutes for a turn that ended a second later. This
is the intermittent one-home-two-desks.e2e failure on CI (journal stuck at
home-again, retryAt five minutes out).

A restore this computer refuses as busy (409) is now `later` in 5 s, and the
backup already taken and staged here is kept, so the next try only restores:
My Cloud is not asked for a new export and nothing is downloaded again. Any
other failure fails as before, and the next try takes the backup again.

The two-desks test now holds the Air's at-every-start turn until the restore
has met it, so it hits this every run instead of 2 in 15, and every phase
assertion prints the journal and main's log on failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Usage rows now carry turnId, start and end, the parent turn (delegation,
resume, room handoff), the outcome, step and tool counts, cache writes,
reasoning and context use. Each AI step and tool call is a span line in
<data>/usage/spans/<day>.jsonl, keyed by the engine's own ids and written
in batches off the turn's path. OMB's own agents tools send the server a
timing receipt, so they are timed exactly on every engine. Claude's
per-call usage now comes from message_start/message_delta.

GET /api/usage/traces lists the period's roots with totals, paged;
GET /api/usage/traces/:id builds one root's span tree, limited to the
threads the viewer may see. Older rows show as untimed roots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine can set access: "read-and-draft". Its unattended runs read untrusted mail beside the person's private data,
so they get no way to act outside or to persist anything, and everything is allow-only:

- the run runs at Ask and the server refuses every request in it outright, never as a card (no OMB-side approvals);
- of OpenMausBot's routes it reaches only conversation reads, its own results, the engine's hooks and the
  connected-apps relay;
- through the relay it reads Gmail and Google Calendar, and may write one draft per thread, replying to that thread's
  sender, in a thread its checks handed it, so a retry never drafts twice;
- what Gmail and Calendar answer reaches it as records.

Also: Composio's noun-first reads are known by slug; the outbound header comment no longer claims sends always ask
(at Full they run), and the held card's note says "so it asks you first" (its six stale translations fall back to
English). Chief notices stay quiet about a read-and-draft run. Ported from the job gate in Omkar's daily brief.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
deliver: "brief" makes a routine's results rows of the Chief's brief instead of chat lines of their own. The brief is
one card a day in a fixed chat of the Chief's (chosen once, since the main chat moves), built with no AI:

- Needs you: emails waiting on a reply, failed or missed routines, clashes, "Couldn't read Gmail" with how to fix it,
  and the rows the Today page had (a signed-out AI, a usage limit, a question waiting);
- Your day: today's meetings, Join for an https link only;
- Important emails: each with a one-line why, Draft a reply, Open in Gmail and Dismiss;
- Routines: other routines' results today.

A watch run answers with one small JSON object; an answer that does not parse fails the run and is never posted, and
its items go back to the checks. The 10-minute reminder is posted by the server with no AI; meeting prep is a card of
its own. One notification per update that adds something that needs the person, and none while a turn runs in the chat.

Server-built cards carry serverCard: a bot cannot edit one, it replays into a turn only as records, and backups keep the
mark. Widgets gain an open_thread action. The checks and the read-and-draft fence are wired into the server here, with a
minute timer for edits a busy chat held back. The cards and the serverCard mark are ported from Omkar's daily brief.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Usage page now shows the period's totals (cost, tokens, AI steps,
tool uses, errors, time), where the money went by bot and by model with
a switch for the other groupings, and every run with its bots, time and
cost. Opening a run shows its trace waterfall: a collapsible span tree
beside a time axis, AI steps lavender, tools pale teal, errors red,
time and cost on each row, SLOWEST and MOST EXPENSIVE badges, and a Live
badge with a moving now-line while it runs. Long runs of one tool fold
into a group; connected apps show their logo. Each turn's work line in
chat reads "Worked for ..." with View trace beside it. Simple mode shows
the page on Account. The old usage table and its strings are gone; the
CSV export stays. Strings are translated into every pack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Keep an eye on my day" is made once, with no button, for the Chief of a personal install or a personal Cloud, and
never on a hosted team workspace or a Team Cloud: every 15 minutes, checks calendar, mail and runs, reads and drafts
only, delivered to the brief. Its instructions are a short checklist the person changes by talking to the Chief. Its
checks read nothing until Gmail or Calendar is connected, so it costs nothing before then. Pausing or deleting it is
the off switch, and it is never made again; one that arrived with a moved Chief is not made twice. On a Cloud it is the
owner's routine.

The Automations row says "reads and drafts only" and "checked …, nothing new", and a check that cannot read an app
is Needs you with Reconnect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The app tells the server the person is here (POST /api/presence/active, on focus, a press or a key, at most once a
minute). Only the owner's activation counts. The first open of a day posts today's brief; a return after three hours
or more refreshes it in place. Both answer with the brief's chat, which the app opens. The device's time zone becomes
the brief's zone of record, so a Cloud home is not stuck on UTC. The companion lets the route through, so a desktop
connected to another server sends it too. Ported from Omkar's daily brief.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismiss is answered by the server itself: only the owner or an admin, only on the brief card, and no turn starts. A
press is first checked to be in the pressing bot's own chat, before any widget in it is read. The dismissal is kept
(the sender's address and when) and recent ones go into the next sort as records, so the watch picks less mail like
it. A Draft a reply press carries the email as the server's own records, found by its id, never the card's words.

Also: the end-to-end scenario on a real server against a stand-in connected-apps service and the fake Claude CLI
(default watch, quiet check, one batched run, reminder, prep, brief, Dismiss, a failed read, a plain routine
unchanged, and the fence refusing sends, other apps and drafts to strangers), the short spec in
docs/proactive-routines.md, and docs/routine-schedules.md no longer says nothing is scheduled until you confirm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person's message to the Chief delegates to a teammate that uses two
tools; the trace nests the teammate's turn and the Chief's resumed turn
under the first, times each tool on the server, and adds up the totals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every fixture's Chief now has "Keep an eye on my day", so the tests that counted every routine count the ones they
made. The move test now also shows the watch switched off on the computer the bots left, and exactly one watch, on,
where they came home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Labels sit after a bar, before it, or over its end, whichever has room at
the current width, so a phone-width trace never scrolls sideways. App
logos load once the catalog arrives, tiny costs read <$0.001, model
groups use the model's name, and the runs list keeps its titles aligned.
scripts/verify-usage-traces.ts runs delegated jobs on the scripted
engine, one left running, and mounts the Usage page alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every MCP call OMB answers on its internal routes gets a server-side
receipt when its answer is sent, so those tools carry exact timing and
their failure line on every engine, not only where the engine reports
tool events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tool result or a repeated turn.started from a finished turn no longer
reopens it over the turn now running on the same thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds tests for a bot editing a server-built card, server-built cards replaying only as records, presence for a guest,
Dismiss on a card that is not the brief, and, in the end-to-end scenario, a fenced run's mounted tools, its light
prompt, Gmail's answer as records and a later conversation search not finding the run. Each fence was broken on purpose
and a test failed (listed in the pull request). The verification guide documents the scenario and the renderer check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The watchdog settles the stopped turn's coordination with a plain failure, and the runtime reads every failed host
turn as provider_error. A requester then saw a provider error for a turn the harness itself stopped. The host result
now says when the watchdog stopped it, and both the coordinated and the root path record the outcome as stalled.
Review round 1 on the tool window:
- OMB_TURN_STALL_MS and OMB_TOOL_STALL_MS now take only positive finite numbers. Number() reads "Infinity" and
  "1e309", and an endless limit meant the watchdog never fired.
- A tool's limit was renewable silence: any event, a parallel tool's or text, refreshed the turn's one clock, so a hung
  tool beside an active one ran forever. Each tool now has a deadline, OMB_TOOL_STALL_MS after it started, that no
  other event extends; a repeated start keeps the first deadline, and time the turn spends waiting on a person or a
  computer does not count toward it. A turn stopped this way says "a tool ran for N minutes without finishing".
- The ACP driver emitted only item.started for a tool_call that arrived already completed or failed (a denied
  permission), so the watchdog counted it running for the rest of the turn. Such a call now gets its item.completed
  too, and an unkeyed one stays out of the queue that pairs unkeyed updates.
- docs/self-hosting.md documents both limits, their floors and invalid values, and names the room work ceiling
  (rooms.turnTimeoutMinutes), which still stops a room turn while its tool runs.
The Today page, its sidebar entry, its 59 strings and sidebar.nav.today, its tests and its verification guide are
removed. What it showed that only the person can fix (a signed-out AI, a usage limit, a connection, a question waiting)
is now in the brief's Needs you, from the same server read model, which stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
A meeting handed to a run whose answer had no prep for it was handed out again on every tick, so the watch started a
run every 15 minutes until its daily cap. Found by the real-app check. A run whose answer was read now settles all of
its items, prepared or not, as it already did for mail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1: the stalled flag reached only the direct path. A room turn records the outcome "stalled", but
runGroupMemberTurn's settlement and runRoomNode's own result both dropped it, so runtime-coordinator mapped the failed
room turn to provider_error. Both now pass stalled: true, the settlement also for a stall latched during setup that
ends the turn before it has an outcome. The Local VM room fixture asserts the runtime outcome for a stall during setup
and one after dispatch.
Each check edited today's card even when it showed the same rows, which bumped its revision every 15 minutes and could
make a press made at that moment stale. The card is now edited only when what it shows changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 2:
- runRoomNode's fallback result never carries a stall: the room turn settles the same coordination with finish first,
  and finish ignores later calls. The fallback stays for pre-claim exits and errors, without the stalled arm.
- The final settlement's setupStalled term had no test of its own: the delayed-setup stall test reaches the dispatch
  path, which sets the outcome to stalled. A new Local VM room test stalls the turn while setup waits on VM readiness;
  the stall revokes the generation, readiness returns to a setup no longer current, and the turn ends before it has an
  outcome. It asserts the runtime outcome is stalled, and fails with provider_error without the setupStalled term.
Review round 2 rejected the wait pause: while the turn waited on a person or a computer, every running tool's deadline
was skipped and its start moved forward by the whole wait. A hung tool beside another that kept asking a person never
stopped, and a tool started mid-wait was credited time from before it existed.

- The turn now keeps one running total of its waited time (person and computer waits overlap into one wait, so they
  count once); each tool records that total at its start, and is credited only the difference: the waits within its
  own lifetime.
- Each tool also has a cap, twice OMB_TOOL_STALL_MS from its first start, that counts every wait and that no event
  extends; every sweep checks it, also while the turn waits. A turn stopped there says "a tool ran too long".
- docs/self-hosting.md describes the overlap credit and the cap.
pnpm --version ran after the rm -rf, so it recreated /tmp/node-compile-cache in
the layer, and the image hygiene check refused to publish the v0.1.122 Cloud
home image (build caches in a layer). Run it with the throwaway HOME and clean
up last, in the same step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud image: clean the build caches after pnpm --version, so the image publishes
- A turn whose engine went away without turn.completed is closed as
  stopped when the next turn starts on its thread, or after 30 idle
  minutes, so it never stays Live.
- An expected parent link lapses after a minute, so a refused dispatch
  cannot hand its parent to a later turn on that thread.
- Tool receipts must fall within a day of now and inside their turn.
- Overlapping trace requests share one ledger read, so new lines are
  never appended to the cached rows twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lists https://mausbot.com/funding.json so fundingjson.org / FLOSS/fund
crawlers can verify that this repository belongs to the manifest's entity.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The renderer smoke failed because a fixture's first presence ping posted an empty brief ("Nothing needs you right now.")
in the Chief's chat and answered `open`, so the renderer switched from the bot under test to the Chief.

- The brief is posted only once it has something for the person: something that needs them, an important email or a
  meeting today.
- Only an arrival opens it: the first open of the day or a return after three hours, and only when there is something
  on it. A ping while the person uses the app never takes the screen.
- The default watch is made only once the install can reach connected apps. It is asked at start and every minute,
  since a Cloud's access arrives later. A scripted install without the fake connected-apps service behaves as main
  does, so the tests that counted every routine are main's again.
- The brief exists only while the watch is on, so pausing or deleting it really is the off switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: proactive routines — the Chief keeps an eye on your day
chore: add .well-known/funding-manifest-urls for funding.json provenance
Keeps main's one-line today and sidebar-sections imports and adds
createToolTimingRoute to the usage import; server/index.ts stays at main's 16949 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: usage as traces — see where each job's time and money went
docs/localization-pt-br.md sets the voice (você, no slang, no exclamation
marks), the mechanics (quotes, dates, counts without "(s)") and the
terminology for Brazilian Portuguese. docs/localization.md points to it
from the catalog workflow.

pt-br.json follows the guide:
- 509 existing values are rewritten where they were literal, kept English
  that has a Portuguese word, or disagreed with the glossary;
- the 276 keys the pack was missing are translated, so every English key
  has a pt-BR value;
- source-hashes.json accepts the pack against the current English.

English and the other packs do not change. ApprovalCard's pt-BR test
follows the reviewed "Cancelar turno".
About 120 components and helpers still built English in code, where no
language pack could reach it. They now use catalog keys: 837 new English
keys, each with its pt-BR value accepted in source-hashes.json. The English
a person sees is unchanged.

- intlLocale() gives dates, times and numbers the chosen language's
  format, keeping the system's region when it is the same language; the
  formatters that used the browser default take it.
- main.tsx sets the saved language before the first render, so the pairing
  and sign-in pages are translated too (startupLocaleTag()).
- Mascot body, color and expression names come from the catalog, falling
  back to the built-in name (mascot-names.ts).
- tFromServer() takes params, and keeps the English fallback when one is
  missing so a {placeholder} never reaches the screen.
- The Apps screen's blocked and incomplete lines are translated the same
  way (app-blocked.ts).

ChatView, ComposerAttachments, RoutineCalendarPage, memory.ts, session.ts
and store.tsx also change for server message codes, so their strings come
with the next commit. App, OrganizationSettings and UpdateBanner come with
the desktop commit.
The server still sends the same English. Every new field is optional, so
older clients and older servers keep working, and the client translates
only keys it knows.

- Errors: user-facing refusals answer { error, errorKey, errorParams }
  (shared/server-text.ts, server/user-errors.ts). The client accepts only
  serverError.* keys (src/lib/server-error.ts) in api(), pairing, email
  sign-in and memory; body.error stays English for code that compares it.
- Notifications: the title comes from the kind the server already sends,
  so entries already in the feed are translated too.
- Chat notices (restart, stall, queued follow-up, room hold, answer passed
  on) carry tool.nameCode and nameParams beside the English name, which
  phones, export and the sentinel still read. activityText() translates
  them in the step label, sidebar preview, failed-turn row and status row.
- Attachments: intakeFiles returns problems instead of an English notice,
  and attach-notice.ts words them.
- The default engine names "Claude (API key)" and "ChatGPT plan" are shown
  translated until the person renames them (engine-name.ts).
- A held bot in a room is also released by "retomar".
- Team refusals for a personal move or a member's login are coded, and the
  one-home journal keeps the key so the move line can say why.

46 new English keys with pt-BR. Tests pin each English table to en.json in
both directions. ChatView, ComposerAttachments, RoutineCalendarPage,
memory.ts, session.ts and store.tsx get their t() strings here as well.
Main never learned the language chosen in Settings, so everything outside
the window stayed English.

- The local and My Cloud pages tell main the language
  (desktop-language:set). Main saves it in desktop prefs and accepts only a
  code that has a pack in src/locales; with none saved it uses the system
  locale, then English.
- electron/native-text.cjs reads the native.* keys and place.local from the
  same catalogs, which electron-builder.yml now packs (without
  source-hashes.json). Packs without native.* keys fall back to English.
- A language change rebuilds the menus and relabels both trays. Electron
  labels role items in English, so the app, Edit, View and Window menus are
  written item by item, each keeping its role.
- Update errors and the managed-desktop and organization statuses reach
  the renderer as codes and are translated there. Move to team refusals
  come back coded (moveToTeamCoded), and team roles are translated.
- vocabulary.test.ts also checks that pt-BR copy pointing at a menu or a
  button uses its exact label.

189 new English keys with pt-BR. App, OrganizationSettings and UpdateBanner
get their t() strings here as well, and src/lib/cloud-send.ts its
personal-move refusal.
Missing keys are allowed because the runtime falls back to English, which
also lets a pack drift back to half English unnoticed. Packs listed in
scripts/complete-locales.json (today only pt-br) must now have every
English key, and no value identical to the English unless it is listed
there as rightly staying English (a name, a code, a word both languages
share).

The model draft for pt-br asks for "IA" and the glossary's core terms.
docs/localization.md and the pt-BR guide explain the rule and how to
satisfy it.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Brings the X card up to date with main (proactive brief #3314, usage
traces #3316 and the rest) for 0.1.123.

The one conflict was src/locales/source-hashes.json, merged per key:
main's hash changes kept, and the X card's added keys (apps.x.*,
keys.treg.*, keys.test, apps.connected) appended to each locale.
server/index.ts and the file-size ratchet merged cleanly: index.ts stays
at main's 16949 lines and PluginsPanel.tsx keeps the PR's 1073.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A Team or Business plan runs its team's Cloud: the Admin's session has no
`cloud` for it and lists the team, with its machine, under `teams`. The
sheet read "paid with no machine" as a My Cloud being set up, so a Team
customer who signed in saw "Reserving your machine" forever while the
team's Cloud was up.

- The sheet: the team's Cloud is ready, with Open {team} (opened as the
  switcher opens it, through a new cloud-account:openTeam that takes only
  the team id and reads the team from the verified session); while the
  team's Cloud is set up, its own steps.
- Settings → MausBot Cloud: the team's Cloud under its name with Open
  {team}, and no phone card for a My Cloud that never comes.
- The phone menu no longer says the Cloud "shows here once it's ready".
- The session is read every minute once the team's Cloud is ready, not
  every 15 s for a setup that never happens.
- The one-time move never counts a Team plan as a paid My Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size ratchet holds without a LINES edit. Behaviour is unchanged.
server/index.ts and server/drivers/acp/core.ts end at their base line counts, so the file-size ratchet holds without a LINES edit. Behaviour is unchanged.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The Language row lived only in General, which a paired remote client hides,
and the pick sat in the page's localStorage, which is per origin: this
computer's page on each port, My Cloud, a team's Cloud and a saved server each
had their own, so a pick made on one place never reached another.

- Settings: the Language row also shows in Appearance when General is hidden
  (paired remote client), as the Advanced mode switch already does.
- Desktop: the pick is kept in desktop-prefs.json next to the analytics switch.
  Every page of the window reads it over the preload (desktopLanguage, in the
  remote-safe set), any of them can set it, and main tells the other open
  windows. Main accepts only a locale code or "" (System).
- Renderer: the desktop's pick wins; a pick saved in a page's own storage
  before this is carried into the desktop once. Without the bridge (a browser,
  self-hosted web) it keeps using localStorage and the server's language.
  System stays the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A question card the bot stopped waiting on (timeout, or the turn ended)
dropped out of Needs you as soon as the turn wrote its summary, so the
person never saw it. It now stays until the person answers it, closes it,
or the same request is asked again elsewhere, within the week's window.
Answering it late already reaches the bot as the person's reply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- hasDeepSeekKey parses dsh's credentials YAML (version-1 refs or the flat
  layout dsh migrates) and dotenv lines strictly: an empty, quoted-empty or
  commented value is no key, and a blank value no longer matches the next line.
- The ACP core's stale-process check also compares the catalog against the
  picker id, so a model dsh added after a thread's process started fails and
  respawns instead of silently running the default.
- electron/diagnostics.mjs scrub list gains OMB_DEEPSEEK_API_KEY (parity test).
- Settings copy states dsh's precedence: a key saved inside dsh wins.
- fake-acp-cli accepts a newline-separated model list for wire ids with commas.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
fix(cloud): a Team plan's sign-in sheet opens the team's Cloud instead of waiting for a My Cloud
My Cloud's first open: never looked up before it is ready, and a brand-new Cloud's missing name is waited out
One home: coming home waits seconds, not five minutes, for this computer's own turns
Claude Code sends a tool_progress heartbeat every 30 s while a tool runs,
but the Claude driver dropped it. The turn watchdog only sees events the
driver passes on, so a bot waiting on a long build, command or sub-agent
looked silent and was stopped after 20 minutes while still working.

The driver now passes each heartbeat on as an item.updated tool event,
which resets the stall clock and shows nothing in the chat. A turn with
no heartbeat and no other activity is still stopped after 20 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one-time move's check failed on its first real run with "3 rooms missing",
three passes and every hourly retry after. It counts every non-DM room by id,
but rooms only travel inside a conversation's rows, so three shapes could never
arrive:

- a room nobody wrote in yet (a team setup's, a package's, a calendar call's):
  never listed, never sent; it now goes once as its active thread with no rows,
  which My Cloud (0.1.122 too) already takes as the room to make;
- a room removed on My Cloud after an earlier send: its thread was recorded as
  removed, but the check only ever skipped `room:<id>`, which nothing wrote; a
  room My Cloud had once and lacks now, with nothing here to make it again,
  now counts as removed there;
- a room none of whose bots goes (all deleted here, or removed on My Cloud):
  My Cloud never makes it, and the check now leaves it out with its
  conversations.

A room's name, members and bulletin go clamped to what My Cloud takes, so a
calendar call's long-named room no longer refuses the whole chats request. The
check's log names the missing rooms, conversations and chat paths by id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page from show_html now opens in a pane on the right, the way the Browser
and Computer panels open, and the transcript keeps a compact card for it
(title, version, Open). update_html refreshes the pane in place with a short
"Updated" flash. The last ten versions of a page are kept, and the pane steps
back through them (GET .../app?rev=N; the sweep keeps every kept version).

Publish sends the version on screen through the existing pages publisher, so
the quota, the badge and the chat card are the same as publish_page, and a
page keeps one link however often it is published. Open in new tab opens that
link, or, in a browser, a sandboxed copy. At phone width the pane is a
full-screen sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Point toggle in the pane puts the page into pick mode: hovering outlines
an element and a click picks it. A small script beside the page's helper
describes the pick to the host (tag, role, visible text, a stable selector
and a short HTML snippet, all clipped), and the pane takes it only from the
frame's own window and only while Point is on. The pick waits in the
composer as a chip and goes with the next message as `pointed`.

The server checks each pick names a page in the conversation and hands it to
the bot ahead of the person's words inside a records block, since every field
is the page's own word. The user's line shows "Pointed at ..." under it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot can send `jsx` instead of `html`: one React component file with a
default export. The page shell around it pins React and ReactDOM 19.3.0,
Tailwind's browser build 4.3.3, lucide-react 1.52.0 and ECharts 6.1.0, all
from cdn.jsdelivr.net (which the page's policy already allows) through one
import map, and transpiles the file in the frame with Sucrase 3.35.1. The
shell's own "mausbot" module adds Chart (ECharts in the chat's theme),
useTheme, send, open and setContext. A few import-map entries keep jsDelivr's
on-demand builds on one copy of React and repair a broken build of
sourcemap-codec that Sucrase depends on.

The server runs the same Sucrase transform when the page arrives, so a file
that doesn't read, or imports anything else, comes back to the bot at once
with its line. Errors while the page runs show as a readable overlay, and
the page tells the bot through its context with the person's next message.
Offline, the overlay says the page needs the internet for its building
blocks. The 256 KB limit holds; the tool descriptions grow by 213 bytes,
inside the catalog budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Publish from the preview turns a React page into one static index.html: the
same shell, with the server's Sucrase output in a plain function instead of
the file and the compiler, the chat's theme colours, and a quiet mausbot.
So mausbot.page serves a plain page that needs no eval and loads no
compiler. An HTML page is published with the same theme colours and mausbot.

The end-to-end test runs on the fakes: a scripted bot shows a jsx page (after
one that is refused with its line), the person points at a card and asks for
a change, the bot replaces the page with update_html, and the person
publishes it twice to the same link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bundled data-dashboards skill now also covers pages in general: when to
send jsx and when html, the building blocks a jsx file can import (with the
shell's pinned versions, checked by a test against the shell), and design
rules for spacing, type, colour, light and dark, and phone width. It says
how the preview and pointing work, so the bot changes exactly the part the
person pointed at. It also mounts for a pricing or landing page, a web page,
a mock-up or a prototype.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A new team bot opens its creator's own private chat. "Create bot" on a Team
  Cloud left the creator in the bot's main chat, which every member of the team
  reads, with nothing saying so: the first thing they typed went to everyone.
  It now goes through the same path as a sidebar click (team-chats), so the chat
  that opens is theirs ("Private · admins can see").
- A team bot's shared chats (its main chat, a routine's report) say so in the
  header: "Shared · everyone in Acme can see".
- Settings → MausBot Cloud on a Team Cloud said "Your plan is managed in the
  OpenMausBot app on your computer." and offered nothing else, so there was no
  way from the app to invite people. It now shows "People and plan": invite
  people, change roles and manage the plan on your Plan page, with a link to it
  (`config.team.cloudPage`, the Cloud's own Admin origin + /cloud).
- The Team Cloud's first setup step no longer promises that "Bots on your
  computer come here by themselves": on a team they don't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(team): a new team bot opens your private chat; Team Settings points to People and plan
fix(move): every room that can go reaches My Cloud, and the check counts only those
fix(settings): one app language on this computer, reachable from every place
X (Twitter) is a card in Apps: included with a Cloud plan, or your own treg key
chore(release): bump version to 0.1.123
# Conflicts:
#	electron/environments.cjs
#	electron/home-window.mjs
#	electron/main.mjs
#	electron/one-home.d.mts
#	electron/one-home.mjs
#	electron/one-home.node-test.mjs
#	server/index.ts
#	src/components/DesktopWorkspaceSwitcher.tsx
#	src/locales/en.json
#	src/locales/pt-br.json
#	src/locales/source-hashes.json
#3310 and #3326 grew electron/main.mjs to 3326 lines against its 3316 pin,
which fails the file-size ratchet on main and on every open PR. The two
error-page builders and their escape helper move to electron/error-pages.mjs
unchanged, except that the server-log folder is now passed in. main.mjs is
3291 lines and its pin is lowered to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The three credential env lists and their strippers move from config.ts to
  server/credential-env.ts (re-exported from config.ts), so config.ts shrinks
  under its file-size ratchet instead of growing by one name per engine; the
  Electron parity test reads the list from the new file.
- core.ts, index.ts and store.tsx fold the one added line back onto an
  existing line so their ratchet counts stay put.
- server/runtime/capabilities.ts gets the deepseekAgent row.
- The model-providers page's example of a key that reaches every engine is
  TOGETHER_API_KEY now that DEEPSEEK_API_KEY is filtered.
- zh translations for keys.deepseek.* accepted against the English source.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The ChatView header test mocked useShowThreads as true in Simple mode, which the real hook never returns,
so the header ⋯ now (correctly) listed New thread there and the mock disagreed. The mock now follows the
real hook: Advanced mode and the Threads choice.

The below-menu submenu test now presses (pointerdown) before it clicks, so it fails if a press on the
portaled submenu counts as a press outside the menu and closes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Automations page test and the OMB_UI_E2E journey found a row's button by its sentence, which is now the
line under the name. The page test clicks the name; the journey opens a row through its title button, the
way it already did for the Cloud run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Hermes re-send check added 14 lines to server/drivers/acp/core.ts, which the
file-size ratchet does not allow. The native-log sanitizer for tool updates and
permission requests moves, unchanged, into tool-log.ts; core.ts is now 1,893
lines and its ratchet line goes back down to match (it was raised to 1,926 in
the previous commit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size ratchet lets server/index.ts and src/state/store.tsx only shrink, and this change grew them
by 1 and 6 lines. The reducer now hands every notification-feed action to reduceNotificationFeed through
isNotificationFeedAction in notification-feed.ts instead of a list of cases in store.tsx; the
notifications.read frame bumps the feed's version in its own case; and the task routes' broadcast
dependency shares a line in index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The query tool's pre-allow moves into gateQueryTools (mcp-gate-config.ts): it names
mcp__<server>__query_result for each mount that is still a trimming gate, read from the
gate's own config, so claude.ts stays at 2,160 lines and a harness mount that shadowed a
project server still gets none. The gate tests in mcp-app-observer and mcp-remote-proxy
now expect the gate's query tool in the catalog they list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GET /api/cloud/team/admin (Team Cloud only, signed like /api/cloud/health): connected apps, MCP servers, the team's
  keys (treg, voice) and AI (Anthropic/OpenAI/OpenRouter keys, engines and who they are signed in as). Names, states and
  identities only; never a key, token, header or environment value, nor any part of an MCP address but its host.
- Changes need no new route: the Admin pairs as the admin making them (the member claim gives owner/admin the admin
  scope) and uses the app's own routes, so every check and side effect is the app's.
- OMB_CLOUD_TEAM_LANGUAGE: the team's default language while this server sets none (UI and new bots).
- /?connect=apps|mcp|keys|ai opens those pages, for the Admin's browser sign-in of a team admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(electron): move the error pages out of main.mjs so main passes the size check
A Team Cloud is shared by definition, so it records who changed what even before a User has signed in. The Admin's Team
admin reads it (and /api/usage, /api/usage/traces) with the same admin session as its changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(claude): a bot running a long tool is no longer stopped as stalled after 20 minutes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team Cloud: the Admin's Team admin read, the team's default language, and links to apps, MCP, keys and AI
Fit MCP tool schemas to each provider's limits (fixes Kimi "tool schema is too large")
app_opened fires once per page load, and feature events only when someone
does something, so an install that stays open for days without a message
looks inactive on those days. app_active is sent at most once per local
calendar day per app page: on load, when the page comes into view or is
focused, and when a ten-minute check finds a new day while the page is in
view and focused. Never while hidden, never while analytics is off, and
posthog-js still loads only on demand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(hermes): a reply with reasoning shows once, not twice
Count daily active installs with a once-a-day app_active event
The right-side pane is gone. A bot's page shows inline as one card, at about
520 px and growing to its content up to 560 px. Its header has the version
stepper (‹ v2 ›), Point, Share (publishes to the page's link, then shows it
with Copy and Update link), Open in new tab (the shared link, enabled once
shared) and Full screen (over the whole chat; Esc closes it, after stopping
Point). update_html refreshes the same card with "Updated". Point works
inline and in Full screen, with the same checks: the frame's own window, Point
on, the server's page check and the records block. At phone width the card
is full width and Full screen covers the screen. The pane's strings go, and
Share, Full screen and Close full screen arrive in all 12 packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3335 grew server/index.ts to 16965 lines (pin 16949) and #3328 grew
server/drivers/claude.ts to 2164 (pin 2160), which fails the file-size
ratchet on main and every open PR. adminAuditPlan and its AuditPlan type
move to server/admin-audit-plan.ts unchanged, except that the shared-computers
flag is passed in. projectMcpServers moves to
server/drivers/claude-project-mcp.ts unchanged. index.ts is now 16924 and
claude.ts 2147; their pins and the index route counts are lowered to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/mcp-gate.test.ts
#	server/mcp-gate.ts
After the one-time move, Let my bots use this Mac came on without Apps
and screen, so bots that could use the screen before suddenly couldn't.

- At the move's switch, Apps and screen are lent too when computer
  control already works here (read from its running state, never by
  asking macOS). No popup then.
- Otherwise main shows one popup of its own, once: "Let your bots use
  this Mac?" with Use my Mac and Not now. Use my Mac lends every part and
  walks through macOS's prompts and System Settings panes (Accessibility,
  then Screen Recording), turning Apps and screen on once they work,
  after a restart if Screen Recording needs one. Not now never comes
  back on its own. People who already moved get the same check once.
- A bot that needs the computer gives the person a Use my Mac link
  (openmausbot://use-my-computer) instead of pointing to Settings; in
  the desktop app it opens the same popup, from a click only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(server): move the admin audit plan and project MCP reader out so main passes the size checks
Move to My Cloud: lend apps and screen too, with one Use my Mac popup
Record a turn the stall watchdog stopped as stalled, not as a provider error
Google's remote MCP servers mount in chat: accept the x-google-enum-descriptions annotation
perf(mcp): shape an oversized tool result instead of cutting it blind
fix(connectors): a sign-in card no longer waits forever after its link expires
fix(today): a question nobody answered stays in Needs you after its turn ends
fix(chat): reach every thread from the ⋯ menu when the sidebar hides …
fix(notifications): opening a conversation reads its notifications
Fix/automation names in list
A fresh data folder seeds a bot that is its team's Chief. When a test bot's
turn fails (the "failure" case kills its engine), the server files an
incident to that Chief, which starts a Team incidents turn on the same fake
engine and rewrites the shared turn dump. "does not continue a computer
selection after failure" reads that dump as the bot continuing its
selection. Whether the Chief's turn wrote it before the check is a race:
about 1 in 8 on CI, every run locally.

The other e2e fixtures that read this dump already step the seeded Chief
down after boot; this one now does too, after every start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fixture's VM state file (OMB_TEST_VM_STATE) is read and written by two
processes: the test, and the server through group-local-vm-hooks.mjs, which
re-reads it on every container status, every lease clock read and every
30 ms watchdog check. Both sides wrote it with writeFileSync, which
truncates before it writes, so a reader in the other process could parse
an empty or partial file: desktop-updates.e2e failed on main with
"SyntaxError: Unexpected end of JSON input" in readVm while the hook
recorded the update's actions. Two processes doing this for 2.5 s: 2,724
torn reads of 62,069 with writeFileSync, none of 126,303 with
writeFileAtomic.

The hook's state writes and the tests that rewrite the file while the
server runs (desktop-updates, surface-pins, host-lazy-claim) now use
writeFileAtomic, as group-local-vm and openai-compat-vm already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Chief's assigning turn is still finishing when its assignment starts
running: the fixture engine closes its MCP child and exits after the tool
call. On a slow runner the test's message landed in that gap, so it was
steered into the finishing turn and never parked (receipt.queued undefined).
Wait for the Chief to be idle and waiting for teammates, as the steering
test does, through one shared helper, and hold the teammate on a gate
rather than a 4 s timer so its work is outstanding whatever the runner's
speed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moving the teammate out of the Chief's managed team withholds its
in-flight result at once and resumes the Director with that notice. The
test renamed the team straight after the move, so on some runs the rename
landed while that resume turn was running, and the store refuses to
rename a team whose Chief is working (409 "Stop this team's active work
before renaming the team"). A 250 ms pause between the move and the
rename reproduces it every time. Wait for the resumed turn to have ended
before renaming or deleting the team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lead's failed turn files an incident report with Clive, its Chief.
Clive's fixture plan is one object, so every Clive turn re-ran its
scripted coordinate_bots step: each incident turn sent "Try the task"
again, opening another lead thread that failed and filed another
incident, about one new thread a second for the rest of the test. The
test then read the first thread titled "Try the task", which on some
reads was a new one whose failure had not been reported yet, so its
Send failed notice and handoffId were missing. Waiting 600 ms before the
second read reproduces it.

Clive now answers an incident report with a plain reply, and the lookup
insists on exactly one such thread, so a resend loop fails loudly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows runners this test sometimes ends the teammate's second
execution as provider_error instead of stalled, and the annotation only
showed the outcome. Checking the result text in the same match puts the
error the turn ended with into the failure's diff, so the next one names
its cause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stub recorded a stop when the request arrived, and the test read the
failure log at once, before the client had read the 503 and logged it. It
then slept 1.5 s for a retry that needs the idle window plus three HTTP
round trips. Both raced a slow runner. The test now waits until three stops
and their three log lines exist, and checks the backoff from the stops'
own times: one window before the first retry, two before the second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each home seeds its Chief under a random name from the same list of 64 the
test's own bots are named from. When Acme's Chief drew Scout, Scout arrived
as "Scout (Ada)" and the name test after it failed; when it drew Quill,
the cut-short move counted the Chief as a second Quill. About one run in 32
failed. The test now names both Chiefs before it starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The agents MCP server sent each call's receipt without waiting, while it
returned the answer to the engine. A receipt that reached the harness
after the engine ended its turn was written a batch later, and one after
the turn was booked was dropped, so a trace could miss its last tools
(server/usage-traces.e2e.test.ts on slow runners). The answer now waits
for the receipt's own localhost request, bounded by its 2 s timeout, so
the receipt is part of the turn before the engine can end it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A booked turn's row is appended to the ledger asynchronously, while the
spend cap already counts it from memory. /api/usage, its CSV and the trace
routes read the ledger at once, so right after a turn they could report
the budget spent by two turns beside one turn's row (spend-cap-api on
Windows: turns 1, expected 2). The routes now wait for the queued writes
first, and the spend tests read the usage once instead of polling for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows `child.kill("SIGTERM")` is TerminateProcess on the server
alone: no shutdown code runs, so its fake ACP engines, whose working
folders are task-workspaces inside the temporary home, outlive it until
their stdin closes or their orphan watch fires. The teardown then called
a bare rmSync on the home straight after the server's close, and Windows
refuses to delete a directory that is a live process's cwd:
`EPERM, Permission denied: ...\omb-steer-test-XXXX` (steer-queue.test.ts:863).

The teardown now stops the tree with killCliTree (taskkill /T /F on
Windows, SIGTERM then SIGKILL elsewhere) and waits for it, then deletes
the home with removeTempDir, which retries while Windows releases the
handles. The port comes from freePortBlock instead of an unprobed random
pick, so a leftover listener or a range Windows reserves cannot take it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node's fetch (undici) keeps a socket for 3 s after the server's
`Keep-Alive: timeout=5`, and a request it writes onto one that the
server then closes fails as `TypeError: fetch failed` (ECONNRESET),
with no resend. When the server's event loop stalls past its 5 s idle
deadline right after a response, libuv runs that timer before it reads
the request already waiting on the socket, so the server closes it.
A slow Windows runner stalls this freshly started server like that.

The desktop's Files service counts a fetch TypeError as offline and
stops the pass: phase "offline", no lastSyncedAt, the folder registered
but still "copying" 0/0 (Windows, twice), or a bot's conversation folder
made but report.md never fetched (ENOENT, Windows). In the app the
service uses Electron's session fetch, whose Chromium stack resends a
request that fails on a reused socket, so only this harness stopped.

Every request in the file now asks for `connection: close`. A 6 s stall
injected after the server answers POST /api/sync/folders, or the first
GET of a bot folder's files, reproduces both CI failures 3/3 before
this change and passes 3/3 after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browser driver S4 job on windows-latest failed with "Page.navigate got
no answer within 15000 ms" (connection.ts) in CI runs 39738808582,
39775393174, 39826742494, 39360186978 and 39373488284. Every one was the
first network navigation of a tab on a fresh profile, in the runner's
Google Chrome 156: the identity read of a suite's beforeAll (s4-identity,
passkey-wall), a cold start of the latency test and s4-pages' first page.
The tab stayed on about:blank, and its next navigation went through (in
39360186978 the rest of s4-pages passed on the same tab).

Chrome for Testing on the same runner cancels that navigation instead
(net::ERR_ABORTED), which openOwnPage already opened once more. It now does
the same when Chrome never answers Page.navigate: the page is our own and
has no side effects. A page that answered but was slow to load is not
asked for again. This covers the identity read (server and test
fixtures) and LocalBackend's first navigation on a fresh Windows profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
browser identity (windows-latest) failed in CI run 39720698527 with
"Chrome could not be started (Chrome did not answer on its DevTools pipe
within 60000 ms.)". It was the runner's first start of the Chrome for
Testing 156 agent-browser had just downloaded: Windows scans a new binary
before it runs, and that took over 60 s. The S4 suites already allow two
minutes for a runner's first launch; the launcher's own identity read did
not, and a failed read leaves the server on the engine's own browser
until it restarts.

The identity is read once per binary version, so that read is always the
binary's first start: calibrateIdentity now waits FIRST_START_MS (120 s)
for the pipe unless told otherwise, and the S4 fixtures use the same
constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
browser driver S4 (windows-latest) failed in viewers.e2e "a phone's v1 live
view on real Chrome" with only "open: an event the v1 contract does not
have: waiting" in CI runs 39571862089, 39590962073, 39667322566,
39668873795, 39701415354 and 39820891370. LiveV1 tells the phone it waits
when the browser takes over 5 s to start, which a Windows runner's start
sometimes does, with the same event the agent-browser engine's view
(browser-live.ts) sends while its browser is busy. The golden was recorded
from a session that never waited, so the comparison did not know the event.

Both views now send one BROWSER_WAITING, and the comparison holds a
waiting event to its shape without requiring one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
browser identity (windows-latest) failed 18 of its last 21 failures (144
runs since Oct 20) with "the bot's browser could not open the probe page:
Navigation failed: net::ERR_ABORTED", 11 of them on main (for example CI
runs 39826300834, 39767385537, 39747978818, 39668873795). The Chrome there
is the Chrome for Testing 156 agent-browser installs, and the open is the
bot's first navigation in a browser started for the check on a throwaway
profile: the cancel the server's identity read already absorbs (35 of 150
fresh starts on that runner, none of 90 second starts).

The cause is in Chrome, and the step is the first navigation of a real
browser launch, so it gets one targeted retry: the check opens its own
probe page, which has no side effects, once more after that one cancel and
logs that it did; any other failure, or a second cancel, still fails the
check. The passkey e2e opens its own first page the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
browser identity (windows-latest) failed in CI run 39697841808 with
"EPERM, Permission denied" on the check's own run folder: the bot's Chrome
lets go of its profile a beat after closeBrowserSession returns, and
rmSync's five retries ran out. The check itself had already finished.
withBotBrowser now removes its folders with removeTempDir, which retries
longer and warns instead of throwing; the e2e's afterAll removes the
parent folder again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On windows-latest the runner's Google Chrome now and then never answers a
fresh profile's first navigation (CI runs 39826742494 and 39360186978: the
latency test's cold start and s4-pages' first test, "Page.navigate got no
answer within 15000 ms", with the rest of the suite passing on the same
tab). LocalBackend already takes that navigation itself before a bot's
first page on Windows; the S4 harness's startChrome now does the same, so
each suite's first page is its tab's second navigation: on Windows the
startup tab opens a page of the harness's own (opened once more if Chrome
loses it) and goes back to about:blank. Other platforms start as before.

The latency test's cold starts keep a single navigation, of the test's own
page, opened once more if lost, and the headed identity check opens its
page the same way.

Checked on Chrome for Testing 152 on macOS (headless, mock keychain) with
the harness's first navigation forced on: s4-actions, s4-identity (all but
the windowed check) and s4-pages pass as without it; two s4-pages size
checks fail by 1 px on that old build with and without this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silver (#A8ADB4) joins the bot colours: every skin names it in a tone that
clears 4.5:1 on its thread, each picker swatch shows a plain colour name in
all 12 languages, and bot exports, team manifests, team backups and new-bot
defaults read the one shared colour list, so a silver bot survives an export
and a backup. New bots are still handed the other ten in turn, and a dressed-up
silver bot keeps its own body. The shade and skin tones come from Omkar's #3287.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An empty workspace now seeds its Chief of Staff as MausBot in silver, wearing
the default cursor mascot, instead of a random name in green. Existing
workspaces are untouched, and MausBot renames and recolours like any bot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to #3253 (CodeRabbit). If lending was stopped while the terminal
confirmation was open, accepting it re-lent everything. chooseTerminal now
re-reads the lending state after the dialog, drops the Yes when lending that was
on has since stopped, and lends what is lent now with the terminal added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds an optional one-line description on the group record, separate from
the room name, the long-form bulletin, and any member bot's title
(fixes #3209):

- PATCH /api/groups/:id accepts description (trimmed, <=120 chars,
  clearing via empty or whitespace string)
- Room header shows the description under the room name when present
- Sidebar room rows show the description in place of the preview line
- The room context menu gains "Set description" (rooms, not DMs)
- English source strings added; other locales fall back

No new dependencies; the field is optional on the wire so existing
clients and stored groups.json records are unaffected.
Bots were always listed in creation order and nothing could change it.
PUT /api/bots/order { botIds } now reorders store.bots: a stable partial
reorder (the listed bots take, in the order given, the positions they
already share; the rest stay put), so a phone can reorder one bucket
without knowing the whole fleet. The handler accepts only bots the
caller sees (the GET /api/bots filter), persists through saveBots, and
emits a whole-list change the server broadcasts as { kind: "bots.order",
botIds } (narrowed per member). The desktop store applies that frame to
state.bots, so the sidebar re-renders in the new order; the route is on
the client scope and the companion allowlist so phones can call it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A bot's send_voice_note words were appended to the reply text when the
turn settled, so every client showed the reply twice: once written, once
as the note's caption. The words now live on the audio attachment as
`text` (secret-redacted when stored) and the reply text is left alone; a
turn that only speaks stores an empty-text message with the note.

Room posts with attach_voice_note and webhook room posts carry the same
field on their staged audio.

The model sees exactly what it saw before: contextText() in
delta-context folds the note words after the message text, which is the
one string the old fold stored, and transcriptText() reads through it
for both a message and the message a reply quotes. A voice-only reply
still counts as context.

Desktop: VoiceNoteBubble shows a collapsed "Transcript" disclosure under
the player when the note carries words (chat.voiceNote.transcript).
Older messages with the words already folded into their text render as
before.

The send_voice_note tool description no longer promises the words as a
visible caption; goldens regenerated with UPDATE_AGENTS_CATALOG_GOLDENS=1.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Only the turn.completed fold ever put a note's words into model-facing
text; a post_to_room post (always stamped peerPost) and a webhook post
(webhookPost) never did, and their note is usually the caption itself.
contextText() now folds audio text only for messages without either
marker, so a teammate reading the room sees exactly what it saw before.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
An absent connectorTools record means every connected app keeps every tool.
withServiceGrant() built its record from an empty object, so saving the first
grant produced { gmail: [...] } — a present record that silently gives every
other app no tools. People connected Slack and Gmail, granted one, and lost
the other without touching it.

withServiceGrant() now takes the connected slugs and seeds them at "*" before
applying the change, so restricting one app leaves the rest alone. Callers
that pass no slugs keep the old contract.

The "first grant strips the other apps" warning and its confirmation dialog
are gone: there is nothing left to confirm, and the dialog would now be wrong.

Tests cover the first grant (explicit and wildcard), an existing record, and
turning a service off after seeding.
CodeRabbit review of #3348, both findings verified and fixed:

1. Clearing a description stored undefined, which JSON.stringify omits
   from the PATCH response and broadcasts, so an already-connected client
   shallow-merged its stale value back. The wire now carries an explicit
   description: null when cleared (publicGroupState), WireGroup types it
   as string | null, and the client normalizes null to absent in the
   groupPatched reducer and on hydration.

2. A multiline value passed the length check and violated the one-line
   contract. The PATCH handler now rejects trimmed values containing
   line breaks with 400 "description must be a single line".

Tests extended: multiline 400, cleared -> explicit null on the wire,
re-set, and clear-again.
A requester in `waiting` was resumed only when every awaited child had
settled and been reported, so a child's typed NEEDS INPUT question sat
undelivered in the inbox until the child was answered or its wait on the
person expired, and the requester could not pass the question on.

Now a waiting node goes to `resume` on the next tick when an awaited child
is parked on a question (needs_input without cards) whose inbox item is
still undelivered. The resume turn carries the parked children in
RunInput.asked next to the settled ones, and the coordinator composes it
with each open question. Dispatch marks the item delivered in the same
transaction that starts the turn, so one question resumes the requester
once, across restarts too. Its other children stay awaited and it waits
again after that turn; a later question or every child settling resumes it
again. A node whose question was answered before it could start goes back
to waiting. The interrupting turn leaves the restart note for the final
resume. Card parks, poll roots and the question's expiry are unchanged.
The resume activity line read "Resumed with <teammates> results" and the
person got a "Results in from" notice for a turn that carries a teammate's
open question, which the park already notified. Name the asking teammate
instead and skip the results notice for that turn.
A command's result waited for its output pipes to close. A process the
command left running in the background holds them open, and on Windows a
grandchild whose parent has exited is outside the tree taskkill /T ends, so
the result, the 30-second timeout and Stop lending all waited for that
process: the job's lease heartbeat kept running and the computer stayed
busy. On the Windows CI runner this is the 23-minute hang of
electron/cloud-lending.node-test.mjs after its terminal test failed, which
ran "Broker and Electron unit tests" into the job's time cap (runs
39843594002 and 39869045511).

The result is now what the command wrote by a second after it exited, and a
stopped command ends five seconds after the stop at the latest. Both new
tests hang on the old code until their 20-second timeout and pass in about
a second with the fix.

The cloud-lending terminal test itself failed because it waited 5 seconds
for a command that starts two PowerShells, cold on a fresh runner; it now
waits up to the command's own 30-second deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since the gate shapes oversized results, every trimming gate lists
query_result. The gate tests in mcp-app-observer and mcp-remote-proxy were
updated with it; this e2e still expected the old list and failed on every OS
on main (run 39856578545).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Windows vitest shards took 37 minutes (median, up to 42) and set how long
every PR and every release waited. Most of that time was e2e files that drive
OMB's own logic through a real server and fake engines, the same on every OS.

- Linux and Windows run eight shards each; macOS keeps four (main, merge
  groups and manual runs only). scripts/ci-scope.mjs builds the matrix.
- Windows and macOS set OMB_VITEST_E2E=host: vite.config.ts then leaves out
  every e2e file not in scripts/testing/host-e2e.ts. The list keeps a file on
  every host when a test of it never runs on Linux, or when it depends on
  the OS (PowerShell and process trees, junctions, Windows paths, a running
  process's folder, Chrome behind the egress gate). host-e2e.test.ts fails
  on an e2e file with a Linux-skipped test that is not listed.
- The shard weights are per platform (linux, win32, darwin), so Linux shards
  balance on Linux's own seconds, refreshed from five recent main runs.
- Shard caps: 20 minutes on Linux, 30 elsewhere.

Planned recorded seconds per shard: Linux 776 (was 1551 on Windows weights),
Windows 501 (was 2055), macOS 772 (was 1578).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Windows shard runs duration-sequencer.test.ts with OMB_VITEST_E2E=host,
which changed the log line it expects; the test now sets the variable itself.

"Broker and Electron unit tests" takes about half a minute, but node --test has
no overall deadline: a test file that never exits held Windows shard 1 for 23
minutes, to the job's cap. Five minutes ends such a run with the step named.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the fixture could not delete a folder that the left-behind
process still worked in (EBUSY), so both tests failed in their teardown
although the command itself ended in time. That process now starts in the
OS temp folder and is ended inside the test, before the teardown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A phone paired with "Open on your phone" on a Team Cloud got a working
session, but it was never listed anywhere: on a team, Settings showed
only the code card (no device list), and the only list route,
/api/auth/sessions, is admin-only and returns every session unfiltered.

- SessionRegistry.memberPhones(): the live sessions a member's own code
  opened (memberCheckedAt set), never an Admin-signed app pairing.
- GET /api/team/phones and DELETE /api/team/phones/<id> on a Team Cloud:
  a member lists and removes their own phones; an owner or admin, every
  member's. Client-scoped, with visiblePhones as the gate. Remove revokes
  the session, which also closes its open streams. Off a team: 404.
- TeamPhoneCard lists them under the code as "<device> · <member>", with
  Remove, and refreshes while a code is on screen so a new phone appears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team Cloud: list the phones members paired, with Remove
A cancelled command's result now comes back without waiting for every pipe
to close, so on Windows the fixture's folder can still be the dying shell's
working folder when the teardown runs (EBUSY, 1 run in 20 on the runner).
fs.rm's own retries cover that moment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A requester's question turn runs while its other children are still out. A child
that settled during that turn was not in its input, yet the turn's end saw no
outstanding child and completed the requester, leaving those results undelivered.
A turn now records the settled children its input carried; a child that settles
later keeps the requester waiting, so it resumes once more with every result.

The question a turn passes on is now taken from the undelivered inbox items, so an
answered or continued turn after the question turn does not repeat it. A turn a
restart cuts reruns like any cut turn, and its rerun carries the same questions
once more (kept on the row as `carrying`); nothing after that carries them again.
S2 relied on the person's answer reaching the parked teammate before a scheduler pass could hand the Chief its question. The case now waits for the question turn, asserts it, and checks the final resume carries the result without repeating the question.
chore(release): bump version to 0.1.124
An admin chooses, per app and per MCP server, who connects it: once for the
whole team (the default, and every connection made so far), or each person
their own. A member's own connection reaches only a turn in their private chat
that their own message started: never a group chat, the bot's main chat,
another member's chat, an admin writing in theirs, or a routine.

- Apps: each member gets their own installation on the connected-apps
  service (their own Composio user), mounted as a second bridge, own_apps,
  in their own turns. The relay checks every frame: the team bridge refuses
  a person's app, a member's bridge refuses a team app and anything outside
  their own turn.
- MCP: a person's server never carries the team's credential; a member's
  own turn gets it with their own key or sign-in, pinned to its address.
- No connection card for a person's app: the bot says one plain line with
  the link to the member's team page.
- Members' keys, tokens and sign-ins live in people-connections/, never in
  a backup or a bot box, never in a route's answer. The Admin's signed read
  says who connected, by address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The quiet watcher measured silence from the reused session's last inbound
event, so idle time after the previous turn made a fresh prompt look stalled.

Fixes milind-soni/OpenMausBot#3340
The iOS app shows a bot's role ("Research", "Chief of Staff") beside its
name on the home list; the desktop only had it in a tooltip and for screen
readers. Bot rows in Simple and Advanced mode, comfortable and compact,
now show it on the name line as one muted 13px line: it takes the room the
name leaves, truncates with an ellipsis, and steps aside (still read out)
when less than a word fits. Rows keep their height.

The chat header shows the role beside the bot's pill, giving way to the
name. A Chief whose role only repeats the Chief of Staff badge shows the
badge alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Unified stays the automatic default. Settings → MausBot Cloud, in Advanced mode
only and only for someone with a Cloud of their own the move applies to, gets one
switch, "Keep this computer's bots on this computer", with one plain line.

- Switched on before the move: no move starts, and one under way stops before its
  switch as the Admin's kill switch stops it (a frozen copy lifts as it was). The
  choice is kept on this computer (userData/one-home-keep.json).
- Switched on after the move: a confirmation says what happens, then this
  computer's bots come home while My Cloud goes on (journal phase `keeping`):
  My Cloud's backup is staged here first, so nothing changes anywhere while it is
  taken; the automations this computer brought stop on My Cloud in one request
  (POST /api/cloud-send/automations-off, owner only); this computer opens with
  every automation off and restores the backup (the existing come-home path, from
  a live Cloud with the owner's own code); the app opens again and switches on
  here what was on of them at My Cloud (`back` with `kept`). The window goes back
  to this computer with the switcher. Other computers and their automations on My
  Cloud don't change. Until the automations stop on My Cloud, it can be switched
  back off and home is My Cloud as it was; after that it is refused.
- The Admin is then told once that this computer no longer counts as moved
  (POST /api/cloud/desktop/kept; an Admin without it answers 404 and is asked
  again hourly), so an ended Cloud's things never come home to it.
- Switched off again: the move runs again at the next quiet moment, as anyone's.
  Its switch now reads what is on here at the switch, frozen since the freeze, over
  what each pass recorded, so a routine turned since is switched as it is now.
- A restore now leaves app-event automations off too, like routines, webhooks and
  calls, so a copy of another computer's bot never collects its events twice.
- POST /api/cloud-send/home takes `webhooks`, so only this computer's webhooks
  say they have an address here again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The receipt is now delivered before the call's answer, so the harness
always sees it as the call's second request, with the turn's capability.
CI caught the old single-request expectation (run 39910504970).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh home seeds its Chief under a random name from the same list that
has Scout in it; when it drew Scout, creating the test's Scout was refused
as a duplicate (run 39910504970), about 1 run in 64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3300 gives every trimming MCP gate a read-only query_result tool; this e2e
still expected the board's four tools only, so 0.1.124's CI failed on Ubuntu
and Windows. The expectation now includes query_result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(chat-apps): expect query_result on the board gate (fixes 0.1.124 CI)
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
A Stop during provider setup discards the turn's later events, so a tool
the watchdog saw start can never report its end and kept the turn on the
tool limit. Restart the watch as a silent turn instead; the stall handler,
which runs after the sweep dropped the turn, does not watch it again.
The setup latch dropped the cause, so an orchestrated room turn that
stalled before dispatch ended with the bare outcome "stalled" instead of
the limit that stopped it, unlike a stall after dispatch.
A stall during Local VM readiness, or while a browser or team computer
was being attached, revokes the turn's generation, so setup returned
early before the stall cause became the result text and the
coordination result read "The turn did not run". The stall now formats
its reason when it fires, and the coordination result uses it whether
or not the turn is orchestrated.
CI: eight vitest shards on Linux and Windows, OS-only e2e off Linux
Fix the flaky tests behind main's red CI, at their causes
The test stopped its command 80 ms in. On Windows that can land while the
outer PowerShell is creating the inner one, which taskkill /T cannot see
yet, so the inner shell ran its 20-second sleep in the fixture's folder and
the teardown hit EBUSY even after fs.rm's retries (run 39913877320). Main's
command runner hid that by waiting for the orphan's pipes to close. The test
now waits until the command has written a marker, then stops it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Team" now names the organization a Team Cloud belongs to, so the sidebar's
groups of bots are departments everywhere a person sees them: Move to
department, New department, Create/Rename/Delete department, Department
memory, Share department, Set for all bots in this department, Additional
departments, the New Bot dialog's Department field, the Team map's group
labels and hints, the bot overview, team-setup cards and the errors behind
them. All 12 locales are updated and their source hashes accepted.

Data and API names stay as they are (section, managedSections,
/api/sidebar-sections, team.* keys). "Team map", ready-made templates,
"teammate" and Team Cloud copy keep "team".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Call the sidebar's bot groups departments, not teams
Team Cloud: connections the whole team shares, or each person connects their own
Show each bot's role beside its name, like the iOS app
test(computer sharing): stop the command once it runs, not while PowerShell starts it
Conflict in server/index.ts: main's createTeamConnectionRoutes line kept as is,
with this branch's `automations` for createCloudSendRoutes added back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stop a stalled goal step's cards, and close a stalled turn's open team setup card
Resume a waiting requester once when a teammate it waits on parks a question
fix(acp): start quiet-notice timer at the current prompt
fix(cloud-lending): a Yes to the terminal question never restarts stopped lending
Keep a voice note's words as a collapsed transcript, not repeated reply text
On a Team Cloud the one server-wide config.json profile became "you" for
every member: a second member saw the owner's name and photo, an Admin's
Settings -> Profile overwrote everyone's, and bots named lines after it.

- Per person profile (people/<person>/profile.json beside about.json),
  keyed by the verified claim; the email always comes from the claim.
- GET /api/config and each config frame on a person's stream carry their
  own profile; PUT /api/config's profile (older apps) and PUT /api/me
  (now name, avatarUrl, aboutMe) save only the caller's own.
- Lines, cards and reactions carry the member's name; prompts name the
  person a private chat or routine is for, each group chat line its own
  speaker, and never the server's profile on a team.
- Migration: a server profile with an email moves to the member it names
  (when known at start, or when they sign in), filling only what they
  have not set, then is cleared.
- Settings -> Profile on a team saves through /api/me; another person's
  line shows their name. My Cloud and desktop are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Store the fleet's bot order: PUT /api/bots/order
feat(rooms): per-room short description
feat(engines): DeepSeek Harness (dsh) as a selectable engine
An ask_user question (Claude, Codex, Pi, ACP, chat drivers) and a peer-comms
approval card now wait for the person with no deadline; the turn watchdogs
already pause while a human is asked. Tool permission cards keep their
fifteen-minute fail-safe.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cursor bots turn Fast on only for a -fast model, instead of always billing as Fast
Resolves the conflict with #3356 (Team Cloud per-person vs company
connection scope) in server/composio.ts: connectedServicesInventory()
now takes #3356's optional `as` BrokerAccess (a member's own
installation, never the project key), and connectedServices(cfg, as)
stays a thin wrapper over it, so the incomplete-inventory flag and the
per-person bridges both keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(access): granting one app no longer removes every other app's tools
usage-traces.e2e read the trace before the batched tool spans of the delegated
turn were written (macOS CI saw two of three tools); it now waits for all three.
license-expiry-api computed the expected grace end from the clock a second time,
so a run that crossed midnight UTC expected a day too many; it now derives it
from the expiry date, as the server does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts:
- server/replies.ts: main's transcriptText reads voice-note text
  (contextText); kept it, with this branch's PersonName userName.
- server/index.ts: main added the team connection routes beside
  createMeRoutes; kept them, with this branch's per-member /api/me wiring
  and the start-up server-profile adoption.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team Cloud: each member's own profile, never the server's
The card's Open and its link called openExternalLink, so in the desktop app
every published page left the app for the system browser (desktop:open-external
or window.open, both shell.openExternal). Nothing could show it in the panel.
And the brief's routine row offered only Open, which opens the routine's chat,
whose first line is the routine's prompt.

- usePageOpener (src/lib/page-open.ts): in the desktop app, a mausbot.page link
  opens in the open bot chat's browser panel, in a new tab, when that browser is
  on and installed; otherwise the system browser, and a new tab on the web. It
  never sends a message, starts a turn or opens a chat.
- The card's Open and link, page links in chat text, and widget open_url
  buttons use it.
- The brief's routine row gets Open page when the run published a live page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
show_html and update_html take `path`: a folder in the bot's own working
folder with index.html and its files (scripts, styles, csv or parquet data,
images), within publish's own 5 MB and 200-file caps. The files are stored
with the page's version, and its frame loads them from
/api/page-files/<token>/. The route is read-only and answers ahead of the
sign-in gate:
- one unguessable token per document version, made only when the person
  fetches the document, and forgotten after a day unused;
- only that version's stored files, by exact path, with dot segments and
  slashes refused;
- byte ranges, so DuckDB reads Parquet;
- sandboxed if opened directly.

A folder page's policy is the bot-page policy plus that token's folder (never
the app's whole origin) and DuckDB's extension host for its Parquet reader.

publish_page's result is the same inline card: the published files as its
preview, with the link, Copy, Update link, Unpublish and Full screen. A
folder already shown in the conversation gets its next version and the link
on that same card instead of a second one. Share on a card gives the card the
link the same way, and unpublishing marks the card. Open in new tab opens the
system browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision, reversing T2's rule: `member:<person>` is that person only. The Owner
and every Admin get 404 for another person's private chat wherever a request names it,
never see it in lists, counts, unread marks, search, notifications, traces or the event
stream, cannot write in it, and no bot's tools or another bot carry it to them.

- audience.ts: audienceIncludes no longer gives an admin another person's audience.
- An admin session on a team is a viewer with a person (`{ kind: "all", email }`), so
  VisibleSet filters its conversations like a member's while every bot and room stays
  the admin's (host/visibility-host.ts, moved out of index.ts).
- One request gate (host/team-private.ts): the path, `?threadId=`, and any threadId,
  `...ThreadId` or `threadIds` in the JSON body; a route that would fall back to the
  bot's selected conversation refuses when that one is someone else's.
- Bots carry only the conversations the reader may see; a selected conversation that is
  someone else's shows as the main chat without its messages; unread counts only theirs.
- Admin SSE frames go through the same narrowing, live and replayed.
- Notifications, decisions/activity rows (metadata kept, words dropped), a bot's
  activity, routine runs, synced folders, the team backup, computer help pleas, and a
  deleted private chat's leftovers follow the rule.
- Incidents and escalations from a private chat go to its person, never a Chief's
  thread; work a bot opens from a shared chat is the team's; retry_thread and
  close_thread follow the read rule; team memory is never published from a private chat.
- Leaving: POST /api/cloud/team/member-left (signed by the Admin) ends the person's
  sessions and codes and deletes their private chats, the files only those used, their
  layers, About you, own connections and browsers.
- Labels: "Private · only you" and the sentence, in every locale; docs/team-cloud.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open a published page in the bot's browser panel, never as a chat
ACP v1 lets a tool_call_update follow a tool call that already arrived
completed or failed. Both ends emitted item.completed, and an image in
the later update was shown a second time. The driver now remembers which
tool calls of the turn have ended and ignores another terminal update for
them.

Also drop the turn watchdog comment that restated its repeated-start
guard; a test covers that rule.
Team Cloud: a member's private chat is theirs alone, admins included
Each listed file moves one self-contained piece into a module next to it,
unchanged, and its ratchet number drops to the new count:

- server/index.ts: static bundle serving -> static-files.ts; the
  Settings CLI test -> cli-probe.ts
- src/state/store.tsx: queued-message receipts -> state/queue-receipts.ts
- server/store.ts: redactBotAuthored -> message-redaction.ts
- src/components/Sidebar.tsx: NewRoomPanel -> SidebarNewRoomPanel.tsx,
  SectionPicker -> SidebarSectionPicker.tsx
- server/drivers/acp/core.ts: configOptions readers -> acp/config-options.ts,
  version probe helpers -> acp/version-probe.ts
- src/components/GroupView.tsx: room working folder -> RoomWorkingFolder.tsx
- server/composio.ts: managed broker access -> composio-broker-access.ts
- src/components/PluginsPanel.tsx: ServiceIcon -> ServiceIcon.tsx
- shared/wire.ts (new over 1,000): Live call types -> live-call-wire.ts

index-route-ratchet drops to 95: serveStatic's path === "/" left index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After #3368 landed, server/index.ts was 10 lines under its limit and
src/components/ChatView.tsx was over. index.ts: generateThreadTitle ->
thread-title-generate.ts, editionForSettings -> enterprise.ts.
ChatView.tsx: EmptyChat -> ChatEmptyState.tsx, PinnedBanner ->
ChatPinnedBanner.tsx (chat-dir-auto now checks the pinned banner there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in server/index.ts: main's route line kept as is, with this branch's
`automations` for createCloudSendRoutes added back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mascot vanished whenever the bot said a sentence in the middle of a
turn ("I'll build the dashboard now."): the tail rule took any settled
bot text for the turn's last reply. Claude Code only prints a tool call
once the model has written all of its input, so a big file write left
the chat with no mascot and no timer for minutes.

- The mascot and its line stay until the turn really ends (its
  turn.completed, busy off, or waiting on the person); never a timer.
- A live status line: "Working · 1m 12s · Writing index.html · 14 KB",
  fed by the engines' own reports: Claude's streamed tool input
  (stream_event content_block_start / input_json_delta), Codex's
  item/fileChange/patchUpdated, ACP tool_call / tool_call_update, plus
  reasoning and reply deltas. With nothing reported it is the timer alone.
- turn.progress is live only: the bus coalesces it (a frame only when the
  shown text changes, at most one per 400 ms per thread) and never writes
  it to the event log; nothing reaches the message log or server/index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep this computer's bots on this computer: an Advanced escape hatch from the move
main: move code out of six files over their size limits (unblocks 0.1.125)
A new install's Chief is MausBot, in silver
When the desktop app opens a team, the name and picture of this
computer's Settings -> Profile fill what the person's team profile lacks,
over their own team session: the picture is uploaded as their own
attachment, then PUT /api/me { name?, avatarUrl?, fillEmpty: true }.

- The team server fills only empty fields, each once (profile.json keeps
  `seeded`), never over what they set and never again after they clear
  it there; GET /api/me lists the seeded fields.
- Only the name and a stored PNG/JPEG/GIF/WebP picture of at most 10 MB
  go up; never the address (the sign-in claim's) or About me.
- A later desktop change is not carried over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prototype: every bot page inline in the chat — folders, published pages, point at what to change
Team Cloud: a member's team profile starts from their desktop name and picture
The first launch after this update asks "Get MausBot updates?" once, in a small
centred dialog: "Yes, send me updates" or "No thanks", nothing pre-ticked. It
waits for onboarding, the tour, Settings and the MausBot Cloud Pro popup, and
comes right after that popup closes, never with it.

- Signed in to MausBot Cloud: one tap, recorded on the account
  (GET/POST /api/cloud/desktop/updates-consent with the omc_ token).
- Not signed in: an optional "Your email" field. Yes with an email goes to the
  Admin's no-account endpoint (POST /api/updates-consent with the install id
  and the text version), which returns a receipt kept here so this computer can
  withdraw it later. Yes with no email waits for a sign-in.
- The answer is saved in desktop-prefs.json first (with a random install id),
  so it is never asked twice on this computer, Admin or no Admin. A 404, 503 or
  network failure leaves it pending; it is sent on the next launch, sign-in or
  Settings look. An account with no answer gets this computer's answer carried
  over on sign-in; an account that already answered keeps its own.
- Settings → General: "Product updates by email" on/off. Off withdraws (with the
  receipt when signed out); on is one tap signed in, and opens the question with
  the email field signed out.
- Only this computer's page and My Cloud's own page may ask or answer (main
  checks the sender); never a saved server's page, a remote client or a
  branded build. electron/main.mjs stays at its pinned size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test: settle the usage trace on the last tool span, and date the license grace from its expiry
Conflict: the file-size ratchet, where main lowered most pins. Took
main's pins and lowered ChatView's to 1371, its size after this branch.
The status-line wiring auto-merged into ChatView, GroupView, the drivers,
the bus and the locale packs; the packs are re-accepted. The progress bus
tests now wait for the event log to finish before the next test clears it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ask every user once for product-update emails (GDPR consent), kept per install
Keep the mascot for the whole turn and show what the bot is doing
On a Team Cloud every engine a turn starts runs with HOME set to its
conversation's audience home (engine-homes/team, room-<hash>,
member-<hash>), and the bot box binds that home in place of the server's
HOME. The team's engine sign-ins are copied in and, in a box, the team's
own file is bound over the copy so refreshes land for everyone.

The first turn after start moves the transcripts the engines kept in the
server's HOME to the home of the conversation that resumes them; the
rest goes to a held folder no route or box reaches, deleted after 30
days. A member who leaves takes their engine home with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rename changed 'Share the … team', '· shared team', '· no team',
'Close team dialog', 'this team shares' and 'Share with team' to department.
The renderer smoke e2e tests (presets-ui, team-share-ui, team-canvas-ui,
team-computers-ui) still looked for the old words and failed on every run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person's own Cloudflare Workers AI token (with its account ID) now
answers decisions with Clef-flash, or Clef for a hard case. Decisions
take the first of: own Jev key, own Workers AI key, Cloud's included
relay (only for requests it accepts), the OpenRouter key, nothing.

The relay takes two more seams, each with a strict shape check:
inboxTriage (one email: important, needs a reply, or skip) and
botDecide (a bot's own question). Requests through the included
token name their seam in an x-omb-seam header. The checks and the
wire bodies are in server/decider/fixtures/relay-seams.json, shared
with Cloud's Admin.

The token is write-only like every key: OMB_WORKERS_AI_TOKEN, the
desktop credential store, and never handed to an engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
test(ui): renderer smokes expect the Departments wording (unblocks 0.1.125 CI)
server/extractor mirrors server/decider: a field schema in (string,
number, date, boolean, enum), typed values out, null where the input
does not say. Whose key: own Workers AI token, then Cloud's included
relay (POST <relay>/v1/extract, { seam, fields, input } ->
{ values, model }), then the OpenRouter LLM fallback, then nothing.
Jev only decides.

Clairic has no boolean or enum type, so on the person's own account
string/number/date fields go to Clairic and boolean/enum fields to
Clef-flash as yes/no and choice questions over the same input.

Same safety rules as the decider: https only (or http to this
machine), no redirects with a key, error bodies never read, and a
value of the wrong type makes the whole answer malformed. The
contract and its caps are in server/extractor/fixtures/, shared with
Cloud's Admin. Settings' Test also says whether extraction works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every place gets MausBot once: a new install's first bot (its Chief of Staff
too), and an install that already has bots a MausBot beside them, its Chief
untouched. A new install's MausBot from before is adopted (silver turns
chrome), and a ledger stops one ever being made twice. On a Team Cloud each
member gets their own, private to them, and the team none of its own.

- Never deleted or archived: the server refuses both with a plain message.
  Its menu and bot settings offer Hide, which turns off the new Settings →
  General switch "Show MausBot in the sidebar".
- Chief-level powers through one shared predicate (chiefLevel): Chief tools,
  team setup, retries, rooms and the level that flows down. It never changes
  who the Chief is, and the brief, incidents and routing stay with the Chief.
  A Team User's MausBot holds none.
- Moves carry the mark, the switch and the welcome: one MausBot on My Cloud
  after a move (its unused starter is archived), and on this computer after
  coming home.
- First message: a short intro in the person's language with example asks,
  and on a new install the setup still to do (AI, bots, apps, phone, Cloud).
  It is never a Needs-you item.
- First launch after onboarding and its tour: a popup to rename, recolour,
  pick a body or generate a picture, then Add (pinned, flies into the
  sidebar) or Not now (switch off). Shown once per person and place.
- Chrome, a new bot colour: polished chrome-steel finish on the mascot and
  its swatch, a readable name tone in every skin, in all 12 languages. New
  bots never draw it in turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two small tools in the agents catalog:
- decide: typed questions about some state (choice, yes/no, score),
  answered with probabilities. It goes to the relay as botDecide and
  asks Clef rather than Clef-flash, since a bot's question is a hard
  case.
- extract: a field schema plus text, or a text or image file from the
  bot's own working folder (located by the same rules as a published
  page), answered with typed values.

Both answer "not set up" plainly, with where to add a key. The models
can't act, so the tools are on every engine.

The catalog budget holds without raising a baseline: the two tools
add 1,187 bytes, and shorter wording of the trigger tools' shared
schedule fields (counted twice, once in each trigger tool) takes back
1,045, so each profile grows 142 bytes (+0.23%).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add: the sidebar rows glide down (measured before and after, played back as
  transforms) while MausBot's avatar travels from the welcome into the new top
  slot and its row fades in as it lands; the welcome recedes. Transform and
  opacity only, nothing left behind that catches a click; reduced motion only
  fades the row in; a hidden sidebar just adds it. MausBot stays out of the
  list while its welcome is open.
- The welcome opens on MausBot's picture alone. The picture (a real button
  with an edit badge, files can be dropped on it) reveals the customise
  panel: name first, then colour, look, Upload a picture · Generate a picture
  with AI, and Remove picture. The title and Add follow the name; an empty
  name is MausBot. Add saves it all as the bot's own edit screen would.
- A place with no Chief of Staff gets MausBot as its Chief when it gets or
  adopts its MausBot, so the daily brief has someone to come from; a place
  with a Chief keeps it. Hidden from the sidebar, it stays the Chief.
- My Cloud's own starter is found by id after a move, never by its name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3367 renamed place.view.autoTeam.line in en.json but not its mirror in
shared/place-view.ts, so shared/place-view.test.ts ("mirrors en.json exactly")
fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome is now a steel material: a steel tone lit from the upper left and
darker toward the edges, fine brushed grain lines (an SVG noise filter,
stretched along the lines), a soft broad sheen and a thin top rim. The grain
shows on large avatars and fades out by sidebar size, where it would only be
noise, so small avatars carry no filter. The swatch wears the same steel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a decision model set up, the "Keep an eye on my day" routine's
new mail is sorted with no AI turn: Clairic reads each email (sender,
the ask, any deadline or amount, whether it waits on a reply, what
kind of mail it is) and Clef decides important, needs a reply, or
skip, hearing the senders the person recently dismissed. Only
important and needs-a-reply mail becomes brief rows, with a why built
in plain code from what was read.

The helper models can't act, so this works whatever engine the Chief
uses, which lifts the Claude-only limit on triage. If they fail, the
mail waits for the next check. A full AI turn now runs only for
meeting prep, or when the person presses Draft a reply. Without a
helper model nothing changes.

Email text reaches the models only cleaned, with the same sanitiser
as records blocks, and every request fits Cloud's relay shape checks.

Which bot is proactive now goes through one function,
proactiveOwner(store), which returns the main Chief today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- team own chat: a member's private chat is theirs alone, so an Admin is
  never listed one; the Admin still gets and reopens their own, which only
  they see.
- updater: the sign-in's onState now also tells the product-update consent
  about the account, so the extracted code's context names it.
- folder pages: expect the canonical path the code reads, from the native
  realpath; on Windows the JS one keeps the temp folder's 8.3 short name
  (RUNNER~1), so the expected folder never matched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Any src/assets/mausbot-steel/<body>-<px>.webp is picked up as that body's
steel: square, framing the mascot's whole SVG viewBox, drawn under the SVG
face, chosen by size times the device's pixel density. Bodies without images,
and an image that fails to load, keep the drawn steel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the relay built against these fixtures (openmaus-cloud #161):
- a 413 is now its own failure, too_large: said plainly, never
  retried. Inbox triage skips an email the relay finds too large
  instead of asking again every check.
- /v1/extract gets the x-omb-seam header too, as /v1/systemone does;
  the seam stays in the body as well.
The fixtures' notes say both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The suggestion. On a desktop or free install with Gmail connected and
no helper model, the proactive bot posts ONE short message in its
chat: "Want me to sort your email for free? Add a Cloudflare Workers
AI key (free tier) or a Jev key." Add key opens Settings → Decision
and extraction on the device; Not now is kept, and the card comes back
only if the person connects another inbox, at most once more. A card
left unanswered is never posted again. Never on Cloud, a hosted team
workspace or a Team Cloud. It's a suggestion, not an approval card:
the device draws it in the person's language, and other surfaces see
its English text.

Settings. The Decision model page becomes "Decision and extraction",
under Advanced only (the suggestion's Add key still opens it). It
gets a status line ("Decisions: your Cloudflare key · Extraction:
your Cloudflare key") and a Cloudflare Workers AI card: account ID
plus a write-only token, Save and Test. Test also says whether
extraction works. The Jev / OpenRouter picker stays as "Another key".

All new and changed words are in the 12 locale packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(place view): the department desktop line's shared copy matches en.json (main is red)
- The bot panel (Simple mode) gets a Conversations card at the top of the Bot
  tab: each conversation's title, last line, time, unread dot, pin and a live
  "Working · 1m 12s" line, with search, + New conversation, the sidebar's own
  thread menu (rename, pin, move, delete), four shown and "Show N more".
  Picking one opens it; at phone width the panel, a full-screen sheet there,
  also closes.
- A small round Call button sits next to the bot's name in the panel header.
  It is the composer's call button in a new "panel" placement, and leaves the
  composer's + menu to the composer's button so one choice starts one call.
- The chat header reads "Bot / Conversation ▾"; the title opens the panel at
  Conversations, with a dot when another conversation needs a look. It
  replaces Simple mode's other-activity picker and "Back to your chat".
- Simple mode's sidebar lists bots only, keeping their dots; Advanced mode's
  threads are unchanged.
- Reused: the sidebar's thread row (a taller panel layout), its store actions
  (now one shared helper), TaskPicker's search, the sidebar's last-line text,
  the working timer and the panel-link mechanism (now with a card anchor).
- Strings in all 12 language packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome on the cursor body, MausBot's default, is a finished picture of
MausBot, face included, drawn over the whole avatar frame in place of the
body and the face and moved with them. Every other shape, colour or
uploaded picture customises as for any bot; chrome on another body is a
plain silver gradient. The brushed-steel finish, its grain and the
overBody hook are gone, and the chrome swatch is smooth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's conversations live in its panel, with a small round Call button by its name
test: make main CI green for 0.1.125 (team own chat, updater, Windows folder pages)
Chrome's name colour in rooms is recomputed from its base for every skin, so it clears 4.5:1 again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MausBot for everyone: a chrome helper with a Chief's tools, never deleted
The one-time Meet MausBot popup covered the app in every control-omb ui
launch, so clicks in unrelated flows landed on its backdrop. The fixture now
marks the place's MausBot welcomed before the preview opens; MausBot's own
tests still cover the popup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Renderer smoke: MausBot's welcome is already seen in the UI fixture
chore(release): bump version to 0.1.125
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Server lines people read carry a code with params and keep the English fallback:
  - Resumo cards and the sidebar preview;
  - the usage-limit failure and its routine lines;
  - routine check results and recovery lines;
  - webhook notices;
  - the bot overview;
  - refusals (bot messages, team phone, routine input).
  Codes resolve only from allowlisted keys. Their params pass the same secret redaction as the English text.
- Dates, times, durations and USD amounts use Intl in the app language. English output stays the same in every region.
- Cron labels, Activity and trace labels, plurals, the onboarding mocks and the inspector tabs are translated. The partial-translation note hides once a pack is complete.
- The file-size and index-route ratchets pass again. Our wiring moved into helpers and modules (email sign-in routes, desktop text, request formats). The limits only went down.
- The glossary adds Resumo (brief) and rastreamento (trace), and several pt-BR values are shorter or fixed.
A team bot now has an owner: `reportsTo`, else `createdBy` (stamped when a
member creates or moves in a bot; a Chief's specialists get the Chief's
owner). Its questions, approvals, sign-ins, failures and routine results reach
only that person's Needs you, notifications and brief. In a member's private
chat they stay that member's alone. Anyone can still chat with any shared bot.

- Sidebar: the owner's face ends each team bot's row ("Reports to Bob:
  questions and reports go to Bob"), clicking it opens the owner picker for
  an Admin or the current owner; "Reports to Bob…" in the bot menu; "Set
  owner for all bots…" on a department and "→ Bob" beside it; the selected
  bot's ⋯ stays visible; a "Needs you" row lists what bots ask of you.
- Open cards in a shared chat say "Asking Bob". New Bot in a team says who
  it is shared with, links to your own place, and asks who it reports to.
- One Chief of Staff per person: an owned Chief coordinates exactly the bots
  its person owns, in every department (roster, coordination, incidents and
  escalations), and keeps that person's daily brief in their private chat.
- Routes: GET /api/team/people, PUT /api/bots/:id/reports-to,
  PUT /api/team/reports-to, GET /api/needs-you; presence counts members on a
  team. Desktop and My Cloud are unchanged.

The team wiring lives in server/host/team-owners.ts, the department picker
moves to SidebarSectionPicker.tsx and the card requester to
server/host/thread-person.ts, so index.ts, store.ts, Sidebar.tsx and
store.tsx all shrink under their size pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rebased onto the private-chat, per-member profile and member-left work:
- the Admin's member-left request also marks the person gone in
  team-people.json: the picker stops offering them and their bots' asks go to
  the Admins until someone else owns them (pairing again brings them back);
- the people list names each member by their own profile name;
- Chief notices keep main's private-chat rule where no owner routing applies;
- the notification feed applies both main's visibility filter and routing;
- the department menu moves to SidebarTeamMenu.tsx and the owner menu helpers
  to TeamOwner.tsx, so Sidebar.tsx stays under its pin; pins match the files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop's copy of the workspace credential list gains
OMB_WORKERS_AI_TOKEN, as server/credential-env.ts has it, so a
diagnostics bundle never carries it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Team Cloud the Team map gains a second view beside Departments: one
column per person, with their Chief of Staff and the bots that report to
them grouped by department, plus a column for bots nobody owns yet.
Dragging a bot onto a person, or its Reports to… button, sets the same
`reportsTo` the sidebar's face edits; a member can move only the bots that
report to them, an Admin any. A department's menu gains "See who reports
to whom", which opens the map in this view.

The department menu items move to SidebarTeamMenu.tsx, so Sidebar.tsx
shrinks under its size pin. The owner picker's host can now be mounted
more than once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Advanced rail's label and the page's search words follow the
rename: extraction, cloudflare and workers ai find it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Register a reviewed Polish catalog and record its English source hashes.
Forty-four English strings added after the pack was prepared stay
untranslated and fall back to English.

Co-authored-by: ozz1ee <ozz1ee-dev@users.noreply.github.com>
The held-note copy test requires that sentence to contain the mode label
exactly, including its capital letter.
Keep the signed-in sidebar identity fix and the two remaining test
stability changes. Use upstream's current browser retry, coordinated-turn,
boat backoff, and seeded-chief fixtures instead of duplicate changes.
On Windows the place's message database is still open from the first store, so removing the whole data folder failed with EPERM on every run. The test now removes only the files that make a place new (its bots and its MausBot record).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	electron/cloud-send.node-test.mjs
#	electron/desktop-prefs.d.mts
#	electron/desktop-prefs.mjs
#	electron/desktop-prefs.node-test.mjs
#	electron/home-window.d.mts
#	electron/home-window.mjs
#	electron/lending-dialogs.mjs
#	electron/lending-dialogs.node-test.mjs
#	electron/main.mjs
#	electron/preload.cjs
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/bot-overview.test.ts
#	server/drivers/engine-errors.test.ts
#	server/drivers/engine-errors.ts
#	server/host/brief-cards.ts
#	server/host/brief.ts
#	server/index.ts
#	server/routes/bot-settings.ts
#	server/routes/tasks.ts
#	server/routes/team-phone.ts
#	server/store.ts
#	shared/runtime-events.ts
#	shared/wire.ts
#	src/components/BotProfileAvatarCard.tsx
#	src/components/ChatView.tsx
#	src/components/HomeScreen.test.ts
#	src/components/HomeScreen.tsx
#	src/components/ProfileSettings.tsx
#	src/components/app/app-api.ts
#	src/components/bot-panel/AvatarEditorCard.tsx
#	src/lib/sidebar-layout.ts
#	src/locales/en.json
#	src/locales/pt-br.json
#	src/locales/source-hashes.json
#	src/types/ogb.d.ts
MausBot move test: reset a place's bot files, not its open data folder
Team Cloud: every bot reports to someone, and each person can have their own Chief
Team map: Who reports to whom, with drag to change a bot's owner
Team Cloud: each audience's engines get their own home
Conflicts: server/index.ts (the routes line: main's team-owner wiring plus the extractor and the suggestion route), src/state/store.tsx (Message picks both helperIntro and setupSuggestion), and the locale packs (main's packs with this branch's keys re-added and accepted).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New server codes keep the English fallback:
  - the "Resumed with…" chat lines;
  - the Resumo "Open page" button;
  - phone and page refusals;
  - the department refusals a screen shows (sidebar sections, team context, team memory, package sharing, quick bot creation).
- Store refusals that come back as text map to codes at the route, by exact match.
- Preload refusals people see are translated where they are shown.
- These desktop texts follow the app language:
  - the "Use my Mac" offer;
  - the Cloud not-ready and keep-here errors;
  - the native "Couldn't start the bot server" page.
- userError and userErrorFields redact every param before building the English text and errorParams, so no param skips the secret redaction.
Helper models: decide and extract (Clef, Clairic), and an inbox that sorts itself on every engine
Codex runs inside the bot box, where the server's data folder is an empty
tmpfs, so a localImage path under attachments/ could never be opened and
images sent to a Codex bot came back as "file not found". The server now
reads each image and sends an inline `image` input with a data URL
(verified against codex-cli 0.160.1 and 0.164.0: accepted on turn/start and
forwarded byte-exact as input_image). Native logs scrub inline image bytes in
both directions, since Codex echoes the input back in userMessage items.

Quick routing could move a short message to a model the account cannot use
(gpt-5.4-mini on a ChatGPT-account Codex answers 400). Codex now reports that
its ChatGPT sign-in (own login or ChatGPT plan) cannot use quick models, so
those turns stay on the bot's own model. For every engine, a quick turn the
provider refuses with a model error runs again on the bot's own model under
the same turn id, so the conversation sees one reply; the quick-model note is
cleared and the refused model is remembered per engine instance
(refused-quick-models.json) and skipped from then on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since each audience's engines got a home of their own on a Team Cloud, the
engine's HOME is no longer the fixture's folder, so the test never found the
dump it polls for and every turn stayed held. The routing is unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The Settings Test button checks extraction beside decisions since the
helper models landed, so the stub relay now also gets a
{ seam, fields, input } body at /v1/extract. The fixture only knew
/v1/systemone and ran its decision check on that body, where
Buffer.byteLength(JSON.stringify(undefined)) threw inside the HTTP
handler: an uncaught exception that failed the ubuntu shard while all
six tests passed.

The relay side now serves the extraction key check (pinned as literals,
like the decision one), records it as an "extract" request, and the
expectations count it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
test(team owners): read the fake engine's files from the fixture folder (main is red)
Drafted with scripts/generate-locale.mjs; i18n:check passes (ja 6236/6236).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Cloud home image started the 12 MB server bundle with no compile cache
(the desktop got one in #2402). On a Pro-size Fly machine a cold wake spent
about 2 s of its ~5.5 s evaluating the bundle; with NODE_COMPILE_CACHE on the
volume that is ~1.1 s, and the server listens about 1 s sooner (measured on a
throwaway machine, Oct 23 2026). Node creates the folder as `maus`, keys the
entries by its own version and each file's hash, and ignores a stale entry.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
test(decider): the included-relay fixture serves /v1/extract too (main green)
Fix Codex images in the bot box and quick-model refusals
A Fly volume mounts on one machine at a time, and every home the Admin
makes on a kept volume (a resume, a restore, an export-only start) is a
new machine with a new hostname. A lease a previous machine left on the
volume (one destroyed mid-boot leaves it) is therefore always stale on a
Cloud home, but the server treated it as another computer's and exited 1
on every start.

The launcher now confirms the volume is this Cloud's, then removes the
lease, delegated-child lease and recovery records held by another
machine, logging which machine held them, before the server starts. A
lease from this machine is left as it was: a live owner still refuses a
second instance and a dead one is recovered as before. Desktop installs
are unchanged; only the Cloud image's launcher calls the new function.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Cloud home: clear the data-directory lease the previous machine left on its volume
# Conflicts:
#	server/cloud-home-start.ts
The launcher joins the data dir with POSIX separators because the image
runs on Linux; the test compared that to a platform join, which on
Windows differs by the last separator alone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- Team and preset sharing refusals the dialogs show carry a code and keep the English fallback:
  - a bot over the skill limit;
  - a malformed version, one neutral key for both exporters;
  - empty New bot defaults;
  - a preset too large to share.
- The team-share e2e pins the refusal's errorKey and errorParams.
- The direct-coordination UI e2e waits for Pepper's composer before it creates Engineer, so the app can't select Engineer first.
Cloud home test: compare the data dir by its place under the home, not by separator
Cloud home: keep the compiled server bundle on the volume, so a cold wake skips a second compile
A check routine (the Chief's "Keep an eye on my day") reported only its
meeting-prep wakeAt to the Cloud's sleep check, so a home nobody touched
left mail unread until Admin's 6 h safety wake. On the Cloud, nextDueOf now
also counts an hour after the last check (CHECK_WAKE_MS), never before the
routine's next check; a check that ran without a checked time (trouble, or
a run it queued) counts from now so it can never hold the home awake. The
desktop's wakeHoldOf is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud: wake a sleeping home for its checks at least hourly
On a Cloud home the box empties the data folder, and the engines the app
installs there (the npm prefix tools/npm, Antigravity's runtime) went with
it: every boxed turn of OpenCode, Cline, DeepSeek, MiniMax, Pi, an updated
Claude Code or Codex, or Antigravity failed with exit 127 ("exec: ...: not
found") while Settings, outside the box, still said Ready.

- The box binds those engine folders back read-only at their own paths,
  whole (npm's bin entries are relative links into the prefix), after every
  read-write line so no turn can make another conversation's engine
  writable. The rest of tools/ (Chrome, the browser engine) stays hidden,
  and Chrome's own box gets none of it.
- The engine install layout lives in one leaf module (engine-roots.ts) that
  the installer, the Antigravity runtime and the box all read.
- The box self-check installs a fixture engine laid out like npm's and
  checks it runs by name from PATH (engine-runs) and cannot be written
  (engine-read-only); the new engines-rw mutation proves the second one.
- Antigravity also gets what its runtime is started with: its profile
  folder (GEMINI_HOME, read-write, that account's only), and the
  ANTIGRAVITY_/AGY_ and BROWSER names in the box's environment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(bot-box): engines installed on a Cloud run inside the bot box
Memory upkeep and skill review run a one-shot `codex exec` on a small model
(GPT-6 Luna, else gpt-5.4-mini). A ChatGPT sign-in (own login or ChatGPT plan)
answers 400 for gpt-5.4-mini, so those jobs failed silently.

- Codex reuses its quick-model check: a sign-in that cannot use small models
  writes background text on the bot's own model, or the account's default.
- Side jobs hand the bot's own engine the bot's model and the small models
  that engine instance refused (refused-quick-models.json), read at each call.
- A small model is never picked once refused there; if the provider still
  refuses it, the call runs once more on the bot's own model and the refusal
  is remembered for quick turns and background calls alike.
- API-key and Company sign-ins keep the small model as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep Codex background text off small models a ChatGPT account refuses
i18n(ja): translate the 373 missing strings
fix(cards): question and peer-approval cards no longer expire
feat(i18n): add Polish locale
A provider answering HTTP 413 (or "request entity too large", "payload too
large", "request too large") now gets one smaller copy of the request: older
screenshots lose their bytes for a short note, long tool output from earlier
in the turn is shortened, then the oldest earlier messages go, until the
messages are about half the refused size. The system prompt and the person's
message, attachments included, never change. If nothing can shrink or the
smaller copy is refused too, the turn fails with one plain line, worded again
in the reader's language: "This message is too large for <model>. Start a new
chat or pick a model that accepts more." Sizes and counts are logged, never
content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main's locale check fails on pl.json since the Decision and extraction
strings changed in English; these are the current English, translated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main failed the ratchet after the question-card change wrapped Pi's ask timeout in a condition. The timeout's emit goes on one line, which keeps pi.ts below its pin; two drivers that shrank get their numbers lowered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resend once smaller when an OpenAI-compatible provider refuses a turn as too large (413)
Size ratchet: pi.ts back under its pin; claude.ts and codex.ts pins lowered
A woken Cloud probed every engine's CLI at once before its first turn, beside
the later-start model-list refreshes and the built-in browser's version check,
and each of those binaries is read from a cold disk. On a Pro-size Fly machine
Claude's `--version` then ran past its 8 s limit, so Claude was reported
unavailable after every wake and the first turn waited ~8 s after the server
listened.

On a start with an existing store, engines that run a CLI are now probed one
at a time, the one most bots use first, and engines without a CLI at once. The
model-list refreshes and the browser's warm-up start once that first engine has
answered (or after 5 s). An engine the last run saw available that a cold probe
finds unavailable is probed once more, warm, before the read ends. A turn waits
only for its own engine's probe, which joins the read in flight, and a send to
a thread with a model of its own waits for that engine and the bot's before the
thread may give way. Routines and room handoffs still wait for the whole read.

The status each probe found is recorded in providers/engine-status.json: until
the read reaches an engine, the engine list and the Cloud health report answer
it from the last run's status, and nothing chooses an engine for a bot from that
older status (new-bot defaults and trial-credit moves wait for the read to end).
When the read finds an engine changed since the last run, clients are told to
read the engine list again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
People close to a limit of their MausBot Cloud plan see it before they hit it, and can move up in one tap and a confirm.

- Sidebar card, above the person's name (not in the icon rail), only while an allowance is at 80% or more: the one or
  two fullest, used of included with a bar (amber from 80%, red at 100%), when they start over, Upgrade to the next
  plan, See all usage, and Hide for now (for this month at this level: it comes back at 100%, and next month). Never in a
  browser, without a paid plan, or on a Team Cloud unless the plan is that team's.
- Settings → General → MausBot Cloud usage: every allowance with its meter, when they start over, Upgrade to the next
  plan (the others as links), or that this is the top plan.
- Upgrade: main asks the Admin for Dodo's own preview (nothing changes), the confirm says the new price, today's
  prorated charge and the next payment in plain words, and only the confirm's own button sends the change, with the
  confirmation main kept from that preview (never in a page; once; ten minutes). Both bridge calls need a click; main
  only moves to a plan the verified session lists. On the new plan, still going through, a declined card, a changed
  price or a failure each get one plain line, and the session is read again so the new plan and allowances show at once.
  Where the Admin can't change plans from the app, Upgrade opens the Cloud page instead.

The numbers come from the Admin's desktop session (`cloud.usage`, openmaus-cloud feat/usage-meter), parsed and checked
in cloud-home.mjs, kept on the account's state and handed to this computer's page and the person's own Cloud page alike
through cloudPlanSnapshot. The cloud-plan:* channels move to electron/cloud-plan-ipc.mjs, and the sidebar's foot to
SidebarFooter.tsx, so main.mjs and Sidebar.tsx shrink. Copy in all 13 locales (Polish included); screenshots (light and dark) in
docs/verification/evidence/usage-meter/ from usage-meter-preview.html.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The start-up pass of the attachments' and the thread logs' upkeep ran before
the server listened. Both are safe beside requests (an upload in flight keeps
its partial and its reservation; a busy, unread or handed-off thread keeps its
log), so the first pass now runs once the server answers and the logs' sweep
then runs once a day, as before. It moves out of server/index.ts into
server/host/start-upkeep.ts.

The edge held a request during a wake by dialling the server every 250 ms, so
the first request reached it up to 250 ms after it listened; it now dials every
50 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An engine with no saved model list offered no model at all while its refresh
waited for the first engine's probe, so setting a model or starting a turn on it
right after a start failed (ACP fixtures in acp-context-reports and
automatic-recovery). The refresh now waits only when a saved list stands in
for it.

The recorded engine status is written at most once a second instead of after
every probe: on Windows each rename onto a file a scanner holds is retried for
up to ~155 ms, and a fresh start lands a probe per engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The brief lists only the person's meetings today. The e2e pinned the person's zone to UTC and put the meeting 8 minutes
after the wall clock, so a run from 23:52 UTC put the meeting on tomorrow's date: no "Your day" row and no Join (CI's
ubuntu shard 3 hit it at 23:53:14Z; it passes at any other time, alone or in the shard). The brief's own harness shows
the same at 23:53Z ("No more meetings today", no Join) and Join at 23:44Z.

The test person's zone, and the server's TZ, are now a fixed-offset zone where it is midday when the suite starts, so
the meeting is always today. The assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Usage meter: a sidebar card near a plan's limit, Settings → General usage, and one-tap Upgrade
The committed-bytes cache only shrinks through deleteAttachment, so files
removed outside the app kept the store full until a restart.
The in-place below placement was right-anchored inside the overflow-hidden
Apps dialog, so wrapped category rows pushed it past the dialog's left edge
and long lists past its bottom. The anchored menu portals to the body and
clamps to the viewport; it now also scrolls when taller than the viewport.
The result row for delegated work already carries the teammate's report
in tool.output, but the thread and room chips only drew the label, so the
reply was only visible by opening the teammate's thread. Show its first
line under the chip and expand to the rest.
perf(engines): on a later start, a turn waits only for its own engine's probe
perf(cloud): answer sooner after a wake: upkeep after listen, a 50 ms edge retry
Probes run in parallel and a busy machine can push claude or codex
--version past its 8 s timeout. That read as "CLI not found" and, with
no provider available, showed the install screen. A timeout now reuses
the version the CLI reported earlier, and without one names the timeout.
Three OpenCode failures on MausBot Cloud, where every bot turn runs inside
the bubblewrap bot box:

1. A key saved under "Keys for other OpenCode providers" with a name no box
   prefix covers (NANO_GPT_API_KEY, DEEPSEEK_API_KEY, TOGETHER_API_KEY,
   FIREWORKS_API_KEY…) was dropped at the box boundary, so the provider answered
   "Invalid Authentication". Model discovery runs outside the box, so the
   picker still listed the models.

2. OPENCODE_API_KEY is a workspace credential, so the box's deny set removed
   it even when the person saved it for OpenCode: OpenCode Go had no key
   ("OpenCode rejected its key, or has none for this model").

   A boxed spawn now carries `allowEnv`: the names its engine instance's own
   environment put there with its own value (the keys the person saved for
   that engine). The box keeps those for that one process past the
   allow-list and the deny set; never a never-list or OMB_ name. Other
   engines' boxes are unchanged. OpenCode reads no base URL for these keys,
   so they stay raw (named among the box report's unbrokered keys), as the
   box already does for such CLIs. The same path fixes DEEPSEEK_API_KEY for
   the DeepSeek Harness, which the box also dropped.

   MiniMax M3.1 Flash missing from the picker is not the catalog parse: it
   keeps the model from OpenCode 1.18.27's real `models --verbose` output
   (now a fixture). OpenCode itself hides a model left out of a provider's
   `whitelist` in opencode.json.

3. OpenCode Zen's free models refuse a request with more than 128 tools.
   A refusal naming a tool-count limit is now learned per instance and
   model and the turn retried once, quietly, with every MCP server listing
   at most its share of what OpenCode's own tools leave: the agents server
   keeps its whole list, the rest split the remainder evenly, in turn order.
   Each server reads its share as OMB_TOOL_LIMIT (or a header on our own
   HTTP endpoints) and logs how many tools it left out; a server that would
   not read it goes behind the MCP gate. A second refusal reaches the person
   as one plain sentence naming the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix OpenCode provider keys in the Cloud bot box; fit tool-count limits
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Cause: in a direct chat, a message sent during a running turn was either
steered into that turn as ordinary text or, for engines that cannot steer,
queued behind it. A bare "stop" therefore never ended the turn: the model
had to choose to stop, and a model stuck in a tool or a provider retry
never read it. Rooms already detect "@bot stop"; direct chats had no check.

Change: acceptDirectSend records a message made only of stop words
("stop", "halt", "cancel", "abort", plus fillers such as "now", "please",
"it") from a person and stops the thread through stopThreadForPerson, the
same steps the Stop button runs. The Stop route now calls that helper too.
Longer messages such as "stop using tabs" are still steered as before.

Refs MOCA-116, MOCA-132.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.126
#3420 writes providers/engine-status.json at most once a second and never
wrote the pending save at exit, so a status that changed in the last second
before a stop was lost: the next start showed the older one until its read
reached that engine. A clean exit (a Cloud stopping to sleep, a desktop
quit) now writes it.

On Windows the Antigravity restart test's kill() runs no exit handlers and
a CLI probe is slow to spawn, so the list it read right after the restart
still showed the last run's recorded "not signed in". That is the intended
answer until the read reaches an engine; the test now waits for the read.
It failed the release gate's Windows shard twice (0.1.126).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A keepalive interval outlived responses ended by session revocation, an
audience change or the buffer bound; with the client's socket stalled, the
request never closed, and the next heartbeat wrote after end. Node emits that
as an unhandled 'error' on the response and the process exits.

Every way an /api/events stream ends now goes through one close that clears
the heartbeat and leaves sseClients before ending the response, and the
response has an error listener that runs the same close.
deliverSseFrame ended the response itself when buffered bytes passed the
bound, so at that end the heartbeat was still armed and the client was still
in sseClients; broadcast's close ran only afterwards. The fanout client now
carries its close, and the buffer bound calls it, so this path too leaves the
fanout and stops the heartbeat before the response ends.
The buffer-bound regression read writableLength off a stalled loopback
socket and required it past 4 MiB. Windows hands the whole queued write to
the kernel and reports 126, so the test failed there without reaching the
behaviour it checks. The response now reports past the bound itself; the
lifecycle ordering, the stalled socket and every other assertion are
unchanged.

server/index.ts is 16751 lines after the close owner moved code out; the
file-size ratchet requires its listed number to follow.
A workspace that links `.claude/skills -> ../.agents/skills` or
`CLAUDE.md -> AGENTS.md` failed the whole export with "Cannot back up
user-created symbolic link", because only the app's own skill discovery
links were allowed.

A link whose target stays inside the same workspaces/<id>/ folder is now
saved as a copy of what it points to, and the summary says how many.
Links to another workspace or to app data are still refused, as are links
outside the data folder, dangling links, and links to a folder that
contains them.

Fixes #3399

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The canonical event log queues lines in memory while an append is in
flight, and dropped new events once the queue held 256 events or 1 MB.
A single tool result can be over 300 KB, so a few bots finishing large
reads together filled the queue on a healthy disk: the thread showed
"Canonical event history is incomplete: OpenMausBot could not write one
or more events to disk", and those results were missing from the log.

The queue now holds up to 4,096 events or 32 MB, so a burst on a working
disk fits. A disk that stops answering still hits the bound and warns.

Fixes #3442

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engine status: a clean exit writes the pending save; the restart test waits for the read
The Chief of Staff's brief is a widget the server builds, so its labels,
row reasons, buttons, notification text and dates were always English,
even when the app showed another language (#3345).

- brief-words.ts holds the brief's text in the app's 12 languages;
  brief-cards.ts and brief.ts build the card from it and format dates and
  times in that language.
- The app's language is chosen per device and never reaches the server,
  so the presence ping now carries the language the app shows (the
  device's pick, else the server's, else the browser's). The brief keeps
  it in brief.json beside the time zone, prefers it over config.json's
  language, and rewrites today's card in place when it changes.
- server/language.ts picks a language entry the way the app picks a pack;
  the first-bot greeting uses it too.
The brief learns the app's language from the presence ping, which only
fires on activity and at most once a minute. After switching languages
the brief could stay in the old one until the next activity past the
cooldown. A language change now sends one ping right away through the
same request, outside the cooldown.
- The "N more new emails" notice was the last row of Important emails, so
  with six or more emails it was cut off and counted in "and N more". It
  now follows the capped email rows and is never counted.
- A brief told the person about rows it had not told them about before,
  keyed on the row's translated text, so a language change re-notified
  every pending row. Needs-you rows now carry a key in no particular
  language (NeedRow), in the personal brief and each Team Cloud member's.
  Rows already pending before this change are notified once more.
The Ubuntu .deb update used to copy `sudo apt-get install -y …` to the
clipboard and open a blank terminal. Restart to update now installs the
staged package itself and reopens the app:

- pkexec (system location only) runs a fixed script with the staged path
  and the feed's SHA-512 as positional parameters; nothing from the
  renderer is in the script
- root copies the .deb to a root-only temp dir and verifies the checksum
  before apt-get sees it, so a file swapped in the user-writable cache
  after the download is refused (apt-get, not dpkg -i, so dependencies
  resolve)
- closing the prompt leaves the update ready to retry; a checksum failure
  is an error and is never handed to a terminal; any other failure (no
  pkexec, no graphical session, polkit refusal, apt error) falls back to
  the existing terminal hand-off and the card says why
- OMB_UPDATE_INSTALL=terminal keeps the old behaviour
- rpm and pacman are unchanged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
list_app_settings and set_app_setting are mounted for the person's MausBot only
(OMB_MAUSBOT, same predicate the server route re-checks). The allowlist is two
on/off switches the Settings screen already has: Show MausBot in the sidebar and
Tool calls. Each change says what went from what to what and how to undo it; any
other name is refused with the valid ones. Language, theme and notifications
live on the device and stay in Settings; keys, approvals, billing, sharing and
deletion are never reachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
/goal <text> sets a standing goal on a bot conversation; /goal shows it and
/goal pause|resume|clear change it. After a turn that ended well and did not
report the goal done, the server starts exactly one more turn with a fixed
prompt, only once the conversation is otherwise idle. The bot reports done
(or needs-input / blocked) with a delimited marker that is stripped from the
transcript. Stop, a failed turn, the turn limit (10), a 2h wall-time limit
and a restart all pause the goal. A chip above the composer shows the goal
and its turn with Pause / Resume / Clear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
list_unread_notifications returns the unread feed (40 newest, titles and bodies
trimmed) with a lean per item; mark_notifications_read marks read by id and only
for finished work and notices. Questions, approvals, failures, sign-ins, money,
mentions and any kind the server does not recognise stay unread, there is no
mark-all, and nothing is deleted, approved, answered or opened. The reply names
what was marked and what was left. Personal installs only; the route re-checks
that the caller is MausBot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
With My Cloud as the home place, workspaces:menu skipped placesMenuOptions,
so foldSublabels never reached the menu template. Windows and Linux menus show
no sublabels, so Always on / Sleeps when idle disappeared from the menu there
(macOS was fine). placesMenuOptions now takes homeOrigin and always returns
foldSublabels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
A ready Linux connection nests the verified invocation in mcp (command, args,
env) and has no top-level mcpCommand, so lendingSnapshot reported
screenAvailable false and the Apps-and-screen switch and default grant stayed
off; computer-sharing also refused to start the shared server with
"unavailable". sharedCuaConnection accepts both shapes (mcp.env, else the
environment the driver was verified with) and both callers use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
A workspace-wide setting is the person's to change in Settings on a team, for an
Owner's or Admin's MausBot too, and whenever the server is a team; the message
says so. A throw from saving config (validation or disk) comes back as the plain
change-it-in-Settings text. OMB_MAUSBOT is documented beside the other switches
and a test pins the four MausBot tools' names, required fields and flat schemas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
routine-deferred is an ask in the app (ask-routing), so it is needs-you and never
marked read from chat; only done and delegation-settled are notices. A done item
is the bot's final reply and may end in a question: the tool text says it is the
person's unless they said otherwise. The tools refuse whenever the server is a
team, not only for a MausBot with a person. The two list tools are annotated
read-only like the other reviewed reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
set_app_setting changes nothing on the first call for a change that takes away a
way the person reaches something (mausbot_in_sidebar off): it returns what will
happen and where to undo it, and applies only when called again with confirm
true after the person said yes in chat. Turning it on never asks. Also fixes the
tools test's env typing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
The picker listed only Fish's 100 most-used public voices plus the
account's own, so any other public voice could only be set by editing
bots.json. The Fish picker is now one dropdown with a search box inside:
a title searches public and owned voices, and a voice ID or
fish.audio/m/<id> link looks that voice up. The selected voice is named
in the normal list even when it is outside the top 100, and each voice
shows its description under its name.

Refs milind-soni/OpenMausBot#3405
The first run is now hello, Connect an AI (when none works), the
conditional import / permissions / Cloud steps, then the chat. The
feature reel, the phone step and Meet your assistant are gone with
their components; phone pairing stays in Settings > Remote access.
The dots and the step counter share one count (flowProgress), and a
one-step welcome shows neither.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WelcomeGate no longer opens the 9-step tour when the welcome closes;
the first run lands in the chat with the Chief (or first bot).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guided tour used to switch itself on whenever the welcome was done
and its steps were unseen, so it came back after every reload. It now
runs only while Settings > Replay app tour has it open. The
first-conversation spotlights and the corner popups no longer wait for
a tour nobody started; they wait only while the welcome or the tour
is on screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checkEmail treats no email as fine; profilePatch saves a typed name
and a valid email without writing blanks over a saved profile; the
draft keeps the welcome's step and typed fields in this browser (as the
email gate already does) so a reload can resume it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Continue works with no email; a wrong one says "Check the email
  address." under the field and holds Continue only while it is wrong.
  A line says the email is only used for update news. Continue shows
  Saving… while it saves.
- Maybe later, Skip and Escape keep the typed name (and a valid email).
- After a step changes, Next/Continue/Back wait for the card's morph
  (at least 450 ms), and a step only moves from the step on screen, so
  a double click can no longer skip the Connect an AI step.
- The step and the typed fields are saved as the person goes; F5
  resumes there, or on the step before one still loading (import,
  Cloud) and then on it once it arrives. A replay or the preview never
  reads or writes the draft; finishing clears it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After the greeting, Skip sits in the title's row and the title wraps
beside it (min-w-0), instead of Skip floating over a long title at
375 px. The greeting keeps Skip in the corner, clear of the centred
logo. A guard checks no keyboard hints appear in any step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Welcome tour row said the walkthrough covers model providers,
permissions, phone and the first bot; a new key says what it is now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
verify-onboarding-ui.ts no longer steps through the reel, the phone
step and Meet your assistant; it checks that a reload resumes on
Connect an AI, that the welcome lands in the chat with no app tour
(also after a reload), and runs the app tour from Settings instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only Continue ties analytics to the email (email_submitted / $identify,
as docs/analytics.md promises); a name or email kept by Maybe later or
Skip stays in the local profile. The analytics docs drop the phone
step's events and the removed step names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resumed on Connect an AI (as the fallback for a later saved step), the
step was dropped when a working AI turned up while it was on screen,
and its Continue then finished the welcome, skipping the microphone,
import and Cloud steps. The step now stays once it opens the welcome,
and nextBeat/previousBeat move on from a step that left the list to
the next one still offered instead of ending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a hosted workspace the browser may hold another person's draft; the
greeting there asks nothing, so it neither reads nor writes the draft
and finishing saves no profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The greeting and the welcome's finish now share the profile as last
saved (or being saved), so a one-step welcome's Continue or Maybe later
no longer sends the same name twice. A failed save is forgotten, so
Skip still sends it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the saved step (import, Cloud) is offered after a reload, the
welcome moves there through the same step change as Next, so its
buttons wait like any new step's. Any click or key in the welcome
before then cancels the jump; the step is simply offered next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Check the email address." no longer appears (and is announced) on the
first typed character. Continue stays disabled while the email is wrong
(aria-disabled, dimmed), and pressing it, Enter, or leaving the field
says why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Continue ties usage stats to the email, so "We only use your email…"
overpromised. The line (new on this branch) now says it is optional, is
used for updates, and links usage stats to the email.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The welcome is no longer a tour; "Skip tour" stays for the app tour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The draft is stamped with WELCOME_VERSION and a draft from another
version is ignored. WelcomeGate clears it whenever the welcome is not
due, so a welcome finished some other way never leaves an old step and
fields to resume later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the app tour gone, the Cloud Pro popup (full screen) and the
Product Hunt card could open over the first chat. Both now wait until
a bot or room has finished a turn, and the Cloud Pro popup also waits
for a launch after the one whose welcome just finished (a session flag
set by the welcome, never by a replay). Account and billing notices
(trial, plan sign-in) keep their own rules, so they are not hidden from
someone who has not chatted yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the phone step gone from the welcome, PhoneSetupFlow's onboarding
variant (compact header, Not now, the Tailscale shortcut, "Start using"),
its wrapper component, the controller's skip and the PhonePreview
illustration had no caller. Settings > Remote access keeps the same
flow. PhoneSetupFlow.tsx drops from 1283 to 1147 lines; the ratchet
number follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run against a fresh ui launch fixture: a reload keeps the typed fields,
the profile retry, the one-step welcome (the fixture's Claude already
works) landing in the chat with the Chief, no app tour after it or a
reload, the first reply, then the app tour, its Skip, the welcome replay
(Skip setup) and the legacy replay from Settings. The fixture never
reaches Connect an AI, so the engine-refresh steps left this script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The manual UI check's fixture no longer reaches the step (its AI already
works), so the refresh-failure assertion it carried moves here: the
error shows, the listed ways stay, and Check again clears it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3379's consent dialog waited for the app tour on main; with no tour it
would ask for an email again the moment the welcome closed. It now waits
like the Cloud Pro popup: for a bot's first reply, and for a launch after
the one whose welcome finished, on both of its paths (the queue and right
after a closed popup). Its design, text and place in the queue are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update emails now need #3379's separate opt-in, so the greeting uses a
new intro key ("…Tell us who you are to get started.") instead of the
one ending "we'll let you know when big things ship", and the email
line (new on this branch) says it is optional, linked to usage stats,
and that update emails are asked about separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before the first snapshot no bot is loaded, so firstReplyPending read as
"no reply yet" and an existing user's lower card could flash up before
the Cloud Pro popup. It now answers null until state.hydrated, and the
popup, the product-updates question and the Product Hunt card wait on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skip setup pressed while Continue's profile save was still on its way
saw the name as saved; when that save then failed, nothing sent it
again. The welcome's end now waits for a save in flight and sends what
it did not save, once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the welcome's phone step sent "skip"; with it gone nothing does,
so the action and the skipped flag go too. The reducer test now leaves
the setup with reset (what Cancel sends) before resuming.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's new MausBot welcome card waited until the app tour was finished
(any tour step unseen held it). With the tour now started only from
Settings, a new install never takes it, so the card would never open.
It now waits only while the tour is actually running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3379's product-updates question now asks for the email, once, with its
own consent, so the welcome drops its email field, the wrong-email
message and note, and the Continue that only held for the email
(Continue is a plain button again, disabled only while saving). Nothing
in the welcome ties analytics to an email any more. The draft keeps the
step and the name (an older draft's email is left out), and the saved-
profile record and finish deal with the name alone. The greeting uses a
new intro key: "Bots that do real work for you. What should we call
you?"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the welcome's email field gone, nothing sent email_submitted: the
event and identifyEmail's submitted option are removed, and the Cloud
Pro popup's signed-in click (the one remaining identify) calls it
plainly. docs/analytics.md and its docs-site copy no longer say the
first-run screen shares an email, and email_skipped (Maybe later) now
keeps only a name on this computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing that asks the person to customize opens over the first chat
before a reply (UX report #14). MausBot's card now waits for a bot's
first reply (unknown until the bots load) and for a launch after the
one whose welcome finished, besides the open app tour; its
once-per-person-and-place rule is unchanged.

The card, the Cloud Pro popup and the product-updates question never
share a launch: the card goes first (the notices queue waits while it
is due), and whichever opens claims the launch for the window's session
(launch-dialogs), so the other waits for a later launch. The popup keeps
#3379's order, with the question right after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Escape only closed the card, so it came back on every launch and claimed each
one, which held the Cloud Pro popup and the product-updates question back for
good. Escape now saves welcomed (and leaves the sidebar choice alone), so the
card is shown once per person and place, as 99a1dd443 intends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a page whose browser blocks site data, the launch claim and the welcome-finished
flag silently did nothing, so the notices queue could wait on them all session.
Both fall back to this page's memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With email gone from the welcome, #3379's question is the only place it is asked.
It no longer waits a whole launch after MausBot's card: it waits while the card is
due and follows it once it closes, the way it already follows the Cloud Pro popup.
The popup still never shares a launch with the card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
onboarding.introStart, onboarding.email.invalid and onboarding.email.why were
replaced before reaching main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
verification-docs.test.ts checks every cited test file exists; bare names failed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On phones the sidebar opens as a full-width list: profile and updates/new buttons on top, the chief of staff as a centred hero, rounder rows with a time on each, and a bottom bar with a tools menu (Automations, Team map, Files, Apps) and a search pill. Tapping any bot closes the list. Desktop and the tablet drawer are unchanged.
On phones the chat header is a back circle, the bot pill and a round ... button. The model, Bot's screen and bot profile move into that menu (the model chip and the Bot's screen button leave the header); every other item is unchanged. In Simple mode the composer is one row: +, the field and its buttons. Desktop and tablet are unchanged.
Only max-md: classes in the Simple bot panel (cards, row icon tiles and the top-bar round buttons, including its ... button).
Phone-only: the Settings pop-up fills the width and rises from the bottom with rounded top corners, its cards are rounder and its close button is a bordered circle. Wider layouts are unchanged.
On phones the composer is a round + and a single pill holding the field, the
mic and a round voice button (light on Midnight, dark on Meadow), in Simple and
Advanced mode. Attach, where the bot works, approval level, Finish together and
the call mode are entries of the + menu, so nothing is lost. Desktop and tablet
are unchanged.
The ElevenLabs picker listed only the account's own voices. It now uses
the same dropdown as Fish: a search covers the account and the public
Voice Library, a share link or voice id finds that voice, and picking a
library voice adds it to My Voices before selecting it. Adding is
admin-only, since it changes the provider account and uses a voice slot.

The picker also shows the voice being added with a spinner and its error
under the field, reloads after a pick, empties its list and shows
skeleton rows when the provider changes, and the Try button spins while
the sample downloads and stops when the voice or provider changes.

Refs milind-soni/OpenMausBot#3405
A parked conversation (a card or question left for the person) kept the move's
freeze answering busy "" for good: the coordinator never expires a node parked
on cards, persists it across restarts, and the old busy rule counted every
non-ended hand-off. The desktop line then said "waiting for your bots to
finish" for hours.

server/move-waits.ts now decides what holds the move, one rule for every
server: a turn answering now (the watchdog's view) is waited for by name; any
other work under way (a paused or starting turn, a running routine run, a
room's turn, a hand-off starting, queued, running or resuming on a bot and
conversation that exist, a model sign-in) is waited for at most 30 minutes per
thing; work parked on the person or on teammates, routine runs waiting on the
person, and hand-offs whose bot or conversation is gone never hold it. The
cards and questions go with the chat rows.

A sign-in stuck busy stops counting at its expiry. The freeze answers the name
and what it is; the desktop line names it, says "a sign-in" when it has no
name, and claims nobody while the move only waits for a quiet moment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move to My Cloud: only work under way holds the freeze, never forever, always named
Admin-scope only (no dead guest check; the composer says goals are set from
the main app on a 403). The completion marker must end the reply and sit
outside a code fence; it is stripped at intake, before the transcript,
notifications and digests see it, whatever the goal's state. Goal text is
cleaned of nested look-alike delimiters. A goal turn that never settles is
recovered by a session exit or a 60s grace on the injectable clock. The
managed-desktop cleanup fixture gets a botGoals stub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
MausBot, shown in the sidebar or not, is now the bot that keeps an eye on
the day: "Keep an eye on my day", the brief, the add-a-key card and the
intro's line about the day. The main Chief is the owner only where there is
no MausBot, and a Team Cloud member's MausBot never is.

On an install whose Chief held the routine, it moves to MausBot once, as the
same routine, so its switch, edited instructions, check cursors, seen ids
and daily run count stay. The brief's home becomes MausBot's chat and past
cards stay put. watch.json records which bot each briefing routine was
handed to; a restart between the steps finishes them; nothing moves while a
run is queued or working, or on a frozen computer; and a routine newly on
MausBot pauses every other briefing routine, so two never run.

A move to My Cloud now carries a bot that has routines even when it looks
untouched, so the routine travels with MausBot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A move now counts a bot as in use for a routine the person set up, paused or
changed; the default watch exactly as the server made it does not count,
and a send that carries no routines is unchanged. An untouched install
moves as before, and a changed watch still travels with MausBot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thread opened with thread "new" is named after the first 60
characters of the brief. The server already accepts a title on the
internal call; expose it as an optional tool argument (max 80
characters) so a bot can give the thread a name the person can scan.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Same check as start_thread: reject control characters and line breaks.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
MausBot owns the proactive side: the day's watch, the brief and the add-a-key card
chore(release): bump version to 0.1.127
fix(backup): a link inside a workspace no longer stops a full backup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: the watchdog tests (kept both sides) and the size ratchet (main's pins;
core.ts lowered to 1839, its merged length).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop each tool's own deadline, the wait accounting and the 2x cap. While a turn
has a tool running, its silence limit is OMB_TOOL_STALL_MS; otherwise it is
OMB_TURN_STALL_MS. Any event starts the silence over, and waits on a person or
a computer never count, as before.

The stop keeps its one wording, "no activity for N minutes", with N the limit
that ran out, so Cloud health still counts it as stalled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChatView and GroupView each grew a line and failed the file-size
ratchet. Their comm chips were the same pill (avatar, row name, chevron)
wrapped in HandoffReply, so the pill now lives once in HandoffReply.tsx
as HandoffChip. ChatView drops to 1360 lines and GroupView to 1477, and
both pins are lowered. A render test covers the reply preview, the
disclosure and the plain chip for request rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts grew past its file-size pin. stopThreadForPerson, the
typed-stop branch of acceptDirectSend and noteTeammatesLeftRunning (moved
as is) now live in server/host/person-stop.ts; index.ts is 16,708 lines,
and its pin drops from 16,719 to that. isStopCommand gets more cases of
ordinary messages that only contain the word.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(events): large tool results no longer trigger a false "could not write to disk" warning
fix(attachments): rescan the store before refusing an upload as full
Resolve the file-size ratchet with main's pins and lower
server/drivers/acp/core.ts to its new 1807 lines. Refresh the Polish
model.variant.clearHint (added on main) for the agent-neutral English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(apps): open the More categories menu outside the clipping dialog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- server/index.ts stays at its pin: title shares the thread line of the
  zod schema.
- agents-catalog.ts stays at 1,000 lines, and a shorter title description
  keeps the bridged voice profiles inside their 2% byte budget.
- The goldens (full, bridged, profiles) and the two schema key lists now
  include title; the snake_case hint lists title before thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #3468, currentCard takes the brief's owner, so a language change
outside an arrival threw a TypeError (and failed typecheck) before it
could relabel today's card. The two Portuguese tests now expect the
heading "Precisa da sua atenção" from 41578d495.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(engines): a slow --version probe keeps the last version instead of reading as not installed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A bot or team export with "all" skills (the default) packed the
  person's own ~/.claude/skills and a project's .claude/skills once they
  were listed. skill-export now skips origin "native"; a test covers it.
- The skills host's instanceOf dep shares the line of its call, so
  server/index.ts stays at its 16,719-line pin.
- The /mine test compares the JSON-escaped path, which also holds on
  Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Chief's level reached the teammate it delegated to and stopped there:
Clive on Approve for me -> Ada ran auto, but the work Ada handed Bea ran
at Ask. The host only lifted a level when the sender itself was a Chief,
and the coordinator sent the runtime levels.own only.

server/host/delegated-level.ts now resolves the nearest Chief
conversation up a hand-off's chain (the requester's node and its
parents). Direct threads, room lanes, room turns and the runtime record
all use that one lookup; the rule itself (delegatedApprovalMode) is
unchanged. levelOf returns the Chief conversation's level, passed as
levels.chief, only when the target's level came down the chain, so the
recorded level still equals the level the turn runs at (I6).

index.ts shrinks by 39 lines; the size ratchet is lowered to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from @AdityaUmale's e2e in #1877: the direct chain and the same
chain in a room both run Bea's turn at Clive's level, and an ordinary
bot's level never flows. Fake engine, isolated server. Fails on main
4eace8b1c with Bea at "default".

Co-Authored-By: AdityaUmale <AdityaUmale@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new POST /api/tts/voices/add added a route handler to index.ts and
grew it past its pin. The four /api/tts routes (prepare, voices,
voices/add, speak) now live in createTtsRoutes and are moved as they
were; only the speak route's `return res.end(...)` became
`res.end(...); return;` to fit RouteHandler. index.ts is now 16,686
lines (pin 16,719 -> 16,686), and the route ratchet's path === count
drops from 95 to 92. A small route test covers PASS, the add route's
validation, and an empty list with no provider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(chat): an excerpt-only compaction is not labelled a summary
Keeps main's lowered claude.ts pin (2138) and this branch's core.ts pin (1839), both the measured counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(chat): show a teammate's reply under its handoff chip
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
managed-desktop-cleanup.test.ts sliced interruptDirectThread up to the
"/** Stop left teammates" comment, which moved to host/person-stop.ts
with noteTeammatesLeftRunning. interruptDirectThread and
interruptParkedTurn are now adjacent, so one slice ends at
interruptAllDirectThreads; noteTeammatesLeftRunning stays stubbed. Same
15 tests as on main, and dropping the teammate stop from
interruptDirectThread still fails one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hourly background update checks that failed (offline, 404 on a feed still
being uploaded, 5xx) were logged and then reset to idle with no UI, so a
Linux .deb install whose checks kept failing stayed on an old version with
no sign of it. After three consecutive silent failures the updater now
shows a retryable "Couldn't check for updates" error; any successful
check resets the count and a manual retry clears the notice.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
A Cloud bot's terminal request to a computer with Terminal off now fails
with a message naming that computer and the exact switch (Server > This
computer > Settings > MausBot Cloud > Terminal), and the computers card
shows the same hint with the computer's name. Nothing is enabled
automatically; Terminal stays off by default.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
coordinate_bots: optional title for a new thread
fix(skills): the / menu lists the skills the engine loads from its own folders
fix(brief): write the daily brief in the person's language
Let a turn stay silent while its tool runs, under a deadline of the tool's own
Once an update was downloaded or handed off, the hourly check returned early, so a
person who left the app open never heard about a newer release. A quiet check now
runs while the update waits; a strictly newer feed version downloads and replaces it
(the card and the hand-off command then name the new file). Errors, in-flight installs,
native staging and recovery are untouched, and a failed replacement falls back to the
staged update.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VpoHuPQEty6Sone96TtVYC
When an ACP agent ends a turn with a stop reason and no error text, the
driver reported "Model turn failed: <token>", so a refused automation run
reached the chat as "This run didn't finish: Model turn failed: refusal".
The fallback now goes through stopCause, which gives ACP's refusal,
max_tokens and max_turn_requests stop reasons plain words and keeps the
token. Retry and failure classification are unchanged.
Software rendering on every Linux machine cost about a full CPU core in the GPU
process whenever the window animated (measured ~90% for 6 h on an Intel HD 620
behind a DisplayLink dock). NVIDIA keeps the existing workaround; OMB_LINUX_GPU
overrides detection either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(approvals): carry a Chief's level down every hop it hands out
Stop the browser live view while nobody can see the panel
feat(mobile): messaging-app style phone UI: bot list, chat header, one-pill composer, profile and settings sheet
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Take main's file-size pins; server/index.ts pinned to its measured 16647 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main has been red on the file-size ratchet since #3461 grew ChatView.tsx,
Composer.tsx and Sidebar.tsx past their pins. Code moves out unchanged;
no pin is raised:

- Sidebar.tsx: the phone home's chief-of-staff hero (PhoneHero) moves to
  SidebarPhoneHero.tsx, next to SidebarPhoneBar.tsx; GroupThreadList moves
  to SidebarGroupThreadList.tsx. 2173 -> 2106 (pin 2126 -> 2106).
- Composer.tsx: the / command list moves to SlashCommandMenu.tsx, the same
  shape as MentionMenu. 1104 -> 1058 (pin 1071 -> 1058).
- ChatView.tsx: chiefOfStaffBadge moves to BotRole.tsx beside ChatHeadRole.
  1363 -> 1354 (pin 1360 -> 1354).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
comment-history has failed on main since #3470: the first line of
server/chief-level-every-hop.e2e.test.ts named a pull request. Comment only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The voice list now opens in a portal at a fixed position, so the bot settings
  panel's scroll area never clips it and it never sits under the toggles below.
  It matches the field's width (at least 240px), keeps a 380px max height with
  its own scroll, and opens above the field when there is not room below.
- Each row is the voice name on one line and its description on one muted,
  ellipsised line (the old clamp lost to `block`, so a description ran to five
  lines). The current voice carries a check mark.
- The search box takes focus on open; the arrow keys walk the rows, Enter picks,
  Escape clears the search and then closes, and Tab hands focus back to the field.
  Skeleton rows while the list loads, a short note when nothing matches, and
  "Adding…" in the field while an ElevenLabs library voice is added.
- ElevenLabs search results split into "Your voices" and the ElevenLabs Voice
  Library, which says once that picking one adds it to your voices.
- Voice providers sit three over two: the online services on top, the ones on
  this computer below, instead of a lopsided 2+2+1.
- Plain words: "Search voices or paste a link".

Review fixes (CodeRabbit):
- Fish: looking up the current voice can no longer fail the whole list (a 403
  for someone else's private voice, or a passing error, just leaves it unnamed).
- No pick from a list that has not caught up with the search yet (Enter or click).
- A library-voice add that settles after the bot or provider changed is dropped.

New strings translated into every locale pack and accepted with
generate-locale --accept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ratchet): move phone-UI code out of ChatView, Composer and Sidebar
feat: support per-bot custom ACP model and thinking selection
fix(chat): typing "stop" while a bot works now stops it, like the Stop button
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Feat/fish voice picker any voice
Linux: keep GPU acceleration off only on NVIDIA
#3481 keeps hardware acceleration off only on NVIDIA (or OMB_LINUX_GPU=off).
The packaged-Linux smoke still expected it off everywhere, so package + smoke
failed on main's non-NVIDIA runners. It now expects whatever linuxDisablesGpu
decides for the environment it launches the app with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(smoke): Linux package smoke checks the GPU rule, not GPU always off
* docs: design + plan for phone apps as bot tools, server plumbing (sub-project A)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): shared vocabulary for phone apps, grants and the device.job frame

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): registry of paired phones and what each allows

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): job queue a phone long-polls, leases and answers

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): byte-measured result cap, turn-ended complete throws 409, poll after close

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): tool catalog, instructions and the per-bot verdict

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): the phone's own routes: register, poll, lease, answer

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): a phone's companion identity comes from the verified auth, not headers

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): device as a fifth harness MCP kind with its own timeout

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): timeout message names the call's own limit

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): every engine that mounts HighLevel mounts the device tools too

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(outbound): move the send hold out of index.ts so other tool kinds can use it

The "Send on your behalf?" hold and the dispatch-time allowance check move
from the connectors MCP handler into server/outbound-hold.ts as
createOutboundHold(deps), with no change in behaviour: the same decision
rows, card, activity flips, notification, timeout patch and refusal text.
The handler keeps its parsing, scope checks, refuseOutbound, sendsFreely and
both requireActiveInternalCapability calls. buildNotification no longer
demands a threadId on the bot it never reads, so the hold can take the
narrower bot.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(ui): keep store.tsx inside its line ratchet after the capability fields

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(outbound): the hold's bot type carries notifications, so a muted bot stays quiet

buildNotification reads bot.notifications through the hold's approval
notice; OutboundHoldBot now picks it, and the test shows a muted bot
still gets the card but no notification.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): MCP host that turns a bot's call into a phone job behind the per-bot verdict and the send hold

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): default phone by last use and by the tool's app, reserve only after every check, hold every outbound phone tool

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): mount the device tools per turn, route the internal MCP, nudge the phone over SSE

server/index.ts wires the phone registry, job queue, host and /api/phones routes on existing lines (still 16843):
the owner's own direct turn mounts the device server when its bot is granted an app one of the owner's phones
allows, /api/internal/device/mcp answers it, a queued job nudges admin SSE clients with device.job, the phone's
job long poll is exempt from the maintenance request count, the grants picker lists the phone tools, and shutdown
closes the queue. The host is built beside the send hold it takes, which is declared after the HighLevel host.

Phone tool rows read as "Phone" in the activity, and the device server is one of the app's own servers for the
Today outcomes. The e2e pairs a phone, round-trips a job through poll, lease and result, and shows a bot without a
grant and a read-and-draft routine run get no phone (a run of the same routine at the bot's own level does).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): only the owner's admin sessions hold a phone or lend their turn to one; routine reports stay the owner's

Off a Cloud home, a request owns the desktop's phones only as the owner on this machine (loopback, the companion
included) or an admin session; a client-scope session gets 403 registering one. A turn is the owner's when every
line and card in its conversation came from this machine or a live admin session, so the owner's paired phone or
iPad can use the phone tools too. Every routine here is the owner's, so a conversation a routine reported into keeps
the phone; a webhook's posted payload still makes a conversation someone else's.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): the desktop owner rule in its own tested module; a bot's ask, a worker's answer and an outside event's report are not the owner's

Off a Cloud home, whose turn may use the phones is decided in server/phones/owner.ts: a line with no person is the
owner's unless it is a bot's ask, which counts only as this turn's own request and only while the work came from the
user; a live admin session's line or answer is the owner's, a client session's, a worker's or an unrecorded one is
not; a webhook's payload and an outside event's run report still make a conversation someone else's, while a real
routine's report does not. Card answers now record the answering session's person key off a Cloud home too.

The e2e shows a thread a webhook's run opens gets no phone (one the owner's turn opens does), and a conversation an
outside event's run reported into loses it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): per-bot phoneApps grant on the bot patch route

PATCH /api/bots/:id accepts phoneApps (null clears to the default). Adding a
capability or raising read to write against the effective grant, including a
Chief's clear-to-everything, counts as loosening.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): per-bot Phone apps card in bot settings

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): list registered phones and their allowed apps in Settings

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): surface a failed phone removal and block double clicks

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(phones): phone-side contract fixture

Pins the wire shapes the phone apps parse; the test keeps the file in step
with the server's zod schemas and PHONE_TOOLS.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* chore(phones): lower the index.ts ratchet and document the phone routes

Pins server/index.ts at 16843 lines and adds "Phone apps as bot tools"
to docs/ios-companion.md.

Fails on base too:
- node:sqlite load error on node 22 (125 src/ test files, e.g. src/components/CallSheet.test.ts)
- server/browser-live-routes.test.ts
- server/chat-apps-mcp.e2e.test.ts
- server/cloud-sync.e2e.test.ts
- server/control-omb.test.ts
- server/device-links.test.ts
- server/headless-cli.e2e.test.ts
- server/routes/browser-viewers.test.ts
- server/usage-traces.e2e.test.ts
- server/verification-fixture.e2e.test.ts
(server/group-local-vm.e2e.test.ts timed out once under full-suite load; passes alone on the branch.)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): off a Cloud home a routine reaches the owner's phone only while the owner wrote it, unchanged

A client-scope session could create, edit and run a routine whose run mounted the
device server and reached the owner's phone: every non-webhook run counted as
owner-written and owner-started, and every routine's report as the owner's.

The desktop now records routine authorship the way a Cloud home does
(createCloudRoutineAuthors, owner-routines.json): the owner or an admin creating a
routine records it; anyone else's edit forgets it; the owner's edit keeps it only
when it was theirs or they rewrote its instructions. A run is the owner's when its
routine is recorded with the run's fingerprint and a schedule, a restart or the
owner's own manual start began it; a routine's report is the owner's only for a
routine the owner wrote.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): no desktop phones where sign-in lets several people in; a relayed line is not the owner's

Off a Cloud home every admin session counted as the one desktop owner, so on a
self-hosted server shared through sign-in each admin reached every admin's phones;
and a line relayed by an external interface (the Slack worker) names no person,
so it passed as typed at this machine.

phoneOwnerOf and phoneTurnOwner now offer the desktop owner's phones only where
desktopPhonesOffered holds: no shared membership and loopback trust that is the
owner, not a service. desktopLendingTurn rewrites relayed user lines to
NOT_THE_OWNER, as it does a bot's unvouched ask.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): removing a phone fails its jobs, and a removal on the computer sticks

Both DELETE routes only dropped the registry record: a job queued for the phone
or in its hands kept waiting out its timeout, and the phone re-registered on its
next connect.

PhoneJobs.drop(key, text) finishes every job for the key as
{ ok: false, code: "denied", error: "This phone's access changed." } and wakes
its open poll. The admin DELETE /api/phones/:key also records the key in a
persisted blocked list in phones.json ({ version: 1, phones, blocked }, the old
shape still read), so PUT /api/phones/self from it answers 403 "This phone was
removed on the computer. Pair it again to use its apps." until the phone pairs
again under a new key. The phone's own DELETE /api/phones/self does not block.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): queue and nudge a phone job before asking whether the phone is online

PhoneJobs.request waited up to 15 s for online() before it queued the job and
sent the device.job nudge, and only a poll refreshes `seen`: a phone listening on
its event stream but idle was never told to poll, so every call to it failed as
offline.

The job is now queued and nudged at once; if it has not been delivered when the
15 s reconnect window ends and the phone is still not online, it fails with the
offline sentence (or turn_ended when its turn is over). A job the phone never
took times out with "<tool> was never picked up by the phone within N seconds.
It did not run."; a delivered or leased one keeps "It may still have run".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): a newer phone's registration and job outcome are read, not refused

The phones ship on their own schedule, but the registration schema was .strict()
with an enum-keyed capability record and the outcome schemas were .strict() with
a closed code enum: one new field, app or code from a newer phone made the
server refuse its registration or its answer.

Both now strip unknown keys; capabilities are filtered to the PHONE_CAPABILITIES
this server knows before parsing, so an unknown app (say `inbox`) is dropped and
the known ones register; an outcome code outside PHONE_JOB_CODES reads as absent.
A known field with a malformed value is still refused. The contract fixture's
shapes are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): derive the device call's timeout, test the team-Cloud refusal on a real key, keep the phone label last

- The device proxy timeout is DEVICE_PROXY_TIMEOUT_MS = the send hold
  (OUTBOUND_HOLD_MS, now exported from outbound-hold.ts and imported by index.ts)
  + PHONE_SEND_TIMEOUT_MS + PHONE_RECONNECT_WAIT_MS (now exported) + 30 s = 705 s.
  harness-budget.ts writes the sum out instead of importing, so the stdio proxy
  that reads it loads neither the hold nor zod; harness-mcp-proxy.test.ts holds it
  to the sum of the real constants.
- "a team Cloud offers no phones" authenticates as a verified companion device, so
  its 403 comes from there being no owner, not from a missing key.
- phoneOkResult spreads the phone's answer first and `phone` last, so no key in
  the answer can relabel where it ran.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* docs(phones): as-built notes on the design for the phone packs

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(phones): the owner's existing routines no longer hide the phone from the Chief's chat

Routines written before this build kept no authorship record, so their reports made the Chief's main conversation
count as someone else's and the phone tools were withheld there; the bot then reached for the USB Android tool.
On the first start with authorship records, a desktop only one person uses (phones offered, no other person's
session) records its existing routines as the owner's, once. A turn that may not use the phone now hears that a
phone is paired and to ask in a new conversation, and both prompts say the mcp__phone__ tools are a USB Android.
A phone named after its kind is described as "The iPhone".

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

* feat(phones): every bot may use the phone, and asks first when the person is at the computer

Phone apps are no longer the Chief's alone: with phoneApps unset any bot gets
what the phone allows, and an explicit per-bot grant still wins ({} turns it
off). The owner rule is unchanged.

A send made by a registered phone is noted by its sendId, so the direct turn it
starts is told the person is talking from their phone and does reminders,
events, contacts, location and texts there. Every other turn (direct from the
computer, room turns, the prompt preview) is told to do things the usual way,
use the phone only when asked for it, and ask once "here, or on your phone?"
when the phone could also do it.

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

* fix(phones): where the person is lives in its own volatile section, unattended turns are told so, and phone sends without an id count

The place sentence moves out of the stable "device" section into its own
"device-place" section, which is volatile, so a phone turn after a computer one
no longer relaunches the engine and re-uploads the conversation. It is emitted
only beside a non-empty device section.

A direct turn now has three places: the phone (its request is a noted phone
send), the computer (a person's own line with no automation, peer ask,
coordination or unattended flag) and unattended for everything else, which is
told nobody is waiting and to use the phone only when the task names it. Rooms
and the preview stay at the computer.

A send from a registered phone without a sendId gets one minted, and each Live
call line from a registered phone is noted, so walkie, command and call sends
count as the phone's. The route's dependency is now fromPhone(auth) plus
notePhoneSend(sendId).

The computer text now allows reading the phone and asks once before changing
anything on it; the phone text adds "as far as the phone allows"; the card's
default note and the wire comment follow.

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

* Fix phone send after ended turn, stale phoneApps grant, and comment pointers

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

* docs(phones): drop the plan and spec documents

The working plan and design notes were scaffolding for building the
feature, not documentation of it. What the phone and the server agree on
stays in docs/ios-companion.md and the contract fixture
server/testing/fixtures/phone-jobs.json.

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

* fix(phones): no card of OpenMausBot's own on phone sends, and no "here or on your phone?" question

A phone send already waits on the person: it opens a sheet on the phone
and goes only when they tap Send there. It no longer waits first on the
"Send on your behalf?" card, so the phone tools leave the outbound hold
entirely; the bot's per-app grant still decides whether it may send at
all (an RSVP is a Calendar write the same way).

Where the person is now decides without asking: a turn that came from the
phone does phone things on the phone, a turn at the computer works the
usual way and changes the phone only when the person names it, and a run
nobody typed uses the phone only when its task names it. The bot settings
note says the same.

Tests: the rpc and e2e tests send a message, a WhatsApp and an RSVP and
check the job reaches the phone at once with only activity rows in the
chat and no outbound decision rows.

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

* refactor(phones): the phone wiring moves to server/host/phones.ts, index.ts unpacked

The phone integration had been added to server/index.ts as up to nine
statements on one line. It now lives in createPhones (server/host/phones.ts):
the registry and jobs, which sends came from a phone, whose turn may reach
the owner's phones, where the person is, the mount and prompt parts, the
/api/phones routes, and the desktop owner's routine records. index.ts
builds it once and calls it from normally formatted lines, so it ends
smaller than on main: 16,651 lines, pinned exactly in the file-size
ratchet (the route ratchet stays at 6 path.startsWith).

server/host/phones.test.ts covers where the person is (a send from the
owner's phone is the phone's, the computer stays the computer, a run
nobody typed is unattended, no place asks the person to choose) and that
shared servers, other people's lines and refused Cloud turns get no phone.

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

* i18n(phones): translate the phone strings into every language pack

The 17 phone strings (Settings > Remote access and the bot's Phone apps
card) in all 12 packs, accepted with generate-locale --accept so
source-hashes.json records them against the current English.

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

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
The central-directory reader moves out of antigravity-runtime.ts into
server/zip-archive.ts and learns nested folders, so a standalone engine
download can use it. Antigravity keeps its own two-member pin checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/engine-standalone.ts installs a release pinned in code: HTTPS from
the release's hosts only (every redirect checked before it is followed),
streamed to a .part file while hashing with a cap at twice its size,
refused on a SHA-256 mismatch, unpacked into staging (zip, tar.gz or raw),
checked against the maker's Apple team on macOS, moved into
tools/standalone/<engine>/<version>/, and made current only once
`--version` starts and names the pinned version. Overlapping installs
share one run, failures leave nothing behind, and old versions go only
when no process this server started can still be running them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
serverInstallFor reports a standalone install whenever the driver pins a
build for this platform, with or without npm, so the instance payload
offers Install even on a machine with no Node.js. The registry installs
in the order: the driver's own installer, the standalone build, npm. The
pinned URLs and hashes stay on the server. At boot each engine's current
standalone version goes on PATH ahead of the app's npm folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pins OpenCode's GitHub release builds for macOS, Linux (glibc and musl) and
Windows on x64 and arm64, the version npm installs today. Each SHA-256 was
measured from a one-off download and matches GitHub's asset digest; the
macOS builds must carry Anomaly's Developer ID (Team 5NZ4Q7NXJ4). The copy
the app installs runs with OPENCODE_DISABLE_AUTOUPDATE=1; a copy the person
installed is left alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client type for install.server carries the standalone version and
download size. EngineSetup already keys the button and the Node.js note
off install.server; a test now holds that for a standalone install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A copy whose record survived but whose program no longer starts used to
block its own repair: the new build could not take its folder. Whatever
holds the version's folder now makes way once the new build is verified.
A failed start is described in plain words, not Node's command line, and
a tar.gz holding a link is covered by a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
safeArchivePath now also refuses CON, PRN, AUX, NUL, COM1-9 and LPT1-9
with any extension in any folder, ':' (drives and NTFS streams), the
characters Windows forbids, control characters, and a name ending in a
dot or a space.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
testCliBinary returned the driver's install descriptor as is when a CLI
could not start, which carried the standalone release block (URLs and
hashes) to the client. clientInstall strips it, here and in the registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
registerFallbackPathDir puts a folder after the inherited PATH, the
login shell's PATH and the vendors' default install folders, so a copy
of a tool the person installs themselves always wins over one the app
installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Security review follow-up for the standalone installer:
- The program's own SHA-256 is pinned (or recorded) and checked after
  unpacking, before a copy is reused (with the macOS signer again) and
  at start-up. A swapped program is never run or made current.
- A reused copy whose bytes are right but that does not start is
  reported, and nothing is downloaded or deleted.
- A new build is probed in staging. The folder it replaces is moved
  aside and comes back if anything fails; an interrupted swap is
  finished at the next start.
- Only bin/ goes on PATH, holding a hard link to (or copy of) the
  current program: a stable path for Set CLI. It goes after the
  person's PATH and the vendors' folders, so their own copy wins, and
  only for engines a release in code names, after lstat and hash checks.
- The macOS requirement asks for a Developer ID Application certificate.
- Leftovers are cleared at start-up and before each install; a download
  that sends nothing for 60 s stops; tar files get 0755/0644 and no
  owner; the version check gets no provider or control-plane keys.
- Network, HTTP and file-system failures read as plain sentences, with
  the detail in the server log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured from the executable unpacked out of each verified archive, so
an installed copy is checked against code before it is reused and at
every start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a standalone build, the server names the npm package only when npm
is there, and Settings hides "Prefer a terminal?" otherwise. The
download size shows under the Install button. A CLI that resolves to
the app's own copy, which the person's terminal cannot reach, loses its
terminal sign-in command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-review N1, plus bin/ and reserved names:
- executableSha256 is required on every standalone asset.
- At start-up the program must be the one the pin names, at the pinned
  path, hashing to the pinned value; an earlier version counts only if
  the release lists its program hash in previousPrograms (OpenCode's
  list is empty). A planted record that names another program, or vouches
  for its own hash, is ignored.
- An install leaves nothing in bin/ but the program.
- current.json and bin are never version names, so an interrupted swap
  is never restored onto them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EBUSY, ENOTEMPTY and EPERM from rename, unlink or rmdir say the AI is open
in another window; EACCES, EROFS and any other EPERM say OpenMausBot can't
write to its folder and to check its permissions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For an engine with a standalone release, its processes get a PATH with
the app's npm folder last: behind the person's own copy and the app's
own build. The copy that gets OpenCode's run settings, and the sign-in
check in Settings, are looked up on that same order (on Windows, where a
spawn's program comes from the app's PATH, on that one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-review N2. When the CLI still finds another copy after a standalone
install (a launcher stranded when Node.js was removed, an old npm copy)
and the engine's own status read says it does not start, the install
route points the engine at the app's stable bin/ copy, as Set CLI would,
and Settings says so in one line. Nothing changes while provider
settings are being saved, a bot is using the engine, or the CLI works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The headless client gave up on an install after 15 minutes while the
server allows a standalone download 20. It now waits 21, so the server's
own message (a stalled or slow download) reaches it first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Final security check S1 (data loss):
- The standalone folder, the engine's folder and bin/ must be real
  folders. A link, or anything else, is refused with a plain message
  before anything changes, at install, just before bin/ is written
  (bin/ swapped for a link mid-download) and at start-up.
- bin/ loses only plain files and links, by unlink; a folder in it stops
  the install instead.
- Leftovers are removed without following links.
- Prune deletes only a real folder whose own install record names this
  engine and its version; a folder without one is left alone.
Tests plant the person's notes and projects behind each link and check
they survive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a standalone install, the switch to the app's copy applies only to
an engine on its default CLI name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
engine-roots.ts, which the bot box reads to put app-installed engines
back read-only on a Cloud home, now lists tools/standalone as well, so a
boxed turn finds the app's own OpenCode instead of exiting 127. The
folder holds only programs and install records, never a sign-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64,291,659 bytes now reads "About 64 MB", as macOS and Windows show
file sizes, instead of 62 binary megabytes rounded up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The install descriptor carries appCopy: true next to the dropped terminal
sign-in command, so Settings can offer the in-app way to finish setup
for a copy the person's terminal cannot reach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A copy the person's terminal cannot reach no longer says "finish signing
in in Terminal" and "there isn't a one-line installer". It says OpenCode
is installed and works with its free models (Check again loads them),
and offers Open API keys for the person's own account.

EngineInstall moves out of store.tsx into src/state/engine-install.ts
with its new appCopy field; store.tsx's size pin drops to 3454.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The line lived in the install panel, which unmounts the moment the
switched copy turns Ready, so it was only ever seen next to an error.
The switch is now kept per engine in src/state/engine-install.ts and
the line shows on the engine's card, Ready or not, until the person
dismisses it or leaves Settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sender's "Sent to" row now carries the done_when the bot set
(redacted), and HandoffReply renders it as one muted line under the chip.

Fixes #3489
The desktop shell already gets the unread conversation count through
setUnreadCount. Browser clients had no indicator at all. Without the
bridge, prefix the page title with the count, "(3) OpenMausBot", and
set the Badging API badge, which Chromium and Safari draw on an
installed web app's icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Google's Windows runtime is a PyInstaller one-file build that prints nothing
while it unpacks ~1 GB into TEMP. With antivirus scanning each file that can
take longer than the fixed 90-second initialize timeout, so setup failed with
"Startup output: 0 bytes; diagnostic output: 0 bytes" (#3416).

When a 90-second window ends, the instance's temp folder is measured: if it
grew, startup gets another window, up to 5 minutes in all. If nothing was
unpacked it still fails at 90 seconds. The timeout error now says how much
was unpacked, which separates a slow unpack from an exe that never started.
Install verification, sign-in and model discovery all use it.
The bundled agy_acp_server 1.1.1 predates Google's model-catalog fix
(google-antigravity/antigravity-cli#1228), so its session/new never
listed Gemini 4 Argon. Pin the 1.4.3 release from the ACP registry for
all five platforms.

Fixes milind-soni/OpenMausBot#3464
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The greeting a new bot starts with now carries setupOffer while the bot has
no role or instructions (no soul, no description), so clients can draw a
Set me up button under it. The text is unchanged, so older clients read the
same greeting. Adds the bot's canned reply to the press in English, Spanish
and Brazilian Portuguese, and the wire fields for the waiting mark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/setup-request.ts: pressing Set me up takes the button away, posts the
bot's own line (no model is asked) and marks the conversation as waiting on
its task, so a reload or another device sees it. A second press changes
nothing. The person's next line in that conversation takes the mark and is
marked itself, so it runs exactly as /setup <their words> would, including
on a retry, a computer pick or an edit, while the chat keeps their words.
Routines, other bots, relayed lines and other conversations never take it;
a slash command or a model without the setup tools runs as typed; the
chip's x clears it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Set me up press and the x on its chip. Client scope, like sending a
message, since the press does nothing a typed /setup could not; a Cloud
guest is refused in a conversation they did not start, as for a send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A setup turn cannot clear the Chief of Staff flag (propose_profile never
writes it), and a test now says so. Its standing instructions could still
narrow it, so a Chief's setup prompt tells it to keep its Chief duties and
add the job to its instructions instead of replacing them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
startTurn hands the stored line to takeSetupRequest once it is the person's,
and a setup request reads as /setup <their words>; a Chief's setup prompt
gets its keep-the-role clause; the setup-request routes are registered.
index.ts stays at its pinned size.

Tests (server/index.test.ts, real server and fake Claude): the press posts
the bot's line with no model call and a second press adds nothing; the next
line runs with the setup block and "Set yourself up for this job: ..."
while its stored text is the person's words; a line in another
conversation and a closed chip leave it alone; a Chief is told to stay the
Chief; a bot made with a description is never offered it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A blank bot's greeting now shows Set me up. The press goes to the server at
once, the bot's own line appears, and the cursor moves to the message box,
which reads "Tell {name} what you'd like help with" while a "Setting up
{name}" chip with an x sits above it. The button goes once it is pressed,
once the person writes, or when the bot has a description or instructions.

New strings in en.json only. ChatView.tsx and Composer.tsx keep their
pinned sizes: the new parts live in SetupOffer.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The companion's allowlist is default deny, so a phone build that draws the
button needs POST and DELETE /api/bots/:id/setup-request listed. Neither
does more than a typed /setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
takeSetupRequest now hands back the marked line, so startTurn can keep that
copy for a retry. Where several people share the place the press records
who pressed (setupRequest.by): anyone else's line runs as typed and leaves
the request waiting, and only the presser can stop it. Single-person places
record nobody, so a press on the desktop and a line from the phone still
match. A line after the bot was given instructions some other way clears
the request instead of running setup, an edit into a slash command runs as
typed, and the offer closes once anything is written in the chat, routine
and other bots included. The refusal says why in plain words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The route asks the host whether the conversation's AI can set the bot up
and says so plainly when it cannot. It passes the caller's key on to the
press and to the x, which only the presser may use where people share the
place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
startTurn keeps the marked line takeSetupRequest returns, so automatic
recovery (and an edit that recovers) re-runs it as setup instead of the raw
words. The setup request reads exactly as a typed /setup, which never
carries the Data tab's context. The routes get the presser (the reactor key
where membership is shared) and whether the AI has setup tools.

Tests: automatic-recovery e2e (primary fails at initialize; the backup gets
the setup prompt for the pressed line and for its edit), a two-member Team
Cloud e2e (another member's line passes through and cannot stop it; the
presser's sets the bot up), and index tests for the refusal on a plain chat
model, the dropped data context and an edited setup line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set me up is not drawn when the conversation's AI has no setup tools. Once
the server answers the press the button goes and the bot's line is shown
from that answer, so a lost live update no longer leaves a spinner. Where
people share the place the chip and the message box's hint show only for
the person who pressed. The chip now reads "{name} is ready to be set up"
(new key; the unshipped "Setting up {name}" key is gone).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- setupPresser records who pressed only for a signed-in person whose lines
  carry them as sender, where people share the place; a caller who could
  never take their own mark records nobody. Lines are matched by their
  person key.
- A press while someone else's request waits is refused ("Someone else is
  setting this bot up."); an owner or admin may clear it, and
  forgetSetupPresser drops a departed member's requests.
- An edit of the setup line by someone other than its author runs as typed.
- setupTurnText builds the setup request from the stored line, its words
  as /setup first and then the Data tab's context, so a direct send, a
  queued one, a retry and an edit read alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The presser comes from setupPresser, a member leaving the team drops the
requests they pressed (the existing member-left hook), and the setup turn
reads setupTurnText from the stored line.

Tests: the Data tab's context now follows the words for a direct and a
queued send (index.test.ts); on a real Team Cloud an admin's edit of the
owner's setup line runs as typed, the owner's press is refused while a
member's request waits and the owner clears it, and the member's request
goes when she leaves (cloud-team-setup-request e2e).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new bot's default and the welcome's recommended sign-in now follow one
ranking in shared/ai-ranking.ts: a Claude account, then a ChatGPT plan,
then Gemini, then Grok, then every other AI in the app's own order, and
OpenCode running only its free no-login models last. The server used to
take the first ready engine in config order after Claude, which put Grok,
Kimi and Droid ahead of a ChatGPT plan.

The selection also takes what each AI's test message showed: an AI that
answered beats one that didn't or wasn't tested, and the ranking decides
until a test says otherwise. A saved default still wins over everything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode counts as signed in whenever its CLI lists a model, and Zen's
free models need no login, so a machine with OpenCode installed looked
like it already had a working AI. Its status now says freeFallback while
nothing of the person's own makes it ready: no OpenCode login or key, no
provider key, and no model from another provider (a local model the app
found does not count). With any of those it stays a normal AI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The connection check now uses the background one-off call when an
engine has no plain text call, so Codex, the ChatGPT plan and the ACP
engines (OpenCode among them) can be checked too, not only Claude and
the API-key engines. A check that outlasts its time now fails then, tells
the engine to stop and frees the engine for the next check, even when
the engine ignores the abort.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing checked that the AI picked for a new person's first bot answers:
on a machine with OpenCode, its free model was picked and never replied.
server/tested-ai.ts now sends one tiny test message through the AI the
new-bot default picked, in the background, best AI first, one at a time,
stopping at the first that answers. When the pick didn't answer and
another AI did, the default moves to the best AI that answered, and the
first bot the app made follows while the person hasn't written to it,
chosen a conversation's AI, or got it working. Boot never waits for a
test. A saved default is never tested there and never moves.

Results last until that AI's sign-in changes. The instance list carries
each AI's result (aiTest), and POST /api/instances/:id/check goes through
the same record, still live as before, so the welcome's check settles
the default too. Background tests are off under vitest and sealed test
fixtures unless OMB_AI_CHECKS=1, and OMB_AI_CHECKS=0 turns them off.

server/index.ts stays the same length: the default's context now lives
only in selectionContext.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The welcome skipped its Connect an AI step whenever any engine looked
ready, so a machine with only OpenCode's free model never asked for the
person's own AI, and nothing told them the free model was what their
first bot would use.

The step is now left out only once the best ready AI answered one tiny
test message (the server's check, so it also settles the new-bot
default). OpenCode's free model never counts: the step shows and says
the free model is there as a backup. On the step, a connected AI reads
"Checking that Claude answers…" until it answers, then "Connected ·
Claude"; one that doesn't answer reads "Claude is signed in but didn't
answer. Try another way.", the next ready AI gets its own test, and
every other way stays open. An AI with no way to test it is trusted as
before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server's background connection check is a one-shot like memory
upkeep, so the fake Claude CLI no longer writes it over the shared turn
capture that e2e tests read. Also documents how a new bot's engine is
chosen and tested, and OMB_AI_CHECKS=0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two fake Claude accounts, the first never answering a one-shot: the
new-bot default, the first bot and a new bot end on the one that
answered, and a saved default is never tested or moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A status read that drops the account now and then looks like a new
sign-in each time, and each test that finishes reads the engines again,
so a flaky status could have sent a stream of test messages. The
background now tests one AI at most every five minutes; a check the
welcome or Settings asks for is never held back, and a result still
resets as soon as the sign-in changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A free backup that had answered its test beat a real AI that hadn't
been tested yet, or couldn't be, so signing in to Claude left new bots
on the free model until Claude's own test came back, and forever for an
AI with nothing to test it with. The backup now comes in only when every
other ready AI didn't answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Servers started by e2e tests with a hand-built environment still send
background test messages, and the fake Claude CLI wrote those over the
one-shot captures and logs tests read (a room's fallback title, the
turn capture). It now answers a connection check on its own, untouched
by the one-shot reply knobs, records it in FAKE_CLAUDE_CHECK_LOG only,
and FAKE_CLAUDE_CHECK=fail|hang scripts it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An OpenCode still listing its models is no free fallback (its catalog is
empty) but not a real AI either: the welcome now counts only an AI that
offers a model, as the new-bot default does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review findings on the tested default:
- One failed test message (a 529, say) moved the default and the Chief to
  OpenCode's free model for good. A missed test is now tried again in two
  minutes; only two misses in a row count as "didn't answer", and a
  failed AI is tried once more ten minutes later.
- The first bot the app made carries a kept "follows the default" mark
  (with the results, in providers/ai-checks.json). It ends for good when
  the person writes to it or chooses a model for it or a conversation.
  It moves only after a test result, only to an AI that answered, and only
  away from one that didn't answer or up to a better one, so a status read
  that times out never moves it, and a restart can move it back up.
  Every other Chief, promoted or made by a team setup, never moves.
- Results are kept for a day per instance, sign-in and engine settings,
  so a start or a settings save sends no new test message.
- The background tests only the person's own AIs, in the order the
  default takes them; an organization's models and the trial credit are
  never tested there.
- Only the latest read of the engines settles anything.
- A default saved as the New Bot defaults' model counts as saved.
- The instance info carries the plain reason a test failed (aiTestError).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Connect an AI step said "signed in but didn't answer" whatever the
check found. It now shows the check's own plain reason when there is one
(signed out, a used-up limit, no answer in 90 seconds), including what the
server's background test found, with Check again and every other way to
connect still open. The plain line stays for a failure with no reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode files a session from a folder outside git under its global
project, which every non-git folder of the person's shares, so each
connection check (and each memory upkeep step) showed up in their OpenCode
history there. An ACP engine can now name where its one-off folders go;
OpenCode puts them inside the OpenMaus project its model discovery
already uses, so they stay out of the person's own projects. Gemini CLI
keeps history per project folder (checked on 0.40.1), so the throwaway
folder already keeps a check out of the person's projects; Kimi keys
sessions by working folder too (not checked here, no Kimi installed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- When the first bot's AI missed its latest test and the default moved to one
  that answered (for example the one the welcome just checked), the first bot
  stayed behind while the welcome said the other AI was connected. It now
  follows, and moves back up if its own AI answers its retry.
- A first bot made before any AI could run stayed on a signed-out engine once
  another one answered. It now leaves one that plainly says signed out or is
  turned off. A status read that timed out says neither, so it still moves
  nothing.
- After the third miss an AI was left alone for a day; it is now tried again
  once an hour, so a used-up limit or a short outage doesn't hold it back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a later start an engine the start-up read hasn't reached yet is described
from the last run's status. That status dropped freeFallback, so until the read
reached OpenCode its free models alone ranked as an AI of the person's own, and
the welcome could take them for one that already works; its test result's
sign-in key didn't match either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A later start reads the engines one at a time and settles no default until that
read ends, so a check the welcome made meanwhile found no default to follow and
the first bot stayed put until the next result. It now follows once the read
settles, never on the last run's status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode answers session/cancel by ending the prompt with end_turn, so a
person's Stop on a turn with no output surfaced as the red
"opencodeGo ended the turn with no reply, image, or tool result" error
with Retry. A turn the person stopped now settles ok/cancelled whatever
the agent answers, and a request or process the stop cut short is no
longer reported as an error. User-facing ACP errors use the AI's display
name instead of the internal driver id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn whose AI sends nothing at all (no text, thinking, tool call or
progress) for 20 s gets one notice row: "{Bot} hasn't heard back from
{AI} yet.", with a rescue payload the desktop draws buttons from. The
row's tool name is the whole sentence, so phones that print tool names
still read it. The notice settles when the first output arrives, never
repeats in a turn, ignores waits for the computer, and leaves mid-turn
silence to the engine's own 60 s / 180 s notices.
OMB_FIRST_REPLY_NOTICE_MS overrides the delay (0 turns it off).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wires the rescue watch onto the runtime bus for direct chats and rooms,
skipping teammate and routine turns nobody watches live. The internal
turn bookkeeping moves to server/internal-turns.ts so server/index.ts
does not grow. The verification server forwards
OMB_FIRST_REPLY_NOTICE_MS so an end-to-end check need not wait 20 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server now remembers which turn the person stopped. That turn ends
with a single "stopped: You stopped this." row (phones print the words
after the prefix), any error the stop cut it short with is shown as the
stop instead, and it is never counted as a failure.

The Stop route takes an optional turnId: the turn the person saw
running. Once that turn is over, as when a double click's second Stop
lands after the queued message started, the route answers
"already-stopped" and interrupts nothing. A Stop that names no turn
keeps today's behaviour for older clients.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The first-reply rescue draws as a quiet notice with Switch AI (stops
  the silent turn, then opens the bot panel's model picker in Simple
  mode or the header model chip in Advanced) and Connect your
  subscription (Settings, Model providers). It disappears once the AI
  starts answering.
- A turn the person stopped reads "You stopped this." in grey.
- Stop names the live turn it saw from the runtime frames, and a repeat
  within a second (a double click) is never sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
If this client missed a turn's end (a dropped connection), its next Stop
would keep naming the finished turn and reach nothing. The server's
"already-stopped" answer now clears that turn, so the next press
reaches whatever runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the new "Working · time · now · size" line the fading old phrase still
sat out of flow, so a longer one drew over the size beside it ("Piecing
it together" over "· 2 KB" for the 320 ms fade). The new phrase now
replaces the old one in place and fades in; nothing is drawn twice, and
the unused fade-out styles go with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The rescue row carries its turn and the message that turn answers. It
  is marked over (history, no live buttons) when that turn ends, fails
  or gives way to the next one, and nothing is posted for a turn that is
  no longer running, even when its end never arrived.
- Live progress (turn.progress, "Writing index.html · 34 KB") counts as
  the AI answering, so the notice never sits beside it.
- The rescue has its own bus listener and a failed write never escapes.
- server/live-turns.ts tracks each thread's turn from its start to its
  end, and nothing once the thread is idle. The Stop fence, the person
  stop and the rescue all read it instead of the last turn id seen.
- A person stop records nothing when nothing runs or dispatches, and is
  forgotten only by its own turn's start or end.
- A stopped turn keeps what the bot had said for the digest, the Today
  title and the done notification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- An empty turn reads "OpenCode finished without replying." instead of
  "... with no reply, image, or tool result".
- The stuck-turn message no longer names OPENMAUS_ACP_PROMPT_IDLE_TIMEOUT_MS.
- A custom ACP agent's messages use the name the person gave it, never
  "Custom (ACP)".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the stop-first, DOM-polling Switch AI.

- src/lib/ai-switch.ts holds one scoped intent {bot, thread, turn,
  place}. Only the matching picker takes it: the bot panel's in Simple
  mode, the header chip in Advanced. Holding it, the picker opens once
  and may open while the turn runs.
- Closing the picker leaves the turn running. Picking another AI stops
  that exact turn (the Stop names it, so another turn is never reached);
  once it has ended, the new AI is set and the same message is sent
  again on it. If the turn was already over, the AI is set and nothing
  is resent.
- Leaving the chat (the row unmounting) calls the switch off.
- The rescue row keeps live buttons only while its own turn is the one
  running: not when settled or over, not once the chat is idle, not when
  the live frames name another turn, and not when the running turn
  started after the row (as after a reload). Switch AI is hidden in rooms
  and in Advanced mode on a remote client, where there is no model chip.
- The client forgets the turns it saw when the live stream restarts
  without the frames it missed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Switch AI intent left over from a finished turn kept the picker open
to picks during the next turn. The row releases its intent as soon as
its own turn is no longer the one running, and a pick made after that
turn ended is an ordinary switch. A pick already made keeps going.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person-stop mark whose turn's end was lost is dropped when the next
turn on that thread starts (another turn's end still leaves it alone),
and the live-turn tracker drops a turn whose end was lost as soon as the
next dispatch begins, so the Stop fence never matches a dead turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At start no turn runs, so a first-reply notice that never settled
belongs to a turn the restart ended. The rescue module marks every such
row over when it starts (one query on the message log), so phones stop
showing "hasn't heard back" as current and the desktop shows no live
buttons on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When its turn ends without an answer (or a restart ended it), the
notice now reads "Maus didn't hear back from OpenCode.", on the
desktop and in the plain line phones print, instead of keeping
"hasn't heard back ... yet" forever.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The model change no longer depends on the rescue row: an always-mounted
  keeper in the app shell applies it once the stopped turn's chat has
  stayed idle for half a second (a queued message starts right after a
  stop). Leaving the chat or pressing Switch AI again no longer drops a
  pick already made.
- The same message is sent again only while the row is on screen, the
  message is still the person's last word in the conversation, no other
  turn has started since the pick, and a resend carries all of it
  (images and files ride as tags in the text; voice notes, pointed parts,
  data context, an app's message or a spoken line do not). Otherwise
  only the AI changes and Retry stays the person's.
- While the intent is held mid-turn, a change to the same AI (a thinking
  level) is dropped, and the Simple picker shows no thinking-level
  buttons until the turn ends: the server refuses them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pending switches are keyed by bot and conversation: a pick in another
  chat no longer overwrites one whose turn was already stopped.
- Each pick's half-second idle wait depends only on its chat going idle
  and its Stop's answer, read the bot when it fires, and is never
  restarted by another conversation of that bot streaming or another
  pick landing.
- The keeper saves the new AI itself (the same PATCH, or the desktop
  approvals bridge when the pick resets approval to Ask), so it hears a
  "the bot is working" refusal: a turn that began just before the
  switch keeps it pending for the next idle, up to eight tries, instead
  of showing an error and dropping it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It covers any turn until a turn starts, and that start drops it. The
test name and the turnStarted comment now say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts -> 16606, src/state/store.tsx -> 3458,
server/drivers/acp/core.ts -> 1805.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engines read their model lists lazily, so on a fresh start Switch AI could open
the picker on an engine with none listed yet. The picker fell to its local-models
pane ("No local models found") and stayed there when the list arrived.

Now a picker that opens on an engine with no models listed asks that engine for
them and says "Loading {engine} models…" while it waits. Once the engine's own
models arrive it moves back to them from the local pane it fell to, unless the
bot runs a local model; a read that finds none still offers local models. Switch
AI opens the picker the way the model chip does, on the bot's own engine, not
the one it was last left on. The pane logic lives in src/lib/model-picker-pane.ts;
ModelPicker.tsx shrinks to 1201 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Linux sandbox helpers can move into separate process groups and reparent during
Codex protocol interruption. Capture their process identities before interruption,
terminate retained descendants, and verify their exit before reporting completion.

Constraint: Remote cancellation must stop actual HEL1 work from orch-hel1
Rejected: Signal only the original process group | real sandbox heartbeat survived API success
Confidence: high
Scope-risk: moderate
Directive: This snapshot cleanup does not contain processes daemonized before capture
Tested: 273 Linux regression tests; server typecheck; targeted lint; independent review
Not-tested: Native Windows process execution; hostile process containment
cua-driver 0.28.2 refuses browser_prepare's existing_profile strategy in
standard mode unless its daemon was launched with --grant existing-profile
or an authorization host. The desktop's embedded driver has neither (the
SDK's embedded host takes no grant option through 0.37.0), so the attach is
refused for everyone. The refusal names only those two fixes, so bots
relayed "--grant existing-profile" to people who cannot act on it and
stopped the task.

The local computer proxy now appends the routes the bot does have to that
exact refusal (structuredContent.refusal.code browser_consent_required on
an existing-profile message): drive the person's own signed-in browser
through the screen with launch_app/get_window_state/click/type_text, or use
its own browser tools with request_sign_in. The driver's check and every
other frame are unchanged, and the tool list is untouched, because a user's
own CuaDriver.app (the macOS standalone fallback) may be launched with the
grant, where the attach works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a lead working in a project handed work to a teammate outside a
room, the teammate's thread started in its own working folder, so it
loaded another project's AGENTS.md and worked in the wrong repo. Sharing
the folder needed an explicit in_my_folder: true, and only with thread
"new", so the default standing thread never followed the lead.

coordinate_bots now shares the sender's pinned project folder with every
teammate thread it opens outside a room, standing or new, unless
in_my_folder is false. Leaving it out stays silent when there is nothing
to share (a private workspace) or inside a room, where the room's folder
governs; an explicit true is still refused in those cases. Threads that
already exist keep the folder they pinned.

Refs #3517
The gate checked the raw request target, but the server routes on the
WHATWG-parsed pathname, where %2e%2e is a dot segment. A boxed process
could request /api/internal/%2e%2e/bots without a capability, the gate
let it through, and the server answered it as /api/bots with loopback
visibility: bot listings, thread messages and attachments.

The gate now parses the target the way the server does, checks the
allowed prefix on that pathname and forwards only that form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two concurrent publishes of an unpublished file or folder both found no
remembered page, minted two create tokens and stored two pages, using two
quota slots. Publish one at a time per bot and source, and look the page
up inside that section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only readBody() rechecked the turn capability. After Stop revoked it
during folders(), the handler still minted a token, uploaded the files
publicly and answered 200. Pass the capability check and the request's
abort signal through the publisher to the pages client, and recheck
before each token, upload and delete. unpublish_page gets the same gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@muse-code/sdk 1.4.6's spawnMspConnection starts `muse serve` with its
own child_process.spawn. The process skipped spawnCli, so a turn host got
no bot box, no conversation engine home (two Team Cloud members' Muse
turns shared the server HOME) and no process registry, lifeline or
launch receipt.

Start the host with spawnCli (owner "bot" for turns, with the instance's
saved env names allowed into the box; "openmausbot" for the model-list
probe) and run the SDK's public Connection over the child's stdio. The
transport ends stdin, waits up to 10 s, then stops the process group
with killCliTree. A spawn failure now reports describeSpawnFailure's
message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed run posts "This run didn't finish" into the automation's chat, but a
later run that ends with NOTHING NEW posts nothing, so the failure stays the
newest line the person sees even after every later run succeeded.

A run with nothing new now posts one "Recovered: <name> finished OK at <time>"
line (automation.recovered) when the automation's line before it in that chat,
written or still waiting on a busy chat, says a run failed. Later quiet runs
stay quiet. The line does not notify, like the failure line it answers.
GET //[ made new URL() throw before the handler's try, and the async
handler went straight to createServer(), so the rejection was unhandled
and the whole server exited. Parse the target defensively, and catch any
handler rejection at the HTTP boundary with a 500 or a dropped socket.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Answer a request target that new URL() rejects (GET //[) with 400 on
  the device listener and the control port, and refuse it as a viewer
  target, instead of throwing out of the request handler.
- Refuse a pairing credential or device name that is not a string or
  number with 400 before String() can run a body-supplied toString, and
  catch the rest of the pairing chain.
- Handle errors on both ends of a viewer WebSocket and on an upgrade
  socket before its handshake; a reset on one end destroys both.
- Close every viewer WebSocket at shutdown: closeAllConnections() skips
  upgraded sockets, so server.close() never resolved and SIGTERM hung.
- Keep a device in memory when its removal cannot be saved, answer 500
  and let the owner retry, so a restart cannot revive a revoked token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine run that reached its run limit was final, and a teammate's failed
thread was resumed only if its Chief's model chose to call retry_thread. When
that call itself failed (a provider that drops the MCP tool namespace makes
codex answer "unsupported call: retry_thread"), nothing retried at all.

- config.json "retryOnFailure" {max 0-2, delayMinutes 0-60, onTimeout
  resume|rerun|off, threads} and a routine's own "retryOnFailure" override.
  Off while unset: behaviour is unchanged until someone opts in.
- Run-limit timeouts: resumed in their own thread with a fresh limit
  ("resume") or started over in a new thread ("rerun"), up to max, then
  failed with "(after N automatic retries)".
- Never retried: owner cancel/stop (cancelled/interrupted stop reasons), a run
  overtaken by a newer running or completed run of the same routine, or a
  routine whose last 3 runs failed (failure-streak cap).
- Teammate threads that failed or stalled: resumed by the server through the
  same startTurn as retry_thread with "[Auto-retry from OpenMausBot ...]"
  provenance after delayMinutes, unless the person wrote there, the thread is
  running/queued, or it finished a run since. The Chief hears only when the
  retries are used up or the retry cannot start, and is told what was tried.
- Codex driver: reads what the turn appended to its rollout and surfaces
  codex's "unsupported call: <tool>" refusals as a runtime notice and a
  server warning, instead of the call vanishing silently.

- Size ratchet: config.ts, codex.ts, routines.ts and index.ts end smaller than
  before. Moved out: the retryOnFailure schema (routine-retry-policy.ts), the
  SSH alias helpers (vps-alias.ts), Codex's update command (codex-update.ts),
  routine request receipts (routine-request-receipts.ts), and the retry
  refusal for a teammate's thread (host/chief-notices.ts). Re-exports keep
  every existing import working.
- The desktop companion relay answers a request target that new URL()
  rejects (GET //[) with 400 instead of throwing in Electron main.
- The desktop relay and the managed companion origin gateway handle
  errors on an upgrade socket before its handshake and on both ends of a
  spliced viewer WebSocket; a reset on one end destroys both, instead of
  an unhandled ECONNRESET ending the process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/notifications filters by the thread visibility and recipient
predicates, but both mark-read routes ignored them: read-all flipped every
unread row, so on a Team Cloud one admin's "Mark all read" cleared other
people's private notifications, and the single route accepted any id.

Both routes now act only on entries the caller's own list contains; a
hidden or unknown id answers 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PATCH /api/bots/:bot/tasks/:thread with updateBotDefault: true moved the
bot's persistent default model, and the owner check ran only on a Cloud
home. Elsewhere a client-only session could change the default that the
direct bot PATCH refuses it.

The route now refuses updateBotDefault without owner or admin authority
on every deployment. The simple model picker and the bot panel's Thinking
row asked for the default change for anyone outside a Cloud home; they now
ask only for an owner or admin, so a chat-only session keeps changing its
own thread instead of getting a 403.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The renderer previews an image a bot message links with
GET /api/threads/:thread/messages/:message/file?preview=1&ref=N, but the
client allowlist admitted only POST on that path, so a client-only
session got 403 for every linked-image preview.

Admit GET on the same path. The handler still serves a GET only with
preview=1, a numeric ref the message renders, and an image file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Message screenshots (/messages/:id/image) and browser-step screenshots
were sent with "private, max-age=31536000, immutable", and linked-image
previews with "private, max-age=3600" and Vary: Authorization, while
browsers authenticate with a cookie. The browser could show a protected
image after sign-out, or to the next person on the same profile.

Send "private, no-store", as the attachment route already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a session in a shared ACP process ignored session/cancel, the cancel
timeout settled the turn as cancelled, closed only the local link and fired
session/close without waiting, so the session kept running. Now the turn
settles only after the agent confirms session/close; otherwise the shared
process is ended and its other sessions' turns fail explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Writing a shorter refreshed credential through the r+ descriptor left the
older file's tail behind, so the team's file and every copy synced from it
no longer read as JSON. Truncate the descriptor to the written length; the
inode stays the same for the boxes that bind it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
steer() parked input and answered "steered" while the last completion
request ran, but the loop then ended without reading the parked input and
the server queued nothing, so the follow-up was lost. A turn now takes
another round for input parked during its final answer, and steer() refuses
once the turn is ending so the server queues a new turn instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
readMemoryDoc treated every read error as a missing file. A save
against the empty-file hash then replaced an unreadable topic and
recorded before:null, so the journal lost the original. Only ENOENT now
means absent; other errors propagate and the write or delete is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no plan accounts the refresh body ran to completion synchronously,
so its finally cleared loading before the fulfilled promise was stored
there. Every later refresh returned that promise and never read usage,
even after an account was added. Cleanup now runs after the assignment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A retry that arrived while the same room delivery was still posting got
202 duplicate at once. If the original then failed, for example in voice
synthesis, nothing was posted and no receipt existed, yet the sender had
seen success. The retry now waits for the original: it is a duplicate if
the original committed and is delivered again if the original failed,
using the webhook as it is then (a deleted one is refused). A
non-room delivery that meets an in-flight key gets a retryable 409.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
resolvePostThread returned the stored resultsThreadId without checking
that the task still belonged to the bot. After the person deleted the
Updates task, each delivery appended to a transcript no task showed,
patchTask failed, and the delivery was still recorded as accepted. A
missing task now gets a replacement, and dispatch saves its thread id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EXPLAIN looked only at the next verb, so `EXPLAIN ANALYZE WITH x AS
(SELECT 1) DELETE FROM t` passed the gate as a read and DuckDB ran the
DELETE. The operand is now classified like a statement of its own,
including the verb after a CTE list and nested EXPLAINs; an empty
operand or a CREATE is refused.

With replace: false, a duplicate 63-character table name looped forever
because the suffix was sliced off again. The stem is now shortened to
fit the suffix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statement gate tokenised SQL differently from DuckDB, so a verb the
gate never saw could run behind an allowed one:

- block comments nest: EXPLAIN ANALYZE /* a /* b */ SELECT */ DELETE ...
- E'...' strings take backslash escapes: WITH x AS (SELECT E'\') ...
- dollar quotes take a tag: $a$ ... $a$
- a line comment ends at \r, which the ';' look-ahead missed, so
  SHOW TABLES; --x\rDELETE FROM t passed as one statement

Each one deleted rows through data_sql in DuckDB 1.5.6. The tokenizer
now follows these rules and counts statements in the same pass. A
digit followed by E'...' may be read either way, so such a literal is
refused when the two readings disagree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three more places where the data_sql gate read a statement differently
from DuckDB 1.5.6, each of which let a hidden DELETE run:

- non-ASCII letters belong to identifiers, so `α$a$` is a name, not the
  start of a dollar-quoted string;
- 'a' and 'b' separated by a line break are one literal and keep the
  first one's E'' escapes;
- a statement that fails to parse is parsed again with Unicode spaces
  (U+00A0, U+2000-U+200B, U+202F, U+205F, U+2060, U+3000, U+FEFF)
  removed, so those spaces are refused outright.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
erase() or closeAll() during backend.open() saw no running browser, so the
pending start later published a connected Chrome that no cleanup could
find, on a profile already removed from the map. Every stop now bumps the
profile's epoch and waits for the Chrome being opened; a start begun before
the stop closes what it opened instead of publishing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome was registered only after its Browser.getVersion handshake, which
can take up to two minutes on a first start, so the periodic sweep could
kill it as a stray, and delete the temporary profile a launch was still
preparing. Chrome is now registered as soon as it is spawned. The local
backend reserves the profile folder for the whole launch and releases it
on every outcome; the sweep leaves reserved and registered folders alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A plain HTTP request through the box's egress gate still opened its
upstream connection after the client disconnected during name resolution,
kept a stalled upstream request open after the client left, and outlived
gate.close(), which tracked only client sockets. The gate now drops a
request whose client left while its name resolved, destroys the upstream
request when the response closes unfinished, and tracks upstream requests
for close().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The archive file was opened before fetch() and its close was awaited only
in the finally block, so a failure to open or write it while the request
was pending rejected that promise unhandled and Node exited with code 1.
A stream pipeline now writes the archive, so a write failure ends the
download, aborts the request and rejects the install promise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server loads @duckdb/node-api and @resvg/resvg-js at runtime through
nativeRequire, outside the bundle. The npm package declared only the
1Password SDK, and the Podman image copied only dist-server and dist, so
on both paths Data queries and chart PNG export failed with
MODULE_NOT_FOUND.

Declare both packages at the root package.json pins in the generated npm
manifest. In the Podman Containerfile, stage the native tree with
prepare-duckdb, copy it to /app/duckdb and set OMB_DUCKDB_DIR, as the
main Dockerfile does. This also brings the 1Password SDK into the image.

A test assembles the npm manifest from a synthetic checkout and checks
the Containerfile staging. The npm-package workflow now installs the
packed tarball's dependencies and runs a DuckDB query and a resvg render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn/interrupt that Muse refused was reported as an interrupted turn while
the native turn kept running, and an acknowledged interrupt that never
produced turn/completed left the turn running forever. Both now close the
host before the turn settles; the wait after an acknowledged interrupt is
bounded to five seconds. A second Stop, and disposing the instance, wait
for the same shutdown.

The tests drive the fake `muse serve` with knobs to refuse turn/interrupt,
leave the turn running, and delay its exit after stdin ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A choice made while an earlier answer was still being sent joined the
running sync, whose completion then saved the earlier answer as recorded
and never sent the new one. The sync now checks after each request
whether the answer or the signed-in account changed, does not save stale
results, and runs again until the latest answer reaches the Admin. A
receipt returned for an overtaken email opt-in goes to the newer answer,
so its withdrawal can still be sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C-02: tick() captured its due routines before awaiting the cancellation
of runs that waited unanswered. A routine deleted, paused or rescheduled
during that await still created and dispatched a new run. The due list
is now read again after the cancellations.

C-03: the start, interval and queued ticks discarded the promise of
tick(), and runChecks() rethrew a failed write. A failed save (EACCES,
full disk) became an unhandled rejection, and Node exited with code 1.
Background ticks now go through tickInBackground(), which logs the
failure; runChecks() logs and releases its items. A run whose start
cannot be saved goes back to queued and keeps its task, so the next
pass starts it there without opening another task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A room-goal run whose start could not be saved went back to queued with
its goal task, but the next pass ignored a room goal's threadId and
opened another goal task, once per failed pass. A room goal now reuses
its threadId like a bot run. No other path queues a room goal that has
a thread: recovery never requeues room goals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deploy job needed only the control-plane job, while the broker tests
ran in a vitest shard, so a main push could deploy a broker that failed
them. The deploy job now runs `pnpm broker:check` and `pnpm broker:test`
on the checkout it deploys, before Wrangler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deploy step handed CLOUDFLARE_API_TOKEN to the mutable `v3` tag. It
now names the commit `v3` points to (v3.15.0), like the other actions,
and a test fails on any external action not pinned to a full SHA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The public webhook, the MCP proxy, the authorize alias and every JSON
route read the whole body before checking its size, so a streamed body
without a Content-Length was buffered in full. They now read in chunks
and cancel the stream as soon as it passes the limit. The webhook also
refuses a delivery without its signature headers, or with a stale
timestamp, before it reads any of the body.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two callbacks with the same state both read the empty flow. One redeemed
the single-use code and saved the tokens; the other got invalid_grant
and deleted the row, tokens included. A denied-consent callback during
the exchange did the same. A callback now takes the flow atomically
(migration 0010, `callback_at`) before it exchanges the code or ends the
flow, and only that callback may fill or delete the row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hourly sweep took the first idle installations and spent its 40-call
budget on their bindings in the same order every run. An installation
with more than 40 triggers was never marked done, so each hour disabled
the same 40 again and no later installation was reached.

Each binding now records when the sweep disabled it (migration 0005,
`swept_at`, backfilled from installations already swept), and a run takes
the next 40 bindings not yet swept. The installation's next polls
re-enable only swept bindings the server still wants on, 40 per poll,
until none remain. `disabled_at` stays the server's wish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fetch follows a cross-origin 307 and keeps the custom xi-api-key header,
so a redirect leaked the key and, for synthesis, replayed the speech
text to the other origin. Fail the request instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
team export slugged bot names into skill folders, so "Dev A" and
"Dev-A" both wrote skills/dev-a/<skill>/SKILL.md and the second bot's
skill overwrote the first; a reimport then gave both bots the same
text. Later bots whose folder name is taken now get a numbered suffix,
and the team file references those exact paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The seen key was the detector's occurrence alone, and both turn_stop and
cost use turn:<id>. A turn that timed out and also crossed the cost
threshold kept only the timeout issue. Key seen occurrences by kind as
well, and bump the state version so a state file with the old keys is
dropped; issues.jsonl reads as before.

A fresh state beside stored issues skipped observations no newer than
the newest stored issue without remembering them, so the next scan,
which rereads the last 30 minutes, counted them again. Record those as
seen without counting them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one-minute limit poll and the read on mount woke a sleeping Cloud
home. Mark them background; an explicit refresh still wakes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The trap's selector skipped a[href], so Tab in the call transcript
wrapped before its links. Include links and drop controls that are
untabbable or sit inside a hidden or inert subtree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One unreachable session read cached false for the whole page, so owner
controls stayed hidden until reload. Cache only answered lookups, retry
a failed one while something shows the controls, and update every
subscriber when it answers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hit in the open thread but older than its loaded tail did nothing:
only a thread switch fetched the transcript. Page back to the hit
before focusing it, in bot threads and room threads alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An answer marked the card answered before the server confirmed it, so a
failed respond request left a settled card without controls while the
bot still waited. Track the unconfirmed answer apart from the settled
state and reopen the card on failure unless the server settled it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switching a room's thread to A and then B could land on A when A's
response arrived last, so later sends went to the wrong conversation.
Give room navigation a revision like direct chats have and drop room
responses that a newer navigation overtook. A room frame that names
another thread without its transcript no longer moves the shown thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server route kept its own copy of the bridge's method list. Import
the shared one so the two cannot drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A room response replaced the transcript wholesale, so a live switch
frame, then a streamed message, then the earlier HTTP snapshot dropped
the message. Room responses are now snapshots apart from ordinary
patches: one that a newer snapshot of its thread overtook is dropped,
and one of the shown thread keeps rows and edits that arrived after the
request began. A send the snapshot confirms replaces its temporary copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With My Cloud as home the Server menu has no This computer entry, and every other lending text already says Settings → MausBot Cloud. Terminal is off by default and runs any command with no limits, so the card no longer carries a standing line on every lent computer; the bot's refusal tells the person when it matters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The route's last branch kept an inline copy of stopThreadForPerson (#3436): mark
the handoff stopped, mark the person's stop, interrupt. It now calls the helper,
so a Stop button press and a typed stop take one path, and the route no longer
needs personStops or interruptDirectThread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
core.ts grew past its file-size pin with the shared-process Stop fix. The
per-thread state types (AcpAskFinish, AcpTurn, AcpSession) move unchanged
into server/drivers/acp/turn-state.ts; core.ts drops to 1776 lines and its
pin is lowered to match. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pins the registry entries added to the sweep's in-use set: a Chrome registered
after the process list was read keeps its temporary folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
in_my_folder's description becomes "Default true.", which nets the catalog
one byte under main. The bridged profiles were at +1.83% of their baseline on
main, so the longer description put eleven of them over the 2% cap. The
bridged goldens are regenerated; the baseline is not moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Places menu: show status on non-mac too
Linux: let the Cloud use the screen lent from this computer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The capture before a Codex interrupt added a line to server/drivers/codex.ts,
past its pin. tomlInlineTable builds a -c override value, as
codexCliOverrides does, so it joins it in codex-process.ts; the pin is lowered
to the measured 1847.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision on review: keep list_unread_notifications and
mark_notifications_read, drop the settings tools.

- Removed list_app_settings, set_app_setting and the confirm:true step,
  with their module, route, tests and docs.
- Kept the rule that only finished work (done, delegation-settled) can be
  marked read; everything else, unknown kinds included, stays unread.
- Short tool descriptions (the guidance is in the results): MausBot's list
  grows by 665 bytes (1.07% on the default Chief, 0.98% with skills,
  sharing and voice), down from 3,030 (4.9%).
- The catalog and bridged budget tests gain default+mausbot and
  skills+shared+voice+mausbot profiles with their own baselines, and a check
  that the pair adds at most 2% to the same Chief's list. No existing
  baseline moved.
- server/index.ts: no packed additions. Research, helper and notification
  internal routes are composed in server/routes/internal-tools.ts, and the
  role switches come from roleToolEnv in chief-level.ts. index.ts stays
  16,607 lines and is 134 bytes smaller than main.
- The catalog profile moved to drivers/agents-catalog-profile.ts, so
  agents-catalog.ts stays under the 1,000-line ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
store.tsx had grown to 3543 lines (pinned at 3462). The room frame and
answer code this branch adds (the stale-frame filter, the snapshot fold,
the per-room answer revisions) moves to src/state/room-frames.ts, and the
optimistic-send helpers it shares with the reducer to
src/state/optimistic-send.ts. No behavior change. store.tsx is now 3461
lines, and its pin follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: keep the ElevenLabs key off redirects, unique export skill folders, one sentinel issue per detector
fix(cloudflare): bound broker bodies, own HighLevel callbacks, resume the trigger sweep, gate and pin the broker deploy
fix(routines): revalidate due routines after cancelling and contain scheduler failures
fix(updates): let the latest consent answer win over a sync in flight
fix(packaging): ship DuckDB and resvg with the npm package and Podman image
Name the computer and the switch when a Cloud bot's terminal request is refused
The one-on-one /goal is rebuilt on the group goal-run engine in the
next commits; this removes the second engine (its marker parser, state
machine, route, chip and the lines packed into server/index.ts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No behaviour change. The goal-run loop moves into server/group-goal-run.ts
behind a step callback (a room's member turn today), the lead's private
turns into server/host/goal-turns.ts and the run card into
server/host/goal-cards.ts, so a second kind of conversation can run on
the same engine. The transient retry-once moves from the room step into
the loop; the room step keeps its own wait and lost-claim retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The main-chat check added a line to botAtThreadCapacity. It is now part of
the one return expression, so server/index.ts stays at 16607 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The eight new strings were English-only. Each of the 12 language packs now
has them, placed beside their neighbours, with their source hashes accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new boundaries keep the process alive, but a disk-full or a bug behind
them answered 500 with no trace. Log the cause; tests pin both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(bot-box): check and forward the harness gate's canonical path
fix(muse-code): start muse serve through the shared launcher
fix(pages): stop publishing after the turn ends and publish one page per source
fix(computer): tell a bot what to do when the driver refuses the person's signed-in Chrome
Split out of #3520 by @Platinum-Scripts.

- Codex answers a tool call it cannot route with "unsupported call: <tool>" when an
  AI provider sends an MCP call back without its namespace. That never becomes an
  app-server item, so the call vanished without a trace. The driver now marks where
  the thread's rollout file ended when the turn began and, on turn/completed, reads
  only what the turn appended (capped at 16 MiB, decoding only lines with the
  marker). Refused tools become one runtime.notice in the thread and a server warning.
- The checks that refuse a Chief's retry_thread (thread running, settling, queued,
  or finished a run since it was reported) move from server/index.ts into
  host/chief-notices.ts as retryRefusal, with a unit test.
- Codex's update command moves to drivers/codex-update.ts. server/index.ts and
  server/drivers/codex.ts shrink; their pins are lowered to the measured counts.

Co-Authored-By: Platinum-Scripts <133908028+Platinum-Scripts@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A goal typed in a one-on-one chat (/goal or the Work until done toggle) now
runs on the same loop, marker parser, 13-turn cap, spend-cap rule and run
card as a room's goal. The chat is a room of one: the bot is the lead and
its only member, does the work in its own turns, and a "continue" that
names itself carries its next step into its next turn instead of a worker
turn. Its private envelope is held back with the room's lead-turn guard,
so it never reaches the transcript.

- server/host/one-on-one-goals.ts: the room-of-one step (wait until the
  chat is free, start a control-plane turn, read its outcome), start/stop.
- startTurn takes onSettled, the turn's outcome for work run outside any
  coordinated node.
- The direct send route takes mode: "goal"; the person's Stop ends the run.
- Routines: a "room-goal" with no room runs in the lead's own chat, from
  the editor's new "Just the bot, in its own chat" choice; backups and
  My Cloud keep such a routine.
- Restart recovery closes a one-on-one card left working.
- Tests: the loop with scripted steps (room of one, cap, done marker,
  spend cap, retry, Stop), a one-on-one e2e on the fake engine (done,
  Stop, wait, cap, failure, routine) and the one-on-one spend cap.

Based on c-dreamer's original one-on-one /goal.

Co-Authored-By: Caleb Arumugam <229657586+c-dreamer@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ui): guard room switches, reopen failed card answers, background limit polls, reachable search hits and links
fix: keep memory files, usage refreshes and webhook deliveries consistent
fix: authorize bot-default model changes and notification reads, stop caching protected images
fix(engines): confirm a stopped ACP session ended, keep sign-ins valid, never drop a final-answer steer
fix(coordination): a teammate's thread starts in the delegating bot's…
Allow 16 parallel threads per bot and never queue the main chat
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's direction for this PR:

- No setting. retryOnFailure is gone from config.json, the routine schema and
  input, the routine draft, and its policy module; runs carry no retry count, and
  a run that reaches its run limit fails as before. The moves that made room for
  it (vps-alias, routine-request-receipts) are undone.
- When a routine run or a teammate thread fails, OpenMausBot retries it once by
  itself, then its Chief hears as today, told that a retry happened and how it
  ended: a routine's failure reads "Failed after one automatic retry: ...", and a
  thread's incident says the failure is how OpenMausBot's retry ended (or why it
  did not retry: the retry could not start, or someone wrote there since).
- Never retried: a stall the turn watchdog stopped (#3324), a Stop pressed or
  typed (#3436), a refusal (the AI declined, a sign-in or credit problem, a named
  provider refusal, a start the server refused) and a spent cap (a turn cap, the
  repeat guard, the workspace spend cap). One verdict, classifyRoutineFailure,
  judges both routines and threads.
- One retry path. A thread runs again through chief-notices' retryThread, the
  same start and refusal checks a Chief's retry_thread uses (the route now calls
  it); a routine run through requeueOnce. A run that answered a retry, OpenMausBot's
  or a Chief's, is never retried again, so there is no loop.
- The Codex unsupported-call notice and the retryRefusal extraction were split
  out to #3542, merged in here.

server/index.ts shrinks to 16598 lines (pin lowered). The new "Retried after a
failure" status is translated in all 12 language packs.

Co-Authored-By: Platinum-Scripts <133908028+Platinum-Scripts@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Say an automation recovered when a quiet run follows a failed one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Per-bot /goal in one-on-one chats
fix(browser): close late starts, keep the sweep off starting Chrome, end abandoned proxy requests
fix(data): close data_sql read-only gate bypasses and a load-name hang
fix: keep one malformed request or reset socket from stopping the server, companion or app
markTaskContextExternallyUpdated no longer marks a conversation unread
(#3197), so the automation report writer sets unread next to it, as its
card copy already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At the ACP call site stopCause now gets the engine's name, so a refused turn reads
"Gemini refused to go on with this request (stop reason: refusal)..." like the other engine
errors ("Your Gemini account is out of credits", #3500's "OpenCode finished without replying.").
Callers that don't know the engine (turn outcome, routine runs) still read "The AI ...".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- resolveBotSkills takes an undefined assignment list to mean the library is off,
  so an every-bot skill no longer reaches prompts, /name or the skills index once
  the library is switched off. While it is on, a bot with no assignments gets an
  empty list, so every-bot skills still reach it (turn index, preview, /name).
- The bot's Skills page lists an every-bot skill as the bot's library skill, not
  as one still to assign.
- Tests for both, reset in finally so a failure does not leak into later tests.
- server/skills.ts stays one line under its pin (1391 -> 1390).
- "Every bot" and its hint translated into every locale pack and accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A run OpenMausBot stopped because the person changed provider settings or the
  company connection counts as a stop, not a failure: it is not retried.
- routine-recovery.e2e: a run the turn watchdog stopped as stalled fails at once
  with one notice; a run that crashed once runs again in the same conversation and
  completes; a run that crashes again fails with "Failed after one automatic
  retry" and is never retried a second time. These replace the two tests that had
  a watchdog stall retried.
- routine-checks-engine.test: its failed runs are refusals, as their words say.

Co-Authored-By: Platinum-Scripts <133908028+Platinum-Scripts@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Departments are folders, not walls: any bot can ask, hand work to or
@mention any other bot, in any department, a person's own Chief of Staff
included, with nothing to set up. Reach (canReach) is now separate from
authority (hasAuthority, hasTeamAuthority, canManage), which keeps
deciding who supervises a bot, gets its incidents and escalations,
retries its threads, changes its setup and automations, and writes a
person's brief, exactly as before.

Only a bot's own peers list, archived bots and bot audiences narrow reach.
A bot blocked by its peers list says so in plain words and names its
settings, where Permissions now shows the list with "Let it talk to every
bot". Rosters list every reachable bot, own department first, with the
department as information. Rooms may mix departments; on a Team Cloud a
private chat never hands work into a room or posts in one. OMB_OPEN_TEAMS
is removed: it is now the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The script runs only on Linux in production, and its stand-in apt-get uses
GNU coreutils (stat -c, find), so the three shell tests failed on the
Windows runner (and on macOS). Ubuntu CI still runs them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node 25+ puts its own Web Storage on the global object, which keeps nothing
without --localstorage-file, so localStorage.clear() threw before every test
outside CI's Node 24. Stub a fresh Map-backed localStorage and sessionStorage
per test, as welcome-draft.test.ts does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds chat.handoffDoneWhen to the 12 language packs (accepted in
source-hashes.json) and moves the doneWhen field above peerAsk's doc
comment, which it had taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Brad's voice-latency stack, rebuilt on current main as one change. The
corpus, harness, streamed ElevenLabs call and prefetch window already
landed with #3189; this brings the two remaining wins from #3190 and #3191.

- The voice path caps the first spoken block at 90 characters
  (toUtterances firstBlockMaxChars, passed by /api/tts/prepare), so a
  long opening sentence no longer delays the first sound by seconds.
- A bot that speaks its replies starts speaking from the assistant-text
  deltas the server already sends, instead of waiting for the finished
  message. Blocks are spoken once a later block exists; the finished
  message reconciles what was said. The Speaker gains a begin/push/end
  stream that speak() itself rides, so calls and the speak button keep
  one path.
- /api/tts/prepare masks held secrets: streamed text has not been
  through the stored-message scrub, and only the server knows them.
- The speak gates move out of store.tsx into spoken-reply-stream.ts
  (store.tsx 3461 -> 3456 lines).

Co-Authored-By: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
electron-updater empties its pending cache before it downloads a newer
file (DownloadedUpdateHelper.getValidCachedUpdateFile), so when the quiet
replacement download fails the previously staged file is already gone.
Restoring its "ready" card offered an install that could only fail.
Treat the failure like any other: a quiet one goes idle and the next
hourly check downloads the newest release; disk full is shown.

Tests: the older-or-equal case for an undefined version fell back to
newerFeed's 2.1.0 default (really a failing replacement); and the My Cloud
updater test expects the hourly re-check only off macOS, which stages
natively and is not re-checked (main runs vitest on macOS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A My Cloud owner signed in through the browser has an admin session
with no email field, and a Team Cloud already sends each person their
own profile, so both keep the configured profile. Only other signed-in
people see their own email.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The notice set actionOwnsState, and check() skips every background check
while an action owns the state, so after three failed checks (a few hours
offline) the app stopped checking until the person pressed Retry: a
release published after the network came back was never downloaded.
The notice now leaves the state to the checks, so the first one that
reaches the feed clears it or downloads the release, as described.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every bot can reach every bot
store.tsx is size-ratcheted at 3,461 lines; the focus listener moves to
src/hooks/use-read-shown-chat.ts, called from the shell, with a test that
a focus reads the shown chat only while it is unread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3495 shortens the welcome to the greeting plus Connect an AI when needed;
this branch's tested-AI check now decides whether that step shows. The AI
test expectations follow the shorter flow (Step N of 2, no Meet your
assistant step). store.tsx pin lowered to its measured 3460.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
# Conflicts:
#	server/index.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/Composer.tsx
Conflicts in src/components/Sidebar.tsx and src/lib/sidebar-layout.ts:
main's partitionSidebarBots now also takes viewerEmail and welcoming,
so the options argument stays. The pin rule is narrowed. A group's
pinned Chief is listed with the pinned bots on every client, which fixes
#3089. The main (unsectioned) Chief keeps its own top slot (the phone
hero, and MausBot after the welcome pins it) unless Universal pins is on,
as before. Tests cover both settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Antigravity: pin Google's ACP server 1.4.3 so Gemini 4 Argon is offered
Fix Antigravity startup timeout on Windows during slow unpack
When a site that turns away data centres loads from My Cloud's own connection because none of the
person's computers shares its internet connection, the bot now reads one plain line: the site may
refuse with an error page or "too many requests", and the person can press Use this computer in
OpenMausBot to have these sites open through their own computer. Before, the bot only saw
"This page isn't working" and had nothing to tell the person. Where a browser may not use a
computer's connection at all, nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps both sides: the shared person-stop helper now marks the person's stop and
ends a one-on-one goal; the interrupt route keeps calling it and takes main's
goals dep; the fake ACP CLI keeps FAKE_ACP_IGNORE_CANCEL and the configurable
cancel stop reason; ACP's confirmed close sits beside the end_turn-as-stop fix.
Locale conflicts keep both sides' keys. Pins lowered to the measured counts:
server/index.ts 16237, src/state/store.tsx 3457, server/drivers/acp/core.ts 1775,
src/components/ModelPicker.tsx 1201.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ratchet conflict only: server/index.ts 16238 from main, store.tsx 3456 measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: OpenCode's driver and its tests, the instances route tests and
store.tsx keep both sides (the tested-AI check and the standalone install).
Pins set to the measured counts: index.ts 16238, store.tsx 3452.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no copy of its own the test ran on the process PATH and the known
folders, so on a computer with OpenCode installed (Homebrew, npm) the real
one answered a turn on a free model instead of the fake. Seal the lookup
to node's folder and the test's own copies, as other fixtures do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
registerStandaloneBinDirs runs at the top level of server start-up, and
two readdirSync calls on bin/ could throw (EACCES) there. A copy whose
folder can't be read now stays off PATH with a warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
roomTurnHolds() in admission.ts is the one rule: a live room turn holds a person's own send
only on the room's thread, and every other kind of work (delegations, opened threads, incidents,
routines) still waits for any room turn of the bot. The direct admission, startTurn and the
queue drain all use it, so a person's message queued earlier (for capacity or a busy thread)
drains beside the room turn instead of waiting for it while a newer send overtakes it.

The rule moves out of server/index.ts, which stays at its 16,238-line pin. A new capacity
e2e test proves the drain: it fails when the drain still waits on any room turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot a Chief of Staff (MausBot included) creates, with create_bot or a team
setup (new departments too), now starts with a copy of the Chief's own
connected apps at that moment: the on/off switch, each app's tools, each app's
read or write level and its MCP servers. Exactly the Chief's, never more; the
access level stays the workspace default, and nothing else is copied (no
working folder, browser profile, phone apps or send policy).

The copy goes only to a bot with the Chief's owner and exactly the Chief's
audience, which every Chief-made bot has, so nobody can reach an app through
it that they could not reach through the Chief; any other bot would start with
apps and MCP servers off. On a Team Cloud a grant names an app, not a
connection: an app each person connects still works only in each person's own
private chat, with their own connection.

Bots a person creates keep today's defaults. The setup card and the create_bot
description now say the new bot gets the Chief's connected apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Bundle Inter Variable after the system face; concrete mono stack.
- Round every half-pixel text size to a whole pixel; a test keeps it.
- Midnight secondary ink 60% -> 75%; Daylight and Meadow one step darker.
- Default icon stroke 1.75; softer shadow-lg/xl/2xl; surfaces on rounded-2xl.
- Formatted bot replies read as plain text at a prose measure; short
  replies keep their bubble. Same rule in group chats.
- "Color my messages" off by default; Meadow's own bubble is light.
- Quieter inline code, 600 bold, 18/16px headings, small tables without
  search, row count or wrap toggle.
- Composer: text on its own row, resting two lines tall.
- Settings card titles 16px semibold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenMausBot learned an OpenCode model's effort levels only from
`opencode models --verbose`, which OpenCode 2 rejects. On OpenCode 2 no
model had effort levels in the catalog, so the Reasoning control stayed
hidden until a message had been sent with that model, in that one
conversation, and vanished again after a reload or a model change. GitHub
Copilot models through OpenCode were hit by this.

Model discovery now selects each offered model once on its throwaway ACP
session, one at a time, and keeps the effort choices OpenCode names for it:
exactly what set_config_option accepts before each turn. The survey stops
after 8 seconds, and the model list is kept if OpenCode stops part way.

Tests: the survey, discovery on OpenCode 1 and 2 shapes, an effort switch
mid-conversation, the Simple picker for a Copilot model with and without
efforts, and an opt-in end-to-end test against a real OpenCode 2 binary and
a loopback stand-in for the Copilot API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Tool Router Session uses an auth config it names only while that config is
enabled for Tool Router. Configs people make themselves can have that unset or
off. OpenMausBot named an unset one (Composio ignored it and answered "does not
manage auth for toolkit xero ... specify one in auth_config_override") and
skipped an off one, telling the person to switch on something they had no
obvious way to reach. So Xero and Buffer stayed blocked with the person's own
Composio key even after the earlier custom-auth-config work.

Own Composio key:
- When an app is connected (card requested, Connect clicked, or a call fails
  for want of a config), its auth config gets is_enabled_for_tool_router
  turned on through PATCH /auth_configs/{id}, only for that app.
- The Session is updated in place (PATCH /tool_router/session/{id} with
  auth_configs), so a running bot keeps its MCP endpoint and gets the config
  on its next call; if Composio won't, a new Session is made for the same user.
- Several enabled configs for one app: the most recently created wins, and the
  card's tool result tells the bot which.
- COMPOSIO_MANAGE_CONNECTIONS advertises an optional auth_config_id.
- A failed call's note says what was done or exactly what is missing; a lookup
  that found nothing is not cached.

Managed service: one plain line, add your Composio project key in Settings →
API keys and OpenMausBot uses your auth config from that project.

Session code moves to server/composio-session.ts; server/composio.ts shrinks
from 1289 to 1091 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Composio: apps that need your own OAuth app connect with an auth config made in the dashboard
"Color my messages" keeps its default; only Meadow's uncoloured bubble
changes. Screenshots retaken with coloured bubbles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	electron/cloud-account.node-test.mjs
#	electron/environments.cjs
#	electron/lending-dialogs.node-test.mjs
#	electron/main.mjs
#	electron/one-home-main.node-test.mjs
#	electron/one-home.d.mts
#	electron/one-home.mjs
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/bot-overview.test.ts
#	server/drivers/engine-errors.ts
#	server/host/brief-cards.ts
#	server/host/brief.ts
#	server/index.ts
#	server/routes/bot-patch.ts
#	server/turn-watchdog.test.ts
#	src/components/BrowserPanel.tsx
#	src/components/ChatView.tsx
#	src/components/ConfirmDialog.tsx
#	src/components/DigestChip.test.ts
#	src/components/GoalRunCard.tsx
#	src/components/RoutineCalendarPage.tsx
#	src/components/VoiceSettings.tsx
#	src/components/bot-settings/OverviewSection.tsx
#	src/components/bot-settings/SkillsSection.tsx
#	src/locales/en.json
#	src/locales/pt-br.json
#	src/locales/source-hashes.json
Design refresh: bundled Inter, calmer chat, one type and radius scale
Say why an ACP turn stopped instead of "Model turn failed: refusal"
Updater: keep checking while an update is staged and replace it with a newer release
fix(procs): stop detached Linux sandbox helpers on interrupt
Main's file-size check fails: the design refresh left ChatView.tsx at 1358 lines (pinned at 1354)
and GroupView.tsx at 1480 (pinned at 1477), so every pull request's CI is red on it. Two small
components move into their own files unchanged; the pins go down to the new exact counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set me up: a new bot sets itself up from one sentence
OpenCode: show each model's effort levels on OpenCode 2, GitHub Copilot included
Speak replies sooner: a short first block, and speech while the reply is written
A Chief's new bots start with the Chief's connected apps
Fix main's file-size check: move two small components out of ChatView and GroupView
Cloud browser: explain why Instagram, YouTube and Google sign-in may refuse, and how to fix it
fix: show the signed-in email in the sidebar profile
A timer can fire a moment before the clock reaches the deadline, which let
the survey ask one more model after OpenCode had already run out the budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode effort survey: stop on an unanswered selection
The desktop window's Electron session adds the owner header to every
request for the local server, whichever page in the window makes it, and
the server took any loopback Origin with it. A saved server opened in that
window at a loopback address (an SSH tunnel, a local Docker install) is
another site. A browser request now needs a same-origin Origin and
Sec-Fetch-Site (or the window's own navigation) for the header to count;
the main process, the companion and curl send no browser headers and are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
dompurify 3.4.17 (through mermaid), fast-uri 3.1.9 (through ajv), zod
4.6.7, and Next.js 16.4.3 for the docs site. What remains in pnpm audit
--prod is test and docs build tooling (vitest's happy-dom, the docs
site's vite), which never ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Instagram answers MausBot Cloud's data-centre addresses with 429, and YouTube
and Google sign-in have similar walls. Those sites already open through the
person's own computer while it shares its internet connection with My Cloud,
but only after Use my Mac or the move, which most people never reach.

A desktop app signed in to the person's own My Cloud now lends it the
internet connection by itself: no popup, no click, nothing else lent. A grant
from before the internet option lends it too; an unticked internet
connection, the person's own Off, a Team Cloud and a richer grant a sign-out
stopped are left as they are. The default calls nothing itself, so a sleeping
Cloud is never woken for it. The settings, My Cloud's page and the menu bar
say "Internet connection: on" / connecting, and the move's default grant
keeps an unticked internet connection off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every desktop app signed in to the person's own My Cloud now gets main's Use my
Mac popup once per computer and Cloud, unless it lends every part already, the
person turned lending off themselves, or the popup was answered for that Cloud.
The page's notices queue picks the moment (connected, no welcome, setup,
dialog, call, busy bot or update, ahead of the other cards); main decides
whether it is due, draws it itself in the page's language, and still waits
for a few quiet seconds. Use my Mac turns every part on and asks macOS for
what it never asked, one permission after another; nothing opens System
Settings any more, and a permission that exists is used as it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(sidebar): list the same pinned bots on every client of a server
Start a person's direct message while the bot's room turn runs on another thread
`say` took a reply, voice note or webhook voiceNote that began with
"--input-file=" or "--output-file=" as its own option. The text now
follows `--`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A paired phone and a Team Cloud move-in sign-in could make a bot with
settings neither may change on an existing bot: approval level, always
allow, computer, folder, Chief of Staff, peers, tools, browser profile,
department or a preset, and a move-in could name any team member as the
bot's manager.

One list of a bot's profile fields (who it is, how it looks, its own
playbooks, projects and library skills, its model) now decides both:

- a paired device's new bot is refused (403, nothing made) when it asks
  for anything beyond that list, as its edits already are;
- a move-in keeps only that list when it makes, edits or fills in its
  bot, never takes the team's New bot defaults, and the bot reports only
  to the person moving it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's folder on My Cloud could hold a ".git" file, or ".GIT/" in another
case, and Files would write it into ~/Documents/MausBot, where git (and
any IDE or shell prompt that runs it) obeys its config. The download
filter now refuses .git, .hg, .svn, .jj and .bzr as a file or a folder in
any case, refuses .devcontainer/ like the other tool configs, and matches
the skipped folders case-insensitively.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the desktop, an anonymous loopback GET of a webhook's address or of a
Local VM's status returned the webhook's secret and the VM viewer's
password; anything on the machine can reach 127.0.0.1, including another
OS user. Those GETs now need the desktop's owner header, like the
desktop-viewer routes. A browser sign-in's cookie now also needs proof of
its own page for every GET classed as an effect (connector-card refresh,
desktop viewer, browser stream and these), not only for writes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On "Let it choose" a desktop bot works on this computer's screen, where
fill_login refused ("not on this computer yet") and sent the bot to
request_sign_in. A password is still never typed on a screen, where the
server cannot prove which site a box belongs to. Now, when the bot has a
login to fill and its own browser can be its place, fill_login moves the
conversation there itself (the switch select_computer makes) and tells the
bot to end the turn; the request continues in that browser, the person's
own Chrome under My Chrome, and fill_login fills on the matching site. A
run that cannot move, a bot with no logins or one whose browser is off
still gets request_sign_in, with the reason. fill_login moves out of
server/index.ts into server/host/fill-login-turn.ts; it and select_computer
share one switch helper and one browser-as-place rule.

fill_login already used 1Password; its description now says so, and "No
saved login" says when 1Password could not be read just now.

cua-driver's existing_profile refusal can't be granted by the app: the
embedded host takes no grant option. The note added to that refusal now
steers the bot to its own browser (select_computer browser, My Chrome) and
never to a command-line flag.

The bot panel's "Where it works" offers Browser (My Chrome when the bot's
profile uses it) next to This PC and Cloud desktop, and says where the
conversation works right now when that differs from the choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engines and gateways may end a turn saying only "Request was aborted.",
"This operation was aborted" or "context canceled". The chat drew that as a
quiet "Stopped", as if the person had pressed Stop, and filed no failure.
A decorator on every engine (server/harness/unasked-stop.ts) keeps it a
stop only when something asked the engine to stop (interruptTurn or
stopAll); otherwise the error reads "The AI's request was cut off before it
finished, and nobody stopped it (it said only ...)" and the turn fails.

The Automations list showed a cancelled run as "Stopped" even when the run
recorded why; it now shows "Stopped: <reason>".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot writes a data card's Vega-Lite spec, and its expressions (calculate,
filter, params) were compiled to JavaScript with the Function constructor:
in the app's own origin when the chart drew, and in the server when the
spec was checked. Both now use vega-interpreter, so expression text is
never turned into code, and an escape from Vega's expression sandbox would
have nothing to run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New server codes keep the English fallback:
  - refusals:
    - decider setup;
    - goal runs;
    - reports-to and Chief responsibilities;
    - departments;
    - helper suggestions;
    - notifications;
    - phones;
    - the default model;
    - backups;
    - voice length;
  - chat lines:
    - goal-run progress and outcome;
    - ACP Stop recovery;
    - the tool-count limit;
    - the stall notice;
    - automation recovery;
    - approvals;
  - Resumo inbox lines;
  - phone access summaries.
- Exported goal history keeps its codes through backup export and import. Only allowlisted codes whose English recomposes exactly survive.
- These follow the app language too:
  - the Decide and Extract activity labels;
  - the agent-default model label;
  - the desktop decider setup errors.
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
fetch follows a cross-origin 307. It drops the Authorization header, but
it still replays the speech text body to the other origin. Fail the
request instead, as the ElevenLabs and Grok providers do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server loads bundled skills from ./skills in /app. The Docker server
image and the npm package ship that folder; the Podman image did not, so
it started without them. Copy it, and check that the Podman image copies
everything the Docker server image copies from the build stage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The credential broker and the harness gate refuse every upgrade with 403,
but Node removes its own error listener from a socket it hands to
`upgrade`. A box process that disconnects before the refusal is written
made the write fail with EPIPE or ECONNRESET as an unhandled error, which
ends the server. Destroy the socket on error instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Opening a task, a channel task or a room, or reading a bot, marked every
notification of that thread read, including an ask routed to another
person on a Team Cloud and notifications of a chat the opener cannot see.
It now applies the same recipient rule as the notification routes: the
filter is shared as notificationListedFor and passed to every caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main went red on every platform after Chief-made bots began inheriting their
creator's connected apps: this e2e still expected the old apps-off default.
It now checks the operator's apps switch and MCP servers match its Chief's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A session that is not the owner or an admin saw the "Thread + bot default"
toggle in the Advanced and full views. A pick or an effort change then sent
updateBotDefault: true, the server answered 403 and the picker rolled back
with an error. Hide the toggle for such a session and keep its model and
effort changes thread-only in every view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An opt-in sent without sign-in whose email changed while the request was
in flight dropped the receipt it got back, so the older email stayed
registered with the Admin and nothing on this computer could withdraw it.
When the newer answer is an opt-in for another email, the overtaken
receipt is now kept on the record as replacedReceipt, and every sync
withdraws it before it sends anything else. A failed withdrawal keeps it
for the next sync, launch or sign-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When OpenMausBot restarts, historical tool calls whose turns were interrupted
or terminated before completion were rendering with animated WorkingDots and
a 'Running' status indefinitely.

Bound tool liveness to the active turn and bot/room run state:
- Add `liveToolIds` helper to determine which tool activity messages belong
  to the currently active turn.
- Render uncompleted historical tool receipts as unverified with a static
  neutral indicator instead of active animated dots.
- Update timelineEvents, runSteps, ToolActivity, ChatView, GroupView,
  VerifyCard, and RunLog accordingly.
store.tsx: main dropped the currentCall import; keep only the stop-turn
import. Size pins set to the measured counts (index.ts 16237, store.tsx
3453, acp/core.ts 1775, ModelPicker.tsx 1201); ChatView and GroupView
stay at main's 1348 and 1457.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main added the staged-update re-check (a newer release replaces a staged one,
failed replacements drop it) and the Ubuntu elevated install. Both kept; the
check-failure notice counts only quiet failures that reach routeError, so
hourly re-checks behind a staged update stay silent and never cover its card.
Adds a test for that interaction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Result/status unrecorded and unverified." read like a log line. The chip, the
run log and the run summary now say "No result" and "{count} with no result",
in all 12 language packs, with their source hashes updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A retry that waited for the original room post re-checked only the webhook
id and endpoint after the wait. If the original post failed and the secret
was rotated meanwhile, the retry carrying the revoked secret still posted to
the room. Verify the supplied secret against the current hash after the wait
and refuse it with the usual invalid-webhook response.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
failRun(), the busy-target deferral stamp, the deferral notice and the
move of a queued interval run to its latest occurrence changed the live
run before save(). When the write failed (EACCES, full disk), memory
said failed, deferred or moved while routines.json did not. The deferral
notice then never went out, because memory said it already had, and a
run whose failure was never stored still showed as failed.

saveRun() applies the change, writes, and on a failed write gives the
live run object its fields back and restores the run list save() may
have trimmed, then rethrows as the run-start write already does.
tickInBackground() logs the failure; the next pass retries the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#stop() returned the stop already in progress and dropped the erase
option, so erase() during a close or an idle stop removed the profile
from the map but left its Chrome profile, downloads and screenshots on
disk. Joining a stop now erases once it settles, and bumps the epoch so
a start queued behind that stop does not recreate the profile's folders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve store.tsx: Message picks both main's setupOffer/setupRequest
and this branch's doneWhen from WireMessage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size pins set to the measured counts after the merge: server/index.ts
16233, server/drivers/codex.ts 1829.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page tool call's signal aborted only when its request closed, which on
Stop waits for the engine to be killed (Codex: after its interrupt grace)
and never happens when a grant is revoked with the engine left running.
An upload in flight then committed, answered 200 and posted a live card
for a turn that had ended.

The call's signal now comes from a turn-call registry that index.ts sweeps
whenever it revokes a turn's grant, so Stop aborts the request at once.
An abort that lands while the upload's answer is still being read no
longer counts as a published page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The renderer smoke job failed on every run: the unread effect replaced
the page title with the brand name, so the isolated preview page read
"OpenMausBot" instead of its own "Isolated OpenMaus Chat". Keep whatever
title the page has (the brand name applied at boot in the app, or a
preview page's own) and only add, replace or drop the "(N) " in front.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The renderer smoke job failed on every run at the desktop pass:
`(hover: hover)` was false at 1100px with touch emulation off. A hosted
Ubuntu runner has no pointing device, so headless Chrome reports no hover
and no pointer, and turning touch emulation off hands the page the host's
own pointer again. CDP cannot emulate hover (setEmulatedMedia ignores it).

Start the fixture Chrome with --blink-settings giving a fine, hovering
pointer, and run the desktop pass first, before any touch-emulation call
(which, even when it switches emulation off, swaps the host's pointer
back in). The touch passes still get a coarse, hover-less pointer from
touch emulation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"stops a waiting source" interrupted the Chief as soon as the teammate's
node was running. On a loaded runner the Chief's own turn was still open
then, so the interrupt killed the fake engine before it recorded its turn
and the test found no Chief turn at all. Wait for the source to be waiting,
as the test name says, and hold the teammate on a gate until the source is
stopped instead of a 4 s delay that races it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The room fixture numbers a bot's turns by the turns that already finished.
"runs the owed direct follow-up" opens the hold from inside the Chief's
assigning turn, so a hold that started before that turn recorded itself
took turn 0 again: it delegated and opened another hold, and the cascade
left the resume an unplanned turn, which failed the root assignment.
Match each turn by its own text instead, and check the property the test
names: the follow-up completes while the hold is still working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"gives a Codex return the model chosen while its teammate worked" changed
the model as soon as the "Assigned" reply was published. The reply is
published before the driver releases the turn, so on a loaded runner the
bot was still busy and the change was refused with 409. Wait for the source
to be waiting, as the effort variant of the test already did, through one
shared helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's design refresh moved every text size to whole pixels. The
onboarding phone preview, MausBot step and feature reel it touched stay
deleted here, and the phone pairing view keeps this branch's
settings-only flow with the new 14px and 13px sizes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The name-only greeting, Saving…, Skip setup and the shorter Settings
subtitle now read in all 12 language packs instead of falling back to
English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An Unpublish that ran while an update of the same page was still waiting
for its answer took the page down and forgot its record, and the late
update answer then recorded the removed page again and showed a live card.
Every update now also queues on its page, after its folder's queue when it
comes from a folder, and updates the page it queued on. An unpublish waits
for the page's folder queue and then the page's own, so it runs after any
update of the page in flight, from its folder or from another by page id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the shorter welcome's latest head, which now carries main.
OpenCode's driver keeps both the free-fallback check and main's effort
survey imports. The Connect an AI step keeps its checking, failed and
backup states with main's whole-pixel sizes (13px, 14px). The store
pin goes to its measured 3455 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On CI's Node 24, happy-dom's localStorage outlives a test, so the step
one test reached (Connect an AI) was saved as the welcome's draft and
the next test opened on it instead of the greeting: "expected
'Connect an AISkip setup…' to contain 'Step 1 of 2'". Stub a fresh
Map-backed localStorage and sessionStorage per test, as the welcome
step tests do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Connected · {name}, the checking line, the no-answer and connect-another
lines, and the free backup note now read in all 12 language packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake Admin answered every email-only opt-in with one receipt, so a
test could not tell which email a withdrawal reached. It now issues a
receipt per address and keeps each address's last status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An email-only opt-in stayed registered with the Admin whenever this
computer dropped its receipt without withdrawing it: a new email chosen
after the first was recorded, a new email after an offline withdrawal
not sent yet, signing in so the account held the answer, or signing in
while the opt-in was still on its way.

The record now keeps a list, replacedReceipts, instead of one
replacedReceipt. Every receipt that a later answer replaces joins the
list, and each sync withdraws the list before and after it sends the
answer. A receipt leaves the list only when its withdrawal succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the tested-AI branch's latest head, which carries the shorter
welcome and main. The server install panel keeps the standalone
download note, the app-copy notice and the terminal command, with
main's whole-pixel 12px sizes. The store pin goes to its measured 3447
lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's type scale allows whole-pixel text sizes only, so the notice's
11.5px line and 12.5px button move to 12px and 13px, as the rest of
the app did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The download note, the app-copy notice and its Dismiss, and the
installed card's title and two descriptions now read in all 12
language packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The updater test runs ensureCloudAccount on its own in a VM, and the function no longer reads the outer nativeT binding there. A node test now drives one client through English, pt-BR and back to English.
test(comms): a Chief-made operator starts with the Chief's connected apps
server/index.ts: the internal tool routes keep this branch's one
internalToolRoutes call, and main's abortable published-pages call
(pagesCall, requireActive, signal) beside it.

Main batched markNotificationLogRead (ids[]), so MausBot's
mark_notifications_read marks its fyi ids in one call, as the
Notifications page does.

The +mausbot catalog goldens are regenerated for main's tool
descriptions; every other profile's golden and every BUDGET_BASELINE
is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New bots get the same settings limits as edits, from a phone and a Team move-in
Desktop owner header counts only on the app window's own requests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bot sign-ins on a desktop: fill_login moves to the bot's own browser, and stops say why
Charts interpret a bot's Vega expressions instead of compiling them to code
Reads that hand out a stored secret need the desktop app or a same-origin page
Files never brings version-control metadata down from My Cloud
Mac voice speaks text that starts with a dash instead of reading it as options
Update dependencies with published security advisories
Share this computer's internet connection with My Cloud by default, and ask once to use the rest
On a Team Cloud the @ list offers the team's people next to the bots. A tag of
@Bob in a chat Bob can see notifies Bob alone and puts a line in his Needs you.
"Tell Bob that..." in a private chat uses the new message_person tool: the bot
posts it where Bob can see it, or opens a private conversation between Bob and
the same bot ("From Ada"), and Bob's answer comes back to Ada's original chat as
"Bob replied: ...". Only the message travels; each turn still reads only its own
audience. Person notifications carry forPerson and reach nobody else.

Also: config frames keep the team in the renderer, a team bot's main chat is
never a member's private chat, and the @ list offers the bots the sidebar shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Say when Codex refuses a tool call as unsupported, and share the retry_thread refusal checks
Team Cloud: @mention teammates, and bots can pass a message to a person
Main's Use my Mac popup joins the notice queue here as the full-screen
ask it is: it keeps main's checks (due, call, dialog, busy, update) and
also waits for the first reply and MausBot's first-launch card, skips
the launch the welcome or that card used, and claims the launch when it
opens, as the Cloud Pro popup does. The source hashes are the union of
both sides' translations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a new install it never lands on the first chat or on MausBot's card,
skips the launches they or the welcome used, and claims the next one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main added "relay" to the fields a Message takes from WireMessage, and
this branch added "doneWhen" to the same list; it now carries both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the shorter welcome's latest head, which carries main and its
Use my Mac popup waiting like the other full-screen asks. Size pins go
to their measured counts: server/index.ts 16209, src/state/store.tsx
3455.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A teammate's name and picture are visible to everyone in the team, like any
team app; About you and everything else stay private.

- GET /api/team/people gives each member's pictureUrl to the team's signed-in
  members only, and GET /api/team/people/<person>/picture serves the bytes to
  them alone (403 for any session that isn't one of this team's members, 404
  off a team or for someone who isn't a current member). The address never
  names the upload, changes whenever the picture does, and is revalidated on
  every use.
- PersonFace shows the picture, else the coloured initial, so every place a
  person appears gets it: the Reports to picker, the owner's face on a bot's
  row, the Team map's Who reports to whom, Asking lines, the @ list, Told
  chips, and Needs you lines from a teammate (which now carry fromEmail).
- The people list catches up after any profile save, so a new picture shows
  without reopening the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size and index-route ratchets made every PR that shrank server/index.ts write its exact new
count into the test, so any two such PRs conflicted on that line. Now a count only has to stay at or
under its number; scripts/tighten-ratchets.mjs lowers the numbers (and drops files gone or under
1,000 lines), and prepare-release.yml runs it in the version-bump commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When an agent in its own process ignored session/cancel, the cancel timeout
closed stdin and settled the turn as cancelled at once, while the agent kept
running until the 5 s kill timer. Now the turn settles only once the process
has ended, as the shared-process path already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The five-second wait for a confirmed Stop started only once Muse answered
turn/interrupt, so an interrupt that was never answered left Stop waiting
forever. The wait now starts when the interrupt is sent: without an answer
and turn/completed within five seconds the host is closed and the turn
settles as interrupted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Stop before Muse knew the turn finished the turn while its host was still
starting. The host then became the thread's host anyway; a newer turn or
dispose that had already run left it running with nothing to close it. A
host that finishes starting for a stopped turn is now closed at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A steer accepted while the last allowed round ran made the finished answer
take one more round, which the step limit did not allow, so the turn failed
with "Stopped after 64 steps". The turn now stops taking steers when its last
round starts: the answer completes and the server queues the message for
the next turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A steer accepted just before the turn failed or was stopped was never read,
while the person saw it delivered: it was still parked, or it went out in a
request the provider rejected. The turn now posts a notice asking the
person to send that message again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When an agent ignored session/cancel and its process tree could not be
killed, the turn still ended as a clean cancel next to the runtime error.
Now it ends as failed with stop reason stop_failed, so the person sees that
the agent may still be running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed tool call or an announced action answered in the last allowed
round asked for one more round that the step limit did not allow, so the
turn failed with "Stopped after 64 steps" instead of its real outcome. In
the last round the turn now ends at once: a tool failure as tool_error, an
announcement as incomplete_action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The answer added to the history before a steer or an announcement nudge
dropped reasoning_content and reasoning_details, which the tool-call path
keeps. A thinking-mode provider such as DeepSeek rejects the next request
with tools when that reasoning is missing. All three paths now build the
assistant message the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After Muse acknowledged turn/interrupt, nothing marked the turn as stopping
until the five-second window ran out. A second Stop sent another interrupt,
and dispose reported the turn stopped at once while its host still ran. Stop
now records one shutdown when it sends the interrupt: it ends with
turn/completed, or with the host once the window runs out. stopAll records
its own shutdown the same way. A second Stop and an overlapping dispose wait
for it, and a turn is reported stopped only after its host has ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the tested-AI branch's latest head, which carries the shorter
welcome and main. Size pins go to their measured counts:
server/index.ts 16209, src/state/store.tsx 3447.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team Cloud: teammates' pictures instead of their initials
Merges a10af98d6, the Codex notice branch with origin/main 6baf59b38 in
it, so this branch lands cleanly whether or not that one merges first.
server/index.ts's size pin is the measured 16230.

The merged suite failed where the one automatic retry ran a turn it must
leave alone; each is now judged as the PR intends:

- A person's Stop on an engine that ends it as an error ("session
  closed", rpc_error) counts as cancelled: the host's own stop record
  decides, not the engine's word.
- A turn's runtime.error flags (setup, trialCredit, stalled,
  limitResetsAt) reach the teammate-thread verdict, so a used-up trial
  credit or a sign-in problem is not retried.
- stopReason tool_error (a tool call the person denied, or one that
  failed after its corrective rounds) is never retried.
- A routine start that failed before its turn began (onDispatchError,
  e.g. no cloud desktop hours) is "refused": judged by its words as
  before, never retried as a crash. "refused" no longer skips the
  owner, rate-limit and provider verdicts.
- reportIncident reads the thread only for a thread that can reach its
  Chief, so a private Team Cloud chat goes to its person untouched.

acp-recovery.e2e now expects the one automatic retry: it runs on a
replacement process that loads the same session, fails as the fake
still refuses, and the person's next message runs on a fresh process
with no replay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's ratchets now fail only on growth, so the size pins are main's.
App.tsx keeps main's needsYouVersion people loader and this branch's
Switch AI keeper; index.ts keeps main's cloud lending and team
messages wiring beside this branch's markStopped person stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agents-catalog.ts keeps this branch's catalog profile module and main's
person tools; main's team switch (OMB_TEAM_PEOPLE, message_person) moves
into agents-catalog-profile.ts beside mausbot, and agents-mcp-env.ts
carries both switches. index.ts's internal routes keep the one
internalToolRoutes call and main's teamMessages.internal after it.

The +mausbot catalog goldens are regenerated for main's catalog; every
other golden and every BUDGET_BASELINE is main's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
source-hashes.json is merged key by key: main's file and order, plus
this branch's two every-bot keys in each locale. Main's ratchets now
fail only on growth, so the size pins are main's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
Main now holds the Codex notice branch, and its ratchets fail only on
growth, so the size pins are main's (server/index.ts is 16170, under
its 16173).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Add MCP server card opens with one box: paste a server's link, a
`claude mcp add` or `claude mcp add-json` command, an npx/uvx/docker line,
or an mcpServers block. The app fills in the name, transport, headers and
environment, and asks only for values the paste left out: a variable from
the terminal ($CF_ID, ${CF_ID}) or a placeholder is never saved as written.
The full form folds behind Edit details; headers and environment variables
are name and value rows with hidden values, and saved values stay
write-only.

Saving tests the server and turns it on when it answers ("Connected: 12
tools"); otherwise it stays off with the reason and Try again. A signed-in
server is turned on the same way. On a Team Cloud the card says everyone on
the team can use the server, and Only for me keeps a one-key server as the
person's own key.

A Team Cloud e2e adds a gateway-protected server (two Cloudflare Access
style headers) from the pasted command and has a member's turn list and
call its tool; the broker test does the same through the credential broker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A connection test that fails because the server refused the credentials
(HTTP 401 or 403 with no sign-in to offer, or an MCP "unauthorized" error)
now says so in plain words and names the headers to check, never their
values. Its one button, Fix the keys, opens the edit form with only those
header values to type again; saving tests again and turns the server on
when it answers. Try again stays for a server that couldn't be reached or
timed out; an error a retry can't fix gets no button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(chat): show a hand-off's done_when under its chip
Updater: show a notice when update checks keep failing
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
On a CRLF checkout the script's #! line ends in \r, Vitest's module runner
doesn't strip it, and importing the script fails with "SyntaxError: Invalid or
unexpected token", so the Windows vitest shard that picks up its test goes red.
The script only ever runs as `node scripts/tighten-ratchets.mjs`, so the line
goes, and the file is pinned to LF. Reproduced locally by checking the file out
with CRLF: fails with the #! line, passes without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A start waiting for room in #capacity() did not check its epoch. When
erase() or close() stopped the profile during that wait (up to 30 s),
the start still stopped the least recently used idle browser of another
profile once one became free, and a temporary profile lost its sign-ins
for a start that then threw. A closed profile also kept counting as
starting, and so held a slot, until the wait ran out.

#capacity() now checks that the start is still wanted before each
eviction and after each wait, so the start gives up within one wait step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A room goal's outcome, the requeue after a failure and the changes a
runtime event makes to its run all changed the live run before save(),
and stopRun() set goalStatus before failRun(), which saveRun() did not
roll back. When the write failed, memory said completed, requeued or
stopped while routines.json still said running: a run's cost was then
counted twice, and an owner notice was spent on an alert that never
went out.

Each path now takes a snapshot of the run and the owner notices before
its first change and hands it to saveRun(), which on a failed write puts
them back with the run list. A failed write while stopping a run on an
unanswered approval is logged, as a failed scheduler pass is, instead of
rejecting a promise nobody handles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shorter first-run welcome: name only, no second tour, popups wait for the first reply
fix(ratchets): tighten-ratchets loads on Windows
# Conflicts:
#	src/locales/source-hashes.json
The ratchet rule is now "fail only on growth; a PR leaves the numbers alone and
the release lowers them" (file-size-ratchet.test.ts says so), but the
"is already tight on the tree it ships with" case failed every PR that shrinks a
listed file (e.g. index.ts 16173 → 16170). Tightening stays the release's job:
prepare-release.yml runs scripts/tighten-ratchets.mjs. The helper's own unit
tests stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chat rows keep this branch's liveTools and main's MentionPeer type for
mention peers. The language packs and source hashes are a key-by-key
union: main's newer strings plus this branch's "No result" and
"{count} with no result" in all 12 packs. The size ratchet is main's,
since a pull request now leaves those numbers alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add an MCP server by pasting its link or setup command
test(ratchets): a PR that shrinks a file no longer fails the tightness check
fix(external-runtime): a finished hand-off leaves the runtime's conversation read
# Conflicts:
#	server/index.ts
# Conflicts:
#	server/index.ts
#	server/routes/channels.ts
#	server/routes/tasks.ts
socket.destroy() may discard a write still buffered, so the refused-upgrade
tests could count fewer refusals than they sent and time out. Destroy the
client in the write callback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The erase removed the profile only after its stop barrier cleared, so a
start queued behind the barrier could still pass the wanted check, open a
Chrome and recreate the downloads folder. The erase now forgets the profile
inside the barrier, also when it joins a stop already in progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The routine tests that fail a write already hold runs to replacing a
nested value instead of editing it in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The failSave test helper names its count instead of explaining it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Erases that join one another now run one after the other, so a later one
could remove the downloads of a profile started for the same key once the
first erase had finished. An erase now touches only the profile it stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The design refresh gave the message box its own row with a 56 px minimum
and put the buttons under it, so every composer was two lines tall. The
box and its buttons share one line again, and they only wrap below a
30rem-wide composer, as before the refresh. The refresh's radius and type
changes stay.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Move the room header, its members' faces and the instructions line out of GroupView

RoomHeader.tsx draws the header exactly as before; RoomBulletin.tsx holds the
instructions line and its editor; the responder picker's choice, write and
title live in lib/room-responder.ts so another picker can share them.

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

* Simple mode's room header: the room's name and its members' faces

In Simple mode a normal room on this desktop shows only its name, which
opens the Room panel, and up to three faces with +N, which manage members.
The controls row and the instructions line under it leave the header;
Advanced mode, remote clients, DMs and rooms in setup keep it as it was.
The room answers Find requests from a menu outside it, as a 1:1 chat does.

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

* The room's ⋯ menu: find, threads, share, time per turn and usage

RoomMoreMenu mirrors the chat's round ⋯: Find in conversation opens the
room's find bar, New thread and All threads stand in for the sidebar's
thread list, Share copies or downloads the transcript, Time per turn writes
the conversation's turn limit as the header's picker does, and Usage shows
the room's usage. The turn limit and usage summary are shared with the
header controls they came from.

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

* The Room panel: who responds, working folder, instructions and members

Built from the bot panel's rows in the same right-hand slot: a hero with the
room's faces, name and description, then one card. Who responds opens a page
of radio rows that writes what the header's responder picker writes, Working
folder opens the room's folder picker, Instructions edits the room's
instructions in place, and Members opens Manage members. Escape leaves a
page first, then closes the panel and hands focus back to the room's name.

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

* Open the Room panel beside the room in Simple mode

App draws the panel in the bot panel's slot while the open room's panel is
open, and closes it when another room or a bot panel opens or the mode
changes.

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

* Keep focus in the Room panel when a page opens or closes

The row or Back button that was pressed goes with its view, which left focus
on the page body where Escape no longer reached the panel. Focus now moves
to the page's Back button, and back to the row on the way out.

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

* Decide when the shell shows the Room panel in lib/room-panel

useRoomPanelShown holds the rules App used inline, so they can be tested
without the whole shell.

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

* Test the Simple room header, the Room panel and its ⋯ menu

Who sees which header (Simple, Advanced, remote client, DM, room in setup),
the name opening the panel and the faces opening Manage members, the
header's drag-region cut-outs, each panel row's value and write, Escape's
order and where focus lands, each ⋯ item's write, the room answering Find
requests, and when the shell closes the panel.

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

* Lower GroupView's size ceiling to its new 1,241 lines

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

* Check dir=auto on the instructions fields where they now live

The room's instructions editor moved from GroupView to RoomBulletin, and
the Room panel edits them too.

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

* Leave GroupView's size ceiling for tighten-ratchets.mjs

The ratchet file says a PR that shrinks a file leaves its number alone; the
release script lowers it. Reverts 8903e68f6.

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

* Screenshots of the Simple room header and the Room panel

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
parseCmdShim matched only .js and .exe targets, so an npm shim whose bin is an extensionless #!/usr/bin/env node script (droid, grok) fell through to spawning the .cmd itself, which Node rejects with EINVAL since CVE-2024-27980. Try the node shebang parser on the remaining targets first; a target that is neither a node script nor an .exe still returns null, so the no-shell boundary does not move.

Co-authored-by: RootBugs <194338447+RootBugs@users.noreply.github.com>
* Type refresh: Geist, greyscale smoothing, medium names in Simple rows

The app had no type of its own. Most skins asked for the system face and
rendered SF Pro, with Inter bundled behind it. Text also drew heavy: since
#2518 the body uses the default (`auto`) smoothing, which thickens every
stem on macOS, so regular text read close to semibold, worst on dark skins.

- Geist and Geist Mono are bundled (@fontsource-variable, OFL) and lead
  every skin's stack. Geist is the website's face. The paper skins
  (Atelier, Lagoon, Linen) keep their system faces and Pop keeps its
  rounded face, with Geist behind it in place of Inter.
- The body uses greyscale smoothing (`antialiased` / `grayscale`), which
  reverses #2518. Smoothing has no effect on Windows.
- Simple-mode bot and room names in the sidebar go from regular to
  medium, so they stand out from the description and preview under them.
  Advanced rows keep 15px semibold.
- Meadow and Daylight spelled `blinkmacsystemfont` in lowercase.
  Chromium skips that casing, so since the design refresh those two skins
  (Meadow is the default) rendered Inter while every other skin rendered
  SF Pro. The stacks are rewritten, and a test now checks the spelling.

The Inter, System, Poppins and Serif font choices in Settings are
unchanged. System still gives SF Pro.

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

* Before and after screenshots of the type refresh

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Once a night, at the tidy hour, the bot that owns the brief reads its
recent chats together in one model call. A dream files what only shows
across chats into memory, updates notes the chats made outdated, and
suggests up to three things to set up, such as a routine for a request
the person repeats. Those ideas show in the brief's Ideas section as
plain text for a day, and never notify.

There is no switch: only the brief's owner dreams, only while the brief
is on, and only with two new chats, so it is at most one call a night.
Cause: "Backup models for this bot" let a person pick only an engine. Adding
one saved that engine's default model, and the list showed the model as plain
text with no way to change it (#3443).

Change: each backup in the list has a model picker with the models its
engine offers, filtered as Automatic recovery's own picker filters them. A
saved model the engine no longer lists stays shown and selected. The server
already takes any model for a backup.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Cause: the chat-completions parser keyed every streamed tool-call part by its
index and refused a part without one. Gemini's OpenAI-compatible endpoint
streams each call whole in one chunk, with an id and no index, so every turn
that called a tool failed with "provider returned an invalid tool-call index"
(#3540).

Change: a streamed part with no index but an id goes to the slot of the call
with that id, else the slot after the last one. Parts with an index work as
before, and a part with neither is still refused.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
People asked for OpenMausBot to start when they sign in (#3447). The app
added a login item only while this computer was lent, hidden, and offered no
way to choose one.

Open at Login is now a checkbox in the app menu (macOS) or File menu
(Windows, Linux), and a switch in Settings, General. The person's own login
item opens the window, and lending never removes it: on macOS it is not
marked as lending's, on Windows it has a Run entry name of its own, and on
Linux its autostart entry has no hidden flag or lending mark. My Cloud's page
reaches the switch once it is home, and turning it on from there takes a
real click.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Cause: the driver waited 20 s for Pi's new_session or switch_session answer,
then took the timeout for "no session needed" and sent set_model and the
prompt. Pi's late answer replaced the session under the running prompt, so
its extensions went stale and the turn never ended (#3586).

Change: the turn waits for that answer however long it takes, and after 20 s
the chat says Pi is slow and that Stop cancels the turn. A Pi that refuses
the command still goes on without a session, and a turn stopped while it
waits sends nothing more.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
After the move to My Cloud the window is My Cloud's page, so a Cloud that
still serves an older page offers no Terminal choice anywhere. The menu-bar
lending menu is this app's own: it now has a Terminal checkbox that asks in
main's own dialog before it lends, and shows what is lent once main answers.

The move's default lend and Use my Mac rebuilt the grant without the
terminal, so a lent terminal went off on the next pass. They now keep a
terminal lent now; one lent before an Off still never comes back.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs: spec and plan for My Chrome on My Cloud

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

* feat(lending): the lent computer's door to its own Chrome

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

* fix(lending): the Chrome door lets through one upgrade and nothing pipelined behind it

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

* fix(lending): the Chrome door closes when Chrome hangs up before answering; tests count every byte

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

* feat(lending): the device link carries a Chrome stream, and the computer checks its own grant

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

* feat(lending): the desktop lends its Chrome to My Cloud when the person turns it on

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

* feat(cloud): My Cloud knows which lent computer lends its Chrome

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

* test(lending): fixtures carry the chrome scope

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

* test(cloud): the hostile-pages fixture carries the chrome scope

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

* feat(cloud): a per-session door from the bots' browser to the person's lent Chrome

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

* feat(cloud): My Chrome profiles on My Cloud use the person's lent Chrome

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

* fix(cloud): judge My Chrome's who-may-use after the call's own claim; no fallback, no stale door

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

* feat(ui): My Chrome on My Cloud in browser profiles, and the Your Chrome switch

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

* chore(lending): the Chrome door passes lint

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

* fix(lending): Your Chrome is not carried across an Off

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

* test(cloud): My Chrome on My Cloud end to end; docs

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

* test(cloud): a Cloud home that fails after it starts is stopped with what it started

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

* fix(cloud): a lent Chrome connection counts only once Chrome answers 101

Chrome holds its answer until the person clicks Allow and answers 403 on
Deny, so the door records unreachable at join and clears it only when the
first bytes back start a WebSocket upgrade.

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

* fix(cloud): a guest's call on My Chrome learns nothing of the owner's computer

The not-lent and offline answers move after the call's own claim and its
not-allowed check, so only a caller who may use the computer hears whether
it lends Chrome or is online. Other sessions keep the egress rule as is.

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

* fix(cloud): a memory change points My Chrome's refusal to Memory

The browser host now gets the lending refusal's reason instead of a yes/no,
so a turn refused because the bot's memory changed hears the Chrome version
of the Memory sentence; a new conversation would be refused too.

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

* fix(lending): Chrome's folders use Windows paths on Windows

chromeDataDirs joins with path.win32 on win32 and path.posix elsewhere, so
the test reads the same on every runner, and it returns no folders when the
base folder is unknown instead of relative paths.

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

* fix(cloud): with no Chrome lent, say both ways out

My Chrome profiles still never fall back on My Cloud. The bot's not-lent
answer now also names updating OpenMausBot on the lending computer and
switching the profile to Built-in, and the profiles dialog says the
profile's bots can't browse until then.

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

* docs(lending): each test option's comment sits above its own field

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

* fix(lending): the lending lines name a lent Chrome

The Cloud's card of shared computers and the line under My Cloud's switch
list Chrome like the internet connection, so a Chrome-only grant no longer
shows nothing.

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

* fix(cloud): a My Chrome profile with no lender shows how to lend Chrome

On My Cloud with nothing lent, the profiles dialog showed a My Chrome
profile's sign-ins panel, whose answer is a 409. It now shows the My Chrome
note and, in the bot's panel, how to lend Chrome.

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

* test(cloud): the real agent-browser and Chrome run only when asked for

Layer B of the My Chrome e2e no longer picks up a local OMB build's
agent-browser, so a plain test run never starts a real Chrome; it runs only
with OMB_TEST_AGENT_BROWSER set.

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

* fix(cloud): a browser left on an earlier door to your Chrome is closed first

After a Cloud server restart a My Chrome session's agent-browser daemon can
outlive the server, still told the old door's address; attached browsers are
never swept or idle-closed. When this server first opens a session's door
and a daemon for it is running, it is closed once, and every caller waits
for that before using the new door.

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

* fix(cloud): a door refused under a guest never tells the owner someone else wrote

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

* fix(ui): the lend hint on My Cloud speaks of My Chrome profiles, not this profile

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Main's type scale (fea554a64) rounds 12.5px text to 13px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* @devs: report a bug to the MausBot team from any chat

Typing @devs in a chat (last entry of the @ list, or typed by hand) sends one
bug report to the MausBot team's endpoint (POST /api/bug-reports on the Cloud
origin). The server detects the tag, so the desktop app and the Cloud work the
same way.

The bot answering the message gets a note on its turn and a new built-in
report_bug tool to add a summary: what went wrong, what it saw, steps to
reproduce. When no summary comes (no tools, failed turn, tool not called, no bot
answered, turn still running after 10 minutes, restart) the server sends the
report itself once the conversation is quiet. Facts: app version, OS, desktop
or Cloud, each bot's engine, model and engine status, connected apps, recent
failed turns, failed tools and stops in that conversation, the server's latest
warnings and errors, and the ids. Only the person's message and the bot's
summary go, never the conversation or a file. Everything is redacted (key
shapes, bearer/basic authorization, cookies, URL credentials and parameters,
private keys, the server's own secret env values) and bounded inside the
endpoint's limits.

The person sees "Sent to the MausBot team (report <id>). Milind and Omkar get
it by email and will reply to <email>.": in the bot's reply, or as a notice
line when the bot does not say it. A report that cannot go yet (offline, server
error, hourly limit) waits in devs-reports.json and is sent again on its own;
the notice says so, and says again when it goes.

Fixture servers send to a loopback fake or a closed port, never to the team.

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

* @devs: the @ list's row in Russian

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
pi.ts grew to 1,152 lines in #3601, past its 1,146 pin. Moving the MCP server
setup into its own module puts it at 1,110; nothing else changes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
OpenAI-compatible endpoints can serve a smaller window than the model's
nominal one, so a guessed window compacts too late or rejects too soon.

- Read the window from /models rows: OpenRouter context_length and
  top_provider.context_length, vLLM max_model_len and similar fields;
  take the smallest valid one.
- For llama.cpp, read the configured slot size from /props n_ctx
  (autoload=false, so discovery never loads a model).
- The chat runtime reports context tokens (latest round) and the
  window with each usage update.

Automatic only: no per-model override setting.

Co-authored-by: ohcedar <ohcedar@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
When the desktop app's window shows a server added in the Server menu,
the page comes from that server: About showed that server's version as
if it were the app's, and the profile menu offered that server's update
("Version 0.1.127 available — Update with: npm install -g ...") as if
updating the app would clear it. Updating the app never did.

The preload now tells every page the app's own version and whether the
page is this app's own. It passes the same origin check that already
decides which bridge a page gets, so it is known before anything loads
and needs no network call. main passes app.getVersion() in the window's
arguments.

- About, in the app: the app's own version. On another server's page, a
  second line names it: "Connected to Office Mac · version 0.1.116".
  The name is the one saved in the Server menu, or the page's address
  until the app answers. A browser keeps today's single line.
- Update row, in the app on another server (not a desktop or hosted
  install): "Office Mac can update to 0.1.127", with "Whoever runs that
  server updates it with: <command>". Up to date says "Office Mac is up
  to date". A browser on that server and this computer keep today's row.
- New strings in every locale.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Cause: the Server menu in the menu bar labelled every saved environment with
new URL(origin).host. A local environment has a folder and no address, so
building the menu threw "Invalid URL". A switch saves the new server first and
then rebuilds the menu, so the throw came before the window loaded the new
server: the switch showed "Could not update servers / Invalid URL" and only a
restart applied it (#3550).

Change: a local environment is labelled by its folder, as the popup Server
menu already does.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
The Russian pack called the mode «Подтвердить за меня» in the note shown when it
can't handle a request, while the selector's button says «Одобрять за меня». The
held-notes test requires every pack to quote the button's own name, so main's CI
failed on it after the Russian pack landed.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The desktop now reports its one-time move to Admin (POST /api/cloud/desktop/move-status)
with its own MausBot Cloud sign-in: the phase, what holds it (a stable reason code, including
every reason a move doesn't start), "keep here", the last failed pass by phase and code with
its sentence scrubbed of anything the person wrote, the failure count and since when, the
next retry, the check passes used and the app version. Sent a moment after it changes, at
most once a minute, and every 15 minutes otherwise; fire and forget.

The journal now dates each stage and keeps the last failure until the move is done; the
move itself behaves as before.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Since the Russian pack landed (#3612), two checks on main fail:
- The "Use my Mac" popup is drawn by the desktop app's main process from its own
  word table (electron/use-my-computer-words.mjs), which had no Russian. Russian
  is added, copied word for word from src/locales/ru.json.
- The Russian lending note (lending.explain) was an older text that called the
  button «Выбрать, что предоставить», while the button reads «Выберите, что
  предоставить». It now says what today's English says and names the button as
  it reads.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Downloaded updates installed only on quit or Restart, and many people never
quit the app, so desktop apps stayed on old versions for weeks. Now a ready
update installs through the same quitAndInstall the Restart button uses,
once nothing is under way and the person is away:

- nothing under way: the server's own answer to the move (a bot's turn, a
  routine run, a room, a hand-off, a sign-in), no Live call here or on the
  Cloud the window shows, no move or send to My Cloud, no lending job, no
  company backup, and nobody typing in the app for 30 s (the move's rule);
- the person away: the screen locked, or nobody touched the computer for
  10 minutes, or the window closed or hidden for 2 minutes and nobody
  touched the computer for 30 s.

Quiet is checked again right before installing. Only macOS (Squirrel.Mac)
and Windows (per-user NSIS, silent) install this way; Linux .deb/.rpm/
AppImage stay as they are. A version is tried at most three times. The
window reopens only if it was open, and the first look at the window after
the update says once "OpenMausBot updated itself to 0.1.x." The update
card says it installs by itself the next time the person is away.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A Chief in a room that made new bots and handed them work with the room
as group_id was refused for each one ("no longer a member of this
room"), could not add them with manage_room in a room of another
department, and ended up asking the person to add them by hand.

coordinate_bots now sends work addressed into a room to a bot outside
that room directly, in its standing work thread with the sender (a
fresh thread with thread "new"), exactly as a hand-off from outside a
room, and its reply resumes the sender as any direct hand-off's does.
Room membership does not change, so nobody new reads the room. The
sender's conversation shows "Sent to <bot> directly: it isn't in this
room." (naming the room when sent from elsewhere), translated in every
language pack, and the receipt says so.

Every other room rule stays: a Team Cloud private chat and a room whose
setup is unfinished still refuse, as do a source that left, the reach
rules and same-room work outside its conversation, and a member who
left a room's job thread still stops. The remaining membership refusals
say "isn't a member" or "no longer a member" as the case is, and that
work sent again goes to the bot directly.

manage_room keeps its own-department rule: managing a room changes who
reads its whole history, which is authority, not reach. Its description
and refusal no longer send the Chief to ask the person; they point to
coordinate_bots. The room roster prompt no longer suggests the person
add a bot.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Take the Italian catalog from #3581 and record its English source hashes.
Strings the catalog left in English, and the 8 added since, stay untranslated
and fall back to English, so the coverage check keeps showing them.

Co-authored-by: FaberVi <5271475+FaberVi@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(highlevel): bind token refreshes to the token pair they start from

A refresh for one account could finish after another account was
connected and overwrite its credentials while keeping its metadata.
A late 401 for an already refreshed token refreshed again with the
spent refresh token and signed the working connection out.

The store now rotates and signs out only the token pair the caller
read. A call whose tokens were replaced retries with the newer tokens
of the same location, or stops when another location was connected.
The shared in-flight refresh is keyed by the token pair.

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

* fix(highlevel): never replay a create after a 5xx or a lost answer

A 5xx retry sent a new note, task, contact or opportunity a second
time. HighLevel may commit the first POST before it fails, and it
takes no idempotency key, so the retry could create a duplicate.

Retry 5xx only for reads, updates, searches and tag changes. A create
that fails with a 5xx or gets no answer now reports that the record
may have been saved, so the bot checks before it tries again.

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

* fix(highlevel): ignore a replaced sign-in flow's late claim failure

A claim poll of a cancelled flow that failed after a newer flow
started called finish() on the newer flow and cleared it. A relay
hiccup rescheduled the newer flow a second time, so it polled twice.

Check that the flow is still the live one before handling a failed
claim, as the success path already did.

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

* fix(highlevel): stop clamping page numbers to the page-size limit

Contact and opportunity searches passed the page number through the
page-size clamp, so page 51 or later silently became page 50 while the
tool schema accepts pages up to 1,000.

Clamp page numbers and page sizes separately, and take both bounds of
the tool schemas from the client's constants.

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

* fix(highlevel): cap HighLevel answers in bytes while reading them

The 4 MB response limit was checked after the whole body was read and
counted UTF-16 characters, so a large answer was held in memory in
full and a multi-byte answer could pass the byte limit.

Read the body as a stream, count bytes, and cancel the read once the
limit is passed.

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

* fix(highlevel): spend the one refresh only on a real token rotation

Switching to a connection that replaced the call's tokens counted as
the call's refresh. A same-location connection adopted with a dead
token was then signed out without being refreshed. A connection to
another location, made after a real refresh, signed the call out
instead of reporting the changed connection.

Check for a replaced connection on every 401, and count the refresh
only when the relay rotated the tokens the call started from.

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

* fix(highlevel): report a create's unknown outcome when its answer breaks off

When HighLevel sent the headers and the body stream then failed, the
raw stream error reached the bot. A note or task that HighLevel saved
came back without the warning to check before trying again.

Treat a body that cannot be read like a lost answer: a create reports
that the record may have been saved, other calls say to try again.

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

* fix(highlevel): bound how often a call follows a changing sign-in

A call that met a 401 after its tokens were replaced followed the new
tokens without limit. If the sign-in kept changing while each request
waited, the call never ended.

Follow at most three replacements per call, then stop with a plain
error that leaves the newest sign-in signed in.

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

* fix(highlevel): report a failed create as possibly saved before reading the 5xx answer

A create that got a 5xx read the answer first, so an answer over the 4 MB
cap surfaced as a size error and the model could retry the create. Cancel
the body and throw the unknown-outcome error before reading it.

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

* fix(highlevel): retry a failed read before reading the 5xx answer

A repeatable request read the 5xx body before its single retry, so an
answer over 4 MB or one that broke off threw from body() and the retry
never ran. Classify the first 5xx before reading the body, as the create
path already does, and cancel the discarded body. A second 5xx still
reads the body and throws as before.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Node cannot spawn cursor-agent.cmd without a shell; resolve the installer shim
to powershell.exe with the sibling .ps1 and forward probe argv. Document the
behavior in docs/cursor.md and cover real shim layout in env-path tests.
* Approval level: change it while the bot works

Picking a level no longer needs the bot to stop first. The 409s in the
bot and thread routes and the busy checks in the desktop's private
approval channel are gone, and the composer, the + menu, bot settings,
the bot panel and team settings keep the level selectable while a bot
works, with one note saying from when it applies.

One mechanism: every approval decision OMB makes for a running turn
reads the conversation's saved level at that moment
(server/host/live-approval.ts), not the copy taken at dispatch.

- The chat runtime reads it before each tool call (approvalModeNow), so
  API engines apply a change at the next call, up or down.
- request.opened answers a native engine's permission prompt at the
  current level, so raising to Full access answers the next prompt.
  The engine's own mode (bypass, sandbox, native reviewer) is set when
  the turn starts, so lowering from Full access or moving between Ask,
  Auto-accept edits and Approve for me applies from the next turn.

An open card stays for the person to answer. Delegated and room levels
are unchanged. server/index.ts shrinks by 13 lines.

Co-authored-by: ohcedar <ohcedar@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Italian: the approval note for a working bot

The Italian pack arrived with the old "stop the bot first" string; it now
carries the new note, accepted with generate-locale --accept.

Co-authored-by: ohcedar <ohcedar@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: ohcedar <ohcedar@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GroupView.tsx: main moved DefaultResponderSelect into RoomHeader and this
branch moved the room setup check into src/lib/room-setup.ts, so both
blocks leave GroupView. The live-tool wiring is kept on every tool chip.

source-hashes.json: three-way merged per locale and key; the locale check
passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clicking New bot (sidebar menu, New chat panel, Ctrl/Cmd+N, the calendar's
"Create your first bot", MausBot's setup step, a department's New bot, a
paired device) now makes the bot straight away from the saved New bot
defaults and opens its chat with the caret in the message box. Shaping it
comes after: Set me up under its greeting, and everything else in its
settings.

- Defaults are the ones the form used when accepted as is: the saved New bot
  defaults, the workspace's default AI when they name none, a friendly name
  no other bot has ("Helper 2" when a saved name is taken), colour and
  picture as the defaults set them.
- On a team's Cloud the bot is made in the place the person is in, reports
  to the person its department reports to or else to its creator, and opens
  the creator's own private chat. A department's New bot keeps the dialog
  where it is and ticks the new bot.
- With no AI set up, the bot is made without one (the server's onboarding
  behaviour) and takes the first AI connected; before, the create request
  insisted on an available model and failed.
- Defaults that say Auto on this computer start the bot on Ask with a note
  on how to turn Auto on, since that level needs the person's own OK.
- A failure shows "Couldn't make a new bot: <reason>" in the chat banner (or
  the department dialog), and no half-made bot is left. A double click or
  repeated shortcut makes one bot. New bot closes open settings so the new
  chat is in front.
- Templates keeps its ready-made bots and their review (Add opens it, as its
  subtitle promises); presets stay in that review's Starting role.

Removed: the popup path for New bot (the toggleNewBot action and newBotOpen
state, the App-level dialog, the companion's Create bot popup, the dialog's
section and preserveSelection props, add-bot.ts, createBotWithRole) and the
tests that pinned them; unused strings newBot.intro, newBot.blank,
newBot.blankDescription and newBot.profileFailed in every language. New
strings newBot.failed and newBot.startsOnAsk in all 15 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Chrome row's Full screen button only took the panel to the whole
screen (a native full screen on macOS, which disables minimize), leaving
no way to give the browser the rest of the app window. A Maximize
control now overlays the app window; Escape or Restore size brings it
back. The consuming Escape preventDefaults in the capture phase, so the
same press never closes a dialog beneath.

Fixes #3584
- List downloaded LLMs from GET /api/v1/models; keep v0 loaded probes as fallback
- Allow @ quant suffixes in lmstudio inject ids; merge native catalog in openai-compat on loopback
- Settings: LmStudioServer (port, optional token, placeholder key lm-studio) and English copy
* fix(automations): tell the chat about a run missed before it had a conversation

#3225 moved a bot's run reports from status cards to lines of their own, but a
line points at the run's own conversation. A run missed while the computer was
offline, or failed before its conversation was created, has none: speaksFor()
still claimed it, so no card was posted, the chat was not marked unread, and the
routine-failed notification opened a chat with nothing about it. Such runs keep
their card again.

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

* fix(automations): keep the card for a missed run that already had a conversation

A run requeued with its threadId (for example after a usage-limit retry) can
still be marked missed when its routine ends before it dispatches. runFailed
only writes a line for failed runs, so speaksFor must not claim such a run
either; otherwise the chat again shows nothing.

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

* fix(automations): leave a missed run of a brief routine to the brief

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts: this branch folds the research and helper internal routes
into internalToolRoutes (which adds MausBot's notifications); main added
devsReports.internal on the same line. Both are kept, so the line answers
the same paths plus the notifications pair. index.ts stays at 16,157 lines.

agents-catalog-wire.test.ts: main's BUDGET_BASELINE values are kept
unchanged; the two new +mausbot profiles are pinned at their measured
size (+665 bytes, about 1%, over the same Chief). Goldens regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
The Cursor ask_question test waits for answer.json to exist, then parses it. On a slow macOS
runner it read the file between create and write and failed with "Unexpected end of JSON
input" (main CI on af4114825). The fake now writes a .partial file and renames it in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/testing/file-size-ratchet.test.ts
#	src/locales/source-hashes.json
Since the server reads an endpoint's context window from it (#3619), it sends the fixture provider a GET with no
body. The fixture parsed every request as JSON, so the empty body threw an unhandled rejection that failed every
vitest shard running this file, on main and on every PR.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
With the managed connected-apps service available, the server reports Composio as
configured with or without a project key. The row read that flag, so after Clear removed
the key it still said Configured and kept a Clear button that had nothing left to clear.
It now reads the self-hosted mode; the managed service keeps its own ready line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ui): do not display historical tool receipts as running after a restart
ensureCloudflared returned a connector found in the data dir's
dist-native staging folder without checking it, so a headless
`serve --tunnel` install kept running whatever cloudflared it first
downloaded, even after the pinned version moved on.

Run the existing `prepare-cloudflared --current` step for a staged copy
too. It checks the pinned digest and version offline and downloads only
when the copy is outdated. An explicit OMB_CLOUDFLARED_PATH and a
connector found on PATH are still used as they are. A failed refresh
now rejects instead of returning the stale copy. The staged path comes
from one helper shared with resolveCloudflaredBinary, so the two cannot
drift apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot with a tool list (from a template, a team import or the tool
picker) gets no tools of an app that list leaves out. The bot's Apps
switch only wrote connectorScopes, so the switch showed the app on
while the bot could call none of its tools, and the Apps panel listed
the bot under "Bots with limited tools".

The switch now shows off for an app the tool list leaves out, and
switching it on also grants that app every tool. Tools already chosen
for an app stay as they are, and switching off leaves the list alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(bot-apps): switching an app on lets the bot call its tools
A thread another bot opens (coordinate_bots) has no place pinned, so it
followed the bot's Works on. A fixed computer, or Auto with a Local VM
up, mounted only that computer, never the built-in browser where the
person had signed in. A delegated turn has no select_computer, so the
bot asked the person to switch in the Screen panel of a conversation
nobody watches, and the job expired.

A thread with openedBy now mounts the built-in browser beside whatever
computer it works on, and its prompt tells the bot to report a missing
place to the bot that gave the job instead of waiting for a person.
Threads a person opened keep one place per turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode Settings becomes five pages (General, AI, Computer, Usage &
billing, Updates) in a calm dialog: one surface tone, labelled groups of
rows, 0.5px hairlines and pill buttons. Power-user tuning folds under a
quiet "More settings" at the bottom of each page; a link to a folded
setting opens its fold. Advanced mode keeps today's layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts: keep main's live approval import and drop quoteInNote from the
peer-provenance import, since the retry prompt now lives in host/chief-notices.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The native catalog probe went to every OpenAI-compatible server on loopback /v1, so a
llama.cpp or vLLM server got a GET /api/v1/models it never serves, and every test fake
model server on 127.0.0.1/v1 received a bodiless request it parsed as a chat and threw on.
Those unhandled rejections failed CI on main and every PR. Settings now adds LM Studio with
catalog "lmstudio", and only that marker sends the probe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
source-hashes.json: main's, with this branch's two new New Bot strings added and its four removed popup strings
dropped from every locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LM Studio: only a server added as LM Studio gets the native catalog request (unbreaks CI)
- New installs follow the system theme between Daylight and Midnight; a
  Theme row (System / Light / Dark) tops Appearance, and every other skin
  stays one tap away. Existing installs keep their skin.
- Midnight: a #121212 canvas, a darker #0e0e0e sidebar and one #1f1f1f
  surface for bubbles, the composer and menus, with a hairline ring on the
  composer. Daylight: a #f5f5f5 sidebar, #f0f0f0 bot bubbles and white
  composer and menus.
- The first window opens at 1338x870; the window background, the Windows
  caption overlay and the error pages match the new canvas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
toneForSurface recomputes purple to #8d69ce on #121212 so room speaker
names keep 4.5:1; the other identity tones are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first capture ran in a hidden headless tab, where animation frames never
run and the avatars' faces stay empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The window background follows the system light or dark setting, matching
the new default theme, so light installs no longer flash dark at launch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	src/locales/source-hashes.json
The desktop stopped every lent-terminal command after 30 seconds, and
the server gave up on any shared action after 45, so a weekly scan of
about 100 seconds could never finish from My Cloud.

shared_computer's run_command now takes timeout_seconds (default 120,
at most 240, under the 300-second header wait in Node's fetch that
carries the result back). The desktop honours it, and the server waits
the command's limit plus 15 seconds. Older desktops refuse fields they
do not know, so a server advertises commandTimeouts, a desktop says
commandTimeouts when it connects, and only then does the server send
the field; with an older desktop it waits 45 seconds as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
write_file on a lent computer created a new file but never its folders,
and the path-stripping error left the bot with only
"ENOENT ... open 'brief.md'". A cloud bot without terminal access had no
way to make the folder.

A new file's missing folders are now made one level at a time inside
the shared folder, after the read-only, .git and protected-path checks,
refusing any level that turns out to be a link. A path that runs
through a file now says which part is a file, not a bare ENOTDIR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(surface): a delegated job gets its bot's built-in browser beside its computer
fix(lending): a cloud bot's command on a lent computer runs up to 2 minutes, or longer when it asks
fix(lending): writing a new file into a lent folder makes its missing folders
Tests: the fake ACP CLI writes its question answer whole
Settings: Clear on the Composio project key no longer looks like it did nothing
Rescue a chat that goes quiet, and make Stop look like a stop
Retry stopped runs on the server, not only when a Chief calls retry_thread
MausBot can read your unread notifications and mark finished work read
feat(web): show the unread count in the browser title and app badge
feat(skills): add every-bot library assignment
fix(chat): make mobile block actions usable on touch screens
Test every AI with one tiny message before a new bot uses it
source-hashes.json: main's, with this branch's New Bot strings added and the removed popup strings dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sidebar in Simple mode becomes one quiet field, 280 wide with no
divider. Advanced mode keeps its layout.

- Top row: two round 34px buttons, search and +, right-aligned. The server
  pill moves into the account menu.
- + menu: New Bot, New group chat, Templates, and Archived bots when there
  are any. New chat leaves it in Simple; a conversation starts from the bot
  panel.
- The Chief (or the person's MausBot) is a centred tile with a crown badge,
  and pinned bots are tiles under it. There are no Pinned, Bots or Group
  chats headings; a person's departments keep a quiet label whose ⋯ shows
  on hover.
- Rows: 54 tall, 36px avatar, 14px medium name, 13px preview. A working bot
  shows its live status phrase. Role, engine, Chief and model move into the
  row's tooltip; timestamps and the pin glyph leave the row.
- Row menu: Rename, Pin, Move to department, Mark as Read or Unread, Copy
  conversation ID, More (every other item), then Archive or Hide, and
  Delete.
- Footer: the account avatar and a Connect apps pill with three app icons.
  Automations, Team map and Switch to… join the account menu, which leads
  with a usage line ("Weekly usage · 12% used ›", "Resets in 3 days").
- The collapse tab shows on hover; the collapsed rail keeps search, +, Apps
  and the account menu.
- Submenus open after a 250 ms rest instead of on a pass, close when a
  sibling row takes the pointer, and stay open while the pointer heads into
  them. This applies to every popover submenu and to the row menu's More.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preview line ends with the bot's engine mark at 14px: a brand-coloured
mark at 60% strength, a monochrome one in tertiary ink, both full again
while the row is hovered. The row's menu button moves up to the name line
so the preview line never shifts. The collapsed rail keeps its badge on
the avatar, faded the same way. Tiles, group chats and bots with no AI
show none, and the row's tooltip still names the model and engine.

provider-mark-fade.ts holds the one fade rule, and InstanceProviderMark
takes a subtle flag so the model picker can reuse it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every tile is the same 78 by 92: a 56px avatar over its name in 13px
medium on one line, radius 10, with the rows' hover and selected tones.
The main bot comes first and is the only tile that can wear the crown;
pinned bots follow in their pinned order, and dragging reorders only
them. The tiles wrap as many across as fit (three at 280, four at 360)
and every row, a short last one too, is centred.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before and after now use the same fixture data, with the before shots
taken from main. Adds the tile row with 0, 1, 2 and 5 pinned bots and
a row before and after in Midnight and Daylight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A preset logo drawn in ink alone (OpenAI, xAI) now takes the monochrome
fade instead of 60% opacity, like the engine marks it matches. The test
reads every engine from the mark switch and every preset from the
shared list, so a new logo cannot skip the mapping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Simple mode the head (top buttons and the tiles) and the foot stay
fixed and the list scrolls between them. Each edge of the list gets a
24px band in the sidebar's own surface colour, masked to transparent,
shown only while more of the list lies past that edge: a scroll
listener sets data-scroll-fade to start, end or both, and the band
fades in and out over 150ms. No blur and no tint; Advanced keeps its
glass bars. The tile grid is capped at 40% of the window height and
scrolls inside itself past that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow the system theme by default, calmer Midnight and Daylight, a roomier first window
A blank bot's greeting now carries a card, "What should I help you with
first?", with five lettered answers and Something else, in place of the
Set me up button. A pick marks the conversation and sends its words as
the person's own line, which runs as /setup <words> at once; the chat
shows only the words. Something else works as Set me up did. Anything
else written first runs as typed. Letter keys pick, x closes the card,
and once answered it settles with the answer. A second pick while one is
on its way is refused, so one message is sent.

The fixed answers live in one table on the server and ride on the
greeting. When the person has written About me, the bot's own engine
writes personal ones with its quick model and they replace the fixed
ones while the card is open.

A new bot greets the person by first name when the profile has one, and
a new bot that names no look starts in one of eight shapes and a
non-metal colour, preferring ones no bot wears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each engine family now has a quick model for the setup card's personal
answers, with alternates. A model is passed only when the live list
names it, this instance has not refused it, and the place's policy
allows it; otherwise the next alternate, then the engine's own choice.

- A refusal is retried once on the bot's own model and remembered.
- Engines on this computer or its network, and sign-ins that refuse
  small models, stay on the bot's own model.
- A free model never gets the person's details.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One centred bot pill heads the chat, with the model picker and the bot's
computer kept in view beside it. Every reply sits in a bubble (14/22 text,
18px corners that tighten to 6 where a sender's bubbles meet, 4px apart
within a group and 16px between groups), tables read plain inside their
bubble, and the working line is one friendly phrase beside the bot's face.

The composer is one 44px pill with a round + (Attach files), the field and
one round button in the bot's colour that calls, sends or stops. Work until
done, the conversation's approval level and the call mode move to the bot
panel's Details; a chip shows a mode in the composer while it is not the
default.

The bot panel is 320 wide on the chat's ground with Share and Close, an 80px
avatar and four tabs: Details, Conversations, Library and Computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode's header had no backdrop at all, so text ran under the pill at
full strength, and the composer floated over text that showed beside and
below it.

- Top: the header bar trades its glass for a plain fade into the canvas
  token. Content is hidden at the window edge and back to full strength by
  the bottom of the 60px header. A taller bar (find, a notice) stays plain
  canvas above that stretch. The layer is the bar's pointer-events-none
  pseudo-element, so the pill and buttons stay clickable. The transcript
  still starts below the full header height.
- Bottom: no fade. The composer sits on plain canvas from its top edge
  down, so messages end cleanly at the composer and nothing shows around
  or below it. Rows scrolled into view stop clear of the composer.
- Advanced keeps its glass header and its half-height composer backdrop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bar with x and x2 but no binned x is a horizontal range to Vega-Lite, so a
stacked bar over dates drew as ticks at each value on a y axis that ran below
zero. Bars that span a range are now vertical. The automatic time bucket is at
least the data's own step, so weekly rows get week-wide bars instead of
one-day slivers, and whole-number x bins in whole steps. Date axes read
"Sep 7", "Oct", never "Tue 15".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A data result with a chart now shows the chart inline at chat width, in the
app's light or dark scheme, with its legend above the plot so a phone keeps
the plot wide. The SQL stays behind the title, one tap away, and Open in Data
is a quiet link. The bot's sheet loads once per bot and then follows the
server. A table result is unchanged. data_show's description says what the
person now sees.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A finished turn used to fold everything the bot said before its answer into a
"Worked for 29s" chip, so lines the person had just read disappeared. Now the
bot's own lines stay above the answer, and only the turn's finished tool
steps fold into that chip. With tool steps hidden there is nothing to fold,
so a turn shows its lines and its answer and no chip. Rooms still show a
member's answer without its working notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reply with a table now takes the message's full width while its prose keeps
the reading width. Columns fit the message with wrapped cells and a floor at
each column's longest word, so a 7-column table shows every column on a
desktop instead of hiding the last ones behind a sideways scroll. Only when
even those floors cannot fit, as on a phone, does it keep roomy columns and
scroll sideways. A table short enough to draw whole has no inner scroll box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Times read "weekdays at 9:00 India time", never an IANA id, wherever a
schedule is put into words: the automation sentence, the bot's routine
results and the routine cards. An automation that hasn't run yet says
"First run tomorrow 9:00 AM" instead of "Working · hasn't run yet", and an
enabled one is "On" rather than "Working". The detail panel is titled with
the automation's name, says when it runs and which bot runs it, and shows its
whole instructions. The create result tells the bot the person sees it right
here in the chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now swaps the working phrase in place with no fading copy. Simple
mode's line follows suit, which also drops the prop main removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DMG window used the packager's default 540x380 grey background, where
Finder's white labels in Dark appearance measured 1.18:1. The new 720x440
art stages the drag as a party at the door: the app waits on a welcome rug
with a bot shoving it along, a swoopy arrow with a rider arcs into a glowing
doorway lit with marquee lights around Applications, and a parade of bots in
all ten bodies and twelve colours follows the light spilling out of it.

Both labels sit on mid-tone plates (the rug and a doormat, relative
luminance ~0.178), so black labels in Light and white labels in Dark both
reach 4.5:1, including "OpenMausBot.app" when extensions are shown.

build/dmg/background.svg is the vector source; node build/dmg/render.mjs
renders the 1x and exact 2x PNGs losslessly (opaque RGB, adaptive row
filters, 72 dpi), which dmg-builder combines into the HiDPI background TIFF.
The dmg section places the app at (180, 206) and the Applications link at
(540, 206) with 112 pt icons and 13 pt labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/Sidebar.tsx
# Conflicts:
#	src/components/GlassScrollFrame.test.ts
#	src/components/GlassScrollFrame.tsx
#	src/locales/en.json
# Conflicts:
#	src/locales/source-hashes.json
Every folder lent to My Cloud also gets a copy there through Files' one-way
sync, when it fits (at most 3 GB, within the room the plan's disk grows to).
While the lending computer is away, shared_computer's folder actions are
answered from that copy for the owner's own conversations, and a write to a
folder lent with editing waits on My Cloud until the computer is back. There
it lands under the live write's rules: an untouched file takes the bot's
version (the old one to the Recycle Bin), and one the person changed keeps
theirs with the bot's beside it. Nothing local is deleted.

Copies live in the data folder (sync/lent), which no bot's box shows, so only
lending's own gate reaches them. The Files page folds into lending: Add a
folder lends read only, Stop sharing unlends, and folders it shared before
join lending once it is on, keeping their copies. A Cloud that does not say
lentCopies gets none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A lent folder deleted from disk never stops lending or unlending the rest
  (the same existingFolders filter lending uses), so Stop sharing can't stick.
- A failed lent report or freshness note is logged, never fails the pass, and
  only a 404 (no route) reads as an older Cloud.
- A copied folder answers only with the computer that lends it.
- A write over a file too big to read is refused before it is hashed.
- The prompt says only folders with a copy work while the computer is away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's change that can't land on this computer (a protected place, a name
it can't hold) now shows as the folder's problem instead of "Up to date",
and keeps waiting on My Cloud. A replaced file keeps its own permissions, as
a live write in place does, so a script stays runnable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first run is two screens instead of up to five beats, a popup and spotlights:
- "Meet OpenMausBot": the mascot, a composer typing a few asks by itself and one
  Next pill. With no AI working it also holds the one required action, the
  recommended sign-in with every other way folded under it, and Later.
- "Introducing your Chief of Staff" over the app: Create makes MausBot the Chief
  only where there is none, or Choose an existing bot picks one from a radio list
  and Confirm. It replaces MausBot's first-launch card for new installs.

It lands in the Chief's chat, where MausBot's first messages arrive one at a time
(no AI call): three short bubbles in the chat's own Simple bubble, then what it
found looking around (the AI, the connected apps) with chips for only what is
still missing.

Moved, not removed: the name is greeted from the profile; email stays with the
updates question; import is a chip and Settings > Import; Cloud is a chip; the
microphone is asked for when dictation is used; the app tour and the welcome
replay from Settings. Corner notices and spotlights wait out the first
conversation (met-chief-v1) until the person has had a reply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A lent folder that is a GitHub repository (its own .git, origin on
github.com) tells My Cloud its owner/name, branch and commit, read from .git's
files. My Cloud clones it into the new, empty copy in the background with the
git sign-in it already has, never prompting and running no hooks, at the
computer's commit (or the branch as GitHub has it). The desktop leaves that
copy alone while it is cloning, then Files sends only what differs: unpushed
changes and ignored config such as .env. Without a clone the copy is Files'
as before. While the computer is away, bots see the folder as that repository
and return code work as a branch and pull request with their GitHub tools.

A branch name never reads as an option, one failed clone never stops the
next, and the clone service is built on first use, once the server owns its
data folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/HelperSetup.tsx
#	src/components/MausBotWelcome.test.ts
#	src/components/chat-bubble.ts
#	src/lib/corner-popup.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
<html data-interface="simple|advanced"> follows the mode at boot, on a switch
and when another window switches it, so the stylesheet can scope Simple mode's
look without touching Advanced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cloudflared before 2026.10.2 trusts eight eMudhra (emSign) intermediates with weak private
keys; Cloudflare asks every connector to upgrade, and 2026.10.3 on macOS outside Homebrew.
Archive digests match GitHub's published sha256 digests for the official release; the
release workflows' version checks move with it.

Co-authored-by: tzimiswcc <245546967+tzimiswcc@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A translated key without a recorded hash now counts as current, so a PR
that adds keys with their translations no longer touches
src/locales/source-hashes.json. A recorded hash that no longer matches
today's English still fails `pnpm i18n:check`, and hashes left behind by
removed keys or languages are ignored.

`node scripts/generate-locale.mjs --record-hashes` fills in the hash of
every translated key that has none and drops removed ones. It never
replaces an existing hash, so a stale translation stays stale. The
release bump runs it next to tighten-ratchets and commits the file.

The drafting tool agrees with the check: an unhashed translation is not
re-drafted, and a newly drafted key gets its hash at release; a
refreshed stale key still gets its new hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two PRs merged today each changed the tools' wording, so the pinned catalog goldens no longer matched main.
#3179's "every bot" row used text-[11.5px] and text-[10.5px], which the type-scale test refuses; they are 12px
and 11px now, the neighbouring whole-pixel steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lent folders keep working while the Mac is away
Lent GitHub repositories start their Cloud copy as a clone
Results in chat: charts inline, progress lines kept, tables fit, plain routine wording
Main CI: refresh tool-list goldens, round two half-pixel font sizes
--record-hashes no longer hashes today's English for a key that has no
hash. It finds the commit that last changed the translated value with
one git blame per language file (following the value past a commit that
only added a comma after it), and hashes en.json's text for that key in
that commit. A translation whose English changed before the release is
therefore recorded stale: the script names it and the bump PR's
`pnpm i18n:check` fails until it is refreshed.

Without that history (no git, a shallow clone, or a key en.json did not
have then) it hashes today's English and prints a line saying so.
prepare-release.yml already checks out with fetch-depth: 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode's picker becomes one floating menu on a shared menu surface: the
current model on top with its check, then every ready provider's models under
quiet headings in short names ("Sonnet 5" under "Claude"), Show all per
provider, a search box once the menu holds more than twelve models, Thinking
levels with a way back to Default, and Manage AI accounts. Providers that need
setting up, signing in or checking again say so in a row; Set up and Sign in
open the full picker in place, with Back. The bot panel and bot settings open
the same floating menu without a second Thinking control.

The chip is quiet until hovered: a faded provider mark, the model's name and a
small chevron, a 32px circle in a narrow header and a 28px size for a
composer. The menu floats from whichever side of the window its chip is on,
flips above when it does not fit below, follows the chip while the page
scrolls, and is driven fully from the keyboard: arrows, Home and End, typing a
name, Enter, Escape step by step back to the chip.

Advanced keeps every pane and control and takes the same surface, rows, type
and inside-drawn focus outline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A blank bot's greeting now carries a card, "What should I help you with
first?", with five lettered answers and Something else, in place of the
Set me up button. A pick marks the conversation and sends its words as
the person's own line, which runs as /setup <words> at once; the chat
shows only the words. Something else works as Set me up did. Anything
else written first runs as typed. Letter keys pick, x closes the card,
and once answered it settles with the answer. A second pick while one is
on its way is refused, so one message is sent.

The fixed answers live in one table on the server and ride on the
greeting. When there is something to go on (a name the person typed, a
title or department, connected apps, About me, or what the person's
other bots do), a "setup-suggestions" side job asks the bot's own engine,
or the helper, for personal answers. The card shows a quiet frame for at
most 6 s, then fills once: with the personal answers when they arrive in
time and pass the checks (3 to 5 short options, no jargon, health terms,
links or digits), else with the fixed ones. The first list shown stays,
so a letter key always picks what is on screen. The person's name and
names the server picked are never sent, and shared places send neither
About me nor other bots' jobs. config.json features.smartSetupChoices:
false turns it off.

Every one-off Claude call (titles, compaction, memory upkeep, skill
review, the engine check, permission review and the setup answers) now
runs on claude-haiku-5-5 with --settings
{"alwaysThinkingEnabled":false,"disableAllHooks":true}, so it never
thinks and runs none of the person's hooks. Chat turns are unchanged.
Haiku 5.5 is in the price list for spend estimates.

A new bot greets the person by first name when the profile has one, and
a new bot that names no look starts in one of eight shapes and a
non-metal colour, preferring ones no bot wears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Security: bundle cloudflared 2026.10.3 (compromised eMudhra certificates)
src/components/elevated.ts holds the raised surface every floating control in
Simple mode shares: the composer tone with a faint ink rim, one hover tint, and
--shadow-float, a soft lift in Daylight and none in Midnight. The chat header
pill, the composer, the bot panel's round buttons, the phone ⋯ trigger and the
sidebar's top buttons and Connect apps pill all take it; the sidebar's own copy
of the surface goes. Advanced keeps its header pill and composer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Midnight's ink drops to #f5f5f5 with secondary and tertiary at 66% and 57%, a
softer field and composer rim; Daylight's ink goes to #1c1c1c with a #555555
secondary and lighter fields and controls. Every pair still clears AA.

Menu rows take two new tokens, --color-menu-hover and --color-menu-active: ink
at 6% and 8% in Midnight and Daylight, so a hovered row is finally visible on
the menu, and the raised tone elsewhere. In Simple mode keyboard focus on a row
shows as that fill instead of a ring, and the room and + menus become real
menus with arrow-key navigation.

Advanced mode keeps its Midnight and Daylight palette through a block scoped to
data-interface. check:contrast measures those Advanced variants too, and now
finds the phone palette block, which it had been skipping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every popover and menu carries popover-surface. In Simple mode it paints the
menu tone, which fixes the menus that were painted in the bot-bubble or sidebar
tone (the engine accounts, export, files, thread picker, command palette and
call mode menus), drops the shadow in Midnight and gives Daylight a soft lift in
place of the grey smudge under the account menu. Each site keeps its own shadow
and border, so Advanced and the other skins look as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Midnight and Daylight a primary action is an ink pill on the page colour,
white on dark and black on light, with a muted ink fill when disabled; the
lettered-answer cards and New Bot's Create button take it through the
ui-button-primary hook. A secondary .ui-button is a faint ink wash with an ink
hairline, layered so a call site's own fill still wins.

ui-modal, ui-modal-divider, ui-scrim, ui-button-pill and ui-button-lg are the
kit for first-run dialogs: the menu tone on a 0.5px ink rim at 14px, a soft
lift only in Daylight, and a darker scrim in Midnight. The MausBot welcome card
uses it in Simple mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/ChatView.tsx
#	src/components/GroupView.tsx
#	src/locales/fr.json
#	src/locales/hi.json
#	src/locales/source-hashes.json
#	src/locales/uk.json
#	src/locales/zh.json
Any entry that renders mode-aware components now gets data-interface on its
first subscription, so a page that skips main.tsx's boot (the verification
fixture's entries) can never mix Simple's palette with Advanced's menus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.test.ts
#	server/index.ts
#	server/initial-greeting.ts
#	server/setup-suggestions.test.ts
#	server/setup-suggestions.ts
#	shared/wire.ts
#	src/components/SetupOffer.tsx
#	src/locales/source-hashes.json
#	src/state/store.tsx
Everything addressed to a person on a team now arrives in one place: their
own chat with their own Chief of Staff (their own MausBot while they have
none). A bot's message_person, an @mention, the questions and approvals
routed to them, work handed on that waits on them, and their routines'
results each land there as one line that says who it is from and where it
came from, with one notification. Approvals arrive as a copy of the card
whose buttons answer it where it was asked.

Replying to a line answers it: the answer goes back to the bot that asked,
which carries on, or to the teammate's own inbox. The person's assistant
answers facts it can from what they share with the team (busy times from
their own calendar, shared notes, their bots' work), labelled as theirs,
with no tools and nothing private to read; decisions, approvals and
promises always wait for the person, enforced before and after the model.

The sidebar lists the team's people: your own row opens your inbox, a
teammate's puts @their name in the composer. The team daily brief and the
"new private chat per message" delivery are replaced by the inbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/ci-scope.mjs sorts a pull request's changed files into areas (docs,
locales, web, script tests, server, desktop, control plane, everything) and
outputs the job ids to run, whether static builds, and the vitest matrix:
a renderer change runs the Linux shards and the renderer smoke, a translation
change runs the locale tests in two Linux shards, docs run the three tests
that read the docs, a server or desktop change runs everything that runs the
server. Workflow, dependency, config, scripts/ code and unknown paths run
everything. Pushes to main, merge groups and manual runs are unchanged.

The CI gate now wants each required job to pass when selected and to be
skipped when not. ci-scope.test.ts holds the renderer files the server
loads, the locale readers and the docs readers equal to the repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The name and import-skip moments are gone, so email_skipped and
setup_import_skipped leave both analytics pages. The first run's Cloud moment is
now the Try Cloud chip under MausBot's first messages: it sends onboarding_cloud
(start_trial). onboarding_step and onboarding_completed describe the two screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BotContextMenu moves unchanged into SidebarBotMenu.tsx, taking
Sidebar.tsx from 2304 lines back under its 2106 ratchet (now 1897).
Sidebar still re-exports it.

A focused row lifts its faded engine mark like a hovered one, and a
touch screen, which has no hover, keeps the mark at its resting fade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A finished turn folds only its tool steps into one "Worked for" chip in
  Simple mode too, so the bot's progress lines stay above the answer and
  the steps sit together behind the chip, as in Advanced.
- The transcript keeps one static column class; Simple mode's 16px row
  spacing moves to a data attribute.
- The table's hover actions use the touch variant, so they show on touch
  screens as well as on hover and keyboard focus.
- The message editor moves out of ChatView into its own module, so the
  file is back under its size limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SettingsModal.tsx keeps the page model and the dialog; the shared rows
move to AppSettingsRows.tsx and the five Simple pages to
SettingsSimplePages.tsx, so no file is over 1,000 lines. The Theme row
now leads Simple's Appearance group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/Sidebar.tsx
Simple mode draws its own plain table in the bubble.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size ratchet flagged the three files after the setup card
landed. The code moves to the modules that own it:

- setup-suggestions.ts gets suggestionBasis (what a bot's card may send,
  and the shared-place rules) and setupSuggestionsFor (the server's
  settings, people and connected apps, read at most every ten minutes);
  index.ts keeps one call.
- The setup route turns a refused send into its answer, so index.ts
  passes acceptDirectSend straight in and sendSetupPick goes.
- llmThreadTitlesEnabled moves to thread-title-generate.ts.
- The store's fallback colour rotation moves to bot-look.ts.

index.ts 16224 -> 16157, config.ts 1367 -> 1363, store.ts 2335 -> 2323.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A second OpenMausBot server on the same Mac (a copy run from source) read
the desktop app's driver record from ~/Library/Application Support and
drove the person's signed-in Chrome with no prompt, while its own panel
said this computer was not ready.

- The desktop hands the driver connection to the one server it launched,
  over that child's private utility-process port, and again on every
  change. The server reads this computer only from that message; no
  file, environment variable or route supplies it.
- On Auto, the bot's own browser is mounted beside this computer, and
  web work goes to it first, then a cloud computer, then a connected
  app; the person's own browser or screen comes last.
- Before a bot's first action on the person's own computer in a request,
  unless they picked it as the place, they are asked once in plain words
  at every approval level, "Just do it" included. No is an answer, not a
  failure.
- Plain words for every reason this computer can't be used, and in what
  the bot tells the person; Boat stays credited for cloud desktops.
  Translated in all locales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every bot's prompt gets one "How to reply" section: a short line before
longer work, the answer first with where current facts came from, no
closing filler, look before asking and ask one thing, no machinery in
replies, money facts before a real-world choice, and a plain way forward
when something is refused.

Widgets ask one tap-to-answer question without stopping the turn, and
their private checks no longer leak or misfire on a Textarea. Routine
results name the time zone as people say it and the first run in words;
the turn clock names the zone too. A refused call tells the bot what to
say next.

Memory: "forget" is a memory_update action that removes a fact from the
notes, topic notes, archive and About me and keeps it from being learned
again; remove no longer leaves a dated note with no words. The learner
keeps a preference or fact only with the person's own words quoted, never
from a question, a task or a hypothetical. What it remembers re-reads
when a turn starts and ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Previews quote the bot: a step that went fine gives way to the newest
  thing the bot said since the person last wrote; failed steps and
  recovery or notice lines stay. A helper's intro card is said in the
  reader's language.
- The footer avatar shows a person glyph, never "?", and its name adds
  the reasons for its dot.
- Rows at rest show the avatar, name, preview and faded mark only: the
  selected row's actions wait for hover or focus like the others. The
  mascot is drawn at 42 in the same 36px box, and a department Chief's
  row carries the rail's crown chip.
- One quiet marker system: unread or waiting is one dot at the end of
  the preview (amber when waiting, with an amber preview); working,
  waiting on a teammate and queued are a ring-cut dot on the avatar.
  Markers are hidden from screen readers and the row says them once.
- Account menu: an update that is ready or failed gets its own top row
  with a pill; otherwise the update row sits in Help and support. Files
  and Archived bots join Automations and Team map, so Files leaves the
  footer and rail and Archived bots leaves the + menu. Usage shows a
  percent only.
- Open submenu rows take the active fill in Simple menus.
- Sidebar.tsx exports the bot menu after importing it, which the dev
  server's compiler requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- General opens on Account (profile row 86 tall, a person mark instead of
  an empty disc, Add or Edit), then Appearance with More looks, Notifications,
  System, Import and Advanced mode last as a plain row.
- The fifteen builder controls render only in Advanced; Simple search lists
  each as "{label} · Advanced" and scrolls to the Advanced mode row.
- In Midnight and Daylight the sheet is opaque, 900x700 with radius 12 and
  no shadow; other skins keep their glass.
- Rows, cards, the nav, switches, ghost selects and pills follow one
  anatomy, with plain copy in settings.simple.* keys.
- AI lists your providers as rows with a fold for the rest and one for API
  keys; Computer leads with your bots' computers and devices, and folds
  Connect from elsewhere; Usage & billing leads with one usage block, See
  all limits and the plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Simple the Cloud account card no longer repeats the offer the plan row
above it already carries; Advanced keeps the card's own button. New DOM
tests pin that a letter typed on the open dialog moves into search, and
that choosing a "· Advanced" result opens General at the Advanced mode row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The checked current row only closes the menu; Enter right after opening
  changes nothing. When its engine can't run, it opens setup instead.
- Enter in an empty search does nothing; arrows go from the search to the
  first result below it and back, and up to a row above it.
- A Space typed inside a name stays part of the name instead of pressing the
  row typeahead reached.
- Opening the menu no longer probes every engine for local models; Show all
  and Check again still do.
- Check again waits, with a spinner, while another read is running.
- The chip always names the model, at every header width, and a model the
  catalog names in one bare word gets its provider ("Cursor Auto").
- The bot's model shows once, in "Use Pepper's model", not again in its
  provider's list.
- Thinking is a segmented track like the bot panel's, and its tooltips say
  what it does.
- Set up's full picker starts on the same rule as the list (the bot's default
  too, for an owner), and the engine's probe reason sits behind Details
  instead of a red alert.
- In a long list, the sticky provider heading and Show suggested only meet
  the scroll edges and no focused row lands under them.
- The menu follows its chip when the panel around it finishes sliding in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The approval chip shows only while this conversation overrides the bot, so a new chat no longer shows Full access, and Simple mode names the levels as the bot panel does (Ask me first, Just do it, Decide for me, Auto-accept edits, Custom).
- The + holds Attach files, Work until done (Finish together in a room) and Teach a task, which starts a /learn draft wherever /learn is offered. With attaching the only row, the + opens the file picker.
- Work until done shows as a chip with a x that turns it off. The + sheet, its rows and the composer's small controls take the measured sizes, and the pill gets a stronger hairline on hover and focus and rounds in whenever it grows past one row.
- While the bot works the placeholder stays Message {name}, and Send says what it will do. A room drops its routing hint unless it answers to mentions. The sidebar preview shows the last thing said rather than the bot's last step.
- The round call, Send and Stop button fills with the bot's flat tone and draws its glyph in that tone's ink, which reads at 4.5:1 for every colour. The Share menu says Copy conversation and Download conversation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Tabs are Details, Library and Computer, in a sticky strip with a soft
  fade under it. Details holds a one-row Model card, the conversations
  (moved in from their own tab: New conversation always, search and the
  three newest once there are two or more), routines, and Find and
  Activity for this conversation.
- A gear between Share and Close opens Bot settings: Instructions, Before
  {name} acts with this conversation's level, Call mode, Apps it can use,
  Job and the Hide row. Every title starts on one edge. Ask me first now
  applies to every conversation, as Just do it does, and a level only
  Advanced can set reads Custom with a hint.
- What it remembers, Skills and the working folder move to Library, under
  what the bot made. Work until done leaves the panel for the composer's +,
  and the Thinking row for the model picker.
- Computer shows the screen as one button that opens the full view, a
  resting state, and a Where it works page of choices.
- The avatar editor keeps every body, colour and face; the Halloween bodies
  and faces sit behind More looks, open at once when the bot uses them.
- The docked panel sits on the chat's ground behind a faint rule, Simple
  cards and segments take the composer's surface, and the panel root has a
  stable id for the header to point at.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lent-folder node tests failed on the Windows runner, where the temp folder
is C:\Users\RUNNER~1\...: fs.realpathSync keeps that short name, while the
native real path that lending stores (validateSharedFolders) and sharedPath
checks expands it, so every staged change read as "Shared folder moved". The
tests now use realpathSync.native, as lending does. One test also removed its
folder while Files' database was open, which Windows refuses.

In the code, for Windows:
- A replaced file's permissions are set after the rename, never on the
  half-written file, so a read-only one never lingers where Windows can't
  remove it.
- A rename Windows refuses for a moment (EPERM, EACCES, EBUSY) is tried again,
  as server/atomic.ts does, so the bot's version lands after its original went
  to the Recycle Bin.
- Files and lending compare a folder with one function (folderKey), so a
  folder the Files page shared before is the same lent folder whatever its
  slashes, trailing separator or case.

New cases simulate Windows on any machine: names Windows can't hold, drive
letters, UNC paths, backslashes and case, CRLF git config, a folder spelled
other than its real path, transient rename refusals, and a read-only file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/ProviderIcons.tsx
#	src/components/Select.tsx
#	src/components/provider-mark-fade.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Row menu: Pin, Move to department, Mark as read or unread | Rename |
  Copy conversation ID, More | Archive (Hide for the default bot), Delete.
  More holds Edit profile, Make or Remove Chief, Duplicate, Reports to
  and Move to team, then Delete all conversations, shown only with two
  or more and confirmed with its count. Simple strings are sentence case.
- Menus: 14px radius (22px on a phone in Midnight and Meadow), 6px
  padding with 8px row insets, flush separators, 14px labels, 16px icons
  at stroke 1.5, sentence-case headings, and no shortcut chips. The
  group chat menu takes the same look.
- Top row: 36px round buttons 8px apart at 60px, search 18 and + 20 at
  stroke 1.5; the + menu says New bot.
- Footer: a 36px Connect apps pill with a 14px medium label and three
  overlapping 16px logos whose outer two fan out on hover; a faint ring
  on the avatar.
- Collapse: the hidden edge tab takes no clicks, hides 300ms after the
  pointer leaves, and stays on touch screens; Cmd or Ctrl+\ collapses
  or expands the sidebar.
- Rail: search and + as round buttons at the top; Connect apps, the
  update and the avatar as round buttons at the foot; 54px tiles.
- Section headers: group chats and departments get a 30px quiet header
  whose count turns into the chevron on hover or focus; bots stay
  headless.
- Edges: a faint right edge, and rows, group rows and tiles ring their
  keyboard focus inside their edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A reply's tables leave its bubble: prose stays in bubbles and each table
  is its own card at the message's full width, every column showing. The
  card's header names sort, rows are split by hairlines, and Copy, CSV and
  Expand sit on a hover plate in its top band. Longer tables keep search
  and the row count inside the card. The old plain table is gone.
- Code blocks lose the header bar: a quiet surface, with Copy and a menu
  (Wrap lines, Save as file, language and line count) on a hover plate.
  Diagrams get the same plate. The code block moves to its own module and
  its strings move to en.json for both modes.
- The header pill opens and closes the bot panel and says which; away from
  the main conversation it names the one on screen. Rooms fade under their
  header the same way.
- Bubble text is 15/22 everywhere a Simple bubble is drawn, your bubble is
  one flat tone of the bot, and the question card rounds to 24px.
- The typing row is the 28px face and one quiet phrase; the timer and size
  live in its tooltip, and an answer's tooltip says how long the turn took.
- A card sits 12px under its own bot's bubble, and the time is stamped
  again after a quiet 15 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Midnight and Daylight Simple sheet rules now follow the generic glass
rules, so the tests that read the first .glass-surface and .glass-popup
rules see the other skins' glass and the safe area again; a new test pins
the scoped sheet. The welcome description test reads the rows module,
where the welcome row moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows answers ENOENT, not ENOTDIR, when a path runs through a file, so writing "taken/inside.md" where "taken" is
a file failed with a missing-file error there (main's Windows CI, shard 1). Each step is now checked as it goes: a
file with more of the path after it is refused with the same plain sentence on every platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
releaseTurnResources now closes a turn's open "may I use your computer?"
question, and managed-desktop-cleanup.test.ts runs that function sliced
from index.ts with each dependency stubbed: it lacked the new one. The
fixture now stubs it per generation and checks the original turn's
question is closed. The desktop-computer source check compared Windows
backslash paths with POSIX ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every new bot asked its engine for setup answers, so a fixture server
made one more engine call per bot. A scripted provider answered that
call with the reply meant for the turn (mistral-key-flow,
provider-key-flow), and the greeting's waiting mark cleared after a test
had copied the transcript (direct-coordination). The fake engines cannot
write the answers anyway, so launchVerificationServer starts with
features.smartSetupChoices: false, as the harness suite does. The
production default stays on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lent folders on Windows: native real paths in tests, rename and permissions that hold there
The faded engine logo is now always the last thing on a row's preview
line, flush in the bottom-right corner. The unread or waiting dot moves
to the right end of the name line, in the spot the row's ⋯ takes on
hover or keyboard focus; the dot hides while ⋯ shows, and the name line
keeps that room at all times so the name never shifts. A touch screen,
which always shows ⋯, puts the dot just before it. Group chats and bots
with no AI keep the same dot position.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Meet with no AI keeps its shape: the 288px pill signs in (install, sign-in, a
  pasted or shown code, or the Connect an AI dialog), with "Other ways to connect
  · Set up later" under it; the AI's test message, Checking, failed and backup
  states live in the dialog. One sentence typed once, title at weight 400.
- The Chief step shows only for a MausBot not yet introduced where no other bot is
  the Chief; one Create on a new install, Choose beside it where there are bots, a
  300 ms input guard, an empty app behind it ("No bots yet"), and MausBot flying
  to its tile before the chat opens. Dialogs use the shared modal, scrim and pill
  classes.
- MausBot's three new lines, then a follow-up written once by the server
  (POST /api/bots/:id/helper-followup, MausBot's own person only) as a real
  message the model reads, and up to three chips for only what is missing.
  Advanced mode keeps its one-bubble intro, asks and spotlights as before.
- What the removed steps did comes back: a first run that could offer the Cloud
  settles the Cloud Pro popup, and refused microphone or speech access offers
  Open System Settings. Simple cards carry one-line hints instead of spotlights,
  MausBot's panel lists Try asking, a first run on this computer takes the
  account's full name for an empty profile, and MausBot's own welcome card wears
  the same dialog in Simple mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The table card kept a 24px band above its header for the hover plate, so a
table at rest opened with an empty strip. The header row now starts at the
card's top, and Copy, CSV and Expand float on a small plate over the
header's right end on hover and keyboard focus. Touch screens, where the
plate always shows with 40px targets, still give it a band of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same fixture data and window (1338 x 870): main just before the redesign, then this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a new personal Cloud the app opens on the Chief's chat, which greets the person by
name and asks what they want off their plate. After the first answer it offers Gmail
and Google Calendar with the reason, and the moment one is in it gives a first look:
the week's meetings and overlaps, up to three emails with replies written as drafts,
dates and amounts, and one daily job it could take on. While the look runs, the relay
lets it only read Gmail and Calendar and write three reply drafts. It then says the
8:00 morning brief is on and offers the phone.

The brief on such a Cloud is posted and pushed at 8:00 in the person's zone, led by
what was done while they were away, and a sleeping Cloud wakes for it. What the Chief
does is counted as it happens (value.json); on day two it posts a recap with the time
it gave back. The health report carries the first hour's milestones and the counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the desktop app's own server may use this computer, and ask before using the person's screen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/es.json
#	src/locales/fr.json
#	src/locales/hi.json
#	src/locales/pl.json
#	src/locales/pt-br.json
#	src/locales/source-hashes.json
#	src/locales/uk.json
#	src/locales/zh.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode, redesigned: calmer, simpler, nothing lost
A new Cloud's first hour: the Chief greets, connects Gmail and Calendar, takes a first look, and keeps count
ci: run only the jobs a pull request's change can affect
ci: record locale source hashes at release, not in every PR
server/index.ts: keeps both the About me store this branch adds and main's setup suggestions, declared side by side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots answer first, ask one thing, and remember and forget in plain words
Conflicts kept both sides: main's first-hour hooks beside the inbox's routine
notifications and arrival opener; main's one-off-only side jobs, now with the
representative; main's tool-slug record in the broker fake beside its calendar
reads; main's simple chat row and sidebar imports with the inbox labels and the
People list; main's message fields with `inbox`; both sides' Italian and Polish
strings; main's source hashes plus this branch's new keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"I live on your Cloud" tripped the vocabulary test that keeps the product's names consistent ("your Cloud" is retired
in favour of "the Cloud"), failing main's CI after #3670.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
?onboarding=1 plays a brand-new install, but the preview entry read the mode after
its own boot had written prior-run keys, so a fresh browser landed in Advanced.
Real installs settle the mode first in main.tsx and are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team Cloud: each person's Chief is their inbox
First hour: the greeting says "the Cloud" (main CI fix)
The onboarding preview opens in Simple mode, like a new install
chore(release): bump version to 0.1.130
The "never name your machinery" habit listed MEMORY.md, memory/… and SOUL.md as examples. Every prompt carries the
habits, so a read-and-draft routine's prompt now contained "MEMORY.md", which proactive-routines.e2e forbids (those
runs carry no memory instructions). The habit keeps its meaning without the names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3658 moved cloudflared to 2026.10.3 but release.yml and package-win.yml still compared the packaged
cloudflared.exe with the old build's digest, so 0.1.130's Windows build failed its packaged-tree check. Both
workflows now read the digest from scripts/prepare-cloudflared.mjs, the third-party README is regenerated from the
same pins (it still listed the old build's digests, and lacked Linux arm64), and a test keeps workflows free of
hard-coded digests and the README in step with the pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release: the Windows cloudflared check reads its digest from the pin file (unblocks 0.1.130)
Reply habits name no files (main CI fix: proactive-routines e2e)
# Conflicts:
#	electron/cloud-lending.node-test.mjs
#	electron/error-pages.mjs
#	electron/lending-dialogs.mjs
#	electron/lending-indicator.mjs
#	electron/main.mjs
#	electron/menu.mjs
#	electron/one-home-main.d.mts
#	electron/one-home-main.mjs
#	electron/one-home.mjs
#	electron/updater-coordinator.mjs
#	electron/updater.mjs
#	electron/use-my-computer.node-test.mjs
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/drivers/acp/core.ts
#	server/host/brief-cards.ts
#	server/host/brief.ts
#	server/routes/team-owners.ts
#	server/routes/tts.test.ts
#	server/routes/tts.ts
#	server/routine-recovery.ts
#	src/App.tsx
#	src/components/AboutDialog.tsx
#	src/components/CallView.tsx
#	src/components/ChatMarkdown.tsx
#	src/components/ChatView.tsx
#	src/components/ComposerAttachments.tsx
#	src/components/GoalRunCard.tsx
#	src/components/GroupCallView.tsx
#	src/components/GroupView.tsx
#	src/components/InspectorPanel.tsx
#	src/components/KeyboardShortcutsModal.tsx
#	src/components/LocalComputerSection.tsx
#	src/components/LocalVmWorkspace.tsx
#	src/components/MacLocalControl.tsx
#	src/components/NoEngines.tsx
#	src/components/ReadyBotGallery.tsx
#	src/components/RichTable.tsx
#	src/components/RoutineCalendarPage.tsx
#	src/components/SearchResults.tsx
#	src/components/SecretRequestCard.tsx
#	src/components/SkillsSection.tsx
#	src/components/TeamMemoryDialog.tsx
#	src/components/ThreadChip.tsx
#	src/components/ToolActivity.tsx
#	src/components/UpdateBanner.tsx
#	src/components/avatar-editing.tsx
#	src/components/bot-settings/OverviewSection.tsx
#	src/components/bot-settings/SkillsSection.tsx
#	src/components/browser/ChromeRow.tsx
#	src/components/onboarding/PhonePreview.tsx
#	src/components/onboarding/beats/EnginesBeat.tsx
#	src/components/onboarding/beats/HelloBeat.tsx
#	src/components/onboarding/reel/scenes/AgentChat.tsx
#	src/components/onboarding/reel/scenes/Automations.tsx
#	src/components/onboarding/reel/scenes/Channels.tsx
#	src/components/onboarding/reel/scenes/Hands.tsx
#	src/components/onboarding/reel/scenes/Setup.tsx
#	src/components/onboarding/reel/scenes/Terminal.tsx
#	src/components/remote-desktop-panel.tsx
#	src/components/routines/CalendarSidebar.tsx
#	src/components/routines/CronScheduleFields.tsx
#	src/components/routines/RoutineList.tsx
#	src/lib/automations.ts
#	src/lib/tts/index.test.ts
#	src/lib/tts/index.ts
#	src/locales/en.json
#	src/locales/pt-br.json
#	src/locales/source-hashes.json
#	src/main.tsx
#	src/pair/BrowserSignInPage.tsx
#	src/pair/PairPage.tsx
#	src/state/store.tsx
- New server codes keep the English fallback:
  - setup and approval refusals;
  - engine-check timeouts;
  - ACP stop reasons and empty replies;
  - unasked cancellation, slow Pi sessions and unread in-turn messages;
  - unsupported Codex tool calls;
  - handoff labels, team relay bodies and app-owned bug report receipts.
- Runtime notices retain their translation metadata when stored in the conversation.
- These follow the app language too:
  - the native unrestricted-terminal confirmation and empty sharing choice;
  - trusted approval refusals after process/request correlation;
  - fixed update and elevated-install details, after English error classification;
  - MCP authorization failures that have no HTTP status.
- Preserve technical and model-facing English, editable titles and memory provenance. Keep vocabulary-blocked report variants English rather than changing copy or weakening tests.
- Cover English parity, pt-BR rendering, fallback, string params, redaction, persistence and native safety defaults.
#3667 dropped "and end your turn" from the yes-or-no line so bots keep working while they wait; the reactions e2e
still pinned the old sentence and failed on main.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Give message_person and report_bug their own activity keys while keeping
  their English labels unchanged.
- Pin the coded setup refusals in the shared Team Cloud and harness HTTP
  expectations, including their exact English fallbacks.
- Cover both activity labels in English and pt-BR, and accept the two new
  translations against their English source.
The Simple header's fading bar is shorter than its 60px fade, so the whole
bar paints nothing and the transcript reads straight through the controls
row; the picker's trigger had no rest background either. Both triggers now
sit on the same bg-composer surface as the bot pill beside them, and their
hover and expanded fills stay opaque instead of a translucent ink wash.

Contained pickers (bot settings) keep their current look.
Track grant changes per environment so Stop, forget, decline and newer saves prevent a pending save from restoring access. Cover Cloud and Computer access with controlled identity waits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recheck consent freshness after reading the account choice and before posting a local answer. Exercise account switching with the real Cloud client against a synthetic Admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Block transient RPC retries after a native turn was acknowledged or parent notifications arrived before its acknowledgement. Cover missing acknowledgements and transient RPC errors with a synthetic tool side effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5248e71fbdc21b70afce27febb431a9690f832cd)
(cherry picked from commit 8c0020ad07bef6304816d3028ad0dbd832f725c2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 385505a85b856c5b0da8b4cbd6c493137675d00e)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2860ce9becbc2253bf56bf8b4cb81c6303288313)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Catch the entire background check at both scheduler launch sites so final receipt failures remain retryable without an unhandled rejection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Capture the definition revision before checking, release stale batches and recheck the current definition. Refresh checked manual runs from that same definition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seal scheduling on close, release late check results and revalidate queued work after awaits. Fence server dispatch through the final recall and provider setup waits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e3b788ee30eaaa095f903053a31fc01667daaa14)
Verify the durable queued receipt can be retried after restart without importing the fork-only in-memory rollback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check each base version while holding the folder/path mutation queue. Share it with deletes and restores, reserve pending restore collision paths, and wait for active paths before removing a folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check stream ownership before aborting a failed preparation so read-aloud returns to idle and exposes its error. Cover HTTP, network, unconfigured and superseded requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Capture navigation and transcript revisions before the snapshot request. Keep thread state changed by newer navigation while refreshing unchanged conversations. Move the existing transcript selector out of the store to satisfy the file-size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exclude spend alerts from non-admin notification lists and read operations. Preserve unread spend alerts when a client marks its feed read, while retaining admin access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Revoke each environment through the real Stop wiring even when its stored grant is disabled. Cover an off grant with an identity request in flight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Carry one grant version from the start of each lending operation through folder checks, confirmations and persistence. Bind the operation to its original environment and update all controller wiring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the existing main-process dialog fixture on the controller contract used by the IPC cancellation fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discard identity results from cancelled or replaced workers before they can update the saved grant. Keep Stop disabled across cloudChanged and start calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reject lone UTF-16 surrogates before a wire path reaches a path lock or the filesystem. Cover colliding UTF-8 aliases with gated commit regressions and keep valid surrogate pairs accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scope the turn activity guard to each client call and recheck it after retry and budget waits and before dispatch. Cover stopped and concurrent calls with synthetic API and isolated server regressions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 0e0c49c1b7c64d6f88bb834e0d4f4bb5187c9320)
Check turn activity before creating a refresh, while preserving a shared rotation already in flight. Cover a first 401 delivered after Stop and a stopped call joining another refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 746bbe21e51d0275f14e26329dbf219c8453a7ed)
* A one-time popup with a Simple mode switch, and the mode on app_active

Every app page with the app's chrome, on the desktop or the Cloud, shows it once
per browser after this update: a calm dialog whose large Simple mode switch
reflects the current mode and changes the app behind it as it is flipped. Done,
the X, Escape and a click outside close it, and closing marks it seen in this
browser, next to the mode it is about. It joins the corner-popup queue after the
Use my Mac popup and before the Cloud Pro popup, so it keeps every rule there:
never during the welcome, the tour, Settings, the quiet first chat, a call or
another dialog, never in the launch whose welcome finished, and one popup at a
time.

Analytics: simple_mode_prompt (shown, toggled, closed, with the mode), and the
daily app_active now says which mode the page is in.

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

* The verification fixture opens with the Simple mode popup closed

Each launch is a new browser, where the once-per-browser popup covered the page
under test. ?simpleModePrompt=1 still shows it.

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

* The popup test watches the app's own mode hook, not the page's data-interface attribute

The app picks its layout from useAdvancedMode, so a probe on that hook shows the app
behind the popup switching as it is flipped, whether or not the page keeps the attribute.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Give Advanced mode the same palette, popovers, buttons and menu focus as Simple

Midnight and Daylight now have one palette in both modes: Advanced drops its
own brighter inks, firmer fields and raised-tone menu rows. Popovers take the
menu tone with no shadow in Midnight and a soft lift in Daylight, primary
actions are the neutral ink pill, secondary buttons the quiet ink wash, and a
keyboard-focused menu row fills like a hovered one, in both modes. Nothing in
the stylesheet keys on the interface mode any more, so the page mark that
scoped it goes too. The composer placeholder is tertiary ink everywhere.

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

* Draw every menu with one recipe in both modes

The menu sheet and row Simple mode already used move to menu-recipe.ts as
MENU_SHEET, MENU_ITEM, MENU_ITEM_SEPARATOR and MENU_HEADING, and every menu of
rows takes them: the popover menus (profile, chat and room ⋯, share, plugins),
the bot, room, +, team and attention menus, the section and owner pickers, the
message, thread-row, folder and link menus, export, the room thread picker,
the approval, place and call-mode dropdowns, and the ui-menu-row menus.

That is 30px rows with 6px corners, 14px labels, 16px glyphs at a 1.5 stroke,
hairline dividers, 12px headings, the menu hover and active fills, on the 14px
menu sheet. Advanced keeps every row it had; a popover menu now grows to fit
its longest label instead of wrapping it. Rename and New thread use the glyphs
Simple uses.

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

* Give Advanced mode's Settings the same sheet, rail and search as Simple

Both Settings frames carry data-settings-look, so in Midnight and Daylight the
Advanced sheet is opaque in the page colour too, with cards in the menu tone,
fields and the rail edged by one faint ink line and the darker scrim. Its rail
rows, group headings and search field take Simple's look. Advanced keeps its
grouped sections, its size and every setting; only Simple's sheet is the
smaller 900 by 700.

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

* Draw link arrows with the app's chevron and arrow icons

The bot settings links, the routines card and the secure computer link used
the text glyphs → and ↗ where the rest of the app uses ChevronRight and
ArrowUpRight.

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

* Give Advanced mode Simple's chat and sidebar chrome

The chat header pill floats on the raised surface, the header and room buttons
are round with the ink hover, the model chip drops its border and fades its
provider mark, and the composer floats on Simple's surface with the same 16px
glyphs. The sidebar's top buttons are round with 1.5 strokes, its search field
is Simple's quiet pill, rows select and focus the way Simple's do, every engine
mark is faded, and the list fades at its edges instead of sliding under glass.
The chat header fades into the canvas as Simple's does.

Advanced keeps every control: the collapse, Activity and + buttons, the
always-on search, the model picker with account and effort, the rename and
Chief badge, the computer and ⋯ buttons, attach, Goal, approval, place and the
split call button. Tests that pinned the old look now pin the shared one, and
two new ones pin Advanced's bot actions and composer surface.

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

* Make the engine install and Claude update actions neutral primaries

Both drew the accent fill by hand; with the ui-button-primary hook they are
the ink pill every other primary action is in Midnight and Daylight.

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

* Type the bot menu test's message keys

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

* Before and after of Advanced mode in Midnight and Daylight, and Simple unchanged

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(browser): the bot's live page fills its panel on both engines, at a desktop's width

The Simple bot panel showed the bot's page as a 1280x720 band with grey bars above and below. The bots' browsers run
on the default engine, and its live view never sent the panel's size: the panel only followed its size on the new
engine's stream, and the server pinned the page to 1280x720 with `set viewport` on every view.

Now the panel sends its size on either transport, and the page takes the panel's shape at a desktop's width: never
narrower than 1280 CSS pixels, so sites keep the layout the bot knows, and no taller than twice its width. On the
default engine a size change runs in the browser's lane, after the bot's running call, and the bot's next call gives an
unwatched page the standard 1280x720 back; on the new engine a page taller than its screen is emulated. The presets
still letterbox.

The bot's tools follow the page's current size: a screenshot is one pixel per CSS pixel within the size models take
as it is, says the scale when it is drawn smaller, and is a JPEG on the default engine while the page is enlarged; a
point outside the viewport as it is now is refused with its size.

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

* docs(verification): a narrow browser panel filled, before and after

The live browser recipe says what a filled panel looks like now and how to check it with the isolated fixture, with
before and after captures in Midnight and Daylight, the maximized view, a wider Advanced panel and a preset.

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

* docs(verification): name the preset capture after the new engine

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

* fix(browser): a huge panel keeps the default engine's streamed page within 1280x2560's pixels

The default engine streams frames at the page's own size, so a maximized view on a 4K screen would ask for a page whose
busy frames pass the live view's bounds and close it. Its page keeps the panel's shape within 1280x2560's pixels, still
a desktop wide, and the view's frame and buffer bounds leave room for that page's largest frames.

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

* test(browser): the tall-page check holds where scrollbars take room, and runs in the renderer smoke

A platform with classic scrollbars shows a 1265 px wide viewport and may scroll by other than the wheel's pixels, so the
real-browser check reads the picture's size and the page's resting scroll position from the page. The agent-browser
fill check joins the renderer smoke job, which has the pinned engine.

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

* fix(browser): a screenshot always shows exactly the region its answer names

Where the platform draws a classic scrollbar, an unclipped capture of the viewport was 1280 pixels wide while its
answer named the 1265-pixel viewport beside the scrollbar. Every capture is now clipped to the region it names, so the
picture's size and the mapping the bot reads always agree.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Clear browser profile locks once per container start, identified by the Linux boot ID and PID 1 start time. Preserve live locks when supervisord restarts only the Cua driver. Bump the upstream image layer from 6 to 7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Settings: API keys in plain sections, one key row everywhere

The keys page groups every credential into six sections (AI providers,
your own model servers, voice and calls, computers and browser, apps and
tools, helpers and pictures), with a search field, an empty state and a
count of what is connected. Live calls point at the OpenAI key instead
of holding a copy.

One key row is used on the keys page, in the computer panel and in the
model picker's add-key card: a calm field with the key's shape, show and
hide, one Save, and once saved the key masked to its last four with
Connected or Saved, Replace and Remove. A key that a later check rejects
stays in view with "Didn't work: <reason>". A pasted key that looks like
another provider's gets a plain warning and is not saved by the paste.

The Boat key saved in the computer panel no longer vanishes: the row
stays, masked and connected, after the panel moves on.

GET /api/config now carries the last four characters of each saved key
to admins only (keys of 12 or more characters), plus the keys kept
inside other settings; client sessions get none of it. The xAI key now
saves through the desktop's encrypted store like the other stored keys,
so Remove clears the stored copy too.

openKeySettings(key, purpose) opens Settings on the keys page at a row,
opens its section, scrolls it into view, focuses its field and lights it
up. Every "Settings → API keys" button and message goes through it, and
a Settings search lists matching keys by name and section.

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

* The key read-back test runs with the locale tests; the engine recipes name the new key tests

The read-back test renders the real key row, which loads every translation, so it
belongs with the locale tests. The Groq and Meta recipes cited the removed
ApiKeys.test.ts and a Test button the key row no longer has: it checks a key on save.

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

* Key status tests expect the masked last four; the docs site lists the model picker's key events

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode sends nothing over ACP while its model request fails and it
retries, so the person saw "waiting on its model" until the 15-minute
idle guard. OpenCode 1.18 writes each failed call to its shared
opencode.log with the session id. The driver now reads that log while a
turn is quiet, takes only this session's main-request errors (not the
title request), redacts them and quotes them in the quiet notice. A
shared log never counts as a sign of life, so it does not extend the
idle guard.

Fixes #3143.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Nine of the ten files listed in #3295 failed on main: the Tools section
now starts open, so a click on its header hid Team map; teams became
departments and the map's computers became desktops; the open settings
section and read state carry over between views; and two checks raced the
UI or a rounded transform. The Move bots dialog still said "team" in its
Chief of Staff conflict, and now says "department" like the create path.

cron-routines needs a rewrite for the new Automations editor and is left
as is.

Part of #3295.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Resolve refreshed manual run destinations through the same path as new
runs, including the current bot's main chat. Keep main destinations dynamic
and preserve allocation rollback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply the admin gate to automatic bot and channel reads, including task switches. Keep the filter in the atomic database update and cover Team Cloud unread counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel reloads 400 ms after one of the bot's turns ends. The same turn
also sends bot frames, and each one gave bot.tasks a new identity, which
rebuilt threadIds, re-ran the live-frame effect and cleared the pending
reload. threadIds now follows the thread IDs themselves.

Part of #3295.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check bot existence and visibility before consuming the request body. Keep the post-read ownership guards and cover missing and hidden bots in route and Team Cloud HTTP regressions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's Advanced model chip lost its border and fades its provider mark. The
header chip keeps that and takes the same floating surface as Simple's, since
both headers now fade the transcript under them. A disabled chip keeps its
surface and dims only the mark and label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The text you see in the composer is a mirror drawn over the real field, so
mentions can be coloured. The mirror had its own fixed type (15px, 24px lines,
4px padding) while Simple mode's field is 14px with 20px lines and 2px padding,
so the caret, clicks and selection fell about one character behind for every
fifteen typed. The mirror now takes its type and padding from the field, and
syncs again when the field's classes change.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
core.ts grew past its listed size, so trackRunningTool moves next to the
AcpTurn it updates in turn-state.ts. Two test comments named an issue
number; they now describe the log row on its own.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
They called the real statfs, so on a nearly full disk every upload was
refused as "My Cloud is full" before any race ran. They now pass a fake
disk, as cloud-sync.test.ts does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Node 25 and later the global localStorage shadows the test DOM's and
is undefined without --localstorage-file, so every case failed in
beforeEach. The tests now stub it, as the other store tests do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A zero grace sent SIGKILL a tick after SIGTERM, before Pi's own handler could end
the detached processes its bash tool runs; on macOS those kept running after Stop.
The fixture now exits on TERM after its own cleanup, and the ownership tests check
that the cleanup ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(memory): cancel upkeep timers when stopped

Clear the startup timeout and invalidate callbacks from earlier scheduler generations. Cover move freeze and restart timing with synthetic memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 7282dca9573e96d8dc4f78e612864ac77714b55a)

* fix(memory): include proven cloud owner lines in dreams

Check sender identity explicitly on My Cloud while excluding guests, peers, asides and automated input. Keep both owner conversations eligible after stamping during a move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d984355cde9736f34618a6c43519264c23be936e)

* fix(memory): cancel active upkeep on lifecycle changes

Invalidate model continuations and remaining scheduled work when upkeep stops, including after a restart. Cover move freeze, active-tick restart and capture cancellation with gated model responses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 9701b6634771d3a85c1cb55f257d65e592aced1e)

* fix(memory): isolate dream single-flight by generation

Start a fresh dream after upkeep restarts even when the old model response is pending. Keep cleanup bound to its own promise and cover the restarted startup tick with gated responses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 70b2b05948d41fdc21ecca86120c880edbe9cf9a)

* fix(memory): omit filtered replies and automation from dreams

Exclude replies linked to rejected requests and automation reports before building dream input. Preserve replies to accepted owner messages and cover relays, API requests, other excluded inputs and report lines.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4e5b1b051d3c44b61295106a8e74d94047a4c69e)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(browser): stage Chrome uploads before browser waits

Copy staged uploads from a checked no-follow file descriptor instead of creating hard links. Stage unnamed Chrome workspace files before startup and picker waits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 070d649726fc41e5b9443cb9f0324c9ac476701a)

* fix(browser): reject upload directory symlink swaps

Check the opened Linux descriptor path before reading. Use Darwin O_NOFOLLOW_ANY to reject symlinks in every component, including a parent replaced while another batch file copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 61fa263214e06e96404eca835a9306b47d291024)

* fix(browser): bind Windows uploads to checked file identities

Compare bigint device and inode metadata from lstat and the opened handle before copying any bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2800cf443b6788749d4a5a1538cbc2f8b14fb0e6)

* fix(browser): remove the whole failed upload batch

Track every staging directory created by the batch and delete them all when any source fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 32a83a2a557bf6a11bbb9856fff5403ea00426de)

* fix(browser): bound upload batches and copy without blocking

Reuse the 25 MiB attachment and 100 MiB browser upload limits. Pin and inspect all source descriptors before writing, then copy with asynchronous reads and writes. Await staging before browser dispatch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit aa8908d88ece20fe8a20a22afb1676dfda2647f6)

* fix(browser): use compatible Darwin upload flags

Select O_NOFOLLOW_ANY without O_NOFOLLOW on Darwin. Exercise each platform branch and reject the XNU-invalid flag combination in the regression fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 12d5f2c26b8c050db49598402b4840c13f627257)

* fix(browser): revalidate Windows upload targets after open

Resolve allowlisted roots and sources with the native realpath API. After opening a Windows source, require its canonical path to remain exactly the allowlisted source and compare the resolved file bigint device and inode with the open handle. This stricter path check rejects all junction redirects without carrying allowed roots through the staging API.

Cover a junction swap before open, a swap after open, and restoration of the allowed directory after opening an outside file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 17682d681413a7d569871b526fe882a508cdda55)

* fix(browser): refuse workspace-file staging on Windows

Reject staging before opening a workspace file until the opened handle can be checked by final path. Keep uploads of bytes supplied by a person working on all platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 419f789eb86c72fda425670497630f3f69303255)

* Return browser upload refusals as tool errors

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

* test(browser): canonicalize upload fixture paths natively

Resolve both upload fixture roots with realpathSync.native so expected
paths match uploadableFiles when Windows expands an 8.3 temp directory.

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

* test: await staged browser uploads before removing the read gate

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

* fix(browser): Windows still uploads attachments and workspace files, staged before any wait

Refusing every staged upload on Windows also refused a chat attachment sent under the person's own name, with
every engine, which worked before; a workspace file given to agent-browser by its own name still went through
unstaged. On Windows the staged copy is now read from the path the allowlist just checked (Windows has no
O_NOFOLLOW), before the browser starts or the picker opens. Linux and macOS keep the symlink-proof open.

Tests: the Windows cases expect a private copy instead of a refusal, and the attachment-name tests run on
Windows again, as they did before.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
A Cloud bot on a lent Mac got "This computer is in use locally or held by a person" on every call, even listing the
tools, with nobody at the computer. That one sentence covered every refusal:

- Electron turned any non-ok answer from its own screen lock (400/401/403/404/5xx) into "a person".
- The server counted a person's Take control of any desktop bot's other computer (Boat, VM, VPS, team computer), a
  hold that never expires, as this screen being held.
- A lent call's lease whose release never arrived blocked the next lent calls for up to 40 s.
- Listing the tools took the screen lock too.

Now each refusal says what it is and what to do: another bot (named) holds the screen, or the desktop could not
check (with the status), never "a person" unless one is there. A newer lent call frees an older lent lease (the
desktop runs one at a time), and other computers' takeovers no longer count. The Cloud rewrites an older desktop's
message the same way.

While the person touched the computer in the last 30 s, background calls (reads, and actions posted to an app's
window by pid: element or pixel clicks, typing, keys, scroll, launch_app, browser_*) run, and a call that would take
their mouse, keyboard or front window (foreground delivery, desktop scope, drag, bring_to_front, or no window) is
refused with the reason instead of fighting them. A foreground action's own input is not mistaken for the person.

The screen lock moves out of electron/main.mjs into electron/host-screen-lease.mjs; server/index.ts keeps its size.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add the Cloud Pro popup and the missing sheet screens to the Cloud sheet preview

The dev gallery now shows the Cloud Pro popup (no plan, no trial, on a plan,
signed out of a plan), the plans without a trial, the browser sign-in step and
a slow setup, so every pricing surface can be captured in each skin.

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

* Calm the Cloud plans sheet and the Cloud Pro popup

The plans sheet is one opaque sheet in the page colour, with cards in the
raised tone on 0.5px ink hairlines and no shadow in Midnight. MausBot
Cloud's three mascots sit small beside its name, with the tagline and one
plain line under it; the night-sky panel and the blue eyebrow, ticks,
border and pill are gone.

Each card shows only what sets the plans apart: its price and promise, the
month's cloud desktop hours, storage and voice, and whether it sleeps when
the plans differ there. The recommended plan carries a quiet Most popular
tag and the one ink pill; every other plan still starts in one click from a
quiet pill. Compare plans opens the rest of every card's rows: always on,
cloud desktops and fair use, CPUs, memory and swap, and backups. The
trial's timeline with the Claude credit, the card terms and the money-back
days sit right under the cards, then what every plan includes, once, and
the checkout fine print. The plans fit without scrolling at 1338x870 and
1040x760.

Sign in, pay, setup, ready, team, one Cloud, unreachable and the Cloud Pro
popup share the same title, rhythm, pills, neutral checklist and progress
bar. The trial card's free-days badge and sign-in link take the same quiet
tag and link.

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

* Add before and after captures of the calmer Cloud plans sheet and popup

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

* Read each included feature once to screen readers, with its detail on hover

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Validate personal MCP header values on create, import and update. Route edited keys from the submitted configuration and reject multiple personal headers before either write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Require the submitted server URL and re-read its current config after the request body. Reject changed destinations before saving a personal key, and cover the admin interleaving and client error handling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Members see only the host of a person-scoped MCP server, so they cannot
send its full URL with their key. The URL check now applies when the
caller sends one (the admin edit flow); without it the key is pinned to
the current address, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EngineSetup.tsx keeps both import sets: the app's own copy (EngineAppCopy,
noteAppCopySwitch) and main's single key row (key catalog, openKeySettings,
KeyRow). The app-copy card's "Settings → API keys" button now goes through
openKeySettings like every other key button on main, so it lands on the
engine's key row. Ratchet pins are main's; source hashes merged per key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
probeLocalModels, offersLocalModels and LOCAL_PROBE_TIMEOUT_MS move unchanged
from ModelPicker.tsx to local-model-probe.ts, so ModelPicker stays under its
file-size pin after taking main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plans sheet now opens on one night card instead of a plain header: MausBot
Cloud's name, its one line and Compare plans in light ink on the left, and on
the right a cut-paper night where the three bots ride a cloud under a big moon
while the shut laptop sleeps on the hill. It is the only colourful thing on the
sheet. Dark skins get a deep night and light skins a softer indigo dusk, so it
never sits on Daylight's white sheet like a black slab. One star twinkles, the
z's drift and now and then a star shoots, all slowly; reduced motion holds the
scene still and it pauses out of view. The art is hidden from screen readers.

The Cloud Pro popup opens on the same card, smaller, with its title and free
days. Over the card the close button takes its light ink and the staging badge
gets an opaque pill. The card is 120px tall and the plans still fit without
scrolling at 1338x870 and 1040x760 in English. The contrast check now measures
the card's text and close button on its own sky in both schemes.

The small mascot mark and the night-sky scene before it are replaced by the
card; the reduced-motion and out-of-view guard they shared is one hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Include the connection scope in MCP server listings and skip the personal connection lookup for known team-scoped edits. Keep personal and unknown scopes fail-closed when the lookup fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(chat): engine exits by signal or with a multi-word name read as a plain line
Expose effort levels from official Antigravity
feat(avatars): choose white or black facial features
A window on a Cloud now shows it at a glance: the top of the sidebar takes a
faint wash of the night card's sky behind the window controls, search and +,
gone before the first bot, with five or six tiny stars in the gaps between the
controls. Midnight's is a soft indigo; Daylight's a pale lavender dawn with
silver-blue stars. One star twinkles, briefly, every half minute, and holds
still under reduced motion. Simple and Advanced each place their stars around
their own controls, and the collapsed rail gets a smaller sky.

Only a Cloud's own server marks its sidebar (its config says cloudHome), so
the desktop app on My Cloud and My Cloud in a browser show it and this
computer never does. The sky is two pseudo-elements: no focus, no pointer,
nothing read aloud. It shares the night card's colours, and the contrast check
now measures every skin's inks on the panel under the wash at its strongest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Queue an email receipt retained on a matching account answer for withdrawal. Keep an active email-only receipt when the same address opts in again, including when the new submission fails.

Cover failed withdrawals across restart, same-address retry failures, and resubscription after a pending withdrawal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows stops the CLI with taskkill /F, so the fixture's TERM handler never
runs there and the ownership tests failed on every Windows shard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recheck consent freshness after reading the account choice and before posting a local answer. Exercise account switching with the real Cloud client against a synthetic Admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the receipt on the active signed-out choice when a late opt-in response belongs to the same normalized email. Do not queue that active receipt for withdrawal.

Cover overlapping opt-ins with controlled response ordering, a failed final submission, retry after restart, and a later withdrawal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Do not carry a saved account answer to a different account with no recorded choice. Show that account's unanswered state while preserving the saved owner's record. Exercise all consent statuses, pending writes, restart and an explicit new choice with the real Cloud client against loopback Admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(container): keep a running browser's profile locks when cua-driver restarts
Keep the shared fixture initialization and tests aligned with the computer-sharing series. Initialize email failure controls separately and keep added email regressions after the shared tests, so replaying the existing stale-account guard neither conflicts nor duplicates its regression.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(codex): do not replay a turn whose tool ran before turn/start was acknowledged
Remove an accepted email receipt from the withdrawal queue. Queue a retained
email receipt independently when its account differs from the signed-in one,
without copying the owner's answer to that account.

Cover email A/B/A response ordering and failed withdrawals across restarts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(cloud-sync): serialize writes per path so concurrent commits on one base conflict
fix(phones): recheck queued jobs, end access on revocation, report failed removal
fix(client): a late reconnect snapshot keeps the newer thread; failed speech preparation ends the spinner
fix(highlevel): Stop during a retry wait sends no write and starts no token refresh
Keep pending choices with their account until its POST succeeds, including
across account switches and restarts. A late success clears only its own
matching choice.

Remember queued receipts' email addresses and reclaim a reselected address
before draining. Resolve unlabelled legacy receipts before withdrawing.
Cover failures and restart recovery with controlled response ordering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The screenshot-store tests wrote 200–330 MB buffers to disk, which timed out on
slow Windows runners; they now create files of that size without writing them,
since the store reads sizes from stat. The Mac voice test gives `say -v ?` 30 s
and skips only when the Mac truly lists no voices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(server): large request arrays, late reports-to bodies, notification routes for Team members
fix(desktop): Stop sharing stays stopped; a stale consent lookup does not write to another account
fix(routines): handle failed check saves, drop stale check results, no runs after close
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ui): give the model picker a readable surface in the chat header
Install AI tools without Node.js (OpenCode first), checked before they run
Night card at the top of the Cloud plans sheet and the Cloud Pro popup
A faint night sky at the top of a Cloud's own sidebar
test: the screenshot-store and Mac voice tests stop depending on a fast CI machine
Every timeout of the live view's status read was taken for a bot still
working in the browser, so a hung agent-browser daemon kept the panel on
"<Bot> is using this browser" for up to 10 minutes and never recovered.
When the read times out and no bot call, person or close is working in
the session, the session now gets the reset a failed launch already
had, and the view says the browser stopped responding and reconnects to
a fresh one.

Fixes #3728.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve mocked sources with pageSource, as real publish and unpublish do.
Windows runner temp paths contain RUNNER~1. Legacy fs.realpathSync keeps
that 8.3 alias, while fs/promises.realpath expands it through libuv.
The different strings bypass the source queue and miss the source record.

Use the same canonical lookup in both affected tests. Keep the production
code, synchronization and outcome assertions unchanged.

Validation on Linux, with LANG=en_US.UTF-8 and ELECTRON_RUN_AS_NODE unset:
- pnpm exec vitest run server/pages/published-pages.test.ts: 32/32 passed
- pnpm typecheck: passed
- pnpm lint: passed

Windows was not run locally. The cause follows from the failing CI job's
RUNNER~1 temp paths and the realpath implementations in Node v24.22.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(browser): the live view resets a browser that stops answering, instead of blaming the bot
fix(pi): finish a cancel after the CLI exits, honour model refusals, keep the completion fallback and usage right
fix(mcp): an "Only for me" connection stays off when its personal setup fails
* Own-server homes: trust only the tunnel to name a client, and start again after an unclean kill

The edge's client-address header and trusted peers now come from the launcher. On Fly
(FLY_APP_NAME is set) it is Fly-Client-IP from Fly's private ranges, exactly as before. On an
own server it is Cf-Connecting-IP, only from the home's own loopback, where the Cloudflare
tunnel connects from; a header from any other peer is ignored. A header forged through the
published port no longer gets a fresh pairing-lockout count.

A home killed uncleanly on Docker never started again on its volume. Every container on a
host shares the boot id and its pids start again from 1, so the next server took the dead
one's lease for a live process: its own. Lease records on Linux now name their pid namespace
and their process's start time. A record from another container is never judged by this
one's pids, and a reused pid is not its owner. The launcher locks the volume (flock on its
root) for as long as it runs, so a second home beside a live one refuses to start, and with
the volume held it clears the records another machine or container left.

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

* Test the edge's client-address settings the same on a Windows (CRLF) checkout

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A new connector/ folder, published with every release as ghcr.io/milind-soni/mausbot-connector for linux/amd64 and
linux/arm64.

- install.sh (curl ... | sudo sh -s -- <code>) checks the server, and says how to fix each failure in plain words:
  operating system, x86-64, Docker 24+ (offering to install it), AppArmor, user namespaces, CPU, memory, disk,
  network and clock. It installs the bot box's AppArmor and seccomp profiles, starts the connector, runs the box probe
  and enrols with the one-time code. Running it again repairs. uninstall never deletes the data unless --delete-data
  is typed.
- The connector enrols once, then holds one WebSocket to the Admin, re-opened with backoff. Every 30 s it sends a
  heartbeat: host health, and the home's state, image and signed health. It runs only the protocol's jobs: start, stop,
  restart, update, status, backup, restore, export-disk, import-disk, host-health and self-update.
  - There is no shell, arguments are checked, and images must be our registry's, by digest.
  - Replies are sent again on each connection until the Admin acknowledges them.
- update copies /data aside, swaps the container, and waits up to 10 minutes for the new image's signed health.
  Otherwise it puts back the previous image and the copy.
- A home that stopped on its own is started again. Until the image clears it itself, the connector first clears the
  data-directory lease a killed home leaves.
- self-update keeps the running connector until the new one has connected; one atomic rename settles which one won.
- The agent token and the home's environment are kept 0600 in the state volume and never logged.
- connector/src/protocol.ts holds the message types and checks, for the Admin side to copy.

Tests: unit tests with a fake Docker, and a fake Admin over a real WebSocket. An end-to-end run on a stock Ubuntu 24.04
runner (connector-e2e.yml) covers install, start with the box at 32/32, update, an unclean kill, a forced rollback and
uninstall.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* A new bot's setup answers follow its name

Renaming a bot while its setup card is unanswered now writes the card's
answers again for the new name, so a fresh bot renamed to "Recruiter"
offers recruiting jobs. New bot gives a random name, which the writer
rightly ignores, so a fresh bot's card never followed what it was called.

- Any rename counts, whichever path made it (bot panel, settings, header,
  a bot renaming itself): the server watches the store's bot changes. A
  new title or department counts too, since the prompt reads them first.
- Same writer, prompt, deadline and checks as at creation: the bot's own
  engine on its quick model through sideJobs.text("setup-suggestions").
- A picked or blank name goes back to the card a nameless bot gets: the
  fixed answers at once when nothing else is known about it.
- Renames within 600 ms are written for once, and a newer rename aborts a
  writing still on its way, so the latest name wins.
- Never after an answer: a pick, Something else, a message, closing the
  card or instructions stop it, and a line written mid-rewrite aborts it.
- While it is rewritten the greeting carries setupChoicesUpdating (epoch
  ms). The card keeps its answers on screen, dimmed, and takes no letter
  or click; the new answers come in the change that clears the stamp and
  swap in at once. A failed, late or unusable writing keeps the answers.
  A client stops waiting 8 s after it first sees a stamp, or on one older
  than 20 s; older clients ignore the field and keep their list.
- The setup card's wire fields move from shared/wire.ts to
  shared/setup-card.ts, which keeps wire.ts under 1,000 lines.
- The fake Claude CLI can hold the setup reply back
  (FAKE_CLAUDE_SETUP_DELAY_MS), so a recipe can see the card while it waits.

Evidence: docs/verification/evidence/name-suggestions/.

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

* Drop two helpers the rename tests never used

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* See what a bot is doing right now

The working line said only "Working · 19m 07s · Running a command": not
which command, whether it was getting anywhere, or whether it was stuck.

- The line names the step: "Running scrape.py" with the whole command on
  hover, "Searching the web for “Biber Dammbau”", "Reading linkedin.com".
  The event bus reads every engine's tool-call start the same way, from the
  server's redacted summaries; the words are redacted again, capped, and
  never carry an environment variable's value. The step is kept on the
  call's chat row, so a reload and finished steps keep the words.
- After a step has run past the quiet notice, a quiet second part says how
  it is doing: its last output's age where the engine streams output
  (Codex, ACP), else what its own processes show (waiting on the network,
  busy, idle). This reuses the quiet-status probe and its knobs, limited to
  the processes the call started.
- The line is a button (aria-expanded) that unfolds a small Now card: the
  ask's last steps, a running command's last lines of output (redacted, at
  most one update a second) and Open activity, which opens the Activity
  panel at this run. Click again or Escape folds it.
- A working bot's sidebar row shows its current step instead of its last
  message, in both modes.
- The bus keeps a waiting status frame through events the line ignores
  (token counts, heartbeats); Claude's usage report after every tool start
  used to drop it.

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

* Before and after captures of the working line, its Now card and the sidebar row

From the isolated fixture at 1338×870@2x: a long command, a web search and a
page, in Midnight and Daylight, Simple and Advanced, with a German set; the
Now card open, a Codex bot's streamed output, and Open activity.

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

* Give the process-sampling test a margin a busy runner keeps

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cloud): a rail of Clouds, and + to buy another or add your own server

Someone with two places or more (their Clouds, their teams' Clouds, servers
they connected themselves) gets a narrow rail of circles at the window's left
edge: initials on each place's colour, the place on screen marked, a dot when
something needs them there, a ring while a Cloud is set up, ⋯ past eight, and
+ last. With one place there is no rail and nothing changes.

The desktop session may list every Cloud of the person's (contract v1
`clouds`), read strictly; without it the app reads `cloud` and `teams` exactly
as before. Each own Cloud besides My Cloud becomes a saved place, named and
coloured by the Admin, and opens like a team's Cloud: pairHome(cloudId) sends
{ cloudId } and takes only a grant for that Cloud's own address. My Cloud stays
the one home. isOwnCloud(origin) comes from the verified session only, and the
update banner, sign-in and plan card now work on each own Cloud's page.

The rail's list carries names, colours and states, never an address, and goes
only to this app's page and to pages of Clouds MausBot runs that the session
lists; a circle opens only an id main listed, through its own switch, from a
click. + buys another Cloud (a plan, its name and swatch, POST
/api/cloud/desktop/clouds and the returned checkout, followed to "ready"), or
the calm one-Cloud word on an Admin that sells one, and walks through adding a
server of one's own with today's pairing link.

main.mjs stays under its size ratchet: the window's size-and-place file moved
to window-state-file.mjs.

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

* feat(cloud): each place's colour at the top of its sidebar, and signed-in servers on the rail

The place on screen tints the top of its sidebar in its colour, faintly, so
people can tell their places apart at a glance; with no colour the sidebar
looks as before. Settings > Appearance changes it with the rail's six
swatches. A Cloud's colour is the Admin's (PATCH desktop/clouds/:id, for its
owner or its team's admins; a member sees it locked), so every app of theirs
follows; a server connected by hand keeps its colour in this app. The circle,
the switcher's dot and the tint follow at once, and nothing is saved when the
Admin refuses or lacks the route.

The session's list may now carry the person's own servers and computers that
signed in with their account (managed: false). They are never a Cloud of
theirs to pair with or lend to. The rail shows them with a server mark,
offline with when they were last seen, connected ones as their saved place,
and nothing to open when only their own network reaches them.

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

* fix(cloud): read the Admin's reason for refusing another Cloud, and remind of updates

Adding a Cloud is refused with the Admin's own reason whatever the status:
409 for its cap or another open checkout, 429 for too many at once, 503 while
sign-ups are closed. The sheet now keys on that reason, so a closed sign-up is
the calm line instead of an error. When another Cloud's checkout is still open,
the Admin's page for it is kept here and the sheet follows that Cloud, with
Reopen checkout and Copy link; nothing opens by itself.

A server of the person's own that signed in runs a release the Admin names;
while it names a newer one (the session's latestVersion), the rail gives that
server a quiet reminder. With no newest release named, there is none.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(browser): a person's hold follows the person, and ends when they leave

A phone that took control of a bot's browser and then left it, or was
closed and reopened, was told "Another window or device controls this
browser" by its own next view, while every bot call stayed paused. The
hold belonged to one viewer connection (a random id per view), so the
same person's new view was treated as someone else: it could not hand
back or take it over, and nothing ended a hold whose view stayed open
without sending frames.

Now the hold belongs to the person, on both browser engines:

- It is keyed by the person watching (their account on a Cloud,
  local-owner on the desktop), not the view. Every view of theirs sees
  it, any of them can hand it back or take it over, and their next view
  carries on with it when the one they used went. Input runs from one
  view at a time, and a take-over first lets go of what the other view
  pressed. A different person is still refused, and their hand-back does
  nothing.
- It ends by itself 2 minutes after the person's last view of it went
  (a dropped stream or a phone in the background gets that long to come
  back), and 5 minutes after their last input, kept or not. Every key
  restarts that, so bots stay paused while the person types.
- One shared clock (server/browser/hold.ts) times it on both engines;
  the old engine's parked holds and runtime transfer are gone. A panel
  that reconnects with the id of its old view closes that view if the
  server still has it open.
- The Browser panel shows "<bot> is paused for you · Hand back" when the
  person's hold is used from another view of theirs, or a take timed out
  while the bot stays paused, so Hand back is always there. The pill
  shows what keeping the browser means, and that hint now says when
  control goes back by itself (8 language packs updated).

The phones' v1 events keep their names and fields: `owned` now means the
person holds the browser, `controlling` that this view's input runs.

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

* fix(browser): a panel that closes its stream hands its hold back at once

On the new engine every v2 view that ended was treated as a dropped
stream, so a panel closed on purpose kept the person's hold for the
2-minute grace. The browser could then neither close when idle nor make
room, and on the S4 real-Chrome run the closed test panels used up all
4 browsers, so the next tests could not start one.

A v2 view now tells the two apart by how its WebSocket ended. A close
frame (the panel closing it) ends a hold none of the person's views
still has at once. 1006, no close frame (a phone in the background, a
network that dropped, a socket the server cut off), waits the grace for
their next view. The v1 phones' event stream cannot tell, so it keeps
the grace.

The stream e2e test expected a second panel of the same person to be
told "another-viewer", which is the per-view rule the bug report showed
was wrong. It now expects that panel to watch the person's own hold
(owned, not controlling), and still checks that the page keeps the
holder's size.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(team): an inbox item stays listed only while it really waits, and its count shows on the inbox

What waits on a person in their Team Cloud inbox is now read from where it was
asked, not from the inbox's own flags. An ask (a question, an approval, work
handed on) waits while the card that asked is open in its conversation. A line
that wants an answer waits until its person answers it, from the inbox or in
the conversation it came from. Answered in the bot's own chat, through either
respond route, from the phone or with a 👍, it leaves Needs you and the list the
Chief is told waits, after a restart too.

- A message answered in the conversation it came from no longer stays in Needs
  you until the inbox is opened.
- POST /api/bots/:id/respond on an inbox's copy answers the card where it was
  asked, as the thread route does. For a late question or a room's ask it
  reached the inbox's own bot instead, and the card stayed open.
- A 👍 or 👎 on a line of the inbox goes back to whoever sent it, like a Reply,
  instead of starting a turn of the inbox's bot.
- The copy of an ask whose conversation was deleted is closed, so it no longer
  holds the inbox's composer.

The inbox's task carries how many asks wait there (WireTask.openAsks), sent
again whenever one is asked or settled. The person's own row under People shows
it, the app's unread count (the tab's title and the app's icon) adds it, and
Needs you refreshes when it changes. Off a team nothing changes.

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

* Keep shared/wire.ts within its size limit after merging main

The inbox field's comment now fits on one line, so the file stays at 1,000 lines.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(engines): GitHub Copilot CLI as a native ACP engine

Add copilotAgent, which runs the official Copilot CLI over ACP
(`copilot --acp --stdio`) on the signed-in Copilot plan. It reads the
plan's live models from session/new, each labelled with its premium
request multiplier and its own effort levels, selects them through
session/set_config_option, falls back to Auto when a saved model is
withdrawn, and detects a missing login without a prompt. The broker
keeps answering permissions: COPILOT_ALLOW_ALL is dropped, and a
server-wide GH_TOKEN/GITHUB_TOKEN never outranks the CLI login.

Generalise custom ACP model discovery into discoverAcpModels so both
engines share it, stop the discovery agent gracefully, and remove the
empty session Copilot CLI persists for each discovery. On Windows the
500 ms stop timeout lost every refreshed custom ACP catalog to taskkill;
discovery now allows 5 s and no longer masks its own error.

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

* fix(copilot): no launch at startup, short-lived unproven sign-in

Every fleet carries githubCopilot, so resolving its catalog on create
started any `copilot` on PATH at launch, VS Code's shim included. The
catalog now comes from the startup cache and refreshes when the engine
is picked; the snapshot still probes the login only after --version.

A login probe that fails without the agent's word on the login
(timeout, crash, wrong binary) kept "signed in" for five minutes. It
still leaves the engine offered, so the turn reports the real error,
but is asked again after 15 seconds.

Note why the graceful discovery stop cannot orphan Copilot on Windows:
its npm-loader waits for copilot.exe through spawnSync.

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

* test: keep githubCopilot out of e2e fleets, like the other host CLIs

The e2e fleets turn the instances whose CLI may sit on a developer's
machine into not-a-real-driver, so a local install never counts as the
person's own AI. githubCopilot joined every fleet without joining those
lists: with Copilot CLI installed and signed in, it was ready to run and
switched the Cloud trial credit off, failing six cloud-credit.e2e tests.

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

* fix(copilot): address the remaining code review findings

- Login detection matches whole login phrases, so "max tokens" or
  "author" no longer reads as a missing login.
- Only Copilot's discovery waits for the agent to exit on EOF; a custom
  ACP agent is killed at once again. Tests cover both, and an agent that
  ignores EOF.
- The sign-in cache is keyed on copilotHome(env), shared with the
  session cleanup, so HOME/USERPROFILE count.
- A token in the environment is probed like a stored login (an expired
  one no longer reads as signed in); the cache key holds its digest.
- The catalog test runs with an isolated COPILOT_HOME and no tokens.
- The fleet tables move from server/config.ts to server/instance-fleets.ts,
  one entry per line; the size ratchet drops to 1303.

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

* fix(acp): give custom ACP catalog discovery time to stop on Windows

Windows stops the discovery child through taskkill, which takes longer
than the 500 ms the cleanup allowed, so closeDiscovery threw on every
refresh and the custom ACP catalog was dropped. Wait up to 5 s on Windows;
other platforms keep 500 ms. custom-model-catalog.test.ts fails on
Windows without it.

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

* test(copilot): no real wait in the discovery-stop test; cover Copilot approval cards

The grace before a discovery agent is killed is now the caller's
`exitGraceMs` (Copilot passes 2 s), so the test that stops an agent ignoring
EOF uses 50 ms and no longer measures elapsed time. A Copilot contract test
now proves a session/request_permission opens an approval card and the
person's choice reaches the agent.

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

* fix: address CodeRabbit review on the Copilot engine PR

- The discovery test compares the session folder by name, since macOS
  reports the agent's cwd through /private.
- The providers doc names the bring-your-own-key setups that bill a
  provider instead of the Copilot plan.
- The Windows stop comment names the Copilot CLI version it was seen on.

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

* fix(copilot): tighter login refusal, non-blocking sign-in probe, robust session cleanup

- LOGIN_REFUSAL no longer reads an MCP server's missing or refused
  credentials, or a bare "no auth"/"missing credentials", as the Copilot
  login; "token has expired", "token is invalid", "unauthorized" and
  "authentication failed" now count.
- A sign-in check waits at most 3 s on its probe and then answers from the
  last probe (signed in before any), so a `copilot` on PATH that never
  answers ACP cannot hold the engine list; the probe finishes in the
  background and its answer is kept.
- Discovery cleanup matches the recorded cwd when quoted, resolved or, on
  Windows, in another case; the test uses Copilot CLI 1.0.105's own
  workspace.yaml fields.

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

* chore(copilot): drop comments that narrate or point at other code

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Since a rename or title change refreshes a new bot's setup card, its
setupChoicesUpdating mark comes and goes while these tests compare whole
conversations, so four of them failed on main. They test coordination and
notifications, not setup cards, so their fixtures turn the feature off, as
the verification server already does.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(team): an inbox item stays listed only while it really waits, and its count shows on the inbox

What waits on a person in their Team Cloud inbox is now read from where it was
asked, not from the inbox's own flags. An ask (a question, an approval, work
handed on) waits while the card that asked is open in its conversation. A line
that wants an answer waits until its person answers it, from the inbox or in
the conversation it came from. Answered in the bot's own chat, through either
respond route, from the phone or with a 👍, it leaves Needs you and the list the
Chief is told waits, after a restart too.

- A message answered in the conversation it came from no longer stays in Needs
  you until the inbox is opened.
- POST /api/bots/:id/respond on an inbox's copy answers the card where it was
  asked, as the thread route does. For a late question or a room's ask it
  reached the inbox's own bot instead, and the card stayed open.
- A 👍 or 👎 on a line of the inbox goes back to whoever sent it, like a Reply,
  instead of starting a turn of the inbox's bot.
- The copy of an ask whose conversation was deleted is closed, so it no longer
  holds the inbox's composer.

The inbox's task carries how many asks wait there (WireTask.openAsks), sent
again whenever one is asked or settled. The person's own row under People shows
it, the app's unread count (the tab's title and the app's icon) adds it, and
Needs you refreshes when it changes. Off a team nothing changes.

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

* feat(team): the inbox as a list in the right panel, and one live card in the inbox chat

On a Team Cloud the person's inbox now reads like a mail inbox. One card in
their chat with their Chief keeps what waits on them in view: how many lines
need them and how many are for their information, the newest few that need
them with their answers right there (allow or deny, a question's choices,
reply) and "Open inbox". It sits under the newest line that needed them,
updates in place and shrinks to "All caught up" when nothing waits.

The whole inbox opens in the right panel, from the card, the count or the
person's own row under People. It has three tabs: Needs you (questions,
approvals, work handed on), For your info (reports, mentions, messages) and
Done. Each line is a dense row with the sender's face and name, a subject, a
muted snippet and the time. Unread rows are bold. On hover or focus a row shows
its quick actions. A click reads the line in full with its answer and reply
box, and "Open in chat" goes where it came from. News can be marked done. At
phone width the panel is a sheet.

Which tab a line is in comes from the rule that settles it: an ask needs the
person while its card is open where it was asked. A row's answer goes through
the copy's card or the line's reply, the same routes as in the chat, so the
count, the tabs and the badge never disagree. GET /api/inbox lists the session's
own inbox; POST /api/inbox/<line>/read and /done mark one line. The inbox's
task carries inboxChangedAt, which moves whenever the list changes, so an open
panel reads it again. The row model is open to new kinds of line.

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

* docs: screenshots of the inbox card and panel, light and dark

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

* Keep shared/wire.ts within its size limit after merging main

The inbox field's comment now fits on one line, so the file stays at 1,000 lines.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cloud): a rail of Clouds, and + to buy another or add your own server

Someone with two places or more (their Clouds, their teams' Clouds, servers
they connected themselves) gets a narrow rail of circles at the window's left
edge: initials on each place's colour, the place on screen marked, a dot when
something needs them there, a ring while a Cloud is set up, ⋯ past eight, and
+ last. With one place there is no rail and nothing changes.

The desktop session may list every Cloud of the person's (contract v1
`clouds`), read strictly; without it the app reads `cloud` and `teams` exactly
as before. Each own Cloud besides My Cloud becomes a saved place, named and
coloured by the Admin, and opens like a team's Cloud: pairHome(cloudId) sends
{ cloudId } and takes only a grant for that Cloud's own address. My Cloud stays
the one home. isOwnCloud(origin) comes from the verified session only, and the
update banner, sign-in and plan card now work on each own Cloud's page.

The rail's list carries names, colours and states, never an address, and goes
only to this app's page and to pages of Clouds MausBot runs that the session
lists; a circle opens only an id main listed, through its own switch, from a
click. + buys another Cloud (a plan, its name and swatch, POST
/api/cloud/desktop/clouds and the returned checkout, followed to "ready"), or
the calm one-Cloud word on an Admin that sells one, and walks through adding a
server of one's own with today's pairing link.

main.mjs stays under its size ratchet: the window's size-and-place file moved
to window-state-file.mjs.

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

* feat(cloud): each place's colour at the top of its sidebar, and signed-in servers on the rail

The place on screen tints the top of its sidebar in its colour, faintly, so
people can tell their places apart at a glance; with no colour the sidebar
looks as before. Settings > Appearance changes it with the rail's six
swatches. A Cloud's colour is the Admin's (PATCH desktop/clouds/:id, for its
owner or its team's admins; a member sees it locked), so every app of theirs
follows; a server connected by hand keeps its colour in this app. The circle,
the switcher's dot and the tint follow at once, and nothing is saved when the
Admin refuses or lacks the route.

The session's list may now carry the person's own servers and computers that
signed in with their account (managed: false). They are never a Cloud of
theirs to pair with or lend to. The rail shows them with a server mark,
offline with when they were last seen, connected ones as their saved place,
and nothing to open when only their own network reaches them.

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

* fix(cloud): read the Admin's reason for refusing another Cloud, and remind of updates

Adding a Cloud is refused with the Admin's own reason whatever the status:
409 for its cap or another open checkout, 429 for too many at once, 503 while
sign-ups are closed. The sheet now keys on that reason, so a closed sign-up is
the calm line instead of an error. When another Cloud's checkout is still open,
the Admin's page for it is kept here and the sheet follows that Cloud, with
Reopen checkout and Copy link; nothing opens by itself.

A server of the person's own that signed in runs a release the Admin names;
while it names a newer one (the session's latestVersion), the rail gives that
server a quiet reminder. With no newest release named, there is none.

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

* feat(workspace): a banner picture at the top of every sidebar of a workspace

Settings > Appearance, next to the place's colour, now has "Use an image":
the person's own picture, faded into the top of the sidebar for everyone in
that workspace, in front of the colour's tint (which shows when there is no
picture or it won't load). Reduced transparency shows the tint's line instead.

The picture is kept on the workspace's own server, with its other pictures,
so it works the same on a Cloud and on a server of the person's own. The app
shrinks it to 1600 px across at most and draws it afresh as WebP or JPEG
under 400 KB; the server checks it again (a PNG, JPEG or WebP, still, small
enough, readable) and keeps none of its metadata. Seeing it is anyone's
signed in there; changing it is an admin's (a team's Super admin and Admins).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(cloud): a rail of Clouds, and + to buy another or add your own server

Someone with two places or more (their Clouds, their teams' Clouds, servers
they connected themselves) gets a narrow rail of circles at the window's left
edge: initials on each place's colour, the place on screen marked, a dot when
something needs them there, a ring while a Cloud is set up, ⋯ past eight, and
+ last. With one place there is no rail and nothing changes.

The desktop session may list every Cloud of the person's (contract v1
`clouds`), read strictly; without it the app reads `cloud` and `teams` exactly
as before. Each own Cloud besides My Cloud becomes a saved place, named and
coloured by the Admin, and opens like a team's Cloud: pairHome(cloudId) sends
{ cloudId } and takes only a grant for that Cloud's own address. My Cloud stays
the one home. isOwnCloud(origin) comes from the verified session only, and the
update banner, sign-in and plan card now work on each own Cloud's page.

The rail's list carries names, colours and states, never an address, and goes
only to this app's page and to pages of Clouds MausBot runs that the session
lists; a circle opens only an id main listed, through its own switch, from a
click. + buys another Cloud (a plan, its name and swatch, POST
/api/cloud/desktop/clouds and the returned checkout, followed to "ready"), or
the calm one-Cloud word on an Admin that sells one, and walks through adding a
server of one's own with today's pairing link.

main.mjs stays under its size ratchet: the window's size-and-place file moved
to window-state-file.mjs.

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

* feat(cloud): each place's colour at the top of its sidebar, and signed-in servers on the rail

The place on screen tints the top of its sidebar in its colour, faintly, so
people can tell their places apart at a glance; with no colour the sidebar
looks as before. Settings > Appearance changes it with the rail's six
swatches. A Cloud's colour is the Admin's (PATCH desktop/clouds/:id, for its
owner or its team's admins; a member sees it locked), so every app of theirs
follows; a server connected by hand keeps its colour in this app. The circle,
the switcher's dot and the tint follow at once, and nothing is saved when the
Admin refuses or lacks the route.

The session's list may now carry the person's own servers and computers that
signed in with their account (managed: false). They are never a Cloud of
theirs to pair with or lend to. The rail shows them with a server mark,
offline with when they were last seen, connected ones as their saved place,
and nothing to open when only their own network reaches them.

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

* fix(cloud): read the Admin's reason for refusing another Cloud, and remind of updates

Adding a Cloud is refused with the Admin's own reason whatever the status:
409 for its cap or another open checkout, 429 for too many at once, 503 while
sign-ups are closed. The sheet now keys on that reason, so a closed sign-up is
the calm line instead of an error. When another Cloud's checkout is still open,
the Admin's page for it is kept here and the sheet follows that Cloud, with
Reopen checkout and Copy link; nothing opens by itself.

A server of the person's own that signed in runs a release the Admin names;
while it names a newer one (the session's latestVersion), the rail gives that
server a quiet reminder. With no newest release named, there is none.

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

* feat(desktop): the rail of places as the window's own chrome, on every place

The rail is now app chrome, not page content: this app's page /rail in a view
of its own at the window's left edge, beside whichever place's page the window
shows. So it is there on every place, a server connected by hand included,
whatever that server runs, and no place's page reads the list any more: only
the rail's own page gets it, and only main switches, by the ids it listed.

- Two places or more in all, This computer counted while it is one: This
  computer and one server show a rail of two circles.
- The place on screen is named under its circle.
- Beside the rail, the sidebar's switcher and the profile menu's Switch to...
  step aside at every width: one switcher.
- The rail no longer hides on a narrow window; the page beside it moves over
  by the rail's width at any zoom (the app's preload, told by main).
- The rail's sheets (+, the list past eight) cover the window while open, and
  the rail wears the skin and language of the app.

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

* feat(desktop): a place's colour from its circle on the window's rail

A right-click on a circle (or on its row in the list past eight) opens that
place's menu: its name and the six swatches. It works for every place the
rail lists, whatever its server runs, so a server on an older release (whose
own Settings has no colour) can still be told apart.

Main decides where the colour is kept with the rules the place's own page
uses: the Admin's for a Cloud (its owner or its team's admins; a member sees
it locked), this computer's for a server connected by hand, and the Admin's
alone for a signed-in server not connected here. Only the rail's own page may
ask (workspaces:recolor), only for an id main listed with a colour to show.
This computer keeps today's look and has no menu.

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

* fix(desktop): the rail keeps its size when this app's page is zoomed

Chromium gives every page of a host the same zoom, so zooming this
computer's page also zoomed the rail's own page (same origin) inside its
fixed 64-point strip. The rail's page now takes that zoom back out (its
root's CSS zoom is the inverse of the page zoom), and a circle's menu is
placed in the rail's own units (offsets, not screen coordinates) so it opens
beside its circle at any zoom.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
With automatic recovery on, an OpenCode prompt now holds its ACK until the
first model or tool activity. When OpenCode answers session/prompt that it
could not connect to the model server (ECONNREFUSED / ConnectionRefused)
before any activity, the driver stops the child and rejects with
TurnNotStartedError, so the configured backup engine runs. The same error
after activity, a stalled prompt, and turns without startup recovery keep
the existing failed completion and ACK timing.

Fixes #3598

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the bot's tools not narrowed, every Grok ACP turn sent
session/set_model, even when the session's currentModelId already
matched. Grok rebuilds its harness on that call, which can interrupt
the MCP catalog it just confirmed, so skill tools failed before their
handler ran.

The same-model check now runs before both paths: a matching model
returns without the call, a different model still switches (or, with
narrowed tools, still refuses as before).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cloud): a rail of Clouds, and + to buy another or add your own server

Someone with two places or more (their Clouds, their teams' Clouds, servers
they connected themselves) gets a narrow rail of circles at the window's left
edge: initials on each place's colour, the place on screen marked, a dot when
something needs them there, a ring while a Cloud is set up, ⋯ past eight, and
+ last. With one place there is no rail and nothing changes.

The desktop session may list every Cloud of the person's (contract v1
`clouds`), read strictly; without it the app reads `cloud` and `teams` exactly
as before. Each own Cloud besides My Cloud becomes a saved place, named and
coloured by the Admin, and opens like a team's Cloud: pairHome(cloudId) sends
{ cloudId } and takes only a grant for that Cloud's own address. My Cloud stays
the one home. isOwnCloud(origin) comes from the verified session only, and the
update banner, sign-in and plan card now work on each own Cloud's page.

The rail's list carries names, colours and states, never an address, and goes
only to this app's page and to pages of Clouds MausBot runs that the session
lists; a circle opens only an id main listed, through its own switch, from a
click. + buys another Cloud (a plan, its name and swatch, POST
/api/cloud/desktop/clouds and the returned checkout, followed to "ready"), or
the calm one-Cloud word on an Admin that sells one, and walks through adding a
server of one's own with today's pairing link.

main.mjs stays under its size ratchet: the window's size-and-place file moved
to window-state-file.mjs.

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

* feat(cloud): each place's colour at the top of its sidebar, and signed-in servers on the rail

The place on screen tints the top of its sidebar in its colour, faintly, so
people can tell their places apart at a glance; with no colour the sidebar
looks as before. Settings > Appearance changes it with the rail's six
swatches. A Cloud's colour is the Admin's (PATCH desktop/clouds/:id, for its
owner or its team's admins; a member sees it locked), so every app of theirs
follows; a server connected by hand keeps its colour in this app. The circle,
the switcher's dot and the tint follow at once, and nothing is saved when the
Admin refuses or lacks the route.

The session's list may now carry the person's own servers and computers that
signed in with their account (managed: false). They are never a Cloud of
theirs to pair with or lend to. The rail shows them with a server mark,
offline with when they were last seen, connected ones as their saved place,
and nothing to open when only their own network reaches them.

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

* fix(cloud): read the Admin's reason for refusing another Cloud, and remind of updates

Adding a Cloud is refused with the Admin's own reason whatever the status:
409 for its cap or another open checkout, 429 for too many at once, 503 while
sign-ups are closed. The sheet now keys on that reason, so a closed sign-up is
the calm line instead of an error. When another Cloud's checkout is still open,
the Admin's page for it is kept here and the sheet follows that Cloud, with
Reopen checkout and Copy link; nothing opens by itself.

A server of the person's own that signed in runs a release the Admin names;
while it names a newer one (the session's latestVersion), the rail gives that
server a quiet reminder. With no newest release named, there is none.

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

* feat(cloud): lend this computer to each Cloud of the person's own

"Let my bots use this computer" now goes to the Cloud that asks: another
Cloud of the person's own has the same switch on its own page, and this
computer's Settings gets a "Which Cloud" picker once there are two. Each Cloud
is checked at its own address and sleeps on a gate of its own, so one asleep
never holds another's lending. My Cloud's Off stops all lending, as before;
another Cloud's stops only that one. Use my Mac on another Cloud's page lends
to it, the tray's Terminal reaches every Cloud lent to (asking once), and
"Choose folders" in its welcome opens its own Settings. The move stays My
Cloud's, the one home.

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

* feat(cloud): this computer works for each of your Clouds automatically

Every Cloud of the person's own (the verified session's, never a Team
Cloud) uses this computer by itself while the app runs and is signed in:
the internet connection, their Chrome, the home folder with editing, and
apps and screen once computer control works (on a Mac lacking only its
permissions, macOS is asked the first time a Cloud's bot needs them).
Never the terminal. Folders lent before stay lent, so Files keeps their
copies.

There is nothing to set: the switches, the Which Cloud picker, the
lending cards in Settings and on Cloud pages, the Use my Mac popup and
link, the Terminal's question and the welcome's lending step are gone,
with their channels, bridges and 97 strings in every language. The menu
bar names the Clouds using this computer and offers Pause/Resume, which
lasts across restarts, and See activity. Someone who had turned lending
off, or unticked the internet connection, starts Paused.

The protections hold, and the home folder's are added: shell start-up
files, git's configuration and PowerShell profiles stay private, and a
write through the home folder never reaches its hidden files, Library or
AppData. Bots' texts on the Cloud say what is true now.

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

* docs(verification): pictures of lending without settings, from the merged tree

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

* test(chrome): the not-lent guidance says the app lends its Chrome by itself

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Where the app gives or lists cloud desktops, it now says they come from Boat:

- the Cloud plan's points: "Voice and cloud desktops by Boat included";
- the cloud desktops list: "Your bots' cloud desktops, by Boat.";
- a bot's place: "{bot} gets its own cloud desktop from Boat the first time a task needs one."

All 15 languages are updated, with their source hashes recorded against the new English. The place-view
jargon test allows Boat on that one state as well as on the two that ask to connect a Boat account.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A bot that asks the person to sign in parks its turn on the sign-in card. When
the person signed in and said so in the chat instead of pressing Done, the bot
carried on, but the card kept its Done button and Needs you kept listing
"Waiting on the person: sign in to <site>" for good: a typed line starts an
ordinary turn, the work parked on the card stayed parked, and waits on cards
never expire. Pressing Done later would have resumed that work a second time.

The person's own line in the conversation now answers every sign-in request
still open there, as Done does:

- the card settles as "<site> · You answered in the chat", without Done or Cancel;
- the browser or computer goes back to the bot, so it can check the sign-in and go on;
- the work parked on those cards ends quietly, so Needs you clears and nothing
  resumes it twice. Work that also waits on another card (a connection, a key)
  keeps waiting on that.

A line sent into a turn that is still running counts too. One check for a
sign-in card that still waits (signInWaits) now serves Needs you, request
tracking, live calls and the automation report.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A bot given Gmail by its Apps switch could call no Gmail tool on any engine. Before the switch also wrote the tool
list, it wrote only the read/write scope, so a bot whose tool list was `{}` kept a list that left Gmail out: the
connected-apps bridge then offered COMPOSIO_MANAGE_CONNECTIONS alone ("All connections are active", yet no Gmail
tool), on Claude and on ACP engines alike. Claude's tool search found nothing for `select:gmail.search_emails` either,
since no tool had that name anywhere.

- An app a bot's scopes switch on gets its tools: every one, unless the bot's tool list already names some. Existing
  bots are fixed on the next start, and every later scope change applies the same rule.
- The bridge offers plain tools for the common Gmail and Google Calendar actions (gmail.search_emails, read_email,
  read_email_thread, create_draft, send_email; googlecalendar.list_events, list_calendars) for each connected,
  granted app, writes only where the bot may write. Each runs its Composio tool through COMPOSIO_MULTI_EXECUTE_TOOL,
  so the relay judges it exactly as that tool: grant, scope, read-and-draft, outbound approval, team scopes.
- Claude Code finds an MCP tool by its own name (`select:gmail.search_emails`) and sanitises the dot in the name it
  sends, so it gets the dotted names; other engines get gmail_search_emails, which they show the same way.
- The prompt names these tools for the apps a bot has.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Each Claude Code turn now sets ENABLE_TOOL_SEARCH=true in its private
--settings file, so connected apps, a bot's own MCP servers and the other
third-party servers send only their tool names until the model searches for
one. In auto mode Claude Code sends every schema while they fit under a tenth
of the context window, which on 1M-token models is nearly always; and with
nothing set it keeps a conversation that already ran without ToolSearch on
full schemas. The settings file beats a value in the project's or the
person's own Claude settings, which beat the process environment.

An explicit opt-out is kept: "false", "0", "off", auto:100 and any value other
than unset or auto pass through unchanged, read from the local, project and
the person's own Claude settings, then the environment. A changed choice
restarts the thread's retained process.

OpenMausBot's own servers stay alwaysLoad: ogb (approvals, questions),
agents (bots, rooms, jobs), and the browser when the turn plans to browse.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#3757 grew server/index.ts to 16,173 lines (pin 16,148) and scripts/mcp-server.ts to
1,488 (pin 1,487), so the file-size ratchet fails on main. Sign-in settling (Done/Cancel,
answered in chat, handing the place back) moves to server/host/sign-in-settle.ts; the
MCP server's message projection moves to scripts/mcp-message-projection.ts. No behaviour
change: index.ts is 16,133 lines, mcp-server.ts 1,414.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Customers couldn't find how to cancel: the plan card only said Manage in your browser. Now, for the account that pays for
a plan that runs, the plan card says Cancel trial (during a free trial) or Cancel plan, in this computer's Settings
(Usage & billing, Plan in Simple mode; MausBot Cloud in Advanced) and on the Cloud's own page in home mode. Its sheet asks
the main reason with one-tap chips, offers two optional boxes (what they expected, what we could have done better) and a
call with Milind, and never needs an answer to cancel. After: when it ends, that nothing more is charged, how long its
files are kept, and Keep my plan.

- Main reads the plan's renewal from the session's own primary Cloud (parseCloudRenewal); the Cloud's id stays in main.
- cancelPlan sends the survey first (8 s, let go on any failure), then the cancel for the session's own Cloud; keepPlan
  turns renewal back on. The page sends only the survey's words: cloudAccount.cancelPlan/keepPlan here, cloudPlan.cancel/keep
  on the Cloud's page (only from the person's click).
- An Admin without the routes (its own 404, 405 or 501) opens the Cloud page's billing instead; one that sends no renewal
  keeps today's card.
- 41 strings in every locale; a dev-only preview page (cancel-plan-preview.html).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ui): align the Simple composer caret and give model rows and the apps pill room

Simple mode drew the composer's text in the mention mirror at the stylesheet's
15px/24px/4px while the dock's textarea used 14px/20px/4px 2px, so the visible
glyphs and the real insertion point sat on different line boxes. The mirror now
copies the textarea's font size, line height and padding, and clears those
inline values when Advanced mode keeps the stylesheet's metrics.

The model picker in the bot panel clipped a long provider-prefixed name against
the Model label; the contained trigger now shrinks inside its share of the row
and truncates. Menu rows put the model name and its route or status on separate
lines and grow to fit instead of clipping at 30px.

The sidebar's Connect apps pill now leaves once the connector inventory is
complete and every app on it is connected. An unknown, partial or pending
inventory keeps it, so a fully set-up workspace gets a clean sidebar without
hiding an unfinished connection.

Refs #3686.

* fix(ui): judge the Connect apps pill against the whole catalogue

The pill asked the connected-only inventory whether every app was connected, so one connected app made it true. It now treats the catalogue as the universe, plus Whop, HighLevel and X, and hides only when every one of them has an active, settled connection and the inventory is authoritative. An empty, partial or unread catalogue keeps it, and it starts hidden until the first answer so a fully connected sidebar never flashes it.

The composer test now mounts Composer and asserts the mirror flag Simple passes and Advanced withholds. The contained model trigger's own min-w-0 max-w-[58%] is asserted, and the geometry-wording tests are named for the markup they actually check.

* fix(ui): let the Connect apps pill be dismissed and restored

The pill carries a dismiss control in the footer and the collapsed rail, saved to a namespaced local preference at once. The Apps panel offers the way back: it clears the flag and the sidebar brings the pill back immediately. Only the pill is affected; the automatic connected-everything rule is unchanged.

The catalogue API now marks the curated fallback complete explicitly, and the client requires that explicit flag, so a missing pagination block keeps the pill instead of hiding it. A fresh mount with the Apps panel already open counts as settled.

Refs #3686.

* fix(ui): leave an Apps entry after dismissing the Connect apps pill

Dismissal removed the only Simple-mode route into the Apps panel: the footer and
rail rendered nothing where the pill had been, and the restore control lived
inside the panel that could no longer be opened. The slot now keeps a 36px
icon-only puzzle button with the same nav hooks and label, in the footer row and
in the rail, so the entry outlives the labelled prompt. Dismissing or restoring
moves focus to the control that replaced the one that disappeared, never <body>.

The restore control is Simple-only: Advanced has no sidebar pill, so it no
longer offers to bring one back. The dismiss target grows from 20px to 24px,
keeping the 11px glyph, for the WCAG 2.2 target minimum.

Tests mount the shipping compositions while dismissed (SidebarFooter in Simple
mode and SimpleRailFooter), cover a partial catalogue whose named apps are all
connected, and prove the saved dismissal survives a fresh module that never saw
the click.

Refs #3686.

* fix(ui): keep the Apps entry and never claim an unread marketplace

A configured marketplace that fails, throws or answers with no usable
toolkit now falls back to the curated list with an incomplete catalogue,
so the sidebar cannot hide the Connect apps pill on a catalogue nobody
read. The unconfigured curated fallback stays complete.

The compact entry is an Apps entry, not a Connect apps prompt: it now
takes apps.title for its aria-label and title. Simple mode's rail keeps
that entry when every app is already connected, while Advanced still
renders nothing because its Apps panel has its own route.

* fix(ui): keep only the model rows here

Main already keeps the composer caret with the text (#3718), and the Connect
apps pill gets a smaller change of its own, so the caret and pill files go
back to how they were.

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

* fix(ui): the sidebar pill says Apps once an app is connected

"Connect apps" stays while nothing is connected. After that the pill is
simply the way into Apps, with the connected apps' logos on it.

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

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs: talk shortcut design (hold a key, talk to MausBot)

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

* docs: talk shortcut implementation plan

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

* feat(server): create a chat without selecting it

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

* feat(speech): finish recognition when the talk keys are let go

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

* feat(speech): sessions owned by a sink, scoped stop and speechBusy

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

* feat(talk): the talk shortcut setting, its keys and registration

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

* feat(talk): find MausBot, keep the Quick asks chat and follow the reply

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

* feat(talk): the floating box that never takes focus

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

* fix(talk): box load errors, icon failure, closed windows, bounded preview

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

* feat(talk): one ask from press to reply

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

* fix(talk): survive render and speech start failures, cap listening at 60 s

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

* feat(talk): wire the talk shortcut into the desktop app

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

* fix(talk): keep startup going, stop a closed window's dictation, escape chat link ids

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

* fix(speech): a window's session also ends when its page reloads, navigates away or crashes

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

* feat(talk): Settings row, and calls tell main they hold the microphone

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

* refactor(talk): move the talk and speech IPC wiring out of main.mjs

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

* docs(verification): talk shortcut recipe

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

* fix(settings): show the talk shortcut row on Simple mode's General page

main's Simple mode renders General through SimpleGeneralPage, not the
advanced section list, so the row only appeared in Advanced mode. It now
sits in the System group after the default-bot row; the General section's
talk/voice/shortcut search keywords already lead there.

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

* fix(talk): say when this Mac's bots moved to My Cloud or its server is starting

A frozen server's 409 { code: "moved" } is now TalkServerError "moved" (making
the chat or sending), and a server that can't be reached while it is still
starting is "starting" instead of "server-down". Refused bodies are cancelled.

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

* fix(talk): composer's words for speech problems, distinct server notices, busy()

Only a refused permission asks for Microphone + Speech Recognition access; a
microphone or recognizer failure says "Talking couldn't start". No MausBot, a
server still starting and a move to My Cloud each get their own notice. busy()
reports listening/sending/thinking; panel.close and panel.hovered can no longer
throw out of a timer.

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

* feat(talk): refresh the shortcut when its availability changes; tell home changes

createTalkShortcut gains refresh(), which takes or lets go of the key when
available() changed since it was last set up (set() returns early while it is
unavailable). createHomeWindow calls rehomed(home) when home as worked out
changes.

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

* fix(talk): off while home is My Cloud; box follows the app's skin; updater waits

- The shortcut is unavailable while home is My Cloud or this Mac's copy is
  frozen (away), and home changes re-apply it (homeWindow rehomed ->
  talk.homeChanged). Asks say "starting" while the local server is not ready.
- A talk ask under way (listening/sending/thinking) counts as busy for the
  quiet update, on main's existing quietSignals line.
- The box takes light or dark from the skin desktop:skin reports (a body class;
  the media query only until a page has painted). skinIsLight() reads it from
  the skin's page colour, pinned to styles.css by a test.
- The box stays on the display it opened on, inlines a 56 px mascot
  (nativeImage.resize) instead of the 1024 px icon, clamps reply text to ten
  lines so a wide-character reply never cuts the card at 240 px, and its CSP
  adds base-uri and form-action 'none'. Paints, close and quit are guarded.

main.mjs stays at 3270 lines (cap 3276).

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

* fix(settings): talk row shows a failed change; search finds it only on the Mac

The row catches state()/set() failures (shows "Could not change this. Try
again." as OpenAtLoginRow does) and holds the switch and key picker while a
change is on its way. The talk keywords join General's search only on this
Mac app's own page, where the row can show.

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

* test(speech): compile the helper from a path that survives spaces

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

* docs(verification): talk box evidence at the box's own size, and its renderer

scripts/talk-box-evidence.mjs renders every state in headless Chrome over the
DevTools protocol at a 400 px viewport as tall as the card (56-240 px, 2x),
each skin under the opposite macOS appearance. 20 PNGs (adds reply-wide). The
recipe gains the regeneration steps (incl. preferredColorScheme=0 is dark),
the skin-driven light/dark step, the My Cloud step corrected, and a
server-starting step; the spec matches the rulings.

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

* fix(talk): opening an own Cloud from the account menu brings back an app window, never the talk box

Main's new own-Cloud open listed BrowserWindow.getAllWindows() directly; like
every other reveal it now uses appWindows(), which leaves the talk box out.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Since the bridge offers app tools for the connected apps, a turn's setup waited
for the broker's connected-apps list once a minute. A message sent in that
time found the turn not yet running, so it waited for the turn to end instead
of steering into it.

Now a turn uses what is known at once and the list is read again in the
background once it is a minute old. It is read once at start, so the first
turn need not wait either; only an installation's first answer is waited for,
at most three seconds, and a failed first read is tried again after ten.

The steering test now sends its second message once the first turn's engine
has the prompt: before that, the message waits for the turn by design.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Ahmar <hussain@Ahmars-MacBook-Pro.local>
#3748 was merged with its CI red: it grows server/drivers/acp/core.ts to 1,780
lines (listed at 1,775; 1,772 after the 0.1.131 bump tightens it), so the
file-size ratchet fails on main and would block the release.

Reverting restores the exact tree the 0.1.131 release CI is testing. The fix
re-lands after the release, with its session-selection step moved out of
core.ts.

This reverts commit 1e4a6de694.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The request_credential card, its phone and desktop save routes and the
internal request route move into server/host/secret-cards.ts and
server/routes/secret-cards.ts unchanged, so the next change can grow them
without growing index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
request_credential now also takes a custom secret (label, reason, delivery)
besides the named keys, and gains the Composio key and Settings' AI provider
keys, each saved exactly where Settings saves it.

- ref: the value stays in memory behind a one-use secret-ref bound to the
  asking bot and conversation, for an hour; add_mcp_server swaps it into env,
  headers or oauth.clientSecret, so a key never goes through chat.
- file: a 0600 file in a 0700 .openmausbot-secrets folder of the bot's own
  workspace or Local VM workspace, deleted after a day or with its
  conversation; backups, moves, Cloud Files, chat links, attach_file,
  publish_page, uploads and checkpoints leave the folder out.
- Only the conversation's own person can type into a custom card; a freshly
  paired phone's sealed value is opened and kept by the server, and a phone
  is told to use the computer for a provider key.
- Held-secret redaction masks a live value in transcripts, events and logs,
  now in transcript tool input and output too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The composer's Send button and the primary answer on a bot's cards now use
that bot's own colour, the same flat fill and ink as its Simple bubble
(userBubbleTone), in Advanced and Simple mode and on the phone layout.

- Composer: Send (and Simple's round Stop) use the bot's colour. A room keeps
  the accent, as its composer already does.
- Approvals in the composer: Allow once / Confirm / Enable take the colour of
  the bot that asked. Deny, Cancel and Always allow keep their looks.
- Question, key, sign-in and connect cards in a chat or a room: Submit,
  Save securely, Done and Connect securely take the asking bot's colour.
- Team inbox: Allow on the chat's card and in the panel, and the reply Send,
  take the colour of the bot the line is from; a teammate's line stays plain.

One mechanism: src/lib/bot-button.ts reads the bubble tone and sets four
custom properties; an unlayered .bot-button rule paints from them, so the
Midnight/Daylight neutral primary pill and the accent utilities never repaint
it. Hover and press step the fill away from its ink, so the label only gains
contrast; focus is a 2px ring in the skin's focus colour, 2px off the fill;
disabled uses the same quiet colours as a disabled accent button.

Tests: bot-button.test.ts checks every preset colour in every skin (label on
rest, hover and press at 4.5:1 or better, focus ring 3:1 on the app, card,
composer and panel surfaces, disabled label 3:1), and the composer, card and
inbox tests check the buttons carry the asking bot's tone.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* agents tools: advertise compact schemas, hold every call to the full one

callTool now checks every call against the tool's full input schema before
anything runs: lengths, numeric bounds, item counts, repeats and patterns,
at any depth, with a null read as a field left out. A call out of bounds is
refused in words that name each field and its limit.

tools/list then leaves out only bounds that check enforces and the model
does not need: non-empty and non-negative floors, limits the description
already states, and caps no sensible value comes near (200 characters,
32 items). Free-form objects keep additionalProperties: true for Moonshot.

Where a tool already caps or cuts a value itself (assignment_status
wait_ms, vm_exec timeout, session_search limit, and four reasons or search
strings), the bound comes out of the schema so a quiet cap does not turn
into a refusal.

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

* agents tools: merge tool families into action tools of one access class

Twelve tools fold into the tool beside them, each merge inside one access
class, so nothing a bot could only read can now change anything:

- list_triggers + list_trigger_events -> trigger_info (read-only: list, events)
- create_trigger + manage_trigger -> trigger (create, update, pause, resume,
  run_now, delete); the trigger fields are written once, not twice
- create_room -> manage_room action create (Chief-only, as both were)
- memory_log -> memory_update action log
- session_read -> session_search with a hit's thread_id and message_id (read-only)
- update_widget -> show_widget with widget_id; update_html -> show_html with app_id
- x_user_posts, x_post, x_profile -> x_search action user_posts, post, profile

Every old name still runs: callTool and the proxy resolve it to the same call
of its action tool, only where that tool is listed; the chat runtime answers it
unlisted; find_tool reads it as its tool. A tool selection keeps meaning what it
meant: a selector naming an old tool allows or refuses exactly those calls, now
checked per call with its arguments on every engine path (gate, Pi, chat
runtime). Outbound tools (post_to_room, publish_page, send_voice_note) keep
their own names.

Prompts, results, docs, the dashboards skill and Activity labels use the new
names; two chip labels are added in all 15 languages.

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

* agents tools: list fewer tools on turns that cannot use them

Two more switches in a turn's agents profile, each listing only what the
server would let that turn do:

- OMB_COMPUTER_SELECTION: select_computer is listed only on a person's own
  request that may pick its computer, the same turns the selection route
  accepts. A hand-off, a routine or webhook run, a continuation, a room and
  an external runtime are refused a selection, so they are not shown it.
- OMB_ROOM: a room's turn is not listed show_widget or show_html, which a
  room refuses.

Both switches ride the HTTP mount's settings too, so an engine reaching the
agents server over HTTP is listed the same tools. The Chief's setup tools stay
on hand-offs: a teammate is told to send team setup to its Chief with
coordinate_bots, which arrives as a hand-off. The catalog tests gain a room
turn and a hand-off turn.

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

* agents tools: lock in the smaller catalog

Regenerated the goldens and lowered every BUDGET_BASELINE to the bytes now
measured, so the saving cannot creep back. Three bridged baselines were
already below what main measured and stay where they are.

memory_update's log sentence is shorter, so a bridged turn, which lists
memory_update, ends no larger than before.

The fullest profile goes from 59 tools and 75,018 bytes to 49 tools and
65,045 bytes; a Chief's default turn from 45 tools and 63,098 bytes to 38 and
54,089; a non-Chief's from 37 and 53,167 to 31 and 45,050.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The rail stood only with two places or more. Once My Cloud was someone's home and
their only place, they had no rail, so no + to buy a second Cloud. Now a person
with a Cloud of their own sees its one circle and the + beside it. Everyone else
keeps the window as it was: This computer alone, a Team member's one Team Cloud,
or a single server saved by hand is still no rail.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
- usage-attribution: the ledger reader parsed the usage file while the server was
  still appending a line ("Unterminated string in JSON"). Only complete lines count
  now; the test's wait reads again.
- live-call: after Stop, the bot had 5 s to stop being busy, and a loaded runner
  took longer (main's runs on Oct 28, three times). It has 15 s now, and the
  test 60 s in all.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Bots ask for any secret on the secure card: a one-use ref or a private file
On Windows the bundled cua-driver 0.28.2 sends a foreground type_text as one
SendInput burst of Unicode key packets, and Windows 11 Notepad reads ahead in
that burst, so later characters replace earlier ones (" Zeile Drei" became
" iiiiiiiiii") while the tool reports success. Driver 0.35.0 fixes this by
pacing; until we bundle it, OpenMausBot sends such a call to the driver one
character at a time, keeping the window in front with bring_to_front before
each character and giving the previous window the front back afterwards. It
stops, and says how far it got, if something else takes the front. A driver
that already paces itself gets the call unchanged.

The same driver answers a click that picks a menu item with
foreground_unavailable after the click was sent, because the menu closes. For
click, double_click and right_click that one answer now says the click was sent
and asks the bot to check before clicking again.

Both apply on Windows only, to bots on this computer (the local proxy, through
a new relay hook in the MCP bridge) and to a lent screen (the desktop types,
the Cloud server rewords the click).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A path in a bot's prose or in backticks now renders as the same file link
a Markdown link gets. Paths are found in each text node's source, since
Markdown has already decoded its escapes: a UNC path written \\server\share
would otherwise reach the scan as \server\share. Windows and UNC paths keep
their spelling, and the client and the server run the same function on the
same source, so the server authorizes exactly the path the link asks for.

Co-authored-by: adamczhang <adamczhang@users.noreply.github.com>
* feat(rail): New organization from + for a Team plan with organizations

The account a Team plan is billed to, with organizations on at the Admin, gets New organization first on the rail's
+: a name and a color, then the Admin adds it to the same plan at once (no checkout) and its circle shows it being
set up. Main asks the Admin (POST /api/cloud/desktop/organizations) and the page sees only the outcome: added, the name
taken, the plan's limit, not running, too many at once, or failed. Older Admins send no `organizations`, so nothing
changes there; once the Admin turns adding off, the choice goes away.

Strings in all 15 languages.

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

* fix(rail): a block reason this app doesn't know reads neutrally, not as the plan's limit

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* agents tools: advertise compact schemas, hold every call to the full one

callTool now checks every call against the tool's full input schema before
anything runs: lengths, numeric bounds, item counts, repeats and patterns,
at any depth, with a null read as a field left out. A call out of bounds is
refused in words that name each field and its limit.

tools/list then leaves out only bounds that check enforces and the model
does not need: non-empty and non-negative floors, limits the description
already states, and caps no sensible value comes near (200 characters,
32 items). Free-form objects keep additionalProperties: true for Moonshot.

Where a tool already caps or cuts a value itself (assignment_status
wait_ms, vm_exec timeout, session_search limit, and four reasons or search
strings), the bound comes out of the schema so a quiet cap does not turn
into a refusal.

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

* agents tools: merge tool families into action tools of one access class

Twelve tools fold into the tool beside them, each merge inside one access
class, so nothing a bot could only read can now change anything:

- list_triggers + list_trigger_events -> trigger_info (read-only: list, events)
- create_trigger + manage_trigger -> trigger (create, update, pause, resume,
  run_now, delete); the trigger fields are written once, not twice
- create_room -> manage_room action create (Chief-only, as both were)
- memory_log -> memory_update action log
- session_read -> session_search with a hit's thread_id and message_id (read-only)
- update_widget -> show_widget with widget_id; update_html -> show_html with app_id
- x_user_posts, x_post, x_profile -> x_search action user_posts, post, profile

Every old name still runs: callTool and the proxy resolve it to the same call
of its action tool, only where that tool is listed; the chat runtime answers it
unlisted; find_tool reads it as its tool. A tool selection keeps meaning what it
meant: a selector naming an old tool allows or refuses exactly those calls, now
checked per call with its arguments on every engine path (gate, Pi, chat
runtime). Outbound tools (post_to_room, publish_page, send_voice_note) keep
their own names.

Prompts, results, docs, the dashboards skill and Activity labels use the new
names; two chip labels are added in all 15 languages.

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

* agents tools: list fewer tools on turns that cannot use them

Two more switches in a turn's agents profile, each listing only what the
server would let that turn do:

- OMB_COMPUTER_SELECTION: select_computer is listed only on a person's own
  request that may pick its computer, the same turns the selection route
  accepts. A hand-off, a routine or webhook run, a continuation, a room and
  an external runtime are refused a selection, so they are not shown it.
- OMB_ROOM: a room's turn is not listed show_widget or show_html, which a
  room refuses.

Both switches ride the HTTP mount's settings too, so an engine reaching the
agents server over HTTP is listed the same tools. The Chief's setup tools stay
on hand-offs: a teammate is told to send team setup to its Chief with
coordinate_bots, which arrives as a hand-off. The catalog tests gain a room
turn and a hand-off turn.

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

* agents tools: lock in the smaller catalog

Regenerated the goldens and lowered every BUDGET_BASELINE to the bytes now
measured, so the saving cannot creep back. Three bridged baselines were
already below what main measured and stay where they are.

memory_update's log sentence is shorter, so a bridged turn, which lists
memory_update, ends no larger than before.

The fullest profile goes from 59 tools and 75,018 bytes to 49 tools and
65,045 bytes; a Chief's default turn from 45 tools and 63,098 bytes to 38 and
54,089; a non-Chief's from 37 and 53,167 to 31 and 45,050.

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

* agents tools: no remembered allow reaches further; merged tools name what they were

An engine that remembers "always allow" by a tool's name must not let one
answer cover more than each of the tools that merged did on its own:

- delete_trigger is its own tool (manage_trigger's delete). trigger keeps
  create, update, pause, resume and run_now, and refuses a delete before
  anything is sent; delete_trigger only ever deletes.
- memory_log is its own tool again: inside memory_update, an allow given for
  a log line would have covered remove and forget.

A test holds every action tool to it: each one's furthest call reaches no
further than each of its members did alone, and its actions match the table.
In a tool selection, manage_trigger still covers deleting.

Each merged tool's description now names its old tools, e.g. "(was
create_trigger / manage_trigger)", so a model following a saved skill finds
it on engines that refuse unlisted names. The aliases move to
shared/agents-tool-names.ts, one table for the call path and selection.

Goldens regenerated. Every catalog profile stays within 2% of its baseline,
so none is raised; every bridged baseline is lowered to the measured bytes.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- A `plan` update comes from the model, so it now releases the held ACK and keeps
  the refusal that follows from being handed to startup recovery.
- The startup-recovery branch stops the prompt's quiet-watch interval, which it
  can now reach after session/prompt was sent.
- openCodePromptUnreachedModel no longer matches every "Cannot connect to API";
  "Connect Timeout Error" may have reached the model, so only the refused forms
  (ECONNREFUSED, ConnectionRefused, "Cannot connect to API: Unable to connect") count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The busy hour started at the next whole hour two days on. Run between 22:00 and
23:00 (UTC on CI) it ran from 23:00 to midnight, which the assistant's facts word
across two days ("Fri 30 Oct 23:00 – Sat 31 Oct 00:00"), and the test's
same-day pattern failed. It now starts at noon two days on.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The gate estimated a new engine from the resident pages of the running
engines' process groups, so a page shared by an engine's MCP servers (one
runtime's code) counted once for each of them, and a 4 GB Cloud kept tasks
waiting. Each process now counts its proportional set size from
/proc/<pid>/smaps_rollup, and its resident pages only where that can't be
read.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
In a boxed turn a URL MCP server's address is the box's credential broker,
http://127.0.0.1:18080/b/<token>/mcp-<name>, and the broker adds the
server's headers and forwards. A request for that address itself went to
the server's URL with a slash added (/mcp became /mcp/), and the configured
URL lost any trailing slash of its own. A server that answers only at its
own path, as a Cloudflare Worker serves /mcp, answered 404, which Claude Code
reports as "MCP endpoint not found at http://127.0.0.1:18080", while Settings
→ Test, which reaches the server directly, said it connected.

The broker now sends a request for the grant itself to the upstream exactly
as it was given, anything below it below that address, and the client's
query beside the upstream's own.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(approvals): a bot reading its own files never asks, at any level

Unattended routine runs stopped to ask for approval to `cat` the bot's own
SOUL.md and its own skill revisions; nobody answered, so the run waited fifteen
minutes and failed. A bot's standing instructions, skills, memory and
conversation folders are its own.

A plain read of them is now answered without the person at every level: a
reading command (cat, head, tail, grep, rg, sed -n, ls, wc, nl, stat) made of
plain words alone, Claude's read tools, or an ACP engine's read call, when
every path is inside the bot's own folders once links are followed. Anything
else in the command, another bot's files, and every read in a guest's turn
still ask. On a Cloud the bot's box also shows it its own SOUL.md, read-only.

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

* test(approvals): the shell-read cases run where a POSIX shell reads POSIX paths

Windows paths are not the reading commands' plain words, so those cases and the
end-to-end run skip there; a read tool's own paths are checked on every platform.

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

* fix(approvals): a bare ~ word is never a plain read of the bot's own files

The shell expands a bare ~, ~/..., ~name, ~+, ~- or ~N from its own HOME, the
system's accounts and its folder stack. None of that is visible to the check,
which read such a word as a folder of that name in the working folder. A bot
could make that folder in its own workspace, then read a file elsewhere
without asking. Such a command now asks, as any other one does.

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

* fix(approvals): no bare word with a ~ in it, or starting with =, is a plain read

bash expands a ~ after an = in any name=value argument (cat foo=~/x opens
foo=/Users/<you>/x), and zsh expands a leading = to a command's own path. The
path opened then isn't the path checked, so a link planted at the opened one
could lead outside the bot's folders. Quoted words stay plain: neither shell
expands them.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(mcp): a bot's own MCP server starts only for that bot, and one that doesn't start is left out

A command server whose program or files are in one bot's folder could only ever start for that bot (on a
Cloud a bot's turn sees only its own folders), yet it was mounted for every bot: every other bot's sessions
failed it, every time, and Claude Code repeated the failure under every tool search. Files in a conversation
folder went with the conversation, so such a server could vanish even for its owner.

- A server whose command, arguments or environment point into one bot's folders is that bot's own
  (`"bot": "<id>"` in config.json) and starts only for it. A bot's add_mcp_server copies files from a
  conversation folder into its own folder's tools/ and runs them from there; another bot's files are refused.
  Servers a person adds in Settings stay every bot's.
- Existing installs: on the first start, servers no bot owns whose files are in one bot's folders become
  that bot's own the same way, said once ("The Blender tool only works for Iris, so it's off for your
  other bots.").
- Each enabled command server is started once the way a bot's AI starts it (in the bot's box, from its own
  folder): when added, changed or turned on, before the first turn that uses it, and whenever Claude Code
  reports it did not connect. One that doesn't start is left out of turns, said once in a notice, shown in
  Settings, and tried again on its own every half hour. A bot's own server is checked for that bot; any other
  starts the same for every bot, so one check stands for all.
- A deleted bot's own servers go with it.

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

* test(mcp): build the expected paths with the platform's own path helpers

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

* fix(mcp): a bot's own server only where bots are boxed, claimed once, for bots that exist

On a desktop every bot reaches every folder, so a server a bot adds stays every
bot's there, with no notice; its files are still copied out of a conversation
folder into the bot's tools/ folder, since that folder goes with its
conversation. A server that doesn't start is still left out by the health check.

Where bots are boxed, the first start after the update claims a server for the
one existing bot whose folders it uses, once: a marker file keeps a later start
from claiming a server the person added in Settings, and a leftover folder of a
deleted bot claims nothing.

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

* test(team-box): turn the member's MCP servers for the bot whose turn it is

A turn's MCP servers are now a bot's own (turnMcp takes the bot). The broker
end-to-end test that came in from main still passed an empty object.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The test checks that "Olive", the name on a server profile nobody has
claimed, reaches no one's prompt. Olive is also one of the 64 names a new bot
can be given, so whenever the team's Chief of Staff drew it, the roster named
it and the test failed (about one run in 64). The profile's person is now
Imogen, which no bot can be called.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(appearance): a sidebar colour and picture for everyone, this computer included

Everyone can give their sidebar a colour and a picture from Settings →
Appearance: a desktop with no Cloud (signed in or not), a personal Cloud and
the person's other Clouds, and a Team Cloud's admins. Both start plain, as
before: no colour, no picture, nothing chosen.

- This computer's colour is this app's own, kept like a server connected by
  hand: in the saved places file, as `localColor` beside the list, never on
  the Admin. A named local folder keeps a colour on its own entry.
- Its picture is kept on this computer's own server, whose owner the app's
  own page already is.
- The rail: this computer's circle wears the colour and has the same colour
  menu as any circle; the switcher's This computer row shows its dot.
- One card in Appearance (Advanced) and in Simple's Looks page, in the Simple
  look in both: "Sidebar color" and "Sidebar picture", in plain words on this
  computer. The plain swatch is named None (an empty circle), in the card and
  the rail's menu; None clears the colour, Remove clears the picture.
- Clouds keep their rules: the Admin keeps the colour, the picture is on the
  Cloud, a team member sees both, locked.
- Five new strings in all 15 languages; the unused "Picture" title removed
  with its hashes; the German picture line says "eingeblendet".
- verify-cloud-rail.ts: this computer's own page (`place=computer`), Simple
  mode's Looks page, a team member's own session, and `--size`.

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

* docs(verification): pictures of the sidebar's colour and picture on this computer, a Cloud and a team member

Taken with scripts/verify-cloud-rail.ts at 1338x870 (2x), before (main at the
branch point, this computer's page answering with no colour as main did) and
after.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(mcp): a bot's own MCP server starts only for that bot, and one that doesn't start is left out

A command server whose program or files are in one bot's folder could only ever start for that bot (on a
Cloud a bot's turn sees only its own folders), yet it was mounted for every bot: every other bot's sessions
failed it, every time, and Claude Code repeated the failure under every tool search. Files in a conversation
folder went with the conversation, so such a server could vanish even for its owner.

- A server whose command, arguments or environment point into one bot's folders is that bot's own
  (`"bot": "<id>"` in config.json) and starts only for it. A bot's add_mcp_server copies files from a
  conversation folder into its own folder's tools/ and runs them from there; another bot's files are refused.
  Servers a person adds in Settings stay every bot's.
- Existing installs: on the first start, servers no bot owns whose files are in one bot's folders become
  that bot's own the same way, said once ("The Blender tool only works for Iris, so it's off for your
  other bots.").
- Each enabled command server is started once the way a bot's AI starts it (in the bot's box, from its own
  folder): when added, changed or turned on, before the first turn that uses it, and whenever Claude Code
  reports it did not connect. One that doesn't start is left out of turns, said once in a notice, shown in
  Settings, and tried again on its own every half hour. A bot's own server is checked for that bot; any other
  starts the same for every bot, so one check stands for all.
- A deleted bot's own servers go with it.

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

* test(mcp): build the expected paths with the platform's own path helpers

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

* fix(mcp): a bot's own server only where bots are boxed, claimed once, for bots that exist

On a desktop every bot reaches every folder, so a server a bot adds stays every
bot's there, with no notice; its files are still copied out of a conversation
folder into the bot's tools/ folder, since that folder goes with its
conversation. A server that doesn't start is still left out by the health check.

Where bots are boxed, the first start after the update claims a server for the
one existing bot whose folders it uses, once: a marker file keeps a later start
from claiming a server the person added in Settings, and a leftover folder of a
deleted bot claims nothing.

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

* fix(limits): a bot carries on with another AI by itself when its AI reaches a usage limit, and says so once

A usage limit used to fail the turn, offer a card only for a person's own
message, file an incident for every refused turn (five in four minutes), and
leave routine runs failing until the reset. Now:

- Each engine says which limit refused the turn (runtime.error `limit`): the
  account's on that engine, one model's own window (Claude's weekly model
  windows, Codex's "usage limit for <model>"), or a model's extra usage
  credits. A model's own limit carries that window's reset.
- The limited AI is held until the reset it named, or for an hour when it named
  none (a guess, never shown as a reset). A model's own limit holds that model
  alone, at most six hours before it is tried again.
- While it is held, every turn goes straight to the first AI that can carry
  on: for a model's own limit the same AI's default model, then the backups
  chosen for the bot or in Automatic recovery, then the AI a new bot would get.
  Only an AI that can run now with the same tools and folder, never another
  sign-in to the same subscription. A person's message that met the limit is
  sent again there; a routine run starts again there. A conversation that moved
  goes back after the reset.
- The person hears it once per bot for each stretch of the limit, as a notice:
  "Codex reached its limit until 14:00, so Kai is using Claude meanwhile.", or
  that the bot waits when nothing can carry on. Usage limits file no incidents.
- OMB_QUOTA_SWITCH=0 switches the carrying on off: only Automatic recovery's
  own backups take over, and the notice says the bot waits.

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

* refactor(limits): keep the server entry within its size limit

Main's size ratchet now holds server/index.ts at 16,133 lines; the turn-start
check and the takeover's wiring sit on lines that were already there.

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

* fix(limits): a Chief still hears of a teammate's usage limit, once per stretch

Usage limits filed no incident at all, so a Chief no longer heard that a
teammate was past its limit. Now its Team incidents get one per bot for each
stretch of a limit, not one per refused turn; the person is not notified of
it a second time, since the limit's own notice already told them.

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

* fix(acp): an engine waiting out a usage limit ends its turn as that limit, and a lifeless one stops after five minutes

OpenCode 1.18.27 waits a provider's retry-after in full, uncapped, up to five
times, and treats OpenCode Go's own usage limit as retryable: at that limit a
turn sends nothing over ACP for hours, and the turn was stopped as stuck only
after fifteen minutes, "last seen: no readable process state" since a Cloud
image has no ps or lsof. Failing MCP servers do not hang it (measured).

- On Linux a quiet engine is read from /proc: its tree's CPU and its
  established connections in each network namespace it lives in.
- When OpenCode's log says the turn's model request failed on a usage or rate
  limit (or Qwen logs a long wait after a 429) and the engine stays quiet two
  more minutes, the turn ends as the engine's usage limit, so another AI
  carries on and the person hears it once. OpenCode's own usage-limit error is
  marked the same way.
- No open request, no CPU use and nothing logged for five minutes stops the
  turn as stuck, instead of fifteen.

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

* fix(limits): an AI that bills each use carries on only as a backup the person chose

When a bot's AI reaches its limit and the person named no backup, the bot
carries on with the AI OpenMausBot would pick for a new bot. That pick could be
an API key, which spends the person's money with only a notice. It is now
taken only from AIs that draw on a plan. A pay-per-use AI, or a key on the same
AI, still carries on when the person chose it as a backup.

The takeover's engines carry the registry's access too, so a driver that is
API-only by its own nature counts, as the quota switch already does.

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

* test(team-box): turn the member's MCP servers for the bot whose turn it is

A turn's MCP servers are now a bot's own (turnMcp takes the bot). The broker
end-to-end test that came in from main still passed an empty object.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(mcp): a bot's own MCP server starts only for that bot, and one that doesn't start is left out

A command server whose program or files are in one bot's folder could only ever start for that bot (on a
Cloud a bot's turn sees only its own folders), yet it was mounted for every bot: every other bot's sessions
failed it, every time, and Claude Code repeated the failure under every tool search. Files in a conversation
folder went with the conversation, so such a server could vanish even for its owner.

- A server whose command, arguments or environment point into one bot's folders is that bot's own
  (`"bot": "<id>"` in config.json) and starts only for it. A bot's add_mcp_server copies files from a
  conversation folder into its own folder's tools/ and runs them from there; another bot's files are refused.
  Servers a person adds in Settings stay every bot's.
- Existing installs: on the first start, servers no bot owns whose files are in one bot's folders become
  that bot's own the same way, said once ("The Blender tool only works for Iris, so it's off for your
  other bots.").
- Each enabled command server is started once the way a bot's AI starts it (in the bot's box, from its own
  folder): when added, changed or turned on, before the first turn that uses it, and whenever Claude Code
  reports it did not connect. One that doesn't start is left out of turns, said once in a notice, shown in
  Settings, and tried again on its own every half hour. A bot's own server is checked for that bot; any other
  starts the same for every bot, so one check stands for all.
- A deleted bot's own servers go with it.

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

* test(mcp): build the expected paths with the platform's own path helpers

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

* fix(mcp): a bot's own server only where bots are boxed, claimed once, for bots that exist

On a desktop every bot reaches every folder, so a server a bot adds stays every
bot's there, with no notice; its files are still copied out of a conversation
folder into the bot's tools/ folder, since that folder goes with its
conversation. A server that doesn't start is still left out by the health check.

Where bots are boxed, the first start after the update claims a server for the
one existing bot whose folders it uses, once: a marker file keeps a later start
from claiming a server the person added in Settings, and a leftover folder of a
deleted bot claims nothing.

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

* fix(limits): a bot carries on with another AI by itself when its AI reaches a usage limit, and says so once

A usage limit used to fail the turn, offer a card only for a person's own
message, file an incident for every refused turn (five in four minutes), and
leave routine runs failing until the reset. Now:

- Each engine says which limit refused the turn (runtime.error `limit`): the
  account's on that engine, one model's own window (Claude's weekly model
  windows, Codex's "usage limit for <model>"), or a model's extra usage
  credits. A model's own limit carries that window's reset.
- The limited AI is held until the reset it named, or for an hour when it named
  none (a guess, never shown as a reset). A model's own limit holds that model
  alone, at most six hours before it is tried again.
- While it is held, every turn goes straight to the first AI that can carry
  on: for a model's own limit the same AI's default model, then the backups
  chosen for the bot or in Automatic recovery, then the AI a new bot would get.
  Only an AI that can run now with the same tools and folder, never another
  sign-in to the same subscription. A person's message that met the limit is
  sent again there; a routine run starts again there. A conversation that moved
  goes back after the reset.
- The person hears it once per bot for each stretch of the limit, as a notice:
  "Codex reached its limit until 14:00, so Kai is using Claude meanwhile.", or
  that the bot waits when nothing can carry on. Usage limits file no incidents.
- OMB_QUOTA_SWITCH=0 switches the carrying on off: only Automatic recovery's
  own backups take over, and the notice says the bot waits.

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

* refactor(limits): keep the server entry within its size limit

Main's size ratchet now holds server/index.ts at 16,133 lines; the turn-start
check and the takeover's wiring sit on lines that were already there.

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

* fix(limits): a Chief still hears of a teammate's usage limit, once per stretch

Usage limits filed no incident at all, so a Chief no longer heard that a
teammate was past its limit. Now its Team incidents get one per bot for each
stretch of a limit, not one per refused turn; the person is not notified of
it a second time, since the limit's own notice already told them.

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

* fix(limits): an AI that bills each use carries on only as a backup the person chose

When a bot's AI reaches its limit and the person named no backup, the bot
carries on with the AI OpenMausBot would pick for a new bot. That pick could be
an API key, which spends the person's money with only a notice. It is now
taken only from AIs that draw on a plan. A pay-per-use AI, or a key on the same
AI, still carries on when the person chose it as a backup.

The takeover's engines carry the registry's access too, so a driver that is
API-only by its own nature counts, as the quota switch already does.

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

* test(team-box): turn the member's MCP servers for the bot whose turn it is

A turn's MCP servers are now a bot's own (turnMcp takes the bot). The broker
end-to-end test that came in from main still passed an empty object.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* feat(apps): Postiz in a new Social category, so bots can draft, schedule and publish social posts

The Apps page gets a Social category with a Postiz card. Connect signs in
with Postiz Cloud through the existing MCP sign-in (dynamic registration and
PKCE at api.postiz.com/mcp-oauth-dynamic: the loopback callback on the
desktop, the Cloud's own address on a Cloud). "Use an API key instead" takes
an organisation key and, for a self-hosted Postiz, its server address; the key
is checked with MCP initialize and tools/list before it is saved, kept like
other app keys (the desktop's encrypted store, the server's config on a
Cloud), and sent only to the postiz entry at the address it was saved for.

Postiz is one MCP server entry named postiz, so the MCP gate, each bot's
server selection, a Team Cloud's scopes (Only for me), Claude Code's tool
search and the large-catalog directory treat it like any other server. A
revoked sign-in offers Reconnect and a revoked key shows as refused after the
card's check. A new ready-made bot, Buzz the social media manager, adds posts
to Postiz as drafts or scheduled posts and publishes now only when asked.

Tests run an isolated fake-engine server beside stand-in Postiz backends: both
connect paths, the bot's turn calling schedulePostTool with the right bearer,
the token and key absent from every answer, transcript, prompt, log and data
file but the one that stores them, plain refusals, revocation and disconnect.
OpenMausBot only calls Postiz's public endpoints; no Postiz code or artwork is
included.

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

* docs(postiz): the key does not move to My Cloud yet, so say only what does treat postiz like any server

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

* test(keys): the read-back of every key covers the Postiz key, checked against a loopback stand-in

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Bot-coloured main buttons: Send, Allow and the answers a bot waits for

The composer's Send button and the primary answer on a bot's cards now use
that bot's own colour, the same flat fill and ink as its Simple bubble
(userBubbleTone), in Advanced and Simple mode and on the phone layout.

- Composer: Send (and Simple's round Stop) use the bot's colour. A room keeps
  the accent, as its composer already does.
- Approvals in the composer: Allow once / Confirm / Enable take the colour of
  the bot that asked. Deny, Cancel and Always allow keep their looks.
- Question, key, sign-in and connect cards in a chat or a room: Submit,
  Save securely, Done and Connect securely take the asking bot's colour.
- Team inbox: Allow on the chat's card and in the panel, and the reply Send,
  take the colour of the bot the line is from; a teammate's line stays plain.

One mechanism: src/lib/bot-button.ts reads the bubble tone and sets four
custom properties; an unlayered .bot-button rule paints from them, so the
Midnight/Daylight neutral primary pill and the accent utilities never repaint
it. Hover and press step the fill away from its ink, so the label only gains
contrast; focus is a 2px ring in the skin's focus colour, 2px off the fill;
disabled uses the same quiet colours as a disabled accent button.

Tests: bot-button.test.ts checks every preset colour in every skin (label on
rest, hover and press at 4.5:1 or better, focus ring 3:1 on the app, card,
composer and panel surfaces, disabled label 3:1), and the composer, card and
inbox tests check the buttons carry the asking bot's tone.

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

* refactor(host): move the waiting-on-the-person chips and the park port out of server/index.ts

A pure move into server/host/ask-cards.ts: the chip a delegating conversation
gets while its teammate waits on the person, its settle, and the coordinator's
park port. Function bodies are unchanged; their singletons come in as deps.

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

* feat(runtime): a teammate asks a decision with set answers as a card, and its NEEDS INPUT question becomes one too

A bot doing work another bot handed it is told to ask a decision with a few
set answers (yes or no, or "only this / also that / no") with its engine's
question tool, writing the choices itself in the person's language, and to
keep NEEDS INPUT for open questions. The envelope names the tool only when the
engine has one and the bot's tool selection keeps it: ask_user on Claude, Pi
and the chat runtimes, and an ACP agent's own question tool where it has one
(askTool, a new engine capability).

The card is the ordinary question card, so on a Team Cloud its copy reaches
the person's inbox with the same choices and a tap there answers the bot,
which carries on with that answer in the same turn.

- A NEEDS INPUT question a teammate parks on becomes a question card with a
  reply field in its conversation, in place of the line (the line keeps the
  words before it). It goes out as a question, so on a team its copy reaches
  the person's inbox too, and an answer from the card, the copy or a line in
  the chat answers the waiting work. Stop and an expired wait close the card
  with their own state (OptionCardData.stopped, expired).
- A line the person types while the bot's turn waits on its own question card
  answers that card, as a tap would; so does a reply to the card or to its
  copy in the inbox. A stop command still stops.
- The conversation that handed the work on is not given a chip about the
  question when it is the person's own inbox: the card's copy is there.
- The requester resumed with a teammate's question is told it is already in
  front of the person, not to repeat it or ask it again.
- An approval nobody answered in time is marked expired.

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

* feat(ui): one calm card for a bot's question and approval, in the chat and in the inbox

The question, the open question and the approval are one card family, the
same in a chat, on the inbox card and in the inbox panel, in Simple and
Advanced, in both skins and at phone width:

- A raised card (the composer's surface and its 0.5px hairline, the new
  ELEVATED_CARD) led by one line in secondary ink with the asking bot's small
  face: "Biber asks", "Biber wants to run a command". An inbox copy's line
  links back to the conversation it was asked in. The question follows in
  clear ink at reading size; a long command or detail folds after three lines.
- Choices are full-width buttons, one per answer, at least 36px tall and 44
  on touch, whose labels wrap instead of being cut. The tapped one shows it is
  on its way while the others wait; a failed send says so in place and takes
  another. No letter keys: a choice is pressed.
- The one primary action is the asking bot's colour (the bot-button from the
  bot-coloured buttons work); Deny is neutral; Always allow and Cancel turn
  are quiet. One recipe in AskCard.tsx: primary, secondary and quiet, in two
  sizes.
- A settled card is one calm line with a check: "You chose: Ja, nur den
  Abschlusstext", or "You answered: ..." for the person's own words. Stopped
  and expired questions, and an approval that timed out, have their own
  lines.
- The open question a NEEDS INPUT line becomes is the same card with a reply
  field. A question's copy in the inbox carries no caption above it, and an
  approval's while it waits in the dock; the inbox card leaves the answers
  of the line it sits under to that line's own card.
- The inbox panel's reading view uses the same question card, approval card
  and reply field; its rows' buttons get focus rings and touch sizes, and the
  panel's slide-in respects reduced motion.

German has every card string, and every locale has the new ones.
question-cards-preview.html mounts the real chat, inbox card and panel over
a fixed store for side-by-side captures.

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

* docs(question-cards): the verification page, the runtime and team notes, and the e2e helpers

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

* docs(question-cards): before and after pictures; the preview's key card names its help link

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

* fix(team): a person's first question leaves no waiting chip beside its inbox copy

The chip check asked whose inbox the requester's chat already was, and a
person's chat with their Chief only became their inbox once something was
delivered there. It now asks whether that chat is, or would become, the inbox
of the person the card is asked of.

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

* docs(question-cards): the approval in the inbox panel, and in German

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

* fix(question-cards): a typed line answers a card only in handed-on work or through an inbox copy

Anywhere else a line typed while a question card waits is steered into the
running turn or queued, as before, so the steering and queue paths keep working.

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

* fix(question-cards): drivers keep their size, command text in whole pixels, the row says an approval got no answer in time

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

* fix(question-cards): the wire types stay within 1,000 lines, and expired says it covers no answer in time

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The prompt-unreached check, transient-start check and policy refusal now live in
startup-recovery.ts; behavior is unchanged. The OpenCode comment no longer says a
connect timeout may have reached the model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The official Antigravity runtime offers only the base gemini-3.8-flash model
with a thinking_level option, while saved bots still hold
gemini-3.8-flash-{low,medium,high}. The runtime accepted the switch but stayed
on the base model, so every turn failed with "did not switch to
gemini-3.8-flash-medium (still gemini-3.8-flash)".

Re-lands the reverted fix: the offline catalog lists the base model with
Low/Medium/High variants, and a retired suffixed pick runs as the base model
at its saved level when the live session offers the base and not the
suffixed id (and the turn chose no level of its own).

The session model-selection step (legacy mapping, stale pooled-process check,
fallback model and its one-time notice) moves out of acp/core.ts into
pickSessionModel in session-model-controls.ts, so core.ts shrinks from 1771 to
1755 lines instead of growing past its ratchet.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Windows desktop every turn on the Chat Completions runtime failed with
"MCP tool count exceeds the 128-tool limit": an Auto bot gets the person's
computer (Cua Driver 0.28.2 lists 57 tools there), the built-in browser (32)
and the agents server (42 for a Chief), 131 before Connected apps and Data,
and built-in servers were never skippable.

- The turn's computer no longer lists the driver's upkeep (config, recording,
  update and diagnostic tools, agent-cursor looks, deprecated session
  read-backs), and beside the built-in browser it does not list the driver's
  own browser tools either: 57 -> 28 on Windows, 38 without the built-in browser.
- Built-in servers share what the model takes through shareToolBudget, the
  agents server whole first, and are capped with capToolList instead of failing
  the turn; the person gets one notice naming what was left out.
- Room is kept for ask_user, so a turn never sends 129 tools.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(local-vm): preserve user-installed apps on update

* test(local-vm): expose app rescue in update fixture

* feat(local-vm): make app preservation opt-in

* fix(local-vm): reject divergent app rescue

* test(local-vm): exercise app rescue fixture

---------

Co-authored-by: Ahmar <hussain@192.168.1.11>
In comfortable and compact rows the model's mark sat at the end of the
row's second line. Hovering a row fades in its actions (new thread, new
folder, more), centred on the whole row, so the mark stayed visible under
them on a different line and never lined up with them.

It moved there because the avatar's bottom-right belongs to the working
and waiting dots. The badge sits on the avatar's bottom-left, which
nothing else uses, so every Advanced density now shows it there, as the
icons-only rail already did. Simple mode keeps its faded engine mark.
* feat: pinned web panels — keep a dashboard URL one click away in the sidebar

Closes #2741.

Settings → General → Pinned panels takes up to six { name, url } entries
(absolute http/https only; no embedded credentials). In Advanced mode each
one gets a row under Tools next to Team map; selecting it shows the page in
place of the chat, framed with a sandbox and no referrer, with Reload and
Open in browser. A page that never loads falls back to Open in browser.

Renderer-only: the list lives in localStorage with the same
useSyncExternalStore pattern as thread preferences. No server, Electron,
CSP or dependency changes; bots never see the panels.

* fix(web-panels): never frame the app's own origin; fit Files and the toolbar

The panel's frame keeps its page's origin, so a page pinned on the app's
own address would run with the app's access: Settings refuses to pin one
and the page never frames one, offering the browser instead. A panel row
follows the toolbar layout's icons like its neighbours, and closing
Automations goes back to the panel it was opened from again.

---------

Co-authored-by: gus <42593099+lightcloud00@users.noreply.github.com>
A turn on an OpenAI-compatible server gave up after three minutes without
new output, and only a server environment variable could change that, so a
local model on a slow computer was cut off before it answered. Each server
under More servers now has a "Wait" choice from 5 to 60 minutes, saved in
that server's config; Default keeps the server-wide wait.
Queue part writes, hash verification and finalization per upload. Read upload metadata after acquiring the queue, and keep active uploads out of stale cleanup.

(cherry picked from commit 1e9f85a52521ecb2cee893797b456c31f34b9d39)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 52b8f66b873b04cdeab64f9b3db5068c93439d32)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recheck item state and inbox ownership after generation, and invalidate pending answers when the inbox stops. Preserve later corrections by the person.

(cherry picked from commit 92474fd1f4691b627d81f5ef76a856b17c720b2f)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adapt the read-only guard from fork commit 1ba7cd6ff63f98e12beb10e68d651dc900b8823c to upstream path-based mounts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Track accepted connections in the credential broker and both HTTP gates so shutdown destroys clients that have not sent complete headers.

(cherry picked from commit df7cdcf9bff534867f272eeffef54175ef42f6f0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 332b78ebb13389f54921f4444adb881fa68698af)
Keep download files scoped to their in-memory index. Clear stale files before opening a profile, and remove completed and partial files when it closes or Chrome exits.

(cherry picked from commit d1235cfe135202726ba23781aad7f6e828675ef9)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Close seccomp descriptors and revoke broker grants when wrapping fails. Explain how to replace a multiply-linked read-only source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Report pause save failures with a save retry and reserve restart recovery before lending. Keep Resume paused until its state can be saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6a7a52e6aae301cf0b3860dc7cc1108b4bc8b498)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Give shared master initialization its own bounded deadline and apply each
caller's timeout only to its wait. Keep the pending slot until bootstrap
settles so longer callers can finish and failed attempts can be retried.

Add a gated regression with a short first caller and a longer waiter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 09e3618d0a83b25736ca830e2f9c9fb6b89145dc)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 24339a42882b09c2ef903383bbc4027653e51054)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 78ba8fe2b9a61d2b83088a2b5a123d8583ddf483)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Render pending changes over confirmed state so a failed read or Done is removed even when recovery fails. Preserve overlapping pending changes and acknowledged mutations while reconciling stale snapshots.

(cherry picked from commit b56605e223cf00bcf92ce9003f6a5a7b1c269ea3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- server/config.ts had grown to 1307 lines (listed at 1301). The Local VM
  defaults and the four readers move to server/local-vm-settings.ts; config.ts
  re-exports them, so no importer changes. config.ts is now 1285 lines.
- The Local VM settings answer now carries preserveInstalledApps; the HTTP API
  tests expect it.
- The local model's reply-wait picker used a native <select> with 11.5px text;
  it is the app's Select at the small size now.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Track speech ownership while mkfifo is pending. Cancel stale starts, retain finish markers, and clean up failed or cancelled startup before launching the helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The per-server Wait setting (up to 60 minutes) could not work past 5:
Node's fetch fails a request after 300 s without response headers or body
bytes, and Ollama sends nothing until its first token. A turn on a slow
local model failed at 301 s with "fetch failed".

When the wait is over 5 minutes, the chat request now goes through
undici's own fetch and Agent with those limits off, so the Wait setting
is the only limit. The package's fetch and Agent are used as a pair:
the desktop server runs on Electron's Node 24 (undici 7.29) and dev on
Node 26 (undici 8.9).

For a server on this machine or a private network, the runtime asks for
its models every 30 s while a reply is pending. Three missed answers in a
row stop the reply with "The model server at <host> stopped answering",
instead of waiting out the full Wait. Cloud providers are never asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The busy slot is Thursday 29 Oct 14:00-15:00 UTC, but the assistant read the
real clock. From 15:00 UTC on Oct 29 the slot was in the past, the facts said
'Busy times in the next 14 days: none', and the test failed on every run.
That made every PR's and main's Linux shard 4 red. It now gets the same fixed
clock as representative.test.ts, two days before the slot.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* ci: main runs Linux and one macOS job; Windows and macOS suites run nightly, by hand and in the release lane

A push to main and a merge group now run the main lane: static (typecheck,
lint, the build), the eight Linux shards, the macOS smokes job, behavior
evals, the Linux packaged server smoke, the open-source edition, the control
plane, the renderer smoke and Linux browser identity. The Windows and macOS
shards, the Windows smokes, the browser driver, the Linux package and the ARM
installer run in the full lane: a nightly schedule (21:17 UTC), every manual
run, and so the release branch's CI and the release-ci/v<version> lane.
Pull requests are unchanged.

- A push whose commit already passed the CI gate in a merge group runs only
  the control-plane job (the broker deploy needs it).
- Concurrency: main's pushes keep one running and one waiting run; merge
  groups keep a group per ref; the nightly run and every manual run get a
  group named by event and branch, so no push cancels them. A PR's newer
  push still cancels its older run.
- The release gate counts a run only when every platform's every vitest
  shard ran and passed ("partial" otherwise), accepts nightly runs, and no
  longer waits for a push's or merge group's run before starting the lane.
  A finished red run on the commit still stops the release.
- docs/ci.md describes the lanes, the release gate and the merge queue: the
  workflow is ready for it, and GitHub offers the setting only once an
  organization owns the repository.

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

* docs(ci): build three merge groups at once, within a Team plan's job limit

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* test(browser): the S4 tab tests and the v1 live view wait for Chrome, not a fixed sleep

- s4-pages (Windows): after closing a tab or popup, the test gave Chrome 200 ms
  to report it gone; Chrome reports it with an event after Target.closeTarget
  has answered, later on a loaded runner. The test now waits for the tab to
  leave the list (5 s, doubled on Windows).
- viewers v1 live view (Ubuntu): each step waited a fixed 1.2 s for its
  events. A step now also waits, at most 10 s more, until it shows a phone
  what the golden's same step showed (control, tabs, address, a picture);
  v1Differences reports the same differences as before.

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

* test(browser): a v1 step the golden recorded as failed waits for nothing, as it is compared on nothing

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

* test(browser): list the v1 live view session as a known flake while its 50-second stall is found

Five of its six logged failures since Oct 26 are one stall in which navigate
through tab-new get no picture, on the host and in the container. 54 runs on
ubuntu-latest today, alone and after the other S4 suites, did not reproduce
it. Listed, CI gives it two retries, each with its own Chrome; the entry goes
when the stall is fixed.

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

* test(browser): the v1 entry counts all 72 runs that did not reproduce its stall

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* test: four flaky tests wait on what they check, not on a clock or a lucky port

- comms (macOS): a routine run waits on its consultation only until the helper
  answers, which can be shorter than one poll, so the test sometimes never saw
  the wait. The fake ACP CLI can now hold a prompt while a file exists
  (FAKE_ACP_HOLD_FILE); the helper holds its answer until the test has seen
  the run waiting.
- boat auto-sleep (Windows): a cancelled idle timer re-armed itself when a
  stop it had started finished after the cancel, so a closed test's computer
  went on stopping during the next test and broke its retry timings. The timer
  now stays cancelled, a closed power instance stops before it claims the
  computer, and the busy test waits for the timer to let go instead of 1.8 s.
- cli service trust (Ubuntu): its port was a random pick inside Linux's
  ephemeral range (EADDRINUSE); it now probes a free one with freePortBlock.
- skill bench (Windows): the verification server's 20 s start deadline now
  doubles on Windows like every other test timeout (hostTimeout), and a start
  that fails carries the end of the server's log, which leaves with the runner.

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

* test: three more flakes that hit main: the brief's wake second, a slow Windows claim, a 330 MB test file

- first hour (Ubuntu, main at 10:46 today): the brief's local midnight was
  "to the minute" by stepping back from now in whole minutes, so it kept
  now's seconds, and a sleeping Cloud's next wake for the 8:00 brief came up
  to 59.999 s after 7:50. dayStart now starts from now floored to the minute.
  The test failed whenever the brief was the earliest thing due; a unit case
  now asks at 06:55:55.175 and gets 07:50:00 exactly.
- host lazy claim (Windows): the first screen call must clear within the
  test's 1 s act-within window, which holds the person's answer to its card
  (the gate looks every 250 ms) and the seat's claim; a loaded Windows runner
  took longer and the call was refused as "had to wait". Both waits now
  double on Windows (hostTimeout).
- browser step store (Windows, twice on main): the over-cap case wrote a
  330 MB file, which a Windows runner took over 40 s to write. The store's
  free-space floor can be set like its statfs and clock, so the case runs at
  a thousandth of the sizes; the never-evicts case needs no floor and drops
  to kilobytes too.

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

* test: leave the brief's wake second to #3830, which makes the same change with wider tests

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* feat(rail): a smaller computers strip the sidebar can hide, and the sidebar's look in Simple's General settings

- The window's rail of places: 32px circles (+ and ⋯ too), 8px apart, no
  caption under the place on screen (its ring marks it), each circle named on
  hover. The attention and update dots, the server badge and the progress
  ring follow the smaller circle. The rail stays 64px wide.
- A button at the left of the sidebar's top row hides and shows it: right
  after the macOS traffic lights, on the same spot either way (the preload
  tells the page how far it moved, in --rail-beside, with the move itself); at
  the far left on Windows and Linux; at the top of the column of buttons when
  the sidebar shows only avatars. A small strip icon, "Hide your computers" /
  "Show your computers", aria-expanded. Only while the window has a rail.
- A "Show your computers" switch in Settings: Simple's General page,
  Appearance, and Advanced's Appearance after the sidebar rows.
- Sidebar color and Sidebar picture move from Simple's Looks page to its
  General page, Appearance, right after Theme. The Looks page keeps the skins;
  Advanced keeps its card.
- Main: the choice is this desktop's own (railHidden in desktop-prefs.json).
  chrome-rail.mjs hides the rail only beside a document that offered the
  button (window.ogb.rail.state, from the window's main frame only). After a
  navigation, reload, crash or error page a hidden rail waits 5 seconds for
  the new document to offer it and comes back without one, and comes back
  while the page stops responding; the saved choice stays. Pages hear the
  rail come and go, so the sidebar's switcher returns while it is hidden.
  main.mjs and Sidebar.tsx keep their line counts.
- Three new strings in all 15 languages.
- verify-cloud-rail.ts: hidden, avatars-only, Settings and stand-in window
  rail views, and a check that the button lands on the same spot.

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

* docs(verification): pictures of the smaller rail, its button and the sidebar's look in Simple's General settings

Taken with scripts/verify-cloud-rail.ts at 1338x870 (2x) against a disposable
fake-engine server and a headless Chrome in a throwaway profile: before on main
at the branch point, after on this branch. The close-up shows the sidebar's
button for the rail on the same spot with the rail shown and hidden.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cloud-send): the move to My Cloud's words and menu rows for the account area

AccountMove gives the one-time move a short segment for the account line
("My Cloud move needs you" once failing, "Moving to My Cloud…" on its way),
and its own rows for the account menu: the full message with why and Try
again (spinner while it runs, main's words when unanswered), the progress
while it goes, and what arrived with the phone to pair and Got it. Menu rows
can now wrap a sentence instead of cutting it short; moveLine also returns
a failing move's reason on its own.

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

* fix(sidebar): the move to My Cloud warns in the account area, not a top strip

The one-time move's line no longer draws as a full-width strip over the
chat header. Failing, the account line says "My Cloud move needs you"
(combined with automations when both need you), the avatar gets the red
dot (also on the collapsed rail and Advanced's icons), and the account
menu's top rows carry the message and Try again. On its way it says
"Moving to My Cloud…" quietly with no dot; done, the menu says what
arrived with Got it. Simple shows the line above the account and opens
the menu from it; Advanced shows it under the name. CloudSendStrip now
only draws a bot's move into a team on My Cloud's page.

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

* fix(sidebar): no avatar dot once the move to My Cloud is done

What the move brought waits in the account menu with Got it; the avatar
stays calm. The dot is only for a failing move, automations or an update.

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

* Account menu: the My Cloud move takes one row, and its line gets Try again

Omkar's review of the account area: the move's rows in the account menu
were too big for that menu (a wrapped sentence, the reason under it, then
a separate Try again row), and the amber line above the account had no
way to try again without opening the menu.

The menu now gives the move one row, drawn like Usage and Settings:
"Try My Cloud move again" while it fails, which retries and keeps the
menu open, disabled with a spinner while the retry runs; "Moving to My
Cloud…" while it goes. The reason, or the progress, is the row's
tooltip. A failing move that allows no retry gets one "My Cloud move
needs you" row that opens My Cloud's settings. Advanced's menu gets the
same row. The done state keeps its rows.

Simple's line now ends with a Try again button (named "Try again to
move to My Cloud", the reason as its tooltip) when the move allows one.
It shows a spinner and ignores presses while the retry runs, and the
words shorten before it does. The line's padding at the end goes so
Try again lines up with the row below and the words fit at the
sidebar's default width.

The line and every account menu share one retry per window, so pressing
either shows both waiting and a second press cannot start another.

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

* Evidence: before and after pictures of the My Cloud move warning

Main on the left, this branch on the right, in Daylight and Midnight:
main's top strip is gone; the account area says "My Cloud move needs
you" with a Try again button and a red dot on the avatar, and the
account menu starts with one "Try My Cloud move again" row.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Call the product MausBot wherever a person reads it

The first run said "Meet OpenMausBot", and 106 UI strings named the
product OpenMausBot against 65 that said MausBot. MausBot is the
product's name; OpenMausBot names only the open-source project.

brand.ts gains productName(): a white-label brand file's own name,
else MausBot. brand().name stays the project's name. t() fills {app}
with productName() unless the caller passes app, so the 106 strings
now say {app} and white-label builds keep their own name. Call sites
that passed brand().name pass productName(), the window title uses it,
and the hard-coded names in the pairing page, the credential card, the
About dialog's title and the computer-control errors read it too.

Translations kept their wording: each pack's OpenMausBot became {app}
(French and Italian elisions fixed by hand) and its source hash was
refreshed for exactly those keys. Six translations that had no
OpenMausBot to swap were removed and show English until the next
translation run.

Kept on purpose: pro.disclaimer ("OpenMausBot on this computer stays
free and open source") and the About line "built on OpenMausBot"
name the open-source project.

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

* Replace every em dash in the English copy

en.json had 106 em dashes in 101 strings. Each became a comma, colon,
period or parentheses ("Update failed. Try again.", "Included skills
(switched on)", "Group instructions: every bot in this group follows
them"). Two sidebar update labels read as a sentence fragment with the
dash gone and now say what the button does: "Restart to update to
{app} {version}" and "Install {app} {version}".

97 strings changed punctuation only, so their translations still say
the same thing: they are kept and their source hashes refreshed for
those keys. The four reworded strings (the two update labels, the copy
failure and the dictation permission line, which now says where to
turn access on) drop their translations and show English until the
next translation run.

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

* Say private desktop, AI and context used instead of VM, engine and ctx

97 strings drop the app's internal words where the setting is not
inherently technical, using the words the app already uses elsewhere:

- Local VM / VM (45 strings): "private desktop", the Works on choice's
  own label. The safety notes keep Docker, Podman and the limits, and
  every delete or replace confirm keeps its two required sentences.
- engine (12): "AI" ("Add a backup AI", "its AI isn't available"), and
  the host's no-AI screen says "The host needs an AI".
- ctx: the bot panel's meter reads "52% context used".
- VPS (32): "VPS computer" becomes "desktop on your VPS", and the
  OpenMaus-managed wording goes. The control labels Start VPS
  automatically, Self-hosted VPS and the API keys field keep their
  names: the server's hints to bots name them, and only a person who
  set up an SSH alias reaches them.
- MCP calls in Simple settings becomes "Tool time limit"; "per token"
  in the Cloud sign-in and model hints becomes plain billing words.

API key fields, MCP server setup and the usage pages keep their exact
terms. The reworded strings drop their translations, which show
English until the next translation run.

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

* Name the fields that had only a placeholder

Eleven inputs and text boxes had a placeholder and nothing else, so a
screen reader announced them without a name and the hint vanished as
soon as a person typed: the command palette's search, the other-
computer sign-in address, group instructions, the group's and the
bot's working folder, the routine and calendar editors' title and
description (two of each), the new group chat's name and the new
automation box. Each now has an aria-label, from the label its panel
already shows where there is one, else from seven new strings. The
command palette's search also moves into the catalog and says group
chats, not channels.

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

* Errors say what happened in short active words, and what to do next

36 error lines were passive, technical or left a person with nowhere
to go: "Status request failed (500)", "Container runtime unavailable",
"Cloudflare returned an unexpected error (HTTP 500).", "Invalid saved
selection. This bot cannot start until it is repaired.", "Could not
load the tool list." Each now says what happened in plain words and
the next step: "Couldn't list private desktops (500). Refresh to try
again.", "No container app is running. Open Docker or Podman, then
check again.", "Your browser blocked the live desktop tab. Allow
pop-ups for this page, then try again." "Copied!" loses its
exclamation mark. No string said "Oops".

The reworded strings drop their translations, which show English until
the next translation run.

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

* Routine editor: say the room-goal line through the catalogue, not a new import

The copy pass named the product with productName() here, and the extra
import pushed RoutineCalendarPage past its size ceiling (1745 against
1744). t() already fills {app} with the product name, so the sentence
moves into en.json and the import goes; the file is back at 1744.

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

* Main's newer strings say MausBot, and lose their em dash

Ten strings main added since this branch began broke its rules. Nine
named the product OpenMausBot where a person reads it (the own-server
sheet's lede and first step, the lent-folders line, the three engine
copy notices, the passkey and Works on hints, and the one-use secret
line); they now say {app}, so they read MausBot and a white-label build
keeps its own name. The approval's new timed-out status lost its em
dash: "No answer in time. It did not run", like the expired line
beside it.

Each translation's OpenMausBot became {app} too (French "qu'" elisions
fixed by hand) and its source hash was refreshed for exactly those
keys, so no translation was dropped. The timed-out line's translations
had no recorded hash and are unchanged. Main's tests for these lines
now expect the name a person reads.

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

* Evidence: before and after pictures of the plainer words

Main on the left, this branch on the right, in Daylight and Midnight:
Settings > Computer says Private desktops and names the desktops MausBot
keeps on your VPS, its Logins and 1Password lines say MausBot, and
Settings > Updates reads "MausBot 0.1.132".

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

* Main's newest errors say what to do next

Main's new environment settings (now translated) brought three errors
that stopped at what went wrong: "Couldn't switch.", "Couldn't forget
the environment." and "Couldn't create the environment." Like the
branch's other errors they now name the step: "Couldn't switch
environments. Try again.", "Couldn't forget the environment. Try
again." and "Couldn't create the environment. Check the data folder,
then try again." (a bad folder is the one failure the app reports for
a name it has already checked).

Their Chinese lines, the only translation main shipped for them and
with no recorded source hash, add the same step (请重试 / 请检查数据
文件夹,然后重试) rather than dropping to English. Main's test for these
lines expects the whole sentence.

Main's other new strings (pinned web panels, environments, the local
model reply wait) already keep the rules: MausBot by name, no em
dash, no VM, engine or ctx, and every field has a label.

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

* Linux package smoke: the renderer's title is MausBot

The window's page title is now the product's name, MausBot, so the smoke
check looks for that whole word. OpenMausBot no longer matches.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every automation is drawn as a 30-minute marker, 32px tall at 64px an
hour, but a card took its two-line layout from 30 minutes on, and two
lines need about 40px: the second line was cut in half on every card.

A card now picks its layout from the height it is drawn at. Roomy cards
keep the avatar and the detail line; a 30-minute card is one line of
title, status and time, its bot shown by its colour; a shorter one is the
title alone. The full details (time, bot or room, cadence, status) are on
every card's hover. The card moves to its own file.
* feat(i18n): add Korean locale

Add a complete Korean catalog (6,872 of 6,872 strings) and register it in
the language picker. Korean also gets the main-process activity window
words, the Chief's first-hour lines, and a Hangul check for setup
suggestions, so server-written copy matches the app.

Source hashes are left for the release to record.

* feat(i18n): Korean for the server-written greeting, setup card, brief and memory seed

The first bot's greeting, its setup-card answers, the Set me up reply, the
brief widget and the seeded MEMORY.md are written by the server, not the
app's packs, so they stayed English with Korean selected.
* docs: waits design (tell me when, no AI while waiting)

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

* docs: waits implementation plan

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

* feat(waits): file and process probes

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

* feat(waits): page probe that only reaches public addresses

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

* fix(waits): page timeout covers the lookup; stronger probe tests

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

* feat(waits): WaitManager with a 5 s tick, limits and expiry

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

* refactor(waits): rename the record's then field to followUp

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

* fix(waits): recheck limits before saving, catch tick failures, full rollback, save before follow-up

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

* feat(waits): wire shapes, wait notification and follow-up run plumbing

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

* feat(waits): internal route with source, host and ownership checks

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

* fix(waits): scope list and cancel to the chat, one-line labels, normalised urls

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

* feat(waits): wait_until, list_waits and cancel_wait in the agents catalog

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

* feat(waits): run waits in the server, tie them to bots, keep them out of backups

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

* fix(waits): cancel waits when automations switch off for a move, no guest follow-ups, backup notes

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

* feat(waits): a wait's card reads as one line with Cancel

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

* docs(verification): waits recipe, exercised against a fixture

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

* fix(waits): classify wait notices for MausBot and keep wire.ts under 1,000 lines

Main's MausBot notification list needs a lean for every kind: a wait that
fired tells the person something happened and asks nothing, so it is fyi,
like done. WaitCardData moves to shared/wait-request.ts next to the other
card payloads so shared/wire.ts stays under the file-size ratchet.

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

* refactor(waits): keep the wait kinds and hours in shared/waits.ts so the agents proxy no longer loads the wait manager

The tool module imported WAIT_KINDS from server/waits.ts, which pulled config, atomic writes and the probes into every
agents proxy (86 bundled modules; 43 now).

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

* fix(waits): a full bot's refusal names only this chat's waits, and the copy says "in this chat"

The refusal listed every chat's waits, so a turn in one chat could read the labels and follow-ups of another person's
waits. It now lists this chat's waits and counts the rest. list_waits and cancel_wait only see this chat's waits, so
their "none" and "no such id" answers say so.

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

* fix(waits): refuse a program wait where this computer can't list its programs

A failed process listing reads as "not met", so on a computer without ps a program wait was made and silently never
fired. Creation now refuses it; a listing that fails later still just waits for the next check.

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

* fix(waits): moving a bot from My Cloud into a team cancels its waits

A moved bot stays here archived, and its waits kept firing: lines, notifications and follow-up runs for a bot that now
lives in the team. Holding it for the move and its arrival both cancel its waits, which settles their cards.

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

* fix(waits): check pages outside the tick's busy window, so a slow page no longer refuses a backup or restore

A page check can take 15 s, and the whole tick counted as busy for backups and restores. The checks now run first and
only deciding and posting count as busy; what a check finds after the waits were stopped is not posted, and that wait
is checked again once they start.

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

* fix(waits): a restore ends the waits already here, and the backup notes stop saying waits watch this computer

waits.json was kept in place across a restore, so waits made before it went on checking and posted into the restored
chats while routines stayed paused. It now moves aside with the rest of the old data (the safety copy keeps it). Page
waits look at the internet, not this computer, so the exclusion note no longer says each one watches it.

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

* fix(waits): the card says how a wait ended, its Cancel reads as Cancel, and a Cancel on an ended wait settles it

Labels are noun phrases ("the build"), so the card's subtitle is "Then <bot> will: …" rather than "When <label>, …".
After a wait fired, expired or was cancelled the card said "<bot> is waiting for …" (a cancelled one with "· Undone");
each now has its own line. The button reads Cancelling… and Couldn't cancel. A Cancel that finds the wait already
ended settles the card as ended, so the button goes away; a card settles once.

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

* fix(waits): on a Cloud home, say that checks pause while My Cloud sleeps and where the follow-up reports

My Cloud is not kept awake for waits, so on a Cloud home the wait_until answer and the tool description say checks
pause while it sleeps; the answer also says a follow-up runs in its own results chat, as it does there. The tool asks
for a noun-phrase label ("the build") and list_waits says it lists this chat's waits. Goldens regenerated; every
profile grows 57 bytes and its budget moves with it.

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

* docs(waits): the fixture keeps the fake engine's calls, and the follow-up turn's wait_until is refused

The recipe emptied calls.json and said the follow-up would otherwise set a second wait; it is refused instead, which
is the no-self-renewal guard. Re-ran the fixture with noun-phrase labels: one card, one fired line, the follow-up's
call refused, waits.json empty. The quoted lines say they are abridged.

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

* refactor(waits): the wait fields' docs live on their types, keeping shared/wire.ts at 1000 lines

Main's newer fields and the two wait fields took wire.ts to 1002 lines, past
the ratchet's 1000-line listing threshold. The types carry the docs instead,
as TeamSetupRequest and QuotaSwitchCardData already do.

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

* fix(waits): only a personal My Cloud says its checks pause while it sleeps

A Team Cloud's plan never sleeps, yet its bots told people their wait might
come late because My Cloud sleeps.

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

* waits: list list_waits and cancel_wait only while the bot has a wait; shorter wait_until

In the spirit of #3773's "fewer tools where a turn can't use them":

- A new switch in a turn's agents profile, OMB_ACTIVE_WAITS, set from
  WaitManager.count(botId) and carried by the HTTP mount. Every turn outside a
  room lists wait_until; list_waits and cancel_wait are listed only while the
  bot has a wait that has not ended, so the turn after one is set sees them. A
  room lists list_waits alone, and only then.
- Unlisted, the two still answer a call (a wait made this turn, a list read
  earlier): the agents server's unknown-tool check reads callableTools, so a
  direct call or use_tool reaches the waits route, which scopes it to the chat.
  A room still refuses cancel_wait as a tool it is not given. find_tool offers
  them only while they are listed.
- wait_until says only what the model needs: the kinds, no AI while waiting,
  follow_up and 1 to 168 hours. Its result already explains a condition that
  holds, a computer that can't check files or programs, and My Cloud's sleep.
  It advertises 1,070 bytes, down from 1,912.
- Budgets: 16 catalog profiles stay inside main's +2%. The nine non-Chief
  profiles that list wait_until move their BUDGET_BASELINE by the measured
  overage only (39 to 153 bytes). No bridged baseline moves; no file cap.

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

* waits: list list_waits and cancel_wait only for a wait in this chat

Both act only on the chat's own waits, so a wait the bot keeps in another
chat no longer lists them here. OMB_ACTIVE_WAITS now comes from
WaitManager.count(botId, threadId), on the same OMB_ROOM line of
server/index.ts. A room never holds a wait, so its turn lists none of the
three. Unlisted, both still answer a call as before.

No catalog bytes change: every golden profile has the switch off.

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

* wire: a card's waitRequest comes from a WaitCardField mixin, so shared/wire.ts stays at 1,000 lines

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

* waits: read a page's words in one linear pass

The text-stripping patterns backtracked: a page of 128 KB of `<` took 5 s,
and 2 MB, the most a check reads, about 20 minutes, freezing the whole
server on create, every minute after and again after a restart. pageText
now walks the page once with indexOf and bounded patterns; a hostile 2 MB
page reads in milliseconds. Well-formed pages read exactly as before. A
comment, script or style left open now hides the rest, as in a browser.

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

* waits: refuse a network path for a file wait

A file wait checks its path every 5 seconds. On Windows a path such as
\\host\share\x makes that check sign in to the host, sending it the
person's password hash. A path starting with \\ or //, with either slash,
mixed or percent-encoded, is refused before anything looks at it.

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

* waits: url_missing fires only once a check saw the text

A check reads the page's HTML without running its scripts, so on a page
its scripts draw the text looked gone from the first check: the wait
answered "already" and the bot told the person, say, that the shoes were
back in stock when they were not. Like bot_idle's sawBusy, the condition
now keeps sawText and fires only after a check found the text and a later
one does not. A wait made while the text is not on the page says so, for
the bot to tell the person.

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

* waits: a sleeping Cloud wakes every 30 minutes while a wait is open

Waits were left out of the wake schedule, so a My Cloud that slept never
checked them. While a wait is open the home's nextDueAt now includes a
time 30 minutes on: the home may still sleep (a page is due every minute,
which would keep it awake), and the Admin wakes it to check about every
half hour. The wait's answer tells the bot the message can come up to 30
minutes late.

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

* waits: plain words in the wait card and the bot's refusals

Following #3865: the refusals say MausBot and "a private desktop or a
cloud desktop" instead of OpenMausBot and Local VM, and each error says
what to do next (guests leave out follow_up, a bot waits for another bot
rather than itself, a program wait on a computer that can't list its
programs waits for a file or a page, a private address takes a page on
the public web, a vanished bot is picked again from list_bots).

The card's failed Cancel says "Couldn't cancel the wait. Try again, or
ask {name} to stop it." in place of a raw error, and a Cancel that finds
the wait already ended shows no error: the card then says how it ended.

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

* i18n: Korean says {app} like the other packs, and the release's hashes follow #3865's English

main fails pnpm i18n:check with 128 problems from three changes landing
together. #3852's Korean was written before #3865 turned OpenMausBot into
{app}, so 110 Korean lines lost a placeholder; the 0.1.133 release had
recorded source hashes that #3865's English then changed.

As #3865 did for every other pack, Korean's OpenMausBot becomes {app}
(106 lines; MausBot ends in a consonant too, so the particles stay
right). Four lines that swap can't fix fall back to English until the
next translation run: the three VPS desktop lines #3865 reworded and
dropped from every pack, and the same-machine setup line, which names
the app twice where the English now names it once.

The 18 stale hashes are refreshed: approval.status.timedOut (15 packs)
and German approval.status.expired changed punctuation only, and the
three Chinese environment errors already carry #3865's next step.

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

* test(touch): the calendar's resize handle lives in CalendarEventCard now

#3863 moved the call event's mouse drag-resize handle from
RoutineCalendarPage.tsx into routines/CalendarEventCard.tsx, but the
touch test's not-an-action entry still named the old file, so it
reported the handle as a hover-only action and its own entry as stale.
main never ran it: its locale check failed first. The entry now names
the new file.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
The macOS smoke on main (run 40964142255, f71928c15) failed once with
"Cannot read properties of undefined (reading 'decision')": the approval card
can be shown before its decision row is written, and this was the one check in
the file that read /api/decisions once instead of waiting with until(). The
rerun passed. It now waits for the row like the checks above it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs: saved steps design (repeat computer tasks without AI)

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

* docs: saved steps implementation plan

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

* feat(saved-steps): request key and word rules

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

* feat(saved-steps): the host computer bridge journals each call before the engine sees it

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

* fix(saved-steps): hold-reply test, guarded reply chain, no partial wire records

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

* feat(saved-steps): keep the host computer's journal per request and count its gated calls

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

* feat(saved-steps): saveability rules turn a request's journal into a recipe

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

* fix(saved-steps): refuse journals whose targets or typed text cannot be replayed safely

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

* feat(saved-steps): per-bot recipe store with caps and expiry

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

* fix(saved-steps): re-apply the arg allowlist on read and refuse unsafe bot ids

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

* feat(saved-steps): resolve a saved step's target on the live screen

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

* fix(saved-steps): refuse cut or degraded trees, window targets without an app, and element steps without their targets

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

* fix(saved-steps): match windows by exact title, require complete trees and a target app for every step

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

* feat(saved-steps): run saved steps through the gated computer with an approval per action

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

* fix(saved-steps): drop stored key and element steps scoped wider than their window

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

* feat(saved-steps): replay a saved request in place of the engine, falling back with a note

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

* fix(saved-steps): replay only a turn that is exactly the person's one line, refuse an untaintable request, end a broken replay's turn

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

* fix(saved-steps): replay only where the person picked this computer; a control-gate refusal keeps the recipe

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

* fix(saved-steps): a replayed step waits 60 s, past the control gate's longest hold

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

* feat(saved-steps): save a request's steps when it settles and mark the reply

Every request end frees its journal: a settled request on requestSettled, any other when the next request takes the thread. A denial, a replay or a turn that sends more than the person's one line keeps the request from saving.

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

* fix(saved-steps): a request whose thread the journal evicted mid-request never saves

The journal remembers which generations each evicted thread lost (up to 1024 threads) and takes them as tainted and incomplete, so the calls that follow an eviction can never pass for a whole request. Taking the thread forgets the eviction.

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

* fix(saved-steps): save only a person's computer run that used read-only tools beside it

An answered question taints the request like a denial; any tool call other than the computer's or a read-only one (Read, Glob, Grep, LS, ToolSearch, TodoWrite, WebSearch, WebFetch) keeps the request from saving; a request with no person origin counts as automated; queued lines the dispatch cannot mark are held back from saving. The journal evicts the least recently used thread and keeps at most 64 lost generations per evicted thread, past which every generation it is asked about counts as lost.

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

* fix(saved-steps): a select_computer hand-off and an engine's bare computer tool names still save

select_computer joins the tools that leave a request saveable, and an activity line named after a driver tool the rules know (an action or observation tool) counts as a computer call, as Codex titles them without the server prefix. Any other bare name still keeps the request from saving.

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

* fix(saved-steps): pi and chat engines' computer_ tool names save; another computer in the request stops it saving

A tool line named computer_<tool> counts as a computer call when the rest is a driver tool the rules know (one prefix, exact name), and Codex's bare select_computer and web_search leave a request saveable. A gate check from a computer that is not this one (Local VM, Cloud Boat, team computer) taints that turn, so a hand-off between computers never saves this computer's steps alone.

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

* feat(saved-steps): forget a bot's saved steps over HTTP

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

* feat(saved-steps): reply chips with Forget, and the Settings switch

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

* test(saved-steps): a fake cua-driver with tokens that go stale per snapshot

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

* docs(saved-steps): verification recipe, the policy note and the spec's rulings

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

* fix(saved-steps): typed words repeat only for the exact request; signs, symbols and time words count

The key keeps symbols, a leading or inner hyphen and a stop inside a number,
so "-5" and "5", or "C++" and "C", are different requests. A recipe that
types the person's words or opens their links stores its request word for
word and replays only for that exact request (Unicode forms and spacing
evened out, case kept); the store drops such a recipe whose request does not
hold them. latest, last, first, next, today, unread and the like are moment
words.

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

* fix(saved-steps): never save typing that may append or a click that flips a toggle

cua-driver 0.28.2's contract does not say whether type_text replaces a
field's value, so a step that types refuses saving; set_value, which
replaces it, still saves. A click, double click or key press on a check box,
switch, toggle, radio button or disclosure triangle flips it from whatever
state it is in, so it refuses saving too, and the store drops either from a
file. The fixture's driver answers set_value, and its fail file now fails
only a set_value on a live element.

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

* fix(saved-steps): a replay says what its steps did, not the AI's old reply

A replay answered with the first sentence of the AI's reply from the run it
learned from, so "You have 12 unread emails" came back unchanged every
time. It now answers with a sentence built from the recipe's steps and
their stored targets ("Done — repeated 2 saved steps: opened Mail, clicked
“Inbox”."), listing at most five steps. Recipes no longer store the reply;
a stored one is ignored on read.

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

* fix(saved-steps): a replay runs only the computer tools the bot may use

Every engine enforces the bot's tool selection per computer tool, but a
replay drove the gated computer directly, so a tool the person turned off
in Access could still run from a saved recipe. A replay now needs every
step's tool and the three lookups it resolves targets with to be selected;
otherwise the AI answers and the recipe is kept.

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

* fix(saved-steps): key presses save only with the window they went to

A press_key or hotkey sent to an app with no window lands in whichever of
its windows is in front, so "close the Invoice window" could replay as
cmd+W on another document. Key steps now save only with a window_id; replay
finds that window by its exact title like element steps, and the store
drops a key step without one.

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

* fix(saved-steps): wait up to 3 s for a target an earlier step brings up

A replay looked each target up once, at machine speed, so a window that
launch_app opens or a sheet a click brings up was often not there yet, the
step failed and the recipe was deleted. When no app, window or element
matches, the replay now looks again every 250 ms for up to 3 s. A target
that matches twice, a cut or unreadable tree and a failed lookup never
wait.

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

* fix(saved-steps): save and replay on macOS only, from trees the driver read whole

Replay needs list_windows and a tree that says elements_complete; Linux's
cua-driver 0.19.3 and the Windows build were never shown to give either, so
a recipe saved there would fail every replay after its first steps ran.
Saving and replay now run only on darwin (tests inject the platform). The
bridge keeps elements_complete in the slimmed tree, only when the driver
read the whole tree and every element survived slimming, and an element
step saves only from such a snapshot.

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

* fix(saved-steps): journal only the person's own requests, within a byte budget

Every host mount journalled, so room and routine turns, and every turn while
the setting was off, posted each computer call and kept its tree in memory
for requests that could never save. The mount now sets OMB_COMPUTER_JOURNAL
only for a direct request from the person while saved steps are on, and
the journal route drops posts while the setting is off. The journal holds
at most 256 KB an entry and 32 MB in all; an entry past either budget is
not kept and leaves its request incomplete, so it never saves.

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

* fix(saved-steps): the engine's session learns a replayed turn from the conversation, once

The replay's events carried the engine's instance and the bound turn id, so
the handoff record counted the replayed line and its reply as received by a
session that never saw them, and the next AI turn did not learn the task was
just repeated. A replay now withholds its turn's handoff (handed back, bound
to the replay's turn, if the AI takes over), and when it answers without the
AI it sets the conversation's externally-updated marker, which a
strict-resume engine with a usable record skips because its record already
leaves the turn unseen.

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

* fix(saved-steps): honest learned chip, quoted screen text, gated computer only, limit hold kept

- The "Saved these steps · next time no AI" chip shows only when the turn
  that learned met every replay condition (setting, Full access, a place the
  person picked, the steps' tools selected); otherwise the steps still save
  without the promise.
- The fallback note quotes the failed step's target and the computer's error
  as JSON, marked as screen text and not instructions.
- openComputerCaller refuses a computer spec without the control gate's
  address and turn token.
- A replay's own events no longer end an engine's usage-limit hold; only a
  turn that ran on the engine does. The run stays known until its end is
  published.

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

* fix(saved-steps): the journal post lets go of its answer; pin the forget route to admins

The bridge's journal post now cancels the response body it never reads. A
test pins that DELETE /api/bots/:botId/saved-steps/:recipeId needs the admin
scope, so a client can never forget a bot's steps.

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

* fix(saved-steps): the gated mount always says whether it journals

A driver record whose environment already held OMB_COMPUTER_JOURNAL=1 would
still journal through a mount that did not ask for it, since the gated
environment spreads the driver's. The mount now always sets the switch, to
"1" or "0".

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

* docs(saved-steps): the final review's rulings in the spec, a re-run fixture, 60 s in the plan

The spec gets a paragraph for each ruling (reply from the steps, exact
request for typed words, key symbols, moment words, tool selection, no
type_text or toggle clicks, key steps with their window, the 3 s wait,
macOS only, the handoff and context marker, journalling and its budget, the
honest chip, the quoted note) and a Decisions entry. The verification recipe
uses set_value, replays with the exact words, shows the new reply and note,
says outright that no real app has been driven, and records this run in
place of the unbacked load claim. The plan's step timeout reads 60 000 ms.

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

* fix(saved-steps): a saved recipe always reads back, and stale keys are dropped

Typed words and links were checked against the raw request at save time,
while the stored request and every later check use its evened-out form, so a
recipe could save, show its chip and then vanish on read (a doubled inner
space, full-width letters). The save-time check now uses the stored form.
The store also drops a recipe whose key is not its request's key under
today's normalising, so one keyed before symbols counted ("open the C++
tab" keyed "open the c tab") no longer replays for the C tab.

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

* fix(saved-steps): a replay ends its turn even when the conversation cannot be marked

Marking the conversation for the engine to read again runs before the
replay's reply and turn.completed; when it threw (bots.json not writable)
neither was published and the turn stayed open. The mark is now caught and
logged, still before the terminal events.

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

* fix(saved-steps): journal only requests that began with the person's own line

A turn a peer handed on keeps the person's work origin, so journals()
recorded its computer calls although such a request can never save. The
request owner now notes when the request began with the person's own line
(a continuation, such as a select_computer hand-off, inherits it), and the
mount journals only then.

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

* docs(saved-steps): toggles are known by role only; cite the shipped driver's type_text

The spec and the verification recipe say that a checkmarked menu item or a
toggle that reports itself as AXButton still saves its click. The spec's
type_text paragraph and the code note cite the shipped cua-driver 0.28.2
binary: type_text inserts at the selection via
AXSetAttribute(kAXSelectedText), and set_value replaces a value. The spec
also says which requests journal after the peer-origin fix, and the recipe
records the second fixture run.

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

* docs(saved-steps): the fixture passes after the origin/main merge

Re-ran the eight rounds at f25286f8d: 34/34 checks, 40 driver calls, 5
engine prompts, and round 5's prompt carries the replayed turn once.

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

* fix(saved-steps): the switch shows only where saved steps can run

Saved steps runs only on a Mac, yet its Settings switch showed on Windows and
on Cloud homes, where it did nothing. The server now says whether it can run
them (features.savedStepsHere) and the row hides otherwise.

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

* test(saved-steps): config features carry savedStepsHere, true on a Mac only

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

* fix(saved-steps): never save a final action or a secret, and never type over someone's text

- Steps that press a final, can't-undo action are never saved, so that request
  always goes to the AI: a click or key press on an element whose label, an
  ancestor's label or the window's title names one (send, delete, buy, pay,
  post, submit, place an order, transfer, publish and their like, in all 15
  languages the app ships), a pop-up choice or a link that names one, Delete or
  Backspace, command- or control-Return, and Return into a window that shows a
  final action or was never read whole.
- No step on a secret field is saved (a secure text field, or one labelled
  password, PIN, code or card number), and approvals, items and replies name
  keys pressed but never the text typed.
- A launch's creates_new_application_instance is left out, so a repeat no
  longer opens a second copy that the next step finds twice.
- Steps save only when the same words would repeat them (Full access, a place
  the person picked, the steps' tools selected), so nothing waits unseen with
  no Forget.
- A repeat types only into an empty field or one already holding that text;
  otherwise it stops and the AI takes over. Typing saves only where the driver
  reported what the field held.
- The switch leaves Simple General (Advanced keeps it, and
  features.savedSteps in config.json stays the off switch); Forget shows only
  to the owner and admins, who alone may call it.
- The store's 0600 check is skipped on Windows, which has no such mode.

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

* test(saved-steps): check the screen words cover every shipped language beside the locale tests

The coverage check reads the shipped languages, so it lives with the locale
tests that CI runs whenever a catalog changes. The word module itself names no
catalog, so the tests that import it are not locale tests.

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

* fix(saved-steps): Korean screen words, and plain words in the replies and errors

- Korean, now a shipped language, gets its final-action words (send,
  delete, buy, pay, post, submit, order, transfer, publish and their like)
  and its secret-field labels; "확인" (OK) stays out.
- A replayed reply reads "Done. I repeated 2 saved steps: …" with no em
  dash, and a declined step says "I stopped the saved steps because a step
  on “Document” in TextEdit was declined. Nothing after it ran." without a
  tool name.
- The switch's and Forget's errors say what to do next: "Couldn't change
  this setting. Try again." and "Couldn't forget these steps. Try again."

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
The page: a hidden tab or minimized window sends no background request; each waits
until the page shows again, one per path, so a hidden page whose live stream
dropped (the laptop slept) can't wake a sleeping home every minute. The reads after
a reconnect, the phones list poll and the daily usage snapshot are background
reads, so they no longer hold a home awake 10 minutes.

The desktop: each other Cloud of the person's own is held by the Admin's word on it
(the Clouds list's new power field), so lending, the window's version check and the
quiet updater never dial a second Cloud while it sleeps; until now only My Cloud
had that, and a second Cloud was dialled again every 150 s.

The home: its power read says what the first request after a wake was (a code
for its kind, and whether it was a background one), so the Admin can count which
app wakes a sleeping home through Fly's proxy.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
"redacts an overlapping-prefix credential" configured the credential "abab"
and asserted the serialized events never contain it. The events also carry
random hex ids, so a thread id like cdbfabab-… failed the run at random (seen on
#3762's Windows shard 3/8). The credential is now "zqxzqx" (sent as one chunk,
or as "zqx" + "zqx"): the same overlapping prefix, in letters outside hex and
the usual id alphabets.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The sheet showed three steps with npx commands and a button that read the
clipboard, but had nowhere to paste a link. It is now one box: paste the link
from your own server's Settings → Remote access and press Connect.

- The pasted link goes to main's own Connect dialog (it checks the link and
  asks "Connect to <host>?" before opening it); trimmed and capped at 4,096
  characters. Without one, the Server menu still reads the clipboard.
- A link main can't open says so on the sheet; cancelling Connect keeps it open.
- The npx steps, Copy and "Enter its address instead" strings are gone from
  every language.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The .deb postinst skipped the browser's optional allowlist only when the
userns restriction sysctl was absent. Ubuntu 22.04 + HWE exposes the
sysctl set to 0, so the hook still installed an abi/4.0 policy that
AppArmor 3.0 cannot parse, aborting package configuration. Key the skip
on the restriction value instead: a host with the restriction enabled
still fails closed when the policy cannot be loaded.
Co-authored-by: B Rishabh Rao <262621052+balabommablock-cpu@users.noreply.github.com>
Every Cloud's sidebar, on every plan, drew a faint night wash behind the
window controls and a few twinkling stars. It now starts plain like any
other place's; the sidebar's own colour and picture in Appearance still
dress it. The buy sheet's night card keeps its sky.

- The sidebar no longer carries data-cloud-sky; its CSS, the test that
  pinned it and the skin-contrast check of its wash are gone.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The folder Show all fix grew src/components/Sidebar.tsx to 1928 lines (listed
at 1925), so main's file-size ratchet failed. roomDeleteCopy moves to
src/components/room-delete-copy.ts; Sidebar re-exports it, so nothing that
imports it changes. Sidebar.tsx is now 1917 lines.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
A bot's own start_thread and a teammate's assignment no longer send the
person "finished" or "resumed with results" while the newest request in
that thread is a bot's. The person's own message there is still announced,
as is a Chief's report on a failure the person was not told of; approvals,
questions, sign-ins and failures notify everywhere.
MCP servers built on rmcp/schemars write "format": "uint", "uint8",
"int", "uint128", "float" and friends on numeric fields. The strict Ajv
compiler only knew uint32/uint64, so one such field made the tool schema
fail to compile and the whole server was skipped for the turn ("MCP tool
schema could not be validated").

Register int, int8/16/32/64/128, uint and uint8/16/32/64/128 with a
range check; the 64- and 128-bit ones and int/uint are capped at the JS
safe integer, since a larger value has already been rounded by
JSON.parse. float and double already come from ajv-formats. An unknown
format is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Name the schemars version the table follows, merge the two comments,
say "may already have rounded" rather than "has lost precision", and
spell the twelve rows out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Mac app opened from the Dock gets launchd's bare PATH, and lent
commands ran with the app's own environment, so python3 was Apple's
3.9 and gh, brew and ~/.local/bin tools were not found.

A lent command's PATH is now the login shell's PATH, read once with a
mark and a 5-second limit as the server already does for engines, then
the app's own, then /opt/homebrew/bin, /usr/local/bin and ~/.local/bin
when present. Windows keeps its PATH.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
The macOS and Linux PATH list joined ~/.local/bin with the host's separator,
so on a Windows host the test's injected darwin platform got backslashes and
the desktop node suite failed in the Windows shard.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Agents tools: every turn of a conversation is listed the same tools

Providers cache a prompt from its start, tool definitions first, so a tool that
came or went between two turns of one conversation re-billed the whole
conversation at the uncached price: Claude subscription quota, and real money
for API-key engines. A turn that may not use a listed tool is now told why when
it calls it, instead of not being shown it.

- select_computer is listed in every direct chat whose bot may pick where it
  works (Works on is not Off, no team computer of its own), not only on a
  person's own message. A routine, webhook, hand-off or continuation calling it
  is refused with the reason ("Picking a computer works only on a person's own
  message. This turn is a routine run, so carry on with the computer already in
  use."), and its inspect answer says why too.
- In a room the skill tools follow the skill-authoring setting on every turn, as
  in a direct chat; a turn other than the first answer to a person's message is
  refused with the reason. The room's learn line follows the tools.
- The agents server's switches are built from the conversation alone; a turn's
  own grants ride its bearer.
- Claude loads the browser's tools up front only where the browser is the place
  a person chose (Works on, or their own pin), so the turn that pins the browser
  on its own no longer changes the next turn's tool list.
- The USB phone server is mounted on every turn an engine can mount it, not only
  on turns whose words mention a phone; the words now pick only the phone
  skill's instructions. Cloud homes and hosted workspaces, which have no USB,
  never mount it.
- A room decides the tool bridge after the engine's start-up read, as a direct
  turn does, so its first turn after a start is listed like the rest.
- A failed read of the connected services keeps the last answer, so a network
  blip no longer reshapes the connected-apps bridge's list.

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

* Tests: a conversation's engine stays warm between its turns

With the tool list fixed for a conversation, its engine process is no longer
relaunched between turns just because a per-turn switch flipped. Three tests
had leaned on that relaunch:

- openai-compat-vm: the continuation after a computer pick is now listed the
  agents tools its request was, select_computer included.
- cloud-team-browser: the fake engine reads its scripted calls each turn, as
  cloud-team-connections already does, instead of once at launch.
- direct-screen-settlement: the queued follow-up's reply may lead with the
  instructions that changed since the warm session started.

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

* Tests: the team browser's fake engine reads its launch files on the first turn

A warm engine's later turns cannot read the MCP config: the Claude driver
removes it from disk once the first turn settles. The fake engine read it only
on its first tool call, which in this test comes on a later turn of Ada's warm
conversation, so on Linux it found no browser server. The dump makes it read
the launch files on the first turn, as cloud-team-connections already does.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Normalize the local day boundary before calculating wake deadlines and filtering routine results. Cover fractional-clock wake times, DST changes and routine results just after midnight.


(cherry picked from commit 7c21e87cc24ff3ef3b996940ef6c55388ca83029)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Simple's Bot settings (the gear on the bot panel) gets a Backup AIs card: the
bot's own ordered backup list (up to five) that Advanced edits under Model,
with Add, change model and remove. Add and change open the same Simple model
menu as Model, without the bot's own AI or ones already listed.

Choosing a backup now makes it work. A bot's own list is used for a turn its
AI provably never started (the startup-recovery path) whether or not
Settings → General → Automatic recovery is on; that switch now covers only its
one app-wide backup, for bots with no list of their own. The usage-limit
takeover already used the bot's list with no switch and is unchanged. Saved
settings are untouched: nothing turns Automatic recovery on or rewrites its
backup.

- startupBackups() in server/automatic-recovery.ts is the one rule for the
  three places in server/index.ts that read it.
- Advanced: the bot's list says it works on its own (the "Automatic recovery
  is off" note is gone), and the Automatic recovery card says bots with their
  own backups use those.
- The model menu's keyboard handling moves from ModelPicker into
  model-menu-keys.ts so the backup menu shares it.
- New strings in all 15 languages; model.fallback.help and
  model.fallback.off are replaced by model.fallback.uses.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Bot rows in the sidebar can now be dragged, in Simple and Advanced: a line
shows where a bot lands and the order is saved through PUT /api/bots/order,
so every client shows it. Dropping a bot on the middle of a bot outside any
department starts a department with both, named in place in its heading
("New department", selected; Enter keeps it, Escape puts the bots back).
A department's heading or the gaps between its rows take a bot in, and the
rows outside any department take it out; with every bot in a department, a
"Remove from department" place shows while one is dragged. Alt+Up/Down
moves the focused row and announces its position.

Simple's bot menu gets a "Move to department" flyout with the departments,
"New department…" and "Remove from department". Simple renames a department
in its heading and its delete confirmation says the bots stay, outside any
department; Advanced keeps its dialog and copy. Nothing changes on screen
until someone drags or makes a department, and phones keep the menu only.

The section order and collapse state, with their drag and Alt+Up/Down,
move out of Sidebar.tsx into useSidebarSections; the bot drag is
useSidebarBotDrag, with the drop rules in src/lib/sidebar-bot-drop.ts.
Sidebar.tsx goes from 1917 to 1795 lines. Moving bots between departments
has one helper (bot-sections.ts) for the sidebar, its picker, the new menu
and the bot panel. Three new strings, in all 15 languages.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Production (Oct 29-30): 229 failed turns with code=quota on claudeAgent, 224 of
them on one Cloud, spread over about 60 threads of one bot, 3-4 per thread,
while Codex was signed in there. Each new conversation started on the limited
Claude again.

What made a new conversation skip a limited AI was the engine hold in the
limit reset clock, and it lived only in memory: a restart, an update or a
sleep the Cloud was stopped for forgot it, so the next conversation, routine
run or Chief turn went to Claude and was refused again. A refusal that named a
reset already past held nothing at all, and the only saved takeover state was
per conversation (limit-failovers.json), so only threads that had already
failed knew. The turn-start check could also pick a backup that the
conversation's approval level then refused (Auto-accept edits on Claude,
Codex has no such mode), failing every turn without trying any AI.

- The reset clock saves its holds (limit-holds.json) and the takeover its
  model holds (limit-takeover-holds.json); both come back on start.
- A refusal that names no reset, or one already past, holds the AI for the
  re-check interval (an hour after its last refusal); the next turn after
  that checks it again. A conversation that moved under such a reset waits as
  for no known reset.
- The turn-start decision moves out of server/index.ts into the takeover
  (heldAtStart), and its backups follow the same rules as the switch,
  approval level included. A quick route's model is the one a turn's holds
  and working turns count for.
- Signed out: the first refused turn says once, in that conversation and as
  a notification, "Claude is signed out on the Cloud. Sign in again in
  Settings → AI to keep using it.", with a Sign in button that opens those
  settings. Later refused turns still show they failed, with no second notice
  and one incident a stretch. The backups a turn its AI never started would
  get (the bot's own list, or the app-wide one while Automatic recovery is on)
  carry on meanwhile by the same rules (another sign-in to the same AI is fine
  here); the conversation goes back once a sign-in finishes in the app or a
  turn on that AI works. An account out of credit that an engine stops as
  auth_required is no sign-out.
- A signed-out routine run with such a backup starts again on it once.
- Plain words in the carry-on notices: no em dashes, Settings → AI.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(team): hide bot actions a member's session cannot use and say who chooses the Chief

A session without the admin scope no longer sees Duplicate, Move to department,
Delete all threads, Archive or Delete on a bot's menu, and the greyed crown says
only an admin can choose the Chief of Staff.

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

* fix(team): offer Undo on a department memory notice only to who may review team memory

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

* fix(team): call a team's Cloud by the team's name and draw no window buttons in a browser

The environment descriptor says when a Cloud home is a team's, so the sign-in
page, the sidebar's place and the account menu name the team instead of My
Cloud. The browser build no longer draws macOS window buttons.

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

* fix(team): keep the bot's name in a narrow chat header; the audience label shrinks to its icon

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

* fix(team): name each teammate's MausBot for its person in pickers and on the team map

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

* fix(team): the Apps panel gives a member's session the role as the reason and stops loading

A 403 from the connected-apps or catalog route no longer reads as an unreadable
credential store, and a failed catalog no longer leaves Loading catalog spinning.

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

* fix(team-cloud): an Admin-signed pairing at a new role ends the old role's sessions

A Team Cloud kept a demoted Admin's sessions and phones at admin scope until
their hour ran out. Each Admin-signed pairing now ends that member's sessions,
phones and waiting codes at any other role first, and the Admin signs one as
soon as the Owner changes a role.

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

* fix(team): show a member's session why instead of admin controls, and stop asking routes it may not use

Settings' AI accounts and keys, the bots' computers, usage, import and backups
say only an admin can change them; the team map's Add menu and Create
department are left out. Once a route answers that the session lacks the admin
scope, the instances lane, the live call lookup, the limits poll and the
connected-apps read stop asking it.

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

* fix(team): each person opens, edits and deletes what a bot remembers about them

On a Team Cloud /api/bots/:id/memory/mine and /memory/mine/file reach the
signed-in person's own layer of a bot's memory, from any session and nobody
else's. The bot panel's What it remembers reads and changes those notes, topic
files included, so a member no longer sees Nothing yet or a read error.

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

* fix(team): a group chat's unread mark is each person's own on a Team Cloud

Each person's read line in each room is kept apart (room-reads.json). The
room list, the room's frames and POST /api/groups/:id/read answer the room as
that person has read it, so one person opening a room no longer clears a bot's
reply for everyone else.

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

* test(team): About me on a Team Cloud saves to the person's own profile

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

* fix(team): type the panel's memory notes and the new tests

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

* fix(team): a bot's main chat is never another person's private chat, and a missing one never blanks the app

On a Team Cloud the main chat named to a viewer falls back to a team
conversation they read when the server's choice is someone else's
private chat; that id is no longer sent. The chat view no longer
crashes on a bot without a conversation, and a bot added without a
transcript starts with an empty one.

Fixes T-04.

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

* fix(team): a teammate's line is theirs, and a member's own MausBot is not labelled as everyone's

In a shared chat another person's message keeps their name and no
longer wears the viewer's bubble colour or offers Edit. A member's own
MausBot chat says it is their own helper that other members can't see,
instead of "Shared · everyone in <team> can see".

Fixes T-03, T-18.

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

* fix(chat): a send whose answer was lost is reconciled before it is called failed

When the request for a send fails without an answer from the server,
it is sent again with the same sendId (the server never delivers it
twice) until the server answers or refuses, or the message arrives on
the live stream. A delivered message no longer comes back to the
composer with "Couldn't reach OpenMausBot".

Fixes T-22.

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

* fix(chat): New conversation makes one conversation per action

A double or triple click no longer makes two or three empty
conversations: a bot's new conversation is made once while its request
is in flight.

Fixes T-33.

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

* fix(chat): single line breaks in a reply show as line breaks

Markdown soft line breaks in chat replies render as <br> instead of
joining the lines into one paragraph; code keeps its own newlines.

Fixes T-35.

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

* fix(bot): an Instructions edit is saved before the page reloads

Done sends the pending edit at once, and leaving or reloading the page
sends every edit still waiting out its pause, as a keepalive request
the browser lets finish.

Fixes T-37.

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

* fix(chat): say the turn stopped after Stop ended it before any answer

When the person's Stop reached a turn and no answer or stopped row
followed their message, the chat shows "You stopped this." instead of
leaving the message with nothing under it.

Fixes T-34.

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

* fix(app): say so when the live stream is down

After a few seconds without the live stream the app shows
"Reconnecting…", and "You're offline" at once when the device goes
offline, until the stream is back.

Fixes T-24.

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

* fix(app): show a signed-out page when the session ends

When the server refuses a request (401/403) and no longer knows this
device, the app replaces itself with the pairing page saying the
session ended, instead of a raw "forbidden: …" banner over chats that
look signed in. A reload in that tab says the same.

Fixes T-23.

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

* Delete a departing member's own MausBot, sent files and unsent uploads

When a member leaves or is removed from a Team Cloud, their own MausBot
is deleted with its chats and notes and counted in the departure record
(bots, chats). Leave cleanup now finds sent documents referenced by
their full attachments/ path, and deletes every file the member uploaded
that nothing uses. A file taken off a message before sending is deleted
at once through DELETE /api/attachments/<name>, by its uploader only and
only while no message or bot picture uses it.

Fixes T-02, T-31, T-53.

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

* Refuse a team member's bot look changes and webhook list

On a Team Cloud a User's session may no longer change a team bot's
colour, mascot or picture, which everyone sees; their own MausBot's
look they still change. GET /api/webhooks, which shows the internal
webhook address, now needs the admin scope like the other webhook
routes; the app shows no webhooks when it is refused.

Fixes T-15, T-40.

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

* Record team bot profile changes; keep a team's main chat out of "private"

On a Team Cloud the admin activity now records a team bot's name,
title, description, instructions and colour changes, from PATCH
/api/bots/:id and PATCH /api/bots/:id/profile. The recent-work brief
calls a conversation private there only when it is one person's alone,
so a bot's shared main chat no longer shows as "a private chat with
you" in a room.

Fixes T-47 (server part), T-52 (recent-work part).

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

* Time out slow request bodies on a Team Cloud; validate names and text

A Team Cloud now ends a request whose body has not all arrived within
55 seconds (plus time in proportion to a large upload's size) with a
408, as the Cloud does; requests without a body, such as event streams
and long polls, are never timed. Room names refuse a null byte or line
break as bot names do, message text must be a string without a null
byte, and POST /api/bots answers a bad field with one plain sentence
instead of the raw validation issues.

Fixes T-25, T-29, T-21.

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

* Keep the webhook list a client route; own-helper label shrinks too

The webhook list is secret-free and narrowed to the bots a member sees
(bot-visibility.e2e). The internal address seen in testing came from a
Team Cloud started without OMB_WEBHOOK_PUBLIC_URL, which cloud-home-start
always sets. The own-helper chat label uses the same narrow-header layout
as the shared and private ones.

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

* test(team-cloud): a member reads the webhook list; creating one stays an admin's

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

* fix(app): a member's first load opens bots the server sent without a transcript

The server leaves a bot's transcript out when its last conversation isn't
the viewer's (bot-visibility.ts); hydrate kept those bots as sent, so a
new member's first open crashed in transcriptLookups ("is not iterable")
and the page went blank. Completes T-04.

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

* test(team-cloud): webhook list shows the public address; colour change is a real change

A Team Cloud started as cloud-home-start starts it lists webhooks with its
public address, never the loopback listener (T-40). The activity test now
changes the bot to a colour it doesn't already have: new bots get a random
starter colour, so "blue" sometimes changed nothing.

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

* refactor: simplify Team plan fixes

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

* fix: code review findings on Team plan fixes (server)

- Every room response on a Team Cloud carries the caller's own read state;
  PATCH {unread} sets or clears that person's read line.
- A room's unread counts only bot replies; a read line off the active path
  reads up to the last message at or before it.
- A person's room read goes to their own streams only; per-person room
  frames are built once per person per broadcast.
- Room read lines are forgotten with the room and with a departing member.
- A departing member's MausBot is stopped before deletion; failures are
  reported (botsKept) and logged.
- revokeMember without a role ends every session of that member again.
- The Team bot audit records an instructions digest, not their text.

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

* fix: code review findings on Team plan fixes (app)

- A New conversation click that arrives while one is being made gets the
  same outcome through its own callbacks; one for another folder waits and
  then runs.
- Bot saves use keepalive only when the page is going away.
- A 403 for a missing admin scope no longer starts a session check.

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

* Team plan fixes fit the size-pinned files: their new code moves into modules

server/index.ts, src/state/store.tsx, ChatView.tsx, Composer.tsx and
PluginsPanel.tsx had grown past the sizes scripts/testing/
file-size-ratchet.test.ts lists for them (the ratchet already failed on
this branch before main was merged in). Nothing changes in behaviour.

The branch's own additions move into modules with explicit deps:
- Each person's view of a room (their unread mark and read line, their
  own group frames, Mark read/unread for them) is createPersonRooms in
  server/host/room-reads.ts.
- Stopping and deleting a leaving member's own MausBot is
  server/host/member-own-bot.ts.
- Who uploaded a file, for the thread routes, is uploadsFor in
  server/host/member-uploads.ts.
- New conversation making one conversation per action is
  src/state/new-task-once.ts, and saving waiting edits as the page is
  left (with its keepalive size check) is in src/state/bot-patch-queue.ts.

Unchanged code moves out as it is: roomRoutingInput to
server/host/room-routing-input.ts, liveCallFromFrame and
nextLiveCallLookup to src/state/live-call.ts (store.tsx still exports
them), and AppsSection, PhonePlus and DaySeparator to their own files.

Each pinned file is now at or under its listed size: index.ts 15816
(15818), store.tsx 3379 (3388), ChatView.tsx 1309 (1313), Composer.tsx
1011 (1020), PluginsPanel.tsx 1006 (1028).

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

* A request whose body stops arriving: the 408 says to check the connection and try again

Main's plain-words pass (#3865) has every error say what happened and
what to do next. The 408 this branch adds for a body that never finishes
said only "The request took too long."; it now adds "Check the
connection and try again."

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

* The Apps grid test reads the grid where it now lives, AppsSection.tsx

AppsSection moved out of PluginsPanel.tsx (the size pin), so the check
that the Apps grid reflows inside the pop-up reads its classes from
AppsSection.tsx. The @container it answers to stays in PluginsPanel.tsx,
and the test still reads it there.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Switching to a Cloud that isn't running dialled its home. On the owner's account an
old My Cloud (its plan ended, its home stopped, a later Team checkout never paid)
hung the window: main's fallback probed the stopped home and navigated to it.

- Never dials a Cloud the session says isn't running. This computer's screen says
  what it is in plain words, with one action: "This Cloud has ended. Its files are
  deleted on <date>." with Buy again; "This checkout wasn't finished." with Continue;
  a payment that didn't go through with Update your card; setup with its progress.
  My Cloud asked for before the move, another Cloud of the person's own, and a Cloud
  still being made (its rail circle now opens its own screen) all go this way.
- A Cloud that answers the look but never loads is the offline screen after 30 s,
  and the offline screen says "Can't reach <name> right now." with Try again,
  never an endless spinner (it still looks again by itself).
- Remove from list in a rail circle's menu and on that screen, asked first: "Remove
  “My Cloud” from your list? You can buy a new Cloud any time." Only for an entry
  the Admin marks removable (an older Admin never does, so the action is hidden);
  main acts on its own word for the Cloud, never an id from a page. Once removed,
  the session no longer lists it: its circle goes (My Cloud's saved place included),
  and a window showing its screen leaves it.
- Tests: list parsing, each state's screen with nothing looked up, the load
  watchdog, Remove from list from the rail and the screen, the account client's
  outcomes, and the renderer's words and buttons. The home window's test world
  moves to electron/fixtures so its tests split under the size ratchet.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Team Cloud the bot menu leaves Move to department out for a member
without the admin scope, but the sidebar still let them drag a bot to
reorder it or into a department, and the server refused the department
change. The drag now follows the same rule as the menu: useMayMoveBots in
bot-sections.ts, which the menu's Move and the drag both use. A member's
rows are not draggable and Alt+Up/Down does not move them; a drag begun
before the session said who they are drops nothing. Admins, and everyone
off a team, drag as before. The server is unchanged; a test pins its
refusal of a member's department change.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud home every bot turn runs in the bot box, where the data folder is
an empty private folder. The helper behind Claude's question tool and its
approvals (server/permission-proxy.ts) runs inside the box and connects to a
socket the driver makes in the data folder. The driver never asked the box to
put that socket back, so on a Cloud every question and approval answered
"permission broker unavailable — skip this action", even in a new bot's
first turn.

- The driver names the turn's permission socket to the box (BoxRequest.rw,
  which exists for this).
- The helper opens its connection again after a drop, or when it never
  opened, with a few quick tries.
- A question or approval that cannot reach the person tells the bot what to
  do instead: ask in its reply and stop there, or skip the step and say why.

Tests: a Claude turn under a stand-in box asks a question and the socket it
uses is in the box's view (fails without the fix); the helper reconnects and
words its failures; a real-box test runs wherever bubblewrap works.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Team Cloud an app or MCP server each person connects worked only on the person's own
message in their own private chat. Work that message handed on to other bots, and the
person's own lines in a group chat, were refused, so people re-asked in new chats.

- A turn now acts for the person whose own words provably began its work: their own line
  (one-on-one or in a group chat), or work handed on by a turn that acted for them. The
  harness records whom handed-on work acts for as it is handed on, so a restart keeps it.
- A turn stops acting for anyone once another person's words join it (a line sent into it,
  a queued line run with it, their answer to one of its cards). It never acts for anyone
  in another member's private chat. Routines and webhooks act for nobody.
- A step that uses a person's own app or server says whose ("using Ada's Gmail").
- A refusal says why in plain words and gives the fix: connect yours (a link), ask
  yourself, or an admin connects it for the whole team. Bots are told not to work
  around a refused connection with the browser or another tool.
- A person's MCP server that isn't mounted is named to the bot with the reason and fix.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Simple kept Pinned, Bots, Group chats and Bot threads fixed at the top
and let only departments be reordered after them. Every section heading
in Simple can now be dragged or moved with Alt+Up/Down, so group chats
or a department can sit above the bots.

Simple keeps its own saved order (openmausbot.sidebarSectionOrder.simple.v1),
so a move in Simple leaves Advanced's order as it was and the other way
round. Until someone moves a section in Simple it shows what it showed
before: its lists first, the departments in the shared order. Simple's
bots go without a heading only while they lead the list; moved below
another section they get their "Bots" heading back.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/localization.md
#	electron/cloud-account.mjs
#	electron/cloud-account.node-test.mjs
#	electron/cloud-lending.node-test.mjs
#	electron/computer-sharing.mjs
#	electron/desktop-prefs.mjs
#	electron/desktop-prefs.node-test.mjs
#	electron/environments.cjs
#	electron/home-window.d.mts
#	electron/home-window.mjs
#	electron/lending-dialogs.mjs
#	electron/lending-dialogs.node-test.mjs
#	electron/lending-indicator.mjs
#	electron/main.mjs
#	electron/one-home-main.mjs
#	electron/use-my-computer-words.mjs
#	electron/use-my-computer.node-test.mjs
#	scripts/generate-locale.mjs
#	scripts/generate-locale.test.mjs
#	scripts/testing/file-size-ratchet.test.ts
#	scripts/testing/index-route-ratchet.test.ts
#	server/activity.ts
#	server/drivers/claude-auth.test.ts
#	server/drivers/claude.ts
#	server/host/brief-cards.ts
#	server/host/team-messages.test.ts
#	server/host/team-messages.ts
#	server/index.ts
#	server/notify.ts
#	server/routes/config.ts
#	server/routes/setup-request.ts
#	server/routine-recovery.ts
#	server/setup-request.ts
#	shared/cron-label.ts
#	shared/runtime-events.ts
#	shared/wire.ts
#	src/App.tsx
#	src/components/AboutDialog.tsx
#	src/components/AvatarImageGenerator.tsx
#	src/components/BotModelBadge.tsx
#	src/components/BotProfileAvatarCard.tsx
#	src/components/BrowserPanel.tsx
#	src/components/ChatMarkdown.tsx
#	src/components/ChatView.tsx
#	src/components/CloudSendStrip.test.ts
#	src/components/CommandPalette.tsx
#	src/components/Composer.tsx
#	src/components/ConnectedWorkspacesSettings.tsx
#	src/components/DesktopWorkspaceSwitcher.tsx
#	src/components/EngineSetup.tsx
#	src/components/ExportTranscriptMenu.tsx
#	src/components/GroupView.tsx
#	src/components/HomeScreen.test.ts
#	src/components/HomeScreen.tsx
#	src/components/LocalVmWorkspace.tsx
#	src/components/MausBotWelcome.test.ts
#	src/components/ModelPicker.tsx
#	src/components/NoEngines.tsx
#	src/components/RoutineCalendarPage.tsx
#	src/components/SecretRequestCard.tsx
#	src/components/SettingsModal.tsx
#	src/components/SidebarProfileMenu.tsx
#	src/components/SimpleModelPane.tsx
#	src/components/TurnNarrationRun.tsx
#	src/components/UpdateBanner.test.ts
#	src/components/UpdateBanner.tsx
#	src/components/bot-panel/AvatarEditorCard.tsx
#	src/components/browser/ChromeRow.tsx
#	src/components/computer-takeover.ts
#	src/components/onboarding/ConnectAi.tsx
#	src/components/remote-desktop-panel.tsx
#	src/components/widget/WidgetMessage.tsx
#	src/lib/activity-runs.test.ts
#	src/lib/cloud-send.ts
#	src/lib/computer-control.ts
#	src/lib/create-configured-bot.ts
#	src/lib/i18n.test.ts
#	src/lib/local-computer.ts
#	src/lib/memory.ts
#	src/lib/tool-step-label.ts
#	src/lib/tts/index.ts
#	src/locales/en.json
#	src/locales/pt-br.json
#	src/locales/source-hashes.json
#	src/locales/vocabulary.test.ts
#	src/main.tsx
#	src/pair/PairPage.tsx
#	src/state/api.ts
#	src/state/store.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lent folders could only list, read and write whole files. Changing two lines of
a 34 KB file meant sending all of it through the bot (slow enough to stop a
room turn), and a file the bot no longer needed could not be removed.

shared_computer gains three actions for folders lent with editing:
- edit_file replaces old_text, found exactly once, with new_text
- append_file writes only its bytes after what the file holds
- delete_file needs the expected_sha256 of a read, like an overwrite, and checks
  again that the path still names that file before unlinking it

They keep write_file's protections (no .git internals, no home settings, no
links, regular single-link files up to 2 MiB) and its 256 KiB limit on what one
call sends. A desktop says it takes them (fileEdits) only to a server that
advertises them; an older desktop is never sent them or their fields, and the
bot is told to write the whole file. A computer that is away refuses them from
its Cloud copy, after the usual checks. See activity records them, with
"Deleted a file" in every language. The shared tool catalog grows 131 bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Applies the reviewed corrections to the pt-BR catalog: neutral wording
for counts that can be 1, gender agreement, infinitive buttons, consistent
terms, and prose that quotes the real button labels. The pt-BR copy
mirrored in lending-words and the tests that assert pt-BR text follow
the catalog. English is unchanged.
Leaving a team or signing out starts a new generation. Reads, marks and replies from the old one publish nothing and start no refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep terminal lending and the menu-bar indicator alongside failed-Pause recovery. Cover automatic terminal lending after an unsaved Pause and a delayed terminal confirmation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chain test counted Ada's Gmail calls right after her helper's step, but her own bot
is then resumed with the helper's result and runs its step as her once more. On a slower
runner that resumed step landed after the count, during Cleo's part, and read as one
call too many. Wait until all of her work has finished (everyone idle and her count
steady) before counting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both chats' bots are resumed with the helper's result after the helper's step. Wait for
the resume row and two idle polls in a row before counting, and after Cleo's chain too,
so no turn of it is still running when the next test reads the engine's launch dump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Greenference gets a key row under Settings → Connections → AI providers and
a "Greenference (API)" engine on the shared chat-completions runtime, like
Groq and Cerebras. The model list keeps the ready models that can call tools
(5 of 10 today), shows their short names, and sends images only to models
whose catalog lists image input. Its key goes only to Greenference's host;
the Test button proves it (a wrong key gets 401 from /models).

Its site icon is the provider mark, in a teal from its logo that reads on
light and dark. A bot can ask for the key in chat. config.ts stays under its
size pin by loading the key-only providers' env in one loop. The agents
catalog goldens and budget baselines move to the measured sizes.

Replaces #2477.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Everything a bot runs starts first in the kernel's line when memory runs out (oom_score_adj 1000): its engine and tools as
  before, and now its browser (agent-browser, its daemon and Chrome) and the helper engines; the root supervisor is -1000.
- A turn stopped for memory ends with one plain line ("Ran out of room, so I closed the browser to keep everything else
  running."), and a run no Chief retries starts once more by itself when there is room.
- The health report carries the day's memory pressure (`room`): waits and their time, stops, kernel kills, stalled minutes.
- The room card, where the usage meter's card is: the Admin's offer (the plan that fixes it, its price) with Upgrade through
  the usual preview and confirmation and Not now, a tip on the top plan, Restart now after the upgrade; never mid-turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3933 added "Sign in to your Cloud before lending it the terminal.", which the vocabulary test bans
("your Cloud" → "the Cloud"), so main's src/locales/vocabulary.test.ts fails on every PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
User-visible strings that arrived with the latest main now follow the
app language: server refusals travel as serverError codes, activity,
chat and routine lines as text codes, desktop menus, dialogs and
notifications through the native translator, and the remaining
renderer labels through t(). Inbox deadlines are formatted in the app
language. English output is unchanged.
Adds .github/workflows/boat.yml: while the repository variable BOAT_CI is "on", pull requests from this repository
and pushes to main run lint, typecheck and the whole Linux vitest suite on one boat-xlarge VM. Forks never run on Boat.
ci.yml is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One process for the whole suite ran 43 minutes and hit the job limit: each shard runs its files one at a time, so the
parallelism comes from shards. Now lint+typecheck on one boat VM and each of the 8 Linux vitest shards (OMB_VITEST_E2E=all,
--shard=i/8, the retry summary, and shard 1's node tests) on its own boat VM, as ci.yml's Linux leg does: 9 starts a run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3915 let a person's own connections serve their own lines in a group chat and the work
those hand on. Work handed on from a group chat runs in the receiving bot's own thread,
which the whole team can see, so results from someone's personal Gmail could land where
every teammate reads them.

- A person's own apps and MCP servers are used only in a chat that is theirs alone. Their
  own line in a group chat or the bot's main chat no longer mounts them; the bot is told
  why, and to hand that part on.
- When they have connected anything of their own, work their request hands on opens in
  the receiving bot's chat with them: a thread private to them, like their own chats, that
  no other member and no admin sees. A shared work thread is never reused for it.
- What that chat hands back to the group chat (or any chat others read) is only where the
  result is: "Done. The result is in Clerk's chat with Ada." The result, what the harness
  observed, and a question's words stay in their chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docs, tests, fixtures and the question-card preview use neutral example
people, bots and text that other tests in the repo already use:

- people: the owner Cleo and the member Ben, beside the admin Ada
  (Ada < Ben < Cleo keeps every sorted list in its order)
- bots: Scout (the Chief) and Ledger (the bot doing the work)
- the question-card example is in English: a footer-text fix on a
  pricing page, on branch fix/pricing-page-footer
- the live-step example's scraping project, company page and web search
  use the placeholder company Acme

The representative's guard tests keep their German questions, since they
test the German stems; only the name in them changed. No behaviour
change: only example strings, test titles and test identifiers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the 8 GB boat size, pnpm typecheck died with "JavaScript heap out of memory" (exit 134) on every PR. GitHub's
ubuntu-latest has 16 GB; boat-large matches it, and typecheck gets a 12 GB heap. Starts per run are unchanged (9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The locale-tests CI subset now covers the 47 tests that read the
catalogs through native text and renderer helpers, and the failover
e2e expects the nameCode and nameParams the sign-out notice carries.
The label changed from "Maximum turn length" (and pt-br "Duração máxima
do turno") when a room turn started stopping on no progress rather than
after a fixed time; the two Settings tests still looked for the old text
and fail on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Local VM fixture shortens a room turn's deadline to 5 s by rewriting
`this.remainingMs = roomTurnTimeoutMs(minutes);` in room-turn-timeout.ts.
That line became `this.limitMs = ...` when a room turn started stopping on
no progress, so the rewrite matched nothing, the deadline stayed at its
minutes, and "releases timeout bookkeeping after the interrupt grace
period" waited out its 15 s on main. All 46 tests in the file pass again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cacheUntilConfigChanges sees a chmod by its ctime. Linux stamps ctime from
a clock that ticks every 1 to 10 ms, and on a fast machine (Boat's Ryzen
9950X VMs) the test's chmod landed in the same tick as the write's utimes,
so the ctime did not move and the test failed on 3 of 4 runs there. It now
waits 20 ms first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boat. While vars.BOAT_CI is "on", a push to main, a merge group, or a PR
from this repository that the repository owner authored, pushed and
started runs the static job on boat-xlarge. After its checks, that job
runs the Linux vitest shards, behavior evals and the Linux packaged server
smoke side by side (scripts/ci-linux-lanes.mjs: the same commands as their
GitHub jobs, held equal by ci-workflow.test.ts). ci-scope.mjs leaves those
jobs out of the selection, so the CI gate reads them as skipped by design
and static's result covers them. One Boat start per run instead of
boat.yml's nine, which this folds in and deletes. Any other run (forks,
teammates, bots, re-runs by others, nightly and manual runs, BOAT_CI off)
runs on GitHub's runners as before. The lanes run without Boat's ambient
cap_dac_read_search, DISPLAY, coding agents and bwrap, in C.UTF-8 and UTC,
as on a GitHub runner.

Windows. A PR runs its Windows jobs only for the windows label (read live,
so labelling and re-running works), a path that can break Windows first
(the desktop app and installer, dependencies, Windows-named files, the
scripts that build or smoke the app, what decides how Windows shards run,
the host e2e files), or a changed code line that names Windows. Pushes to
main and merge groups now run the Windows shards, packaged server and
browser identity; nightly and manual runs keep every platform. Over the
last 300 merges this ran Windows on 37% of PRs instead of 81%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A teammate's PR got nine failed Boat jobs: "@aivsomkar is not on its
allowed users". On static, that would fail the required gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The full history took 2m41s to reach a Boat VM; without blobs it is 13 MB
and arrives in seconds. ci-scope reads trees for its file list, and git
fetches an old file's contents on demand when the Windows check or the
push scope reads one.

docs/ci.md: GitHub keeps 10 error annotations per step, so on Boat, where
every Linux lane reports from one step, the lane groups in the log are the
full record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macOS and Windows windows now draw their own frame. A 28px top bar holds the
traffic lights (moved to 12,7) or the Windows caption buttons, the rail's
button, the update pill while there is one, and the app's settings. The rail
of places is 36px wide with 24px rounded-square tiles. The app sits in a card
under the bar, round where it meets the frame and flush with the window's
right and bottom edges.

In Simple mode the sidebar loses its top row: Search and New sit in its top
corner as plain buttons, and the bot tiles rise beside them while their first
row leaves the corner free. Nothing under the bar makes room for the window's
buttons any more, so the Windows caption padding and control shift go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deleting a routine's room left its id in the editor: Save stayed enabled and
submitted the deleted room. The editor now shows that the room is gone and
requires another choice. The details drawer showed a routine's new room for a
goal run that started without one; it now reads the group from the run alone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Expose bounded, audience-scoped monitor context and guide verified task closure through pause and readback. Give routine runs their own trigger id and preserve read-and-draft limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boat runs the cloud computers behind MausBot and offers $50 in Boat credit to anyone MausBot sends to its $100 plan
or bigger, claimed by the person writing to Boat themselves.

- The card joins the existing notice queue (notices.ts, AppNotices): once per person, never on a first launch, during
  onboarding or while a bot or room is working; after a trial's notice and the account card, before the star. Get
  Boat, the claim, Not now, the X and Escape each end it for good, in the workspace record, on the device and, in the
  desktop app, on every page of its window (desktop-prefs).
- The claim opens a drafted email to support@ascii.dev with Boat's subject and body; the person sends it. Main opens
  mailto: links only as such a draft: one address, a subject and a body, nothing else.
- Settings → API keys keeps the same offer and both buttons on the Boat card while the offer runs.
- The address, link and end date live in src/lib/boat-offer.ts; the end date is unset, and once set the offer shows
  nowhere from that date on. Never on a branded build or an organization's desktop.
- Strings in all 16 languages; a boat_offer analytics event; screenshots in docs/verification/evidence/boat-offer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove 46 committed screenshots that showed real example data: the six
inbox shots in docs/screenshots and the live-step and question-cards
evidence under docs/verification/evidence.

The two verification recipes that embedded some of them now say why the
pictures are gone and how to see the screens: chat-ui.md points at its
`scripts/control-omb.ts ui launch` command, and question-cards.md lists
the preview settings for each screen it used to show.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18a81845b (window frame) made Sidebar import windowFramed from ./DesktopCapabilities. Four sidebar test files stub that
module without it, so vitest threw 'No "windowFramed" export is defined on the mock' in 47 tests and main's first CI job
failed, skipping every later job. Each stand-in now returns windowFramed: () => false (no frame, as before that commit);
the other 112 test files that stub the module already pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Team trial's owner signed out of every AI and removed every connection. The
sign-out request itself moved every bot onto the trial's Claude credit; their
daily routine kept running on it, failed on a tool call with no clear reason,
and messaged a person who had left. The incident was filed as "unknown".

- The trial credit takes bots by itself only for someone who never had an AI of
  their own signed in on that Cloud (providers/trial-credit/own.json, which
  never travels in a backup or a move). Once they had one, signing out of the
  last engine, a removed key or a lapsed sign-in leaves every bot where it is,
  so a message to one says to sign in again. A bot can still be put on the
  credit by hand.
- Routines wait while the owner has left (server/routine-holds.ts,
  server/host/routine-holds-host.ts), on a Cloud home: no AI of theirs can run
  any more, they removed their last MCP server or connected app, or the plan
  was cancelled (a new signed POST /api/cloud/plan for the Admin). Every
  routine that is on turns off with a note saying why, its queued runs are
  cancelled, and the owner's Chief gets one quiet line; nothing else is sent.
  When the cause ends they turn back on from now, without the runs they
  skipped. Turning a routine on or off by hand clears the stamp.
- A chat-engine turn that stops on a failed tool call names the call ("Stopped
  because the tool call "X" failed") instead of "One or more tool operations
  failed". The quota switch never reads such a stop as the AI's usage limit.
- tool_error is a health stop code, so such an incident is no longer "unknown".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Team trial "reminders go to my task app" became about 97 delegated tasks across 14 bots,
a memory queue and questions that expired, and team memory was refused in every delegated
thread because each was private to the person.

- memory_update gets action "prefer": one standing preference of the person, as one line of at
  most 300 characters, saved once into the About me of the person whose own words began the
  work. Every bot reads About me in that person's work, so nothing has to be passed on.
- Work the person started may save it (server/host/person-preference.ts): on a Team Cloud the
  person the turn acts for (their own chat, a group chat line of theirs, or work handed on from
  it, and nobody's once another person's words joined); elsewhere the one person, when their own
  message began the work. Routines, webhooks, outside apps and a bot's own work save nothing.
- The Chief's prompt and every bot's memory guidance say to save such a preference once and
  never send it to each bot. Team memory, still closed to one person's private work, says where
  the person's own preference goes instead.
- The tool list grows by the new action's words; its byte budgets move on purpose.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
When two requesters ask the same bot the same thing at the same time, the
second request no longer runs a turn of its own: it waits for the first
one's answer and completes with it, marked as shared, and its requester is
resumed as usual. The bot's thread for the second request says why it ran
nothing. If the first ends without an answer, the second runs as before.

A request only joins another when nothing could make the two answers
differ: the same words in the same order (case, punctuation and spacing
aside, 40 characters or more), the same mode, approval level and finish
line, asked while the first was still being answered, outside rooms, in
another conversation, and only where the same people see both requesters'
conversations and the bot works on both in the same folder. Requests that
differ by any word stay two requests, and an answer from before a request
was asked is never reused.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A German person read "Now the edits." between a bot's German lines, and a bot passed a German
message on behind an English "… asked me to pass this on:". Both were the bot's own words, not
the server's. Every bot's habits now say: write every line the person can see in the language they
use with you, including a short note between steps and a message you pass on for them.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Server lines in the person's language: the way in, a guard, and bug report lines

Lines the server writes for a person (a bot's line, a status row, a card, a notification) now
come from the language packs under "server." keys, in the language the person's app shows.

- server/server-lines.ts: serverLine(language, key, params) reads the packs; a missing key reads
  in English, as the app's screens do. The server bundle keeps only the server keys
  (scripts/server-locale-plugin.mjs), and tsc's copies of the packs are dropped from dist-server.
- server/host/person-languages.ts: the app keeps a person's language pick on their own computer,
  so the server learns it from presence pings (the owner's, or each member's on a Team Cloud).
  A line for a person reads in theirs, else in the place's: the one set on the server or by the
  team's Admin, else the one most people's apps show.
- Bug report lines (@devs) read in the reporter's language; the marker that tells whether the bot
  already passed a failure on is "MausBot", which every language keeps.
- src/locales/server-lines.test.ts: a guard that fails on an English line written straight into a
  line a person reads. It follows each place a line is made through consts, helpers and imports;
  ALLOWED says why text is English on purpose; PENDING lists the 242 lines written before it, by
  area, and only shrinks.

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

* Only the tests of other languages' lines read the packs; CI selection knows it

CI's import-graph checks failed: the server now loads the language packs, and every server test
reaching server-lines.ts counted as reading a translation.

- server/server-lines.ts reads English only. server/server-line-packs.ts adds the other languages;
  server/index.ts loads it at start, and so do the tests that check a line in another language.
  The guard checks index.ts loads it.
- scripts/ci-scope.mjs: those tests run with the locale tests. The packs stay out of
  SRC_OUTSIDE_RENDERER: a change to English already runs every Linux test, and one to another
  language runs every test that reads it, so a translation change does not run the server's checks.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Make a server of your own your bots' home, as My Cloud is

A person with bots on this computer and on their own server had two places whose
bots could not work together, and bringing them together meant a backup export and
import by hand. Now a server of their own offers "Make <server> my home" on its
circle: one tap moves this computer's bots, chats, memory, skills, logins, apps and
keys, and routines there with the same one-time move My Cloud uses (copy, quiet
moment, freeze, final pass, check, switch), its "needs you / Try again" line
included. This computer then stops for good, so no routine runs twice, and it works
for that server by itself as it does for My Cloud: no access dialog, only the menu
bar item and Pause.

Only for a server that is the person's alone: an admin session where the sign-in
list names no members and no other admin, never a Cloud, a team's Cloud or a hosted
workspace. Such a server says so on /api/auth/session (`own`), takes the move's
routes from that session, and turns lending on once a move arrived. Any other server
keeps today's explicit "Share this computer?" flow. Connected apps through MausBot's
service stay on this computer when the server has no such service, so the move's
check still passes.

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

* test(remote sessions): a server nobody else signs in to says before pairing that it takes its owner's move

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Preserve the PR guarantee with current upstream behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preserve the PR guarantee with current upstream behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reject unsupported concrete facts and secrets before memory or profile writes. Anchor relative dates to their source messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dream answer's citations stay in the order given, so each quote is
checked against its own conversation. Relative-date words inside paths
and URLs are no longer rewritten. The answer example shows evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"today/tomorrow" no longer counts as a path, so both relative dates
resolve. A path starts with a slash at a word boundary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Relative dates resolve on the local calendar, so UTC-noon fixtures failed
in time zones far from UTC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Main's guard passes: the same-request notice in the person's language

Main went red on the server-lines guard: #3957's "Another teammate asked the same a moment ago…"
row landed while #3931's guard was in review, and #3948 reworded a line the guard lists.

- The notice reads in the language of the conversation's person (server.teammates.sameRequest,
  German by hand, every pack).
- PENDING follows #3948's rewording of the webhook line.
- The guard's check that index.ts loads the other languages matches that import anywhere on its
  line (as #3960 has it), so another import may follow it.

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

* test: main after #3948 — a move to your own server counts as busy, and the moved-webhook line names its place

#3948 made the quiet-update busy check count a move to the person's own server (ownHome?.busy()) and made the
moved-webhook line say the place it moved to instead of always My Cloud. Two tests pinned the old words:
electron/talk-main.node-test.mjs (the busy chain) and src/locales/server-lines.test.ts (#3931's pending list, which
matches the line by its words). Both now match the line as it is.

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

* test: the mobile code-block test keeps the notices off its page; the guard's webhook line moves to #3987

The Boat credit card (#3979) is a one-time card for everyone, so it now opens in the mobile code-block test once the
fake reply lands. On a 390 px phone it covers the last block, and the tap on that block's Copy button hit the card:
main's renderer smoke failed there. The test now marks every notice in NOTICES as seen before the page loads, as
one-workspace-fixture.ts already does, so a later promotion cannot cover a block either. Checked both ways: without
the line the test fails at the same tap; with it the test passes.

The language guard's moved-webhook entry is dropped here: #3987 fixes that entry and the guard's other failing line.

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

* test(ci): re-measured Linux shard weights, so the new own-home e2e file (154 s) no longer overfills shard 5

Rebuilt with scripts/testing/update-shard-weights.mjs --platform linux from the eight Linux shard logs of the last green
main run (41048366832) and the eight of main's run 41136416355. server/own-home.e2e.test.ts had no weight, so the
sequencer charged it the median e2e file (5 s) and shard 5 ran past its 20-minute cap. The Windows and macOS tables
are unchanged.

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

* test(ci): Linux shards get 25 minutes; the guard's self-test and the lanes test pass on Windows

- Linux vitest shards now run 17 to 19 minutes of tests, and one had already passed at 19.9 minutes, against a
  20-minute cap meant to catch a hang. The cap is 25 minutes now (Windows stays at 30; its shards take 10 to 15).
- The language guard's self-test read its stand-in files by `relative()`, which gives backslashes on Windows, so
  it found no file and no line there. It now joins with "/" as the guard itself does.
- The Linux lanes runner stops a lane by its process group (kill(-pid)), which Windows has no form of, so that one
  test is skipped on Windows; the lanes only ever run on a Linux VM.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The top-6 bars ranked by cost as soon as any group had a price. A
subscription model such as ChatGPT through Codex records tokens with no
cost, so it sorted last and fell off the list even when it did most of
the work. The bars now rank and size by tokens, and a row adds its cost
when the cost is known.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
With "Show tool calls" off, a 1:1 chat hides every step, failed or not,
and keeps only turn-level rows (a stopped turn, an engine error, a
recovery notice). The room filter also kept any step with ok: false, so
a call the bot retried or worked around still showed between messages.
The room now applies the same rule, and a test checks both views agree.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* ci(windows): start computer control as the installed app does and lend it

A Windows smoke that runs electron/cua.mjs's packaged branch unchanged, in
Electron's main process, then takes a Cloud's first look at the PC through
the lend path (computer_tools, get_screen_size, list_apps). It reports the
driver's mode and whether apps and screen would be lent, and sends no input.

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

* ci(windows): settle each answer with a statement in the lend smoke

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

* fix(windows): lend a PC's apps and screen, say plainly when it can't, and let a Cloud's bot ask to turn it on

Computer control on Windows starts once, at launch. When it didn't (a helper
Windows Security stopped, or a slow first start), nothing tried again, nothing
was recorded (the driver's error carried only its kind, and console output is
lost in the packaged app), the app showed nothing and reported Windows as
unsupported, and a Cloud's bot was told to have the person "check computer
control", which no Windows screen offers, then offered its own cloud computer.

- Computer control keeps the reason Windows gave and logs every change to the
  app's log. On Windows a start that failed for a passing reason is tried again
  by itself, twice; a blocked or missing helper waits for the person.
- The taskbar or menu-bar icon says what the Clouds can't use and why, with the
  one fix ("Screen control isn't running on this PC", Start screen control).
  The Computer panel on a PC says the same with a Start button.
- A Cloud's bot that needs the person's computer and can't use it calls
  ask_for_computer: one card with what it wants and why, the reason, and a
  one-tap Turn on (resume, start screen control, ask macOS, or run commands
  after the computer's own confirmation), or Get MausBot when the app there is
  closed, missing or too old. The app on that computer, paused or not, hears
  the ask and shows its own prompt once, one at a time; the first answer wins.
  Once the computer lends what was needed the bot's waiting call returns, or
  its request goes on by itself. Only on the person's own Cloud.
- Every "not available" answer a bot gets there points it at the card, and the
  Cloud prompt says never to switch to its cloud computer unless asked.
- The person can keep writing while a Turn on card waits.
- CI's Windows CUA job runs for changes to the modules it starts.

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

* test(lending): a neutral computer name in the ask tests

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

* docs(lending): the help names the PC's screen-control status and the Turn on card, in the app's words

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

* fix(windows): the lent screen's driver gets Windows' own folders

cua-driver 0.28.2 keeps its settings, history and cursor themes under
LOCALAPPDATA and APPDATA; the lend path started its proxy without them.
They hold no secret, and the app's keys still never reach it.

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

* ci(windows): the lend smoke reports the lending decision the app makes, with why and the fix

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

* ci(windows): on a pull request the lend smoke runs the base branch first, so one run shows the change

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

* docs(lending): screenshots of the PC's status and the Turn on card, light and dark

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

* fix(lending): the ask's internal route answers from its own module, so server/index.ts gains no route

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

* Windows Defender check: build the real installer, install it like a download, and report what Windows Security does

A hand-run job on a fresh GitHub Windows machine (workflow_dispatch, or the
"defender-check" label on a pull request while the workflow isn't on main):
builds the NSIS installer the way the release's Windows job does, turns
Defender's protection on the way a home PC has it (GitHub's image turns most
of it off and excludes every drive), saves the installer to Downloads with a
browser's Zone.Identifier (ZoneId=3), scans it, installs it silently (first
the way a double-click starts it), opens the app for two minutes and presses
Start screen control through the app's DevTools port.

The summary and the defender-check artifact say what the machine allowed,
Defender's detections and Operational events 1116, 1117, 1006-1008 and 1015,
whether cua-driver-background.exe runs, the app log's computer-control lines
and whether Start screen control worked. The run fails when Windows Security
flagged the app or screen control doesn't run.

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

* Windows Defender check: show what holds a downloaded installer, and check Defender's cloud

When the double-click start of the downloaded installer is still waiting
after 30 s with no installer running, the check records the windows on
screen, whether SmartScreen runs and a screenshot, then stops waiting
instead of sitting out five minutes. It also records Defender's cloud
connection (MpCmdRun -ValidateMapsConnection), the signatures' age, what
GitHub's passive-mode policy means on a machine Defender reports in Normal
mode, and a screenshot of the app after two minutes.

A workflow test keeps the check's build step for step the same as the
release's Windows job.

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

* Windows lend smoke: read electron-builder.yml the same with CRLF line endings

git checks electron-builder.yml out with CRLF on a Windows runner, so the
smoke found none of the CUA resources it places and stopped before
starting anything (the first CI run that reached the Windows CUA job).

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Main added the computerAsks internal route and its own close-abort for
page calls on the same dispatch line. Keep main's dispatch, and keep
this branch's turnCallSignals signal there: it aborts on close too,
and sweep() also aborts a call whose turn grant was revoked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prepare-release cut the 0.1.135 bump from main at 06:48Z and tightened the size ratchet to that tree:
server/index.ts 15818 -> 15806 and src/components/Composer.tsx 1020 -> 1011. #3846 and #3950 merged before the bump
did, so the release commit has 15808 and 1013 lines and fails its own size check. No pull request grew a file past the
number it was given; the numbers now match the tree.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Main (#3950, #3948) reworked computer sharing around the same code.
The branch's save-failure handling moves into main's resumeLending, so
both Resume and a computer ask's turn-on roll back to paused with a
pauseError when the save fails. close() also closes the asks channel,
and the lending indicator keeps the pause-error line ahead of main's
screen state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
turnOn resumed lending and carried on even when the Resume save had
failed and rolled back to paused, so the ask sat in turning-on until
the Cloud timed it out. It now answers failed with reason "paused"
straight away, the state the computer is actually in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Team bots: a level per person (view, chat, edit), shared from each bot

A team bot is now shared like a document: what everyone in the team gets
(Only people added, or Everyone at Can view, Can chat or Can edit) and a
level for each person added. Admins and the bot's owner always edit.

- The bot's Share button (bot panel in Simple, settings header in
  Advanced) opens a Share dialog on a team: people with access with their
  level, adding teammates by name or email, general access; every change
  applies at once with an Undo toast.
- The server enforces it on every member request after the visibility
  gate: reads need Can view, writes Can chat (a room needs it on every
  bot), sharing and a bot's own setup Can edit; a routine needs Can edit
  unless its writer changes it; a card that changes the bot needs Can
  edit; a message another app relays needs the named person to chat.
- Each copy of a bot carries the viewer's own level; the sharing only on
  an editor's. The live stream follows a change.
- Bots set up before levels keep exactly what their visibility gave
  (everyone: Everyone, Can chat; admins only: Only people added; a list:
  those people, Can chat), read from it with nothing rewritten.
- A person who can only view sees that in place of the composer, opens
  the bot's main chat, and is offered no new conversation.

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

* Team bot access: before and after pictures

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

* Share dialog test: a whole bot

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

* fix(context): the unseen-messages block ends before the person's message

When a resumed session has missed messages, the turn's prompt lists them
in a block and then gives the person's new message after one blank line,
with nothing saying the block is over. In a Team trial the person's next
request, written right after a co-founder's relayed reply, was credited
to the co-founder.

The block now ends with "[End of those messages. Now reply to the user's
latest message:]" before the turn's own text, as the full replay already
ends its history with "[Now reply to the user's latest message:]". The
wording differs from the replay's, so nothing that looks for the replay's
end mistakes this block for replayed history.

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

* The owner is never told to ask an admin: connection lines know the person's role

On a Team Cloud, a member's own bridge that asked for a team app's connection card got
"ask an admin to connect it", whatever the person's role. The owner was told to ask an
admin, and a bot named a teammate who wasn't one as the admin.

- For the Owner or an Admin, the bot asks for the card through the team's composio
  bridge, whose card lets them connect the app for the whole team in one tap.
- A User is told who can connect it, by name: the team's Owner and Admins from the
  roster the Admin paired here.
- "Connect your <app> here" links go where each person's own connections are: the
  team's Apps page for the Owner and Admins, a User's team home otherwise.

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

* fix(research): offer the research tools only where research works

A Cloud home always holds the plan's X relay token, so every bot was
offered research_search, research_endpoint and research_call. On a plan
whose relay has research off, each call then answered only "Research
isn't available right now."

- The home asks the relay once, at start, with a search that names no
  job: the relay answers that with a 400 only once the token, the plan
  and research are all fine, before it reads its catalog or spends
  anything. An off answer (402, 404, 401, or 503 service_unavailable)
  hides the three research tools; x_search stays, since X works
  without research. It asks again an hour after an off answer, and a
  research call the relay refuses as off hides them at once.
- The person's own treg key goes straight to treg: research is on.
- A refusal because research is off now says what to do: tell the
  person and offer another way (web search or the browser); their own
  treg key turns research on.
- The agents server gets a switch of its own for the research tools
  (OMB_RESEARCH) beside the X one.

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

* fix(chat): a person's message never waits behind a long tool call

A message the person sends their bot while it works is steered into the
running turn, and an engine reads it only once the tool call it is in
returns. A bot polling CI with `sleep 30` loops kept a person's message
unread for 26 minutes and never said the PR it had made existed.

- Mechanism: when the person's own one-to-one message waits unread
  while a tool call has run for a minute (at once if the call had
  already run that long), the server stops the turn, with a row saying
  so, and the message runs next, ahead of anything else queued in that
  chat. Its row is run as is (the follow-up queue can now take a row
  already in the transcript), and the model is told which step was
  stopped. Messages from rooms, routines, teammates and apps never do
  this, nor does one sent while the turn waits on the person or a
  computer. The wait is OMB_PERSON_FIRST_MS for tests.
- Prompt: never wait inside a command for CI, a deploy or another job;
  check once, say what you made (with links), set wait_until or a
  one-time trigger to check back, and end the turn; answer the person
  first.

Stopping and re-running works for every engine, and so does every
engine's Stop. No engine reads a steered message during a tool call,
some cannot steer at all, and Claude's own "send now" depends on moving
the tool to the background, which bots run without.

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

* fix(chat): the person's re-run keeps its place and goes ahead of a teammate's

The re-run of a steered message that a long tool call kept unread is now
queued by the time the person sent it, ahead of everything but their own
earlier messages, and a message of theirs that has to wait in the queue
goes ahead of a teammate's or a routine's too. Before, the re-run took
the time it was queued again, so on a slow runner it no longer joined the
person's next message as one turn.

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

* fix(connectors): app tool calls fit their schema, and a refusal says how to call again

Composio checks a call's arguments against the tool's schema and refuses
the whole call over one. In a Team trial five calls failed that way:
COMPOSIO_SEARCH_TOOLS sent { job } (Required at "queries"),
COMPOSIO_REMOTE_WORKBENCH sent code for code_to_execute and a timeout as
text, and COMPOSIO_MULTI_EXECUTE_TOOL sent its tools list as text. After
the search failed, the bot told the person it had no image tool, though
an image app was connected.

- The connector bridge keeps each listed tool's schema and fits a call
  to it where the bot plainly meant that shape: arguments or a list
  written as text, a number or yes/no written as text, a bare string or
  strings where a list of one-field objects goes, and one missing
  required field under another name when exactly one sent field can be
  it. The bot is told how its arguments were read, so it sends that
  shape next time. Anything not plainly meant still reaches the tool.
- A call still refused over its arguments now says how to call again,
  with a minimal example from the schema (or to read the schema with
  COMPOSIO_GET_TOOL_SCHEMAS for an app tool), that this says nothing
  about which apps or tools exist, and which connected apps this bot can
  use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give main's bot-patch route tests the access level the route now asks for

Two tests that came with main (vpsAlias relocation guard, phoneApps) built the route without
`levelOf`, so they threw "deps.levelOf is not a function". They now answer "chat", a member's
level that still may not move a bot or change what it may do; both refusals hold as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(claude): a bot's hooks fire from inside the bot box

The hook helper Claude Code runs for each hook reads the turn's bearer
from a file in the data folder, which the bot box replaces with an
empty folder. On every Cloud home the helper found no token and quietly
did nothing: no hint for a timed-out command, no work summaries, no
context at session start.

- The token lives in a folder of its own per conversation
  (hook-tokens/<digest>/token), and the box puts that folder back
  read-only: only that conversation's token, never the data folder or
  another conversation's token. The folder, not the file, so the box
  sees each turn's new token after it is renamed over the old one.

Tests: a Claude turn under a stand-in box that hides the token unless a
mount line puts it back fires its PostToolUse and Stop hooks with the
turn's bearer, and the box shows only that conversation's token folder,
read-only. It fails with the bind removed (no hook fires), with the file
bound instead of its folder, and with the old shared folder (another
conversation's token shows).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* MCP Settings Test reaches a server the way bots do, through the credential broker

Where bots' turns are boxed, a turn's engine reaches a URL MCP server through the
credential broker, which adds the server's headers and forwards. The Settings Test
connected directly, so a server behind Cloudflare Access tested "Connected" while
every bot failed (the broker added a slash to the server's address).

- The Test now makes a grant the way a turn gets one, connects through the broker's
  socket, and revokes the grant when it ends. Where turns aren't boxed, bots and the
  Test both still go direct.
- If the server fails through the broker but answers directly, the Test says
  "Your bots can't reach this server" with the reason and that the fault is on our
  side, never "Connected".
- A server the broker can't reach reads as unreachable, as a direct test does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A new MCP server saved switched off says so, its switch can't flip it straight back, and a server that failed at engine start reconnects

- A new or edited server whose first test fails reads "Saved, but off: the test
  failed", with the reason and that bots can use it once it's on. While that test
  runs, the row says it's off until it passes.
- A passing test after a save switches the server on by itself. A click on its
  switch in the next moment was aimed at the Off the person saw, so it keeps the
  server on ("it passed its test a moment ago") instead of switching it straight
  back off, which looked like a one-second on/off.
- Where bots reach URL servers through the credential broker, a server the engine
  reported as failed when it started gets the conversation a new grant on its next
  turn, so the engine starts again and reconnects. The chat says the server didn't
  connect and that it connects again on the next message, so bots no longer need to
  ask for a new chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Renderer smoke: a saved server whose first test fails reads "Saved, but off"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the reconnect import on its own line, apart from other open changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A connected app comes before any browser or screen, and a refused one is reported with its fix

Bots were told to do web work on the person's own computer in this order: the built-in
browser, a cloud computer, then a connected app. A connected app does a task more cheaply
and surely than any screen, and one that is refused or broken is the person's to fix.

- The order now starts with a connected app that does the task.
- Wherever a browser or a screen is mounted (a Cloud home too), bots are told to use a
  connected app first, and when it is refused or fails, to say so in one plain line with
  what fixes it and ask before doing the task on a screen instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bug reports: the reporter sees their @devs report's status, and is told once when the fix runs here

- The person's @devs message shows its report's status in the app's language:
  "Bug report sent · Got it, we're looking", then "Fixed in 0.1.x, coming in
  your next update", then "Fixed in 0.1.x" (bugReport on the message; all 17
  language packs).
- The server follows each report it sent (devs-reports.json) and asks the
  MausBot team about the open ones a minute after each start and hourly:
  POST /api/bug-reports/status at the address reports go to, the same way on
  the desktop and on a Cloud, which signs its question with its bootstrap
  secret. Nothing ever has to reach this server, or wake a sleeping Cloud.
- Once it runs the fix's release (versionAtLeast: never on a guess) and the
  answer allows it (never a former customer's Cloud, never a teammate who
  left), one line in the chat they reported in, "Fixed in 0.1.x. Want to try
  again?", one notification (on a Team Cloud only to the reporter), and a
  one-time note on the bot's next turn there. Once per report, across restarts.
- OMB_DEVS_STATUS_MS sets the interval for fixtures (control-omb passes it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Just do it never interrupts the person, and questions never go stale

At Full access ("Just do it") a question from work a bot handed on goes to
the bot that handed it on, which answers it from what it knows; with no
answer the asker goes on with the default it named and says so in one
line. Its card says who picked what and blocks nothing. Only a sign-in,
a payment, a secret or the person's own account reaches the person,
once, while the rest of the work moves on. An ask tool in handed-on or
unwatched work is answered the same way, and the prompts say to find
things out the cheapest way first and ask the person last.

On "Ask me first" a question waits for the person however long they
take. An answer counts from the card, the inbox, the asking bot's own
chat, or passed on by another bot (coordinate_bots answers). A question
whose work ended, or that a newer one replaced, closes; a sign-in wait
in handed-on work settles from the person's line, an answer passed on,
or the bot going on with the site; a restart posts nothing again. Rooms
and a bot's own chat get the same tap cards, and prompts name Claude's
question tool as mcp__ogb__ask_user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Just do it decides only in work the person or their routine started

A question in work a webhook or another outside event started still goes
to the person at Full access, as an ask tool there does: its brief is not
the person's authority, and the question is their check on it. The Just
do it line stays out of those turns' prompts too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep steering and late answers in the person's own chat as they were

A line the person types in their own chat while a question card waits
is still steered into the turn or queued, as an engine that can steer
expects; only in work a teammate handed on does it answer the card. A
question its turn left open keeps waiting for a late answer after other
lines. Two peer-question notification tests now run on "Ask me first",
where a teammate's question is still the person's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Warm summaries: a long conversation is summarized while it sits idle, so the next answer starts fast

On a Team trial every first answer slower than 35 s (35 to 58 s) was Claude Code
compacting a conversation of about 162k tokens at the start of the person's turn,
warm cache or not: writing the summary is what takes the time. Both kinds of
compaction ran only when the next turn started, on the person's time.

- After a turn that leaves a direct conversation at 100k tokens or more, its
  summary is written about 3 minutes later, while the prompt cache is still warm;
  from 80% of Claude Code's own compaction point (160k of 200k) it starts after
  about 10 s, because the next turn would summarize anyway.
- Claude Code: its own /compact, with instructions to keep the person's latest
  requests and every open question, on a persisted fork of the session
  (--resume S --fork-session) launched with the live process's exact contract,
  as the keep-warm ping is, so it reads the cached prompt start and keeps the
  conversation's tool list. The conversation moves to the fork only when no turn
  began meanwhile; its last two exchanges count as not yet seen, so the next turn
  carries them word for word on the existing, saved "not seen yet" path. The chat
  shows one line for it.
- Other engines: OpenMausBot's own fold runs while idle once the conversation is
  close to its threshold, instead of at the next turn.
- Skipped while work is due (a queued message, a teammate working on this
  conversation's request, a fired wait, the spend limit); retried while the bot is
  busy, memory is short or a routine of the bot is due, until the cache would be
  cold. A turn that starts meanwhile wins, unless it would summarize at its start
  anyway: then it waits for the summary already being written instead of a second.
- The app's presence ping names the open chat: opening a conversation starts an
  overdue summary at once and keeps its engine process alive while the person is
  there.
- Off with context.autoCompact: false, or OMB_WARM_SUMMARY=0 for this alone.

The fake Claude Code gains a growing context, its own compaction at a threshold
with a duration, and /compact on a fork. On a long fake conversation whose CLI
compaction takes 6 s, the next reply took 6.2 s before and 0.3 s after; one sent
while the needed summary was being written took 5.4 s (the rest of it, not a
second one); one sent during a summary it did not need, under 0.5 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* People before bots: a shared @name reaches the person, a bot named like a person is warned, deleting a Chief offers Archive

On a Team trial a person's "@<teammate>" reached a bot that had the teammate's name, because a tie
went to the bot. Then the person deleted their Chief to fix it, and lost its whole setup chat.

- A tag a person and a bot share is the person's: "@Bob" reaches the teammate Bob (or means the
  writer, for their own name), and only a longer bot name ("@Bob Bot") reaches a bot. The
  teammate's inbox gets it, the turn no longer tells the bot it was named, and the composer
  highlights it as the person (shared/person-mention.ts, src/lib/mentions.ts).
- A bot made or renamed with a person's name (a teammate's, or the owner's own) says so once in
  its own chat, and the Chief's create_bot result carries the same warning
  (server/host/bot-name-clash.ts). Nothing is refused.
- Deleting a Chief of Staff offers "Archive instead" first: its chats hold the team's setup.
  Archiving drops the Chief role, so the server accepts it, and the bot can be restored any time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Make a server of your own your bots' home, as My Cloud is

A person with bots on this computer and on their own server had two places whose
bots could not work together, and bringing them together meant a backup export and
import by hand. Now a server of their own offers "Make <server> my home" on its
circle: one tap moves this computer's bots, chats, memory, skills, logins, apps and
keys, and routines there with the same one-time move My Cloud uses (copy, quiet
moment, freeze, final pass, check, switch), its "needs you / Try again" line
included. This computer then stops for good, so no routine runs twice, and it works
for that server by itself as it does for My Cloud: no access dialog, only the menu
bar item and Pause.

Only for a server that is the person's alone: an admin session where the sign-in
list names no members and no other admin, never a Cloud, a team's Cloud or a hosted
workspace. Such a server says so on /api/auth/session (`own`), takes the move's
routes from that session, and turns lending on once a move arrived. Any other server
keeps today's explicit "Share this computer?" flow. Connected apps through MausBot's
service stay on this computer when the server has no such service, so the move's
check still passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bots in two places: one plain suggestion to bring them together

When this computer has bots of its own while a server of the person's own (or My
Cloud they keep this computer's bots away from) has bots too, the bots in the two
places can't work together. This computer's page now says so once, in a corner
card: "Your bots live in two places, so they can't work together. Bring them
together on <place>?" One tap starts the one-time move there (Make <server> my
home, or letting this computer's bots move to My Cloud), and Not now is
remembered for that place.

Main reads each place's own move summary, so only bots a move would carry count
and a place's untouched first bot never makes two places. A server is asked only
while it says it is the person's alone, a sleeping Cloud never, a team's Cloud or a
server others sign in to never. Nothing shows while a move is under way, during
the welcome or the tour, or on any page but this computer's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bots say where another bot lives, and how to bring them together

A bot that asked for a teammate living in the person's other place (their computer,
their own server or My Cloud) only heard that no such bot exists. The person's app
now tells each of their own places the names of the bots their other places have,
and nothing more (PUT /api/places/elsewhere, from that place's owner only, never a
team's place or one others sign in to). With that:

- coordinate_bots and bot_idle waits say "Scout lives on Work laptop, the person's
  computer, not here", that bots work together only within one place, and offer the
  one tap that brings them together ("Make Garage server my home", or Bring them
  together for My Cloud); a name nowhere stays no such bot;
- a person's @mention of such a bot tells the answering bot where it lives, and in a
  room one plain line says so to the person;
- before the app said anything, a name nowhere here also says that bots work
  together only within one place, and how to bring them together.

Main tells each place only when what it would be told changed, never while a move is
under way, and stops telling this computer once its bots moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Server lines in the person's language: the way in, a guard, and bug report lines

Lines the server writes for a person (a bot's line, a status row, a card, a notification) now
come from the language packs under "server." keys, in the language the person's app shows.

- server/server-lines.ts: serverLine(language, key, params) reads the packs; a missing key reads
  in English, as the app's screens do. The server bundle keeps only the server keys
  (scripts/server-locale-plugin.mjs), and tsc's copies of the packs are dropped from dist-server.
- server/host/person-languages.ts: the app keeps a person's language pick on their own computer,
  so the server learns it from presence pings (the owner's, or each member's on a Team Cloud).
  A line for a person reads in theirs, else in the place's: the one set on the server or by the
  team's Admin, else the one most people's apps show.
- Bug report lines (@devs) read in the reporter's language; the marker that tells whether the bot
  already passed a failure on is "MausBot", which every language keeps.
- src/locales/server-lines.test.ts: a guard that fails on an English line written straight into a
  line a person reads. It follows each place a line is made through consts, helpers and imports;
  ALLOWED says why text is English on purpose; PENDING lists the 242 lines written before it, by
  area, and only shrinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Only the tests of other languages' lines read the packs; CI selection knows it

CI's import-graph checks failed: the server now loads the language packs, and every server test
reaching server-lines.ts counted as reading a translation.

- server/server-lines.ts reads English only. server/server-line-packs.ts adds the other languages;
  server/index.ts loads it at start, and so do the tests that check a line in another language.
  The guard checks index.ts loads it.
- scripts/ci-scope.mjs: those tests run with the locale tests. The packs stay out of
  SRC_OUTSIDE_RENDERER: a change to English already runs every Linux test, and one to another
  language runs every test that reads it, so a translation change does not run the server's checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Runs and routines tell the person in their language

A routine's line in a chat and the incident a person hears about now read in the language of the
person whose conversation it is, through server/server-lines.ts.

- "This run didn't finish: …" and "Recovered: … finished OK at …" (with the time in that
  language's clock), written into the chat a routine reports to.
- The text of a routine run's card, for clients that show no cards.
- The incident status row and its notification. The Chief's own incident report stays English:
  only a model reads it.
- server/index.ts: threadLanguage(threadId), the language of a conversation's person, else the
  place's; no line added.
- The guard's PENDING drops these 17 lines. The German tests run with the locale tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Connect prompts and sign-ins ask in the person's language

When a bot needs the person to connect an app, sign in or give a key, what the server writes now
reads in the language of the person whose conversation it is.

- "I need you to connect …", "I need you to sign in to …" and "I need your …", which a
  routine writes into its chat while it waits on a card.
- The connect card's text and, where the app catalog has no words of its own, its description.
- The line under a sign-in card. It moves from shared/ to server/connector-card-text.ts, since
  shared code cannot read the packs; nothing else used it.
- The credential card's text and the sentence on how the bot gets the key.
- The guard's PENDING drops this area's 13 lines. The German tests run with the locale tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Notifications are titled in the person's language

Every notification's title ("… has a question", "…'s routine failed", "… needs you to sign in
to …") now reads in the language of the conversation's person: buildNotification asks a resolver
the server sets at start (setNotificationLanguage(threadLanguage)), so no caller changes. Also the
inbox's "· your assistant answered" and two bodies the server writes itself ("Results in from
…", "Open OpenMausBot to sign in to …").

The guard's PENDING drops the area's 8 lines, and checks the server sets the resolver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A room's status rows read in its person's language

What a group chat shows about its members now reads in the language of its conversation's person:
waiting for a busy member and the skips, a mention that missed, archived members, still stopping,
held members, no summary, a stalled turn, context compaction, and a bot's receipt in its own chat
("Posted in …", "Opened thread #…"). What a coordinating bot reads stays English.

- server/server-lines.ts: isServerLine(key, text) reads a line back in any language;
  isHeldMemberLine uses it, and the held row keeps "resume", the word the room understands.
- The sentinel counts a German stopped room turn as a timeout, and now also skips a held member's
  row in the shape it reads rows in (a harness notice with names taken out). The openmausbot CLI,
  which runs it, loads the other languages.
- The guard's PENDING drops 20 room lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(team connections): an owner's own-connection lines are checked in her private chat and in a shared one

An own bridge only works in the person's private chat now, so the
"connect your apps again" check runs there; the connect lines are checked
in both places, including an app call through the team's tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Teammates' hand-offs and results read in the person's language

What a conversation shows about a teammate's work now reads in the language of that conversation's
person: a hand-off going out ("Sent to …"), its result coming back ("… replied", "… — failed:",
"Result withheld:"), resuming with results or a question, what came of a teammate's question or
approval, what waits behind the person, recalled private chats, a closed thread, a room goal's card,
"Answer passed to the waiting work", and the inbox's and team messages' rows.

- server/server-lines.ts: one resolver, conversationLanguage(threadId), which the server sets at
  start; notifications use it too (it replaces setNotificationLanguage), so modules with no person
  at hand need no new wiring.
- What a coordinating bot reads stays English.
- The guard's PENDING drops 19 lines; the area keeps feature-flagged escalations, approval level
  names, the peer approval card and a goal's text after a restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Just do it: a question in a person's private chat stays theirs

Work a person's request hands on runs in the receiving bot's chat with
them when it may use their own apps, and what it hands back keeps a
question's words in that chat. Its requester never sees them, so it
cannot decide them, and a sign-in among them could not be told apart.
Such a question now reaches the person there, as on "Ask me first": the
turn result says the question stayed private, and the ask tool is not
turned away in that chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(acting person): read the private question flag with toMatchObject

The hand-back keeps its input's type, which has no privateQuestion field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(remote sessions): a server nobody else signs in to says before pairing that it takes its owner's move

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(analytics): the two-places card's event

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(warm summary): the engine registry answers null for a missing engine

registry.get returns ProviderInstance | null; the host's dependency took only
undefined, which failed typecheck once the branch was checked against main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(warm summary): its line in the chat comes from the language packs

The line a warm summary leaves in the conversation is now server.warmSummary.summarized,
in every pack, written in the language of the conversation's person, as the guard from
#3931 asks of every line a person reads. It names no count, so it needs no plural forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Main's guard passes: the same-request notice in the person's language

Main went red on the server-lines guard: #3957's "Another teammate asked the same a moment ago…"
row landed while #3931's guard was in review, and #3948 reworded a line the guard lists.

- The notice reads in the language of the conversation's person (server.teammates.sameRequest,
  German by hand, every pack).
- PENDING follows #3948's rewording of the webhook line.
- The guard's check that index.ts loads the other languages matches that import anywhere on its
  line (as #3960 has it), so another import may follow it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Teammates: the recall row reads in its room's language after main's discloseRecall

Main moved this row into discloseRecall(bot, roomThreadId, …), where threadId is not in scope, so
the merged branch failed typecheck. The row is the room's: it now asks for roomThreadId's language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(bots explain): the one-place hint comes before the reach help, so a refusal still ends with it

server/room-coordination.e2e.test.ts pins that a refusal for a name nobody has ends with the reach help (and its
"Never use computer control to get around this"). The hint now sits just before it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* train: the cards a parked turn waits on move to server/host/resumable-cards.ts

resumableCards is a pure read of the conversation; moving it out keeps
server/index.ts under its file-size ratchet once #3930 lands with main
(the fix #3930's branch made when it merged main, ported here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* train: the MCP reconnect, bot name clash and bug-fixed lines come from the language packs

#3922, #3934 and #3937 were written before main's server-lines guard, which
fails on their three English lines once they meet it. Each line is now a
"server." key (English and German) written with serverLine in the language of
the conversation or reporter: server.mcp.reconnect.one/many (server names
listed the reader's way), server.bots.nameClash (create_bot's result stays
English for the model) and server.reports.fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* train: the bot archive/delete dialog's props move beside botConfirmCopy

#3934's Archive-instead offer grew src/components/Sidebar.tsx past the size the
0.1.135 release set (1790 against 1785). botConfirmProps in ArchivedBotsPanel.tsx
now builds the dialog (copy, icon, Archive instead for a Chief, confirm); the
sidebar keeps the ConfirmDialog and its callbacks, and is 1774 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Both sides declared a new host helper after the visibility host:
this branch's notificationListed and main's botAccess. Keep both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Import union only: main's devsStatusAsker and keptPrivate alongside
this branch's createTurnCallSignals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* What's new popup: the new MausBot Cloud and Team's shared bots, once per person, each button tagged for the Cloud's funnel

A centered carousel after an install or an update, on this computer's page:

- No Cloud plan: "Meet the new MausBot Cloud" (the Cloud website's Home, light or
  dark) with Get Pro (the app's own Add a Cloud, source app_whats_new_pro) and
  See the new Cloud (cloud.openmausbot.com/cloud?src=app_whats_new_pro), then
  "Shared bots for your whole team" with Start a Team
  (/pro/buy?plan=team&src=app_whats_new_team).
- A Cloud plan of one's own: the Team slide alone; Start a Team opens the
  app's Add a Cloud with app_whats_new_team, which now goes with the added
  Cloud's checkout.
- In a team, a payment being linked or needing attention, a checkout open, or
  a sign-in that can't be checked: nothing.

Next, Back, dots and the arrow keys; prices from the Admin's offer; the Team
picture is drawn in the skin's tokens with the app's own mascots and moves
only when motion is allowed. Once per person per campaign id (whats-new-2026-11),
never during the welcome, the tour, a turn or another dialog, never on a
branded build or an organization's desktop.

The notice queue shows one notice a launch: the first one shown takes the
launch for the window's session, and only the product-updates question may
follow it. What's new comes before Boat's credit offer, which waits for the
next launch. NOTICES is the one ordered list.

The earlier Cloud Pro popup goes with its email tie ($identify) and the
desktop's per-day "shown" record; a first run no longer settles the popup,
so everyone who installs sees it once. whats_new counts each slide seen and
each step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* What's new: the Team slide says you choose who can see, chat with or edit each bot

Per-bot team access is on main now, so the Team slide lists it with the
other shared pieces, one point per line. Screenshots retaken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The clash notice read the conversation's language for every bot made, also
the default bot the server makes while it starts, before what that lookup
reads exists ("Cannot access 'routines' before initialization" in the
store's change listener). Five e2e tests check the server log for exactly
that: team-setup, chief-level-every-hop, room-recovery, team-lifecycle and
full-access-workflows. The language is now read only when a person here goes
by the bot's name.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
* Window frame: tests for a page beside the rail that doesn't draw the frame

An older release's page (a Cloud not yet updated) never draws the frame's top
bar, but the window still puts the traffic lights in that bar and starts the
rail's places under it. These tests describe the window that page should get:
the lights back where its release left room for them, and the rail's places
under them. They fail until the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Window frame: the traffic lights move into the bar only beside a page that draws it

Each document beside the rail now says when it draws the frame
(rail:draws-frame, from WindowFrameBar). Main moves the macOS traffic lights
into the top bar for that document and tells the rail's page, which starts its
places under the bar. A document that never says so, such as My Cloud on an
older release, gets its old window back after the same few seconds of grace the
rail's hide button has: the lights at (16,16) where that release left room,
and the rail's places under them. The window still opens framed, so this
app's own page shows no jump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Security: better-auth 1.7.7 and happy-dom 21.0.4

better-auth 1.7.1 -> 1.7.7 in the control plane (GHSA-965c-763c-88jm /
CVE-2026-114607: OAuth state accepted as a Magic Link token) and
happy-dom ^20.14.5 -> ^21.0.4 for tests (GHSA-834v-8h66-3h79 /
CVE-2026-115895: unvalidated ESM import aliases ran code on the host).
The lockfile is regenerated with pnpm against registry.npmjs.org.

Better Auth 1.7.3+ validates the schema as each auth instance starts and
makes auth requests wait on it. The control plane makes an instance per
request, so that is one more D1 round trip per request; turn it off,
since the pinned migrations fix the schema.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Control plane: drop the account.issuer column Better Auth 1.7.3+ never writes

0001 created account.issuer NOT NULL with a unique index for Better Auth
1.7.1. From 1.7.3 Better Auth restored the 1.6 account schema and never
writes issuer, so every new account row would be refused. 0011 applies
Better Auth's SQLite cleanup from its 1.7 upgrade guide: drop the index,
then the column. A test writes an account row on the migrated schema.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The desktop rail of places is its own view over the window's left 36px, and the page makes room with padding-left on
<html> (electron/preload.cjs, with --rail-beside). Fixed elements ignore that padding, so the notice cards (Boat offer,
trial and account notices), the notice toast, the Cloud setup card, the update card and the sidebar's toast, all at
left 16px, had their left 20px under the rail. The shared-workspace hint (inset-x-3) did too.

Each now adds --rail-beside to its left offset (and to its max width), as the frame's top bar already does. Without
the rail the variable is unset, so browsers and Linux are unchanged.

A guard test fails on any fixed element pinned to the left edge that doesn't add --rail-beside; checked by putting the
old NoticeCard classes back (it fails on both).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(kimi): install and sign in to Kimi from Settings, on a Cloud with no terminal

On MausBot Cloud, Settings showed Kimi as not installed with only a
`curl | bash` command to copy, and after an install it asked for
`kimi login` in a terminal. A Cloud has no terminal, so Kimi could not be
set up there.

- Install: EngineInstall.npmPackage names Moonshot's npm package
  (@moonshot-ai/kimi-code). Settings installs it into the app's own folder
  when the server has npm; a terminal keeps Moonshot's own command.
- Sign-in: the Kimi driver gets a DeviceSignIn (`kimi login`). Settings
  shows Kimi's code and a kimi.com or kimi.ai link, follows the new code
  Kimi prints when one expires, and confirms the login. The link keeps no
  query value except a user_code equal to the code.
- Signed-in check: Kimi saves a kimi.ai login (the region it picks outside
  China) as credentials/kimi-code-env-<hash>.json, not kimi-code.json.
  Both count now, a revoked token file does not, and a Team Cloud's
  per-person engine homes get the kimi.ai file too.

Checked on a Cloud home from source with the real kimi-code 2.4.1 and a
free kimi.ai account: install, restart, sign-in, and a turn that reached
Kimi's API (refused with Kimi's own 403 for an account with no Kimi Code
membership).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(pr): screenshots for installing and signing in to Kimi on a Cloud

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Preferences… and Cmd+, did nothing while the desktop app showed a server
other than this computer or My Cloud's home page, such as one reached over a
Cloudflare tunnel. The preload exposed onOpenAppSettings only to the local
page and My Cloud's home page, so a remote page's window.ogb lacked it and
App.tsx's optional subscription never ran.

onOpenAppSettings is receive-only, and the preload already passes on only its
fixed section names, so it moves into REMOTE_SAFE. Host files, logs and
diagnostics stay home-page only.

Fixes #3844

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A tool that prints nothing while it runs, such as a long run_command on a
shared Mac or a quiet Codex shell command, sends no events between its start
and its end, so the room stopped the turn at its no-progress limit (5 minutes
by default). While a tool runs, the turn may now stay quiet for up to 60
minutes, the longest an MCP call can be set to take, or the room's limit if
that is longer. A turn with no tool running still stops at the room's limit.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(panels): a pinned page that refuses to be framed says so, with Open in browser

Chrome fires load on a frame it refused (X-Frame-Options or CSP
frame-ancestors), and the parent page can't tell that frame from a
working one, so the panel's fallback never showed: the panel stayed
blank with Chrome's broken-page icon.

The panel still frames the page at once, and asks the server whether
the page lets the app frame it. The server reads only the page's
headers, the way browsers read them, through the guarded public-page
fetch that waits use (now fetchPublicPage): public addresses only,
pinned for the request. It follows no redirect and reads no error
answer, because that request carries none of the person's cookies.
Anything it can't be sure of reads as unknown and keeps the frame.

Fixes #3873

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(pr): screenshots for a pinned page that refuses to be framed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A grant saved before lending was automatic lost its terminal at the first
start of an automatic-lending build. Now, when every grant of one account
lent the terminal and nobody said no to lending, the menu's "Let Clouds run
commands" switch starts on for that account and no other.

ask_for_computer looked the bot up by its own task for the turn's thread.
A room turn runs on the room's thread, so a room bot got "This bot no longer
exists." It now resolves a member of the room as well.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A shared-computer run_command stopped at its timeout_seconds (or at the
256 KB output cap) now returns what it printed so far, marked as an
error with a "stopped" sentence, instead of only "Command timed out".

A bot may ask a lent computer for up to 900 seconds. The desktop says
longCommands only to a server that advertises it; a server never asks an
older desktop for more than 240. The agents bridge talks to the harness
over node:http, so a reply past fetch's 300-second header wait arrives,
and Codex and Pi wait 960 seconds for an agents tool call.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Cause: the Cursor engine read its catalog from `cursor-agent models`. On
CLI 2026.10.22 that command prints only `auto`, so the picker stayed at
the 5 static models while `session/new` advertises 32 that
`session/set_model` accepts. One static entry,
`claude-sonnet-5-thinking-high`, is not offered at all.

Change: the catalog now comes from an ACP session first. Discovery sends
`initialize` (with the same parameterizedModelPicker flag a turn session
sends) and `session/new` in an empty folder, then stops: no prompt and no
set_model. Each advertised model shows once under its plain slug
(`grok-4.7[...]` as `grok-4.7`, `default[]` as `auto`), the namespace
`--model`, saved bots and the existing set_model mapping already use. A
static entry stays only when the session offers its model. When no
session opens, `cursor-agent models` and then the static list answer as
before.

Fixes #3894

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
An HTTP session's term only ever ends at its absolute cap today; the
last-seen tracking never revoked it. Sessions now end when nobody has
used them for OMB_SESSION_IDLE_DAYS (default: the session term, so
existing behavior is unchanged), closing a stolen-cookie window without
touching rarely-used paired devices.
- A bot has one Claude Code settings file: .claude/settings.json in its
  working folder, else in its own folder. A turn in any other folder (a
  thread's own, a room's, one chosen for the thread) carries its hooks,
  plugins, permission rules and env in OpenMausBot's --settings file, merged
  the way Claude Code merges two sources. Fields Claude Code would refuse stay
  behind, since one of them makes it drop the whole file, OpenMausBot's own
  settings included. Never in a guest's turn, never through a link.
- A thread still in its own folder moves to the bot's working folder on its
  next turn, as a new engine session with the conversation replayed.
- create_bot takes instructions up to 4000 characters, and a longer one gets
  an error that says what to do.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
When a Chief handed a teammate work and the teammate ended on a question, the
Chief's reply through coordinate_bots in a later turn started a new job in the
teammate's thread. The parked job kept waiting, its question unanswered, and
the Chief never got its result. A correction sent while the teammate worked
also only queued behind the running job, and the Chief could only send to its
standing thread or a new one.

One rule now, the same on the desktop and on a Cloud: what the bot that handed
work on sends to the thread that work runs in goes into that work.

- Work parked on a question (NEEDS INPUT, or a question card its turn waits on)
  is answered by the requester's message to that thread, in any later turn and
  without `answers`; it runs on with `@Clive answered: "…"` and reports once to
  the turn that handed it out. A sign-in or another card only the person can act
  on is never settled this way.
- Work still running gets the message in its running turn, read at its next step
  as a person's line sent mid-turn is (the loop guard's steer pair, now shared).
  It shows in that thread as the requester's (peerAsk, aside) and "Sent to …" in
  the requester's chat; the work's one result still comes back once. Only when
  the engine cannot take a message mid-turn does it run next as new work.
- Work handed out in the sending turn itself stays its own job, so two
  assignments in one turn are still two.
- coordinate_bots `thread` also takes the id of a thread the sender opened on
  that teammate (a receipt's threadId, or list_threads); any other id is refused
  with where ids come from. Rework no longer skips the relay.
- The requester's turns list a teammate waiting on a question with the question's
  words, its thread id, and that sending the answer there answers it.

Covered already on main (#3930): the requester is resumed with a teammate's
question at every level, Full access makes it the requester's to decide, and a
parked question no longer expires after 30 minutes.

Tests: server/teammate-follow-ups.e2e.test.ts (one server, scripted engine):
a later reply answers a NEEDS INPUT question and an ask-tool card, a correction
reaches the running turn, a thread id picks the thread and a foreign one is
refused (these five fail on main), and two assignments from one turn stay two
(the guard for the same-turn rule).
server/host/question-routing.test.ts covers the relay's rules; envelope.test.ts
the framing. direct-coordination's "holds a follow-up" case now expects the
follow-up in the running turn (changed deliberately), and so does the relay unit
test that took a same-sender message for new work. The tool catalog goldens are
regenerated and each profile's budget baseline moved by the 114 bytes the
coordinate_bots description and thread parameter add.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* A title bar that says where you are, crisp rail tiles, one frame colour, and a sidebar you drag to its avatars

- Top bar: the place on screen is named in the middle of the window, with
  its mark from the rail, in the secondary ink. The rail's button still
  follows the traffic lights. While an update waits, the right end shows
  a download arrow in the accent (it pulses while it downloads), then
  Settings. Windows keeps 140px for its caption buttons, and the whole
  bar still drags the window.
- Rail tiles: the list of places now spans the rail. It scrolls, so it
  clipped whatever stood outside its own 24px: the selected ring kept
  only its top and bottom, and dots, badges and the progress ring lost
  their sides. The place on screen now gets a pill on the rail's left
  edge, with a short one on hover, and no tile wears a ring. The
  progress ring is a 2px line on whole pixels.
- One frame colour: the top bar, the rail and the sidebar share it, and
  only the chat or page sits in the rounded card, round where the sidebar
  ends. The colour is each skin's own app colour a step darker: 2.5% of
  black on the light skins, 14% on the dark ones. pnpm check:contrast
  now reads color-mix() and measures every ink on the frame.
- Sidebar: the "Collapse to avatars" button and Simple's edge bump are
  gone. Dragging the sidebar's edge narrower than 160px turns it into the
  column of avatars, and dragging it wider opens it at its last width.
  The arrow keys do the same a step at a time, and ⌘\ / Ctrl+\ stays.
  Settings → Sidebar density and the compact density are gone with their
  strings. A saved compact or icons choice opens the sidebar as usual.
- scripts/verify-window-frame.ts photographs the frame, its tiles up
  close and the frame's colours side by side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(verification): pictures of the title bar, the rail's tiles up close, the frame's colours and the sidebar dragged to its avatars

Taken with scripts/verify-window-frame.ts at 1280x800 (2x) against a disposable
fake-engine server and a headless Chrome in a throwaway profile: before on main
at the branch point, after on this branch. Full windows are kept at 1x; the bar
strips and the tile sheets as taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A drag of the sidebar's edge always keeps the width it leaves: one ending as avatars was put back first

The flag that skipped the save was redundant, and the test of This computer's
name now passes main a name of its own, so it fails without the app's words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings → Appearance → Window frame: turn the window's own frame off for the window as it was before

- The switch sits beside "Show your computers" in Simple's General page and
  in Advanced's Appearance. It shows on macOS and Windows only, and it is on
  by default. The choice belongs to this desktop: windowFrame in
  desktop-prefs.json, read when the window is made. Any page of the window
  may read it; a server's page changes it only from the person's click.
- Turning it off brings back the window as it was before the frame: no top
  bar, no card, the sidebar and the rail on the sidebar's colour, and the
  rail's button in the sidebar's top row. The sidebar's edge still drags it
  to its avatars and back.
- macOS changes at once. The page says it draws no frame
  (rail:draws-frame, false), and main moves the traffic lights back to
  16,16 straight away, without waiting out the grace period. The sidebar's
  top row and the rail make room for them again, and the window opens that
  way next time.
- Windows changes on the next start, because a window's title bar is fixed
  when the window is made. With the frame off, Windows draws its own title
  bar and caption buttons, and the page lays out as on Linux. Until the
  restart, the row says "Takes effect when MausBot restarts." with a
  Restart now button where the page may restart the app.
- Four new strings in all 16 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(verification): pictures of the window with its frame on and off, and the Window frame switch on macOS and Windows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The rail's hover pill is decoration, not a hidden action: the touch guard leaves it out

The tile is the tap target and keeps its own focus ring; a pill beside every tile on a touch screen would only be noise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The sidebar and the rail drag the window wherever it has no title bar of its own, read from the window's chrome itself

Tests that stand in for the desktop's capabilities with only the hook and the frame check render the sidebar again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The card's round corners are back, and they read in every skin

- The card rounds its top corners and its bottom-left corner again, 12px,
  now beside the sidebar; its right and bottom edges stay on the window's.
- The frame's step from the app's colour is larger, so the corners show:
  30% on the dark skins (14% left the card's edge hard to see on a near-black
  app colour), 6% on Daylight, Meadow and Pop, and as far as their secondary
  and tertiary inks keep 4.5:1 on the frame on Atelier (3%), Linen (3.5%)
  and Lagoon (4%). Still derived from each skin's own app colour, so it
  stays in the skin's family. The card keeps its hairline.
- pnpm check:contrast now asks the card to stand apart from the frame by
  1.05:1 instead of 1.02:1; the dark skins at 14% fail it.
- The pictures are retaken, with a new sheet of the card's three corners in
  every skin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(verification): the frame-on pictures retaken with the card's round corners

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The sidebar's colour rounds its corner where the rail meets the top bar

In a framed window the sidebar sits on the frame, under the top bar and beside the rail. Its place colour or banner
picture had a square top-left corner there, the one sharp corner left in the frame. It now rounds by 12px, as the card
beside it does. The frame screenshots are retaken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitHub is failing macos-14 jobs on purpose in scheduled brownouts before it
retires the image, and the 0.1.136 Mac job was cancelled by one.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The lent-terminal test timed out at 30 seconds on a fresh Windows CI
runner, where a command's two PowerShells start cold; it passed on the
same commit in the sister run. The wait is now 120 seconds, inside the
step's five-minute cap.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Apple's ticket server dropped the connection during 0.1.136's staple
(stapler error 68) after notarization had already been accepted, which cost
the whole 20-minute Mac job.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix(tests): repair main regressions and flaky fixture assertions

Refresh Settings expectations and the VM no-progress deadline hook. Wait for terminal replies and account startup, and keep timestamps out of the browser secret-text check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(chat): keep the Boat offer out of mobile block smoke

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(talk): expect the own-home move in the desktop busy check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(i18n): localize main notices and scope POSIX lane test

Keep move and shared-answer notices in the recipient's language. Preserve the English copy and remove the stale move-line entry. Run the Linux process-group test only where POSIX signals are available.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: run the cloud-send notice test with the locale tests

It loads the server's German lines, so the Linux selection must run it
when a translation changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(i18n): read the guard's fixture files by POSIX path on Windows

path.relative returns backslashes on Windows, so the guard's own tests
looked up no fixture file and found nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* One-on-one goal: a turn that keeps losing its slot ends blocked at the wait cap

When the chat looks free but startTurn keeps refusing the turn as busy, the
step retried every 250 ms with no deadline and no turn counted, so the run
could spin forever. The lost races now count against the same wait cap a
busy chat has, and past it the run ends blocked with the same message.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* One-on-one goal: the busy wait and the lost-slot retries share one wait cap

A lost slot followed by a chat that turns busy used to start a fresh full wait,
so a step could stay active for many times the cap. The step now sets one
deadline and gives the wait what is left of it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* One-on-one goal tests: the shared cap is still waiting just before it ends, and a chat freed in time starts its turn

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Caleb Arumugam <cdreamer25@icloud.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(updater): a check's error event and rejection count as one failure

routeError already marks the in-flight check failed when the error event
is routed; the check's own rejection then skipped a second routing only
when it was the same Error object. A different object, or a non-Error
value, counted twice toward the quiet-failure notice.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(updater): a quiet check no longer hides the check-failure notice

Every hourly check set the state to checking, which the banner renders
as nothing, so the "Couldn't check for updates" notice disappeared for
the length of each check and came back on failure. A quiet check at or
above the notice threshold now leaves the state alone; a manual retry
still shows checking.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Caleb Arumugam <cdreamer25@icloud.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* MausBot's notification tools refuse on any shared workspace, not only a Team Cloud

The internal list_unread_notifications and mark_notifications_read calls carry no viewer, so the whole notification log
was read and marked read wherever the server was not a Team Cloud. On a workspace shared through sign-in members (or a
hosted portal membership), the app filters the feed per viewer, hiding admin-only bots' threads and spend alerts from a
member; MausBot answered from the unfiltered log and let a member mark finished-work items read in threads they cannot
open. The host's team() predicate is now sharedMembership(), the same question the rest of index.ts asks, so the tools
refuse exactly where the app filters. The refusal text and doc comment say "shared workspace" rather than "team".

The e2e test flips the fixture to a shared workspace with sign-in members and asserts both tools refuse; the unit test
titles and expectations follow the new wording.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* MausBot's notification tools also refuse while a chat-only device is paired

A client-scope pairing reads along as a member without adding a sign-in
member, so the shared-workspace check alone let MausBot list and mark read
notifications the app hides from that device.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Revert "MausBot's notification tools also refuse while a chat-only device is paired"

The guided setup and `serve --phone` pair the owner's own phone with client
scope, so that refusal would switch MausBot's notification reading off for a
one-person install. A chat-only device is only hidden from bots marked
restricted, and the notification tools cannot tell who asked; filtering what
they return per requester is the precise fix, not a workspace-wide refusal.

This reverts commit 0ebac80d0.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Caleb Arumugam <cdreamer25@icloud.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
0.1.136 dropped desktopNotices.shown from the preload (#4000). A Cloud home still on
0.1.135 calls it as its Cloud Pro popup opens (AppNotices.tsx:203, inside an effect),
so the call threw, React unmounted the page, and the window showed only the rail.
Clouds take 0.1.136 only in the 18:00-04:00 UTC window, so every desktop on 0.1.136
with a 0.1.135 Cloud home and the popup still due hits this.

shown() is back as a stub that asks main nothing and resolves false (never "the first
showing today"), so the older page opens its popup and reports nothing.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The rounded card holds the sidebar and the chat again, as the approved frame
design has it: the top bar and the rail of places are the frame around it, and
the sidebar keeps its own panel colour inside the card.

The rail was a shade darker than the bar (Meadow: #E3E4E3 beside #EBEBEB).
It is its own page, 36px wide, so the phone-width ground applied to it: Meadow's
#f6f8f6 instead of white went into the frame colour. At phone widths the frame
now keeps the desktop ground, so the rail and the bar match at any width.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(redact): mask GitLab personal, deploy and runner tokens

* fix(redact): also mask glrtr- runner tokens

---------

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Copilot CLI 1.0.105 confirms Auto without echoing the string "auto", so every Auto turn failed the post-switch check. Only that id opts in; other models and other ACP agents still require the echoed id.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: B Rishabh Rao <262621052+balabommablock-cpu@users.noreply.github.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(browser): compare fnm's PATH link by the Node version it names

The launch-settings key compared PATH verbatim. fnm's `fnm env` hook, which a
person's shell profile runs, puts a per-shell `<pid>_<epoch-ms>` link to the
active Node version on PATH, and the server re-reads the login shell's PATH
whenever it recomputes it (provider instance saved, engine installed, CLI set
up). A browser already connected therefore saw a different key on the next
call and answered "Browser launch settings changed. Close the browser before
reconnecting." although nothing about the browser had changed; only a restart
of the browser, or an idle close, cleared it.

Key each fnm link by the installation it resolves to instead. Two shells that
read the same Node version then compare equal, while a real change is still
refused: another Node version, another launch directory, executable, argument
list, profile, restore key or proxy. Every other PATH entry is compared
exactly as before, duplicates and order included, and the child process keeps
the PATH as it was read; only the comparison is normalized.

Verified with server/browser-runtime.test.ts (93 passed, 1 skipped; the new
fnm tests fail on the unpatched key), oxlint, tsc -b, and a server bundle
build. The full server typecheck reports the same 55 pre-existing JSON-module
errors as the unpatched tag, none in these files.

* fix(browser): match fnm's PATH entry in the form the platform uses

fnm puts the multishell link's `bin` on PATH on Unix and the link itself on
Windows, so the key missed Windows entries and still compared the raw link
names of two shells. Match both forms, split PATH by the delimiter of the
platform being compared, and keep the ordinary entries untouched.

* Move the browser launch key into its own module

browser-runtime.ts grew past 1,000 lines with the fnm PATH comparison, which the
file-size ratchet refuses for an unlisted file. launchSettingsKey and its helpers
now live in server/browser-launch-key.ts; behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Sapun-net <299792271+Sapun-net@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(settings): call the Simple-mode keys row "API keys"

Every hint that sends people there says "Settings → API keys", every
link says "Open API keys", and the Advanced nav item is "API keys", but
the Simple AI page labelled the row "API keys and connections". It now
uses the nav item's label, which is also translated in all 16 language
packs; the old key was translated only in Korean, so the row showed in
English everywhere else. The unused key is removed from en and ko.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(settings): drop the comment that restates the code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* Advanced composer: a message past one line gets the full width above the buttons

In Advanced the field sat between the paperclip, Goal, approval and place chips on
the left and the mic, call and send buttons on the right. A message that took a
second line wrapped in that gap, leaving a block of dead space under the chips.

Once the message has a newline or wraps beside the buttons, the field now moves
to its own full-width line above them: the same layout a narrow composer
(under 30rem) already used. The field goes back beside the buttons only when
the text is shorter than where it first wrapped, so wider text on its own line
cannot flip back and forth. An empty field never moves, even when its
placeholder wraps. Simple's pill and the phone layout are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Composer: move the field's wrap measurements into composer-wrap.ts

Composer.tsx is pinned at 1,013 lines by the file-size ratchet and this
change took it to 1,035. The new wrap measurement (useStackedField) and the
Simple pill's existing height measurement (useTallPill) now live together in
composer-wrap.ts; Composer.tsx drops to 1,005 lines.

One behaviour fix on the way: an empty field now clears the remembered wrap
length, so a wrap measured while the composer was narrower (a panel open)
does not keep stacking every later message at that length.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(settings): say the computer setup hint once

When Boat or a VPS is not set up, the Computer settings cards showed the
setup hint with its "Open API keys" link, then an empty list box that
repeated the same thing ("No VPS is set up yet. Add its SSH alias in
Settings → API keys."). Drop the empty list box in that state; the hint
and link stay, and the screen-reader status still announces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(settings): drop the comments that restate the code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
A lent computer keeps one asks poll open for as long as it is lent, so the home
reported "maintenance" busy the whole time its owner's desktop was on, never
slept and never took an update.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
A throw in any effect unmounted the whole page and left the body's background,
which is what a Cloud page on 0.1.135 showed inside the 0.1.136 desktop.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Every look at the rail asked again while a server had not answered, so a server
that never answers was asked several times a second, each ask waiting two
minutes, for as long as the app ran.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Clouds take a desktop release hours later, and some never, so the desktop's
bridge must still serve the page of the release before it.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix(browser): opt browser panel out of window drag and handle restore clicks (#3995)

When maximized or fullscreen, the browser panel overlays the window top area
where window titlebar drag is defined. Because Electron collects draggable
regions from layout boxes without respecting z-index, clicks on the toolbar
buttons (Restore size, Exit full screen) were intercepted as window drags
rather than reaching the buttons.

Opt [data-browser-transport] out of -webkit-app-region dragging, apply inline
no-drag style to the panel and ChromeRow, and synchronize maximize/fullscreen
transitions on restore and escape.

* test(browser): assert Restore size and full screen transitions (#3995)

Add DOM unit tests verifying that clicking Restore size un-maximizes
the browser panel, full screen toggles and exits cleanly, and
[data-browser-transport] is included in the styles.css drag opt-out rule.

* fix(browser): keep the one no-drag rule in styles.css

The [data-browser-transport] rule already opts the whole browser panel,
toolbar included, out of the window drag region, so the inline
WebkitAppRegion styles on the panel and ChromeRow were a second copy of it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* Composer: stop at 4 images and say which ones weren't attached

The server refuses a message with more than TURN_IMAGE_MAX_COUNT (4)
images, but the composer accepted any number, so a fifth image only
failed at send. The picker, drag and drop and paste now take images up
to the room left in the draft and name the rest in the notice.

A rejected archive now says to unzip it instead of the generic
"choose a supported file" notice.

Closes #3891

* Composer: an oversized image takes no image slot

An image over IMAGE_MAX_BYTES still fails with its own size error, but it
no longer uses up one of the message's image slots, so a valid image
after it is not left out. The file picker, drag and drop and paste share
the same split.

* Composer: keep Composer.tsx at its size pin for the image cap

Composer.tsx is pinned at 1,013 lines by the file-size ratchet, so the
slot counting moves out of it: imageSlotsLeft() and imagesThatFit() live in
composer-attachments next to fitImagesToSlots(), ComposerAttachments counts
the draft's images from its own items, the paste branch drops an always-true
`if (imageFiles.length > 0)` wrapper, and SIMPLE_COMPOSER joins
SIMPLE_CONTROL in composer-simple.ts. Behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
scripts/bench-desktop.ts measures, on isolated fixtures only (temporary
HOME and data folder, the fake engine, a headless Chrome with its own
profile): the production build's first-load JavaScript and which
libraries load eagerly; server spawn to ready from source and as the
packaged bundle with its compile cache; page load to the sidebar and the
last chat drawn; idle CPU, timer and frame callbacks and server work; one
long streamed reply with tool calls (React commits and components per
commit through React's commit hook, on a profiling build; main-thread
time; server frames and file writes); a seeded workspace of 150 bots,
300 threads and a 2,000-message conversation (start-up routes, thread
switch and read-marker writes, conversation switch, wheel scrolling,
memory, idle attribution); and routines.json with a full run history.

pnpm bench:desktop [--only bundle,server,start,idle,stream,big,routines]

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The second half of team bot access, on top of the levels and the Share
dialog already on main.

- Settings → Bot access, for a team's admins: every team bot down the
  side, each User across with their level, the owner marked, and what
  everyone in the team gets as its own column. The same sharing as the
  Share dialog, applied at once with Undo. Each person's own MausBot
  stays out.
- Someone who can only view a bot gets "Ask Ada to chat" beside the
  view-only line (in a room with that bot too). It puts an Allow / Not
  now question card in the owner's inbox, or each admin's when nobody on
  the team owns the bot; asking again while a card waits adds none.
  Allow gives Can chat at once, settles the same card in every other
  inbox and tells the asker in their own inbox; it takes effect only
  while the person answering can edit the bot. Not now changes nothing.
- The card is shown in each person's language and always answers with
  its own option.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Desktop: retry the phone companion when its launch start fails, and log why

At launch the companion is started once. It counts as up only when the
harness behind it answers its health check; until then main kills it
after about ten seconds, which on Windows reads as "companion exited
code=0". The first launch after a silent update is the slow one, so the
companion stayed down and a paired phone could not connect until the
app was restarted by hand.

The launch start now tries again after 5, 15 and 30 seconds while the
companion is still wanted: the phone is still on, it was not started by
hand meanwhile, and the app is not quitting. A policy refusal is never
retried. Every failed start now logs its reason.

Closes #4052

* Desktop: the launch auto-start lives in companion-autostart.mjs, keeping main.mjs at its size

main.mjs is held at 3246 lines by the file-size ratchet. The launch
auto-start (wait for a saved organisation policy, start with retries,
log a refusal as a skipped auto-start) moves into autoStartCompanion,
so main.mjs only wires it up and is back to its listed size. The
failed-start reasons are logged by the retry loop.
The lease tells a reused pid from its owner by the process's creation
time, read with wmic. Windows 11 no longer installs wmic, so the read
failed, every live pid counted as the owner, and a lease left behind by
a crash or an update could never be recovered: "OpenMausBot is already
using this data directory (process N)" on every start.

When wmic is missing, the creation time now comes from Win32_Process
through Windows PowerShell, named by its full path. The Windows test
for a reused pid no longer skips without wmic, so it runs on Windows 11.

Closes #4034
When the account's own machine moved to another address (its first Cloud ended
and the next became My Cloud), the old place kept its home mark, so the app had
two places called My Cloud and resolved home to the dead one.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
scripts/bench-desktop.ts measures, on isolated fixtures only (temporary
HOME and data folder, the fake engine, a headless Chrome with its own
profile): the production build's first-load JavaScript and which
libraries load eagerly; server spawn to ready from source and as the
packaged bundle with its compile cache; page load to the sidebar and the
last chat drawn; idle CPU, timer and frame callbacks and server work; one
long streamed reply with tool calls (React commits and components per
commit through React's commit hook, on a profiling build; main-thread
time; server frames and file writes); a seeded workspace of 150 bots,
300 threads and a 2,000-message conversation (start-up routes, thread
switch and read-marker writes, conversation switch, wheel scrolling,
memory, idle attribution); and routines.json with a full run history.

pnpm bench:desktop [--only bundle,server,start,idle,stream,big,routines]

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
While a one-to-one bot works, Enter now does the person's chosen follow-up
(steer it into the running turn, the default, or queue it for after the
turn) and Ctrl/⌘ with the send key does the other one (Ctrl/⌘+Shift+Enter
when Ctrl/⌘+Enter is the send key; a Ctrl/⌘-click on Send does the same).
A chevron beside Send lists Steer now, Queue and Restart turn, each with a
line saying what it does. A turn that cannot be steered always queues, and
the menu then offers Queue and Restart turn only. A new setting next to the
send key picks the default, on this device.

The send body takes followUp: "steer" | "queue" | "restart", for typed
messages only, and direct-busy admission applies it. A chosen queue is never
cut short by person-first. Restart queues the message ahead and stops the
running turn; the queue survives Stop, so it runs next. Rooms keep their
queue, double Enter and Steer chip.

acceptDirectSend's input and receipt types move to server/direct-send.ts,
shared by index.ts and the messages route, so index.ts shrinks.

Builds on #4024 (the queue flag through direct-busy admission, its route
checks and its e2e).

Co-authored-by: Kannu20 <kannutodwal@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A server added by address (DeepSeek, Qwen, Moonshot, Mistral, Azure, Bedrock,
Gemini, xAI, OpenRouter...) showed the driver's generic letter, with no way to
change it since the icon picker went away in #2492. The server now picks the
mark from the host in the server's address and reports it as the instance's
icon, so the desktop, Cloud page and phone all show it without the address.

A stored icon (set before v0.1.102) still wins, the icon route and stored data
are unchanged, and there is no setting. Only the host counts: look-alike hosts,
paths and user names never match, and a server without a mark of its own
(Groq, Together, Ollama, LM Studio) keeps the default.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
When the browser isn't installed, the Browser panel told admins to turn
on switches in App Settings and then "open Bot's screen → Browser to
install it": the panel they were looking at, with the Install button
right below. Admins on an installable engine now get a short line saying
what the install gives them and its size. People who can't install keep
the setup steps.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
A send that fails while a newer draft sits in the composer goes to the outbox,
and its Retry dispatched no followUp. The server then treats it as a plain send,
so a message the person chose to queue could be steered into the running turn,
and a restart could be steered instead of restarting. The outbox entry now
remembers the choice, including when the retry itself fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A quoted message is stored as an encoded <!--omb-citation-v1:...--> marker
plus its readable form. The @devs report saved the raw text, so the marker
became the report's first line and email subject, a secret in the quote's
comment went out unredacted inside the base64, and @devs was stripped from
the quoted text.

Drop every citation marker before saving the report, and build the first
line from the person's own words and comments only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Read one bot's MCP servers by name and switch

GET /api/bots/<id>/mcp-servers answers { servers: [{ name, enabled, on,
offFor? }] } for every bot's servers and the bot's own, in settings
order. `on` is enabled and in the bot's mcpServers list (no list: every
enabled server), the rule the desktop Apps page draws. Each item is
built from those four fields only, so the commands, arguments, addresses
and sign-in details GET /api/mcp/servers carries never reach a phone.

A missing bot is a 404. The route stays admin scope like the bot's
overview, so a Team Cloud member's session is refused for any bot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let phones read a bot's MCP servers

The companion allowlist gains GET /api/bots/<id>/mcp-servers and
nothing else: writes to it, and every /api/mcp/servers route, stay
closed to paired devices. The iOS companion doc gives the response.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A server connected by hand whose address stopped answering left the window stuck
when the person switched to it, and the rail offered no way to remove it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Only the person's own words tag @devs: the text outside quotes and each
quote's comment. A @devs inside a quoted bot message no longer sends a
bug report. Each part is checked on its own, so a code span a quote cuts
in half cannot hide the person's own tag.

Quote markers are now dropped in redactReportText, so every report field
(and reports saved before this change) loses the encoded copy that
redaction cannot read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The menu-bar item said 'X can use this Mac' as soon as lending was on,
even when the server refused the connect. It now says 'Waiting for X to
accept this Mac' until the connect succeeds. A sleeping My Cloud still
counts as able to use it.
A marker longer than the decode cap was not matched, so its encoded text
could still reach a @devs report. The strip regex no longer has a length cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A teammate thread opened by a Chief that ended on a card for the person
had no row in Simple mode, so it looked missing. Simple mode now lists,
under the bot, each thread that asks the person something or holds an
unread reply. Advanced mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cursor's ACP adapter sends every MCP tool call titled "MCP: tool" with an
empty input, so a bot making many different browser MCP calls got
"Same call repeated N× — tool: MCP: tool — it may be stuck". Like a bare
tool name, that title names no call, so the repeat check skips it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saving a DeepSeek API key showed only "Saved" while DeepSeek Harness stayed
unavailable because its `dsh` CLI wasn't installed, so DeepSeek models
couldn't be used and nothing explained why. The key row now shows a warning
with the engine's install command when the key is saved and no engine on that
key can run. Another working engine on the same key (xAI API next to Grok CLI)
keeps it quiet.

Closes #4095

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot asked with coordinate_bots reply "none" had no way to send its answer
back: naming the asking thread was refused as "not a thread you opened", and
from the same turn the ancestor rule refused it ("results return
automatically", which is false for reply none).

Allow exactly one case: a one-way notice (reply none) into the requester's
thread that handed the sender work. Work, consults, other threads of the
requester, rooms and reply-resume handoffs stay refused. The reply-none
envelope now says how to answer back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address review: pick the install command with installCommandFor (moved to
state/engine-install so KeyRow does not import EngineSetup), and add a Check
again button that refreshes engines so the hint clears after installing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switched to a remote server in the desktop app, Settings -> Notifications on
this device stayed blocked: the permission handler allowed notifications only
for this computer's own origin and My Cloud as home, never for the active
remote server. Allow them for the active remote server's main frame in the
main window, like clipboard write; the in-app toggle stays the opt-in.

Closes #4097

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The hint now picks the first unavailable engine on the key that has an
  install command, so an unavailable engine with nothing to install (xAI API
  on a custom URL) no longer hides the Grok CLI command.
- Check again asks for errors and shows them under the button, so a failed
  refresh no longer leaves the old warning looking current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Grok CLI signs in with a grok.com account and drops XAI_API_KEY, so
installing it never makes a saved xAI key usable. Leave grokAgent out of
the engines a key row checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reused work thread keeps the openedBy of whoever first handed it work, so
checking that let a notice reach an earlier requester. workThreadFor now takes
the requester of the sender's running assignment (Coordinator.answersTo, which
holds only for reply none outside rooms) and accepts a notice only there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: main's two red checks (rail wording, Windows lease probes)
fix(coordination): let a bot answer the thread that asked it with reply none
fix(desktop): let the active remote server's page enable notifications
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omp's ACP mode sends a provider refusal such as
`403 {"type":"error","error":{...}}` or `429 {...} retry-after-ms=<n>`
as agent message text and ends the turn with end_turn, so MausBot saved
the raw JSON as a successful reply.

I now treat a reply that is only an HTTP status followed by an
Anthropic- or OpenAI-style error body (optionally with omp's
retry-after-ms suffix) as a failed turn. It is shown through the shared
plain-words helper: a 403 reads as "<AI> stopped with an error (HTTP 403;
<AI> says: ...)", and a 429 that names its wait is a usage limit that
resets at that time, with limit "engine" and limitResetsAt so another AI
carries on. A reply that quotes such an error among other words stays a
reply. The turn-end decision moves out of core.ts into endTurn, and the
Claude limit message shares the new reset-time formatter.
fix(keys): say when a saved key's engine can't run and how to install it
Don't flag Cursor's MCP calls as one repeated call (all titled "MCP: tool")
Clash, Surge and other proxies in TUN + fake-IP mode answer every name with
an address in 198.18.0.0/15 and route the connection themselves. The
browser's network gate refused that whole range as reserved, so on a
computer running such a proxy every site failed to load.

On the desktop app only, those addresses now count as the local network:
they load while "local network" is on and are refused as local-network
when it is off. An address in the range that this computer holds itself
(the proxy's own TUN interface, usually 198.18.0.1) stays "this computer",
so a public name still cannot point the browser at local services.
Self-hosted servers and MausBot Cloud keep refusing the range.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omp appends retry-after-ms to every provider error whose response named a
wait, so a per-minute rate limit with a 20 s wait read as "reached its
usage limit" and handed the chat to another AI. An error reply now reads
by its words, as the same failure thrown does; a 429 counts as a usage
limit by its wait only when that wait is longer than an engine retries on
its own (limitQuietMs, 2 min), the rule the quiet watch already used and
now shares through usageLimitWait. The wait still names the reset.

An out-of-credits body now fails the turn as auth_required with setup,
like the thrown failure with the same words, and a long wait never turns
it into a usage limit.

Tests cover the short and boundary 429, a 529 with a wait, the credits
body, and endTurn's Stop and already-replied guards. The docs paragraph
moves below the section's list, and the core.ts size limit drops to its
current 1744 lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
record() read and rewrote the whole memory-upkeep.json for every bot, and
runTidy() ends with record(), so one tick over a 150-bot workspace rewrote
the file 150 times — about 4 MB in the idle window of #4115.

Keep the reports in memory (read the file once) and defer the atomic write
until the end of a batch: a tick, a tidy, a dream or one capture call. A
record made outside a batch is still written at once, and stop() flushes
whatever the last batch recorded. The on-disk format is unchanged.

MEMORY.md was reported in the same window but is not rewritten per tick:
its 151 writes are ensureWorkspace seeding one notebook per bot on the
first tick. A test now pins that down.

Refs #4115
fix: main's last red checks (Windows contended-lease test wait, server/index.ts size cap)
A capture that finishes while tick() holds its batch open used to reach the
state file only at the end of the tick, so a restart mid-tick lost its report
and the resumed run redid the work. Each batch now flushes what it recorded
when it ends, and a capture's batch does so even with an outer tick batch open;
the tick still writes its own bot reports once.
fix(memory-upkeep): write memory-upkeep.json once per tick, not once per bot
A department's menu (right-click its name, or its ...) now has "Mark all
as read" while anything in it is unread. It reads every conversation of
the department's shown bots and its unread group chats through the
existing read endpoints, one at a time so a failure keeps the reads before
it, and says so if one fails. A bot's own menu already reads all of that
bot's conversations.

Closes #4117
Settings told everyone connecting to a self-hosted server to run
"openmausbot pair --client". That link is chat-only, and a chat-only
session cannot pass the ownership check behind "Make ... my home", so a
person pairing their own server never saw it, with nothing saying why.

The form now shows both links: full access ("openmausbot pair") first, for
a server you own, then chat and approvals only ("pair --client"), with a
line saying what a chat-only link can't do.

Closes #4111
A long URL or token in a sent message has no break opportunity, so with
whitespace-pre-wrap alone the w-fit bubble grows past its max width and the
text spills out of the bubble. overflow-wrap:anywhere also lowers the
min-content width, so the bubble keeps its cap and the text breaks inside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the chat (OpenAI-compatible) engine a turn whose MCP servers offered more
than the 128 tools a request may carry dropped whole servers ("skipped for
this turn: MCP tool count exceeds the 128-tool limit"), so the model looped
looking for a tool that was gone. Now the turn lists as many whole servers as
fit, in turn order after the built-ins, and puts the rest behind one tool
search (mcp_search_tools / mcp_describe_tool / mcp_call_tool) whose three
tools count toward the limit. Calls through it keep the bot's tool selection,
schema checks and approval cards (naming the tool run, with the same grant as
a direct call). The chat says in one line which servers went through the
search.

A configured command server's own environment now passes the bot box's
allow-list (as Codex and the health check already let it), so a token such as
1Password's OP_SERVICE_ACCOUNT_TOKEN reaches the server in a boxed turn
instead of the server exiting or refusing its handshake. Settings Test starts
a command server the same way (in the box, from its bot's folder when it is
one bot's), and its answer says when the server alone has more tools than
the limit, or half of it or more.

Third-party tool schemas that strict Ajv refused for keywords that assert
nothing (OpenAPI's example/discriminator, x- extensions, editor hints,
Effect Schema's repeated $id, draft-07 named without its #) are compiled from
a copy without them, instead of dropping the whole server; every assertion
is still enforced, and unknown assertions are still refused.

The bot's MCP servers card in Access shows its last chat turn's tool count
against the limit and the servers it found through tool search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode 1.19.4 lists models from its models.dev cache (or, with none, the
snapshot built into it) and neither `opencode models` nor `opencode acp`
refetches it, so the picker's Refresh re-read the same stale list and a model a
provider added since never appeared. Refresh now runs `opencode models
--refresh` before reading the catalog, and when that changes the list the next
turn starts a fresh `opencode acp`, which otherwise keeps the catalog it
started with.

For a model OpenCode cannot list at all, the OpenCode search box offers the
typed `provider/model` id, labelled "typed by hand" and saved as
`typed::provider/model`. For that turn the server declares the model under its
provider in OPENCODE_CONFIG_CONTENT, which OpenCode merges over the person's
config; a plain saved id OpenCode no longer lists still falls back to the
default as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the switch looked only for the person's own Run entry, so while
lending's hidden entry (the default AppUserModelId name, `--omb-hidden`) made
Windows start the app at sign-in, Settings and the File menu said off. The
switch now reads every enabled Run entry Electron lists for this executable.
Turning it off removes each of them and records the choice, so lending adds no
hidden entry again until the person turns it back on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conversation pages carried every tool step's whole output (up to ~6,000
characters each), so switching to a long, tool-heavy conversation sent
about 1 MB. Pages now carry the first 1,000 characters of a plain tool
step's output, marked clipped, and the step fetches the rest from
GET /api/threads/:threadId/messages/:messageId/tool when it is opened.
Rows whose output is the reply itself (relay, room request, teammate,
handoff) stay whole, as do tool inputs and live pushes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- shared/wire.ts: add tool.clipped?: boolean to WireMessage so the
  client reads the server's flag through a typed field.
- ToolActivity: abort the full-output request when the step closes or
  the source changes, so a stale request never keeps running.
- Test: the request's signal is aborted on close and a new request is
  made on reopen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No chat-completions provider or local Ollama model takes a video content
part, but several installed models (qwen3-vl, qwen2.5-vl) already take
images, so a video attachment is sampled into a handful of JPEG frames via
the system ffmpeg/ffprobe and fed through the existing image pipeline.
Reuses the generic <attached-file> tag the composer and attach_file tool
already produce, so only files that resolve to a video in the attachments
store are affected; every other file kind is untouched. Frames carry a
source: "video-frame" marker on TurnImageInput so a future content-type
router can tell them apart from a person's own picture, without needing
any change to a driver's sendTurn loop.

Verified end to end against the user's local Ollama: a synthetic
red/blue/green test clip's sampled frames were correctly described by
qwen3-vl-abliterated:8b.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Chat engine: servers past the tool limit stay reachable through the directory, and the bot shows its tool budget
OpenCode: refresh re-reads the provider's models; Open at login shows what Windows has
The first load carried every translation (5.4 MB of a 9.1 MB chunk). English stays in the
bundle as the fallback; the language a person chose loads before the first render and on a
change, so nobody sees English first. The rail at /rail is now rail.html with its own small
entry (the rail, its sheets, the skin and the language) instead of the whole app.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts:
#	src/main.tsx
A browser submitting a form percent-encodes ! ' ( ) ~, which
encodeURIComponent leaves as they are, so a password like Hunter2! in
a GET form's URL or a urlencoded body reached the bot unmasked.
Copy and Download on a CSV/TSV table escape spreadsheet formulas with
Papa Parse's escapeFormulae: true, whose default pattern also matches a
leading minus or plus. Every negative amount (-12.50) left as '-12.50,
which a spreadsheet reads as text. Escape a cell starting with = + - @,
tab or CR only when it is not a plain number.
fix(chat): wrap long unbroken text inside the user's own bubble
fix(remote): offer full access first when pairing a self-hosted server
docs: explain how to reproduce selected CI test jobs
perf(desktop): load only the shown language, and give the window's rail its own page
fix(acp): fail a turn whose whole reply is a provider error body
fix(browser): let the desktop browser through fake-IP proxies (198.18.0.0/15)
fix(automations): Enter that picks an IME candidate no longer sends the new automation request
* fix(moves): a lent computer keeps taking its own screen lease while frozen (#4122)

* fix(moves): the lent-screen lease exemption stops at an ended Cloud

* fix(moves): drop issue numbers from the screen-lease comments

The comment-history guard keeps PR and issue numbers out of code comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: xunguangzlj-cloud <xunguangzlj-cloud@users.noreply.github.com>
Co-authored-by: Milind Soni <soni.mil2001@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(computer): don't offer This computer on a remote server's page

In the desktop app connected to another server, Electron reports
localComputer.reasonCode "remote-server", but localComputerSelectable still
returned true on macOS/Windows and the panel told the person to grant Screen
Recording and Accessibility, which can never help. Treat remote-server as
unavailable, give a reason that says what to do, and drop the option from the
computer panel list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(computer): pin that a remote server's page leaves This Mac out of the place grid

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(computer): plain wording for a remote page, and no longer than the file's limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: jimin <filmgear12@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <soni.mil2001@gmail.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
The writes helper compared paths with a forward slash, which never matches a Windows path, so four tests failed on every Windows run of main.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A turn that hands work to teammates sent "done" with its hand-off line,
and the bot's real answer after the results came in only marked the thread
unread, so the one ping came early and the result arrived silently. A turn
that a queued follow-up continued sent "done" too, before the job ended.

A turn's "done" is now held while its teammates still owe results or a
queued message runs next. The answer that ends the job (the review after
the last round, or the queued turn) sends the one "done", with that answer.
"Results in from ..." is unchanged, and a review nobody held a "done" for,
such as an incident review, stays quiet. A new person turn drops anything a
stopped hand-off still owed. The rules live in server/done-notice.ts.

Refs #3264

Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Fetch long tool outputs on open so heavy conversations switch fast
feat(sidebar): mark a whole department as read
On a Team Cloud, an admin sets what everyone in the team can do with every bot in
a department, and adds, changes or removes one person's level, in one step. Each
bot is saved through its own PUT /access, one at a time, so every server check
applies; someone's own MausBot and bots the admin can't share are skipped with
the reason, and a bot's owner is never listed.

Refs #4161
* feat(i18n): complete the Simplified Chinese catalog

zh.json covered 3570 of 7288 keys (49%), so Simplified Chinese users saw
English for the rest of the UI. Translate the remaining 3718 keys and bring
the file in line with en.json.

- Preserve every placeholder, including repeated ones, and keep the key
  order identical to en.json so the diff stays reviewable.
- Project terminology: 机器人 (bot), 群组聊天 (room), 部门 (department),
  例行任务 (routine), 提供方 (provider), 智能体 (agent), 密钥 (key),
  token, 方案 (plan). Product names stay in English (MausBot Cloud, Boat,
  Postiz, HighLevel, Grok, Codex, Jev).
- Normalize the existing values that used Traditional Chinese wording
  (房間/聊天室, 代理程序, 主控台, 載入, 自訂, 封存, 釘選, 網域, 標頭 …),
  full-width punctuation, 「」 quotes and 「——」 dashes.
- pnpm i18n:check passes: 100% (7288/7288), 16 languages valid.

* fix(i18n): main's activity window says the new Simplified Chinese Chrome line

The zh pack now translates lending.action.chrome, and main keeps its own copy of these keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sharing is saved whole, so a bot's row is now planned from its latest copy right
before its request: a grant another admin removed after the preview stays
removed. The person options now read "Don't change anyone's own level" and
"Remove their own level", since everyone's level still applies.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
A Claude Team or Enterprise organization can turn a model off. Claude Code then
answers with the organization's default while the picker keeps naming the
choice. The picker now reads Claude Code's own account config and shows such a
model disabled with a plain reason, and a turn answered by another model gets a
line in the chat saying so.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs: design and plan for MCP servers in chat

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(mcp): one config service for settings and bots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): keep import hooks, read body before merging, quiet panel refresh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(mcp): rules for what a bot may change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): stricter secret rules for bot updates and listings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(mcp): bots add, change, test and remove MCP servers

One mcp_server tool replaces add_mcp_server. A Full access bot adds a
server and it is turned on and tested as the bot, in the same turn; it
can also update, enable, disable, test, sign out and remove servers. A
change merges onto the saved entry, and a new destination clears saved
secrets and the sign-in. Turning one off and signing out apply at every
level; below Full access add saves the server off and other changes ask
the person to use Settings until the approval cards land. sign_in
answers "Not yet" until its card exists. Each change leaves one activity
line in the chat ("Added MCP server linear · Turned on · Test: needs
sign-in"). On a Team Cloud only an owner or admin's turn changes the
team's servers; guest-driven threads get nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): an import holds the config lock while it reads its body

A second import, or any other writer, is refused for the whole of an
import request again, so the session-revocation check sees the import
mutex. The one busy flag is held across the body read through
addMany(read).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): one activity line, stricter tests

An mcp_server call now shows as one row: the route writes its line onto
the bot's own tool row as a display label, and the chat shows that in
place of the raw tool name. Update keeps the add path's folder rules,
remove and test follow the policy and other-computer rules, the listing
says a server on another computer is not this bot's, and the labels
read "Switched off" and "Test: N tools". The update path's secret rules
gain regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): label the right activity row

Engines start every tool block of a response before running any, so
two mcp_server calls in one response each found the newest open row.
Each call now labels the row whose input names its action and server,
in its own turn only (rooms pass the turn too); with no live turn it
adds a row instead of touching an older turn's. Advanced run summaries
show the label, update applies the folder rules only when the command
changes, and the tool's spellings come from the bridge's prefix list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(mcp): one-tap cards when a bot isn't on Full access

A bot on Ask, Edits or Auto that adds, turns on, changes or removes an
MCP server now shows a card in the chat ("Turn on linear?", "Change
dodo?", "Remove dodo-test?") with the address or the redacted command,
the changed fields, or the other bots that use it, and Cancel as the
negative option. Add saves the server off and asks to turn it on. The
bot ends its turn; the person's answer applies the change through the
same path Full access uses, against the server as it is then, and
resumes the bot with the test result. A secretRef on a Change card is
redeemed only on allow, so a late answer resumes with "The key
expired". Only the owner review that guards team-setup cards may
allow; on a Team Cloud that means a workspace admin. Stop closes the
card, a restart resumes a turn whose card was answered, and desktop
draws the card with its own title and buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): keep pending changes off the wire, safer answers

An MCP card now carries only what it shows. The change it stands for,
the bot's fields and what the server reached, stays in the server's
memory until the person answers, so no value the bot sent reaches the
chat, phones or messages.json. After a restart the card expires and the
bot is told to ask again.

An answer applies nothing when the server's address or command changed
since the card was shown, and says so. A busy config answers "Try again
in a moment." and keeps the card open. An error while applying settles
the card as failed and resumes the bot with the error. Failed and
expired cards show their reason. A new OAuth client secret shows as its
own change line. The tool description says a card below Full access
means ending the turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): hide values under secret names on cards

A Change card no longer shows a literal env or header value whose name
says it is a secret (API_TOKEN, X-Api-Key, Authorization): it reads
"new key for NAME", as a secretRef does. Other values still show. A new
card also frees the held change of every earlier card about the same
server, so one closed by Stop no longer lingers until a restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(mcp): sign in from the chat

A bot whose MCP server needs a login now calls mcp_server sign_in and
the person sees one Sign in card in the chat. The card is the connector
card every client already draws, marked source "mcp", so existing
iPhone and Android builds show and complete it. Tapping it starts the
provider's sign-in owned by the card, so any device that can see the
card follows the same sign-in and a second tap reuses it. When the
sign-in finishes the card settles and the bot resumes by itself, with
no status poll needed; the turn it resumes mounts the server with the
new token. Not now cancels the sign-in and tells the bot the server
stays on but signed out. A removed server's card says so and resumes
the bot once.

A phone paired to a local Mac with no public https address is told to
open the chat on the Mac, and a sign-in that would need paste-back
points to Settings. A shared server's card takes an admin, as Settings
does; on a Team Cloud a personal server's card signs in only the
person the chat is for, with their own sign-in. Members now reach the
card's authorize route, and an app's card stays admin-only in the
handler. The authorization URL is never written to a message or card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): sign-in card edge cases

A second tap from a browser elsewhere replaces a waiting sign-in that
would come back to this computer, so the phone gets a link it can
finish. A card left waiting when the server restarted goes back to
Sign in when polled. Not now tapped before the bot's turn parks still
tells the bot it didn't sign in once the turn parks; a card a newer one
replaced is marked superseded and waits on nothing. A sign-in that
would need paste-back is refused before any client is registered or
port bound. Who may sign in is checked before a removed server settles
the card, and a failing onSettled can no longer break a callback or
escape the expiry timer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(mcp): sign-in card wording on desktop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(mcp): an authorize refusal shows its sentence on the card

An MCP card's 409 shows the server's sentence as calm status text and
no sign-in link, even when the refusal carries one. A Composio card's
409 stays the card's error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(mcp): move MCP chat wiring out of index.ts and card types out of wire.ts

server/index.ts and shared/wire.ts had grown past their file-size ratchet.

The mcp_server route deps, the card and Sign in services, the card
answer and the Settings listing with its policy helpers now live in
server/host/mcp-chat.ts behind createMcpChat(deps). index.ts builds it
where the services were built before, and secretCards and mcpConfig,
which are built later, are passed as getters.

McpChangeRequest and ConnectorCardData move to shared/mcp-request.ts
and shared/connector-card.ts, and every consumer imports them from
there. server/store.ts drops a re-export of ConnectorCardData that
nothing imported.

No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): a key inside a server's address never reaches the bot or a card

list, the Turn on card and the Change card's address line now show a
remote address as scheme, host, port and path, without userinfo, query
or hash, with every key-shaped path segment (16+ URL-safe characters
with a letter and a digit) shown as "…", then passed through
redactSecretsInText. A Zapier-style link no longer puts its token in
the model's context, messages.json or the phones.

An update whose url equals that display form keeps the saved url, so a
bot that sends back the address list showed it does not re-point the
server at the masked address and lose its headers and sign-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): sign_in refuses a server that is off

A turn mounts only servers that are on, so a sign-in card for one that
is off ended with the bot told "Its tools are yours from this turn",
which was false. sign_in now refuses with "linear is off. Call
mcp_server with action enable first." at Full access, or "...enable to
ask the person to turn it on." below it.

The text a bot hears after the person signs in reads the server's
enabled state when it resumes, so a server switched off while the card
waited tells the bot it signed in, the server is off, and to call
enable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): Turn on and Remove cards survive a restart

Every MCP approval card held its change in memory, so a person who
answered "Turn on linear?" after relaunching OpenMausBot got "this
request expired", though a Turn on or Remove card holds no bot fields.

McpChangeRequest now carries targetHash, the sha256 hex of where the
server reached when the person was asked. The answer-time "changed
since you were asked" check compares that hash for every action, so
an allow after a restart applies a Turn on or Remove through the same
applyMcpChange path while the server still reaches there, and refuses
when it is gone or reaches somewhere else. Only an update's fields are
held in memory, and only a Change card still expires after a restart;
decided() expires an open card only when its fields were lost. A deny
after a restart still settles as denied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): name the dropped OAuth client secret when the client id changes

A bot update with a new oauth.clientId cleared the saved client secret
without listing it in dropped, so the "these saved values were
cleared" line left it out and the bot never knew to ask again. It is
now named "oauth client secret", as the url-change path names it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): a person who may not sign in gets a calm note, not an error

"Only an admin of this installation can sign in to Linear." and "Only
Ada can sign in to this." came back as 403, which desktop, iOS and
Android draw as a red failure. They are refusals of the same kind as
"Open this chat on your Mac to sign in", so the card's authorize now
returns them as 409, which all three clients show as a calm note. A
session missing a scope at the route gate still gets 403.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): a card's targetHash covers the masked display target, never a raw secret

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(mcp): a client-id-only update no longer says the destination changed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Mask base64, dotted and percent-encoded key path segments

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Tell the bot a removed server is gone, not off

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Tell an MCP sign-in card to sign in on the page that opens

An MCP server has no app key, so its card drops that half of the hint.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
* A Chief can answer, for the person, a question a teammate asks them

A question a teammate asks the person in their own chat blocked until the
person answered in that thread: coordinate_bots refuses a thread the sender
did not open, and a Chief had no way to see what was waiting.

A Chief turn now lists up to ten such questions from teammates it manages,
and may answer one by sending to that thread id. The turn runs on with
"@<Chief> answered for the person: ...", the card names the Chief, and the
person can still replace the answer.

Sign-ins, approvals, questions only the person can answer and archived
threads stay the person's. So does any question in work an outside event
started. A Chief turn with no person behind it (a webhook, a routine, a
guest) neither lists nor answers these questions, and the new path applies
the fence and cloud read filters recall uses. A message naming other work
with answers keeps the usual rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chief answers for the person: the status row comes from the language packs, and the prompts move out of server/index.ts

The row a Chief's thread gets when it answers a teammate's question for the person is a server line (server.teammates.answeredForPerson, all 16 packs), so the language guard passes. The outstanding-work and teammates'-questions prompt sections, with the unattended and acts-for-person checks, move to server/host/teammate-prompts.ts, so server/index.ts stays under its size pin.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* A Chief answers on its own certainty only at Full access

Below Full access it answers a teammate's question only when the person gave the answer or asked it to, because the teammate may act before the person can change it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
A Team Cloud fetches its team's one rules document signed with its bootstrap
secret, at boot, on a timer and when the Admin nudges it, keeps the last valid
one, and feeds the one policy object every refusal site and "Managed by" screen
already reads. A change applies without a restart. Kept rules never lapse. A
document it can't read leaves the last good one in force and is reported. An
older Admin's 404 is no rules, so this is additive.

Remote access on a Team Cloud is what a member's own code opens: the signed
pairing is how every member's app reaches it, so a rule never locks a team out.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* bench(desktop): one repeatable desktop baseline that prints JSON

scripts/bench-desktop.ts measures, on isolated fixtures only (temporary
HOME and data folder, the fake engine, a headless Chrome with its own
profile): the production build's first-load JavaScript and which
libraries load eagerly; server spawn to ready from source and as the
packaged bundle with its compile cache; page load to the sidebar and the
last chat drawn; idle CPU, timer and frame callbacks and server work; one
long streamed reply with tool calls (React commits and components per
commit through React's commit hook, on a profiling build; main-thread
time; server frames and file writes); a seeded workspace of 150 bots,
300 threads and a 2,000-message conversation (start-up routes, thread
switch and read-marker writes, conversation switch, wheel scrolling,
memory, idle attribution); and routines.json with a full run history.

pnpm bench:desktop [--only bundle,server,start,idle,stream,big,routines]

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* perf(desktop): quiet when idle — still unread mascots, capped working ones, compositor sheen

- An unread bot's mascot plays its notice for two of its alert's cycles when the
  news arrives, then holds still; the unread dot keeps telling. A bot already
  unread when its row appears holds still from the start.
- Row, chip and header mascots (64 px and under) draw at most 20 frames a second,
  all on one grid, including wakes for blinks and expression changes; the shared
  clock's timer now fires just before a frame is due, so a slow mascot no longer
  asks for a wasted animation frame. The carved mascots join the shared clock, so
  they pause off screen and in hidden windows too.
- The turn's "thinking" sheen moves by transform (a band crossing the phrase with
  a brighter copy crossing back) instead of animating background-position.
- Image loading tiles pulse and spin only while on screen.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* perf(desktop): sheen sweeps in steps and rests, so a turn stops redrawing every display frame

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(sidebar): one helper for a row's unread and its notice

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(team): the Share dialog as a familiar sharing dialog, and Bot access as a list that opens it

Share dialog: quiet level menus on a real menu (each level with what it allows, a check on the current one, Make owner
behind a confirmation, Remove access), one add field with arrow-key suggestions, a scrolling people list, general access
as one row, Copy and Download under a header ⋯, the same layout read only for someone who can't edit.

Bot access: its own Settings page, one row per bot opening the same dialog, a search, and By person with each User's
bots at the same menus. The table of dropdowns and the strings only it used are gone.

The access rules, routes and enforcement don't change. One default does: someone added while everyone can chat now
starts at Can chat rather than Can edit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): Escape out of Make owner leaves no old refusal behind

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Bring a computer home by itself when the Cloud it moved to is gone

A computer frozen for a Cloud that was deleted, or that ended while another
Cloud is My Cloud, stayed frozen for good: its window said another account was
signed in, and Sign in only showed an error. It now asks the Admin about that
Cloud (from the journal, or from the freeze when no journal is left), and on a
verified "deleted" or "ended" lifts the freeze with every automation off, keeps
its bots here and says so once. My Cloud's hold no longer speaks for another
Cloud, and Sign in no longer dead-ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Coming home from a gone Cloud leaves every automation off, whatever was under way

A way home the person had already started kept its list of automations to switch
on; it ends here instead. A copy already deleted is not said to be back as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A held My Cloud that names no address still counts as the Cloud this computer moved to

The session's summary may leave out a held Cloud's address. That is no sign of
another Cloud, so it keeps the homecoming it always had.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Daylight, the default light skin, takes measured values: page #fcfcfc,
sidebar #f5f5f5, a bot's message #efefef, white composer and menus, and
#1c1c1c ink at 100/68/65% for the three text inks. Hairlines are
translucent ink (24%, and 12% at /50); the user's own bubble is #1c1c1c.
Where a measured value misses AA its nearest passing step is used: the
tertiary ink at 65% instead of 56%, accent fill #126fd4 (border #1680f3,
focus #0b6dd3, link #0b69cc), danger #cd2834, success #007a44, warning
#9c5b00, and the search field #e9e9e9.

The window frame keeps its top bar and rail of places, now in the sidebar's
#f5f5f5 in Daylight, so the bar, the rail and the sidebar read as one
field. The app sits in a square pane, without the 12px corners or the ring:
panes meet at the sidebar's 0.5px edge (#1c1c1c14, #f5f5f50f in Midnight).

The sidebar's drag bar is a 12px strip centred on that edge that draws
nothing at rest, on hover or while dragged; the page shows the col-resize
cursor and selects no text while it is dragged. The keyboard focus line,
the avatar snap, the arrow keys and the saved width stay.

Daylight and Midnight share one radius scale (xs 2, sm 4, md 6, lg 8,
xl 12, 2xl 14, 3xl 16, 4xl 18): buttons are pills, transcript cards 24
(question, table, approval, inbox), dialogs 14 and the onboarding demo
composer 22. The other skins define the new tokens at the values they
already had.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* perf(server): timers armed only when work is due; engine list answers from recent reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Leave the queued-run scan to its own change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Routine scheduler test: a routine due within the minute

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Due timers share one wall-clock look a minute and run nothing when nothing is due

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Iterate the watchers directly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fixtures and bench follow the due timers; HTTP servers look for timeouts once a minute

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Both PlaceChip menus listed a disabled This computer row on a remote
server's page; they now omit it like the Works on grid. A bot still set
to This computer shows Auto as the selected place there, without
changing its saved setting. pageOnRemoteServer names the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* perf(server): config read once per change; membership recheck, SQLite and screen frames on demand

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep message-db under the listed-file size

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Recheck membership at most once a second

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the memory index schema beside message-db

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* wip: write less on the server

* perf(server): write less while a bot works

bots.json and routines.json are written compact, and a save whose text
equals the last one written is skipped without reading the file back.
Saves asked for while one runtime event is delivered, or while a turn's
synchronous start runs, land once when that pass returns, before the
server yields to anything else; permission changes, and every save a
caller rolls back on failure, still write at once. An unchanged resume
cursor or read marker saves nothing.

The scheduler finds queued runs through an index instead of a scan per
run. The app starts with two weeks of routine runs plus the ones each
automation's status, badge and panel need, and loads older ones when the
calendar or a run's chat shows them.

The native engine log keeps whole messages, not every streamed
fragment, and appends each thread's lines together every 250 ms, at the
end of its turn, before the inspector reads it and at exit. The server
loads the chart library at the first chart.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(server): a turn and a routine run killed mid-way keep what was saved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(server): cover on-demand routine runs; the onboarding preview answers the windowed request

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(server): name the native tee's test threads by what they check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Stop re-rendering message rows on every store change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A heading does not follow the thread list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A turn starting or ending re-renders only the rows that show it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the store context apart from the hooks that read it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On another server's page the bot can't use this computer, yet Auto still said
it picks "a private desktop on this computer, or this computer's screen".
Read that page as its own server kind and give it the line that names only
the built-in browser and a private desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On another server's page a bot saved as This Mac shows Auto, and the pin note's
button reads "Use Auto". It only cleared the chat's pin, so the next turn still
asked for this computer and failed. Save Auto with it in that case. Also keep
ComputerPanel.tsx within the file-size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* wip markdown once

* Draw each finished message from one rendering

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Type the per-message plugin list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bench a second visit to the long chat

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bench: a page that stops answering fails by name

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Drop the scope memo: a message rarely renders again, and a mount has nothing to reuse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* wip: lazy App, lazy Apps panel, no dialog query during render

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* wip: local pages fetch no screens ahead; team library and phone dialogs on open; bench first-open and real launch size

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* wip: Cloud-buying dialog on open, phone button without the setup flow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* wip: desktop viewer without the app; import scanner sees same-line imports

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bench: load the sign-in page in the screens section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the dialog check in render; the renderer smoke waits for a panel that loads on open

A once-only popup is marked seen when it shows, so its check must not lag behind a dialog that just opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* perf: the server fits a small box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf: a list the engine did not confirm is read again at the next start

The chart library's first-use load stays with the open server-writes change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf: load undici at first use

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf: the server's own engine reads use a fresh status; tests for the small-box idle wiring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: pin small-box idle wiring and first-use imports

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: lint

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf: minify the server bundle, keeping names and short lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* test(models): build the account config's expected paths for the platform

The test wrote POSIX paths by hand, so main's Windows shard failed on it. The code
under test already joins paths for the platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(models): find Claude's account config in the Windows home

On Windows Claude Code's home is os.homedir(), which is USERPROFILE, but the lookup
preferred HOME, so a HOME left by a POSIX-flavoured shell pointed at the wrong file
and no blocked model was marked. It now uses the shared userHome helper. A read
Windows refuses while the CLI renames the file also cleared the marks until the
file next changed; what was known now stands until a read succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A thread pinned to This computer by an earlier Auto turn kept its auto pin
after the person set Works on to This computer (matching pins survive by
design). Since 47405e69e an auto pin asks "Use your computer?" before every
turn, so those threads asked every time, at every approval level.

An auto pin to the same place Works on names is now treated as Works on:
the person chose that place, so it is not asked for again. Auto bots, auto
pins to another place and user pins are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(pages): say publishing isn't available on self-hosted servers instead of asking to sign in

On `openmausbot serve` there is no desktop app to hand over a MausBot
sign-in and no Cloud home, so publish_page always told the bot "Sign in
to MausBot in the app's Settings", which nobody can do there. Such a
server now gets "Publishing pages isn't available on self-hosted servers
yet." Desktop and Cloud home behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pages): keep hosted workspaces out of the self-hosted publishing message

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A message that tagged a department named devs (for example "added Rover to
the @devs department") was read as the bug-report tag, because the tag only
gave way to bot names. Departments now count too.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Taking a fresh saved status as read at start left driver state unset that only a
status read sets, such as Claude's strict-resume capability, so a conversation's
second turn after a restart could start a new native session. Engines are probed
at start again; their probes stay in the background as they were.

A saved model list now counts as fresh only for an engine's first open in a run.
A second open means its key or settings just changed, so saving an OpenCode
provider key reads the models with that key again.

The account config test now builds its expected paths the way the code does, so
it passes on Windows.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A read-only usage_limits tool returns, per AI account, percent used, reset time
and when that was checked, with a status telling "no data right now" from "this
AI reports no limits". It reuses the plan-usage data the Usage page shows and its
one-minute cache, carries no credential, address or account id, and a turn sees
only the accounts its audience may read.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(usage): show a Claude plan's monthly spend, with its amounts

A Claude Enterprise seat with a monthly budget has no 5-hour or weekly window.
Usage showed two "not reported" rows and, at best, a percent labelled "Extra
Usage". It now shows Monthly spend with the amounts ("$46.31 of $500.00 spent"),
and the Simple summary and the profile menu use it when there is no weekly
figure. A budget Claude reports as off is no longer drawn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(usage): write the monthly spend in the app's language

Money followed the computer's language rather than the one chosen in the app, and
the test's expected text depended on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Show spend by department, and count routine and delegated work toward the person

Each usage row now records its bot's department when it is booked, so moving a
bot later never rewrites what was spent. Usage gets a Department grouping and the
CSV gets department and person columns (at the end, so existing columns keep
their positions).

The Person grouping now counts a Team Cloud routine's turns toward the person
who wrote it, and a teammate's delegated work toward the person whose turn
started the job, following the trace's parent links.

Refs #4161

* Attribute delegated work whose parent turn is still running, and room turns booked as the owner

A teammate can finish before the turn that delegated to it is booked, so the
parent's person now also comes from its conversation's current trigger. A turn
booked with the owner trigger that has a trace parent (a room member's turn a
person's turn handed work to) now carries that person too.
* Record bot access changes, answered access requests and owner changes in Activity

PUT /api/bots/:id/access is client-scoped, so the admin audit never saw it;
Allow / Not now on an access request and changes to who a bot reports to
wrote nothing either. Each now writes an admin activity row with the actor,
the bot, and before/after.

Refs #4161

* Record the access that stands when an Allow writes nothing

When the asker was already raised above chat before the Allow, nothing is
written, so the Activity row now shows their access as it is rather than chat.
Our own tool list costs about 15,000 tokens on every turn, which a local model has to
read out of a small window at laptop speed. The tool bridge already cuts it by about
three quarters, but it was off unless someone switched it on.

It now turns on by itself for a bot picked from a local server, or on an OpenAI-compatible
engine whose URL is on this machine or network. The existing rules still decide: a bot
with a tool selection, or an engine that judges tools by name, gets no bridge, and
OMB_AGENTS_TOOL_BRIDGE=0 still wins.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* A local model's tool calls work even when they arrive as text, and it can't loop forever

Local servers only turn a model's output into tool_calls when their template and
parser match the model. When they don't, the call arrives as the reply: the bot
prints markup and nothing runs. This is the most common failure with local models.

For a model on this machine or network, the chat engine now:

- Reads a call written as text, in the forms the servers' own parsers read. The calls
  must end the reply and name an offered tool, so a quoted call stays a reply. Reasoning
  is never read. A recovered call takes the same schema check and approval as any other.
- Keeps that markup out of the streamed reply.
- Asks once more when a call can't be read.
- Refuses a call that failed the same way three times, and ends the turn if the model
  keeps asking. Ends a turn stuck on one unchanging answer after ten repeats.
- Sends the model back to fix a failed call, twice, instead of ending the turn on it.

Hosted models are unchanged: their text is never run as a tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A local model that reacts to a failed call isn't failed for it

With the short tool list on, a small model may guess a hidden tool's name wrong, search,
and go on correctly. That turn was being sent back twice and then ended as an error. Once
a local model has used more tools after a failure, the failure is cleared. A model that
answers straight after one is still sent back, and a person's refusal is never retried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ffmpeg otherwise picks its reader from a file's contents, so an ffconcat file named .mp4 could pull in another attachment beside it. Reads pin the demuxer by type and allow only local files. Windows gets no console window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With an OpenAI API key, gpt-6.1-sol and similar models fail every turn: they
reason by default, and Chat Completions refuses function tools with reasoning on.

On that refusal, a model at OpenAI's own address moves to /v1/responses for the
rest of the process. At any other address it retries with reasoning_effort
"none". If Responses can't be reached (missing route, key without the scope) it
falls back the same way. Models that accept tools, calls without tools and other
providers send what they sent before.

Reasoning stays stateless: store false, and each round's output items, encrypted
reasoning included, are replayed in memory for that turn only.

The chat engine's failure readers move to openai-chat-errors.ts to keep the
engine file under its size limit.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
cloud-send:teams threw when the page was not My Cloud. Electron reports
that as a handler error and the desktop window dies. A solo app or a
custom base URL now gets { teams: [] }; My Cloud still lists teams.

Fixes #4129

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
schemars writes "format": "ip" for Rust's std::net::IpAddr, which ajv-formats
does not define, so a tool with an IpAddr field still made the whole server
skip. It now validates as either address family.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Below 23 GB of graphics memory Ollama runs a model with 4,096 tokens of context. When a
request doesn't fit, it keeps the system prompt and the latest message and drops older
messages without an error, so a bot forgets the conversation, and our instructions and
tools alone can fill the window. The OpenAI and Anthropic routes our engines use cannot
set the window, and /api/ps only reports it once a model is running, so we also assumed
128k and never compacted.

The first turn on a model now creates a second name for it with the window set, which
copies no weights, and every engine sends that name. The window is 16K to 64K tokens,
from the machine's memory and the model's size. We also now know the real window, so
compaction runs on time and Claude Code is told its limit.

A window set in a Modelfile, or a model already running with enough, is left alone. A
cloud model and a server that is not Ollama are untouched. Anything that goes wrong
leaves the model as it was.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The page starts as index.html's OpenMausBot and was renamed only once /api/brand answered. With the app in its own chunk the page loads sooner, so the packaged Linux smoke read the title first, and a person could see the project's name flash in the window title.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The title stayed OpenMausBot until /api/brand answered, and for good if it failed.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Picks up #4187 so the Linux package smoke check sees the MausBot title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The person's own bubble wraps since #4139; a bot's reply with a long URL or run of letters still ran past the window's edge, cut off rather than scrollable. Paragraphs, list items, headings and quotes in a reply now wrap anywhere. Code blocks and table cells are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A per-bot "Bot API", off by default: a key shown once and kept hashed, a
curl command in the bot's panel and in Bot settings, and
POST <hooks base>/hooks/api/bots/<id>/messages on the webhook receiver that
answers with the bot's reply. The turn it starts is outside work (trigger
"api"): it never acts for the person, never uses a lent computer, gets the
message as untrusted data, and stops at any approval with needs_approval.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A local-network model that repeats one identical call is stopped after ten (chat-repeat-guard.ts), so the step-cap fakes in long-running-chief, runtime-roots and comms now change an argument each round. The Ollama probe GETs /api/version before a turn (ollama-context.ts), and nine fakes parsed every request body as JSON; they answer non-POSTs with 404. server-writes counts saves by file name, so a Windows path matches.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MausBot is a member's Chief: crowned on arrival unless they already have a
Chief, with no second crown and an inbox that never moves. The crown widens
nothing: Chief tools still follow the member's role, and it takes no
place-wide notice, proactive work, incident turn or backup Chief.

"Looked after by" replaces owner and reports-to words. Sharing is two
choices, with stored view and edit levels kept in the data. The inbox is one
list. People no longer read incident, delegated, handoff or lends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot CLI 1.0.105 rejects client-supplied stdio MCP servers over ACP. Supply scoped tool servers through private per-thread launcher configuration while retaining broker approvals and credential refresh.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
An API thread always runs in Ask with no saved allowances, whatever the
bot's level; saved rules never answer for it; it counts as outside-driven,
so routines it makes lose full access and a Team Cloud runs it confined; it
is never given the desktop's own computer. A caller's image tags are
neutralized, failures answer in fixed words, refused calls roll up in memory,
and the maintenance claim ends once the turn starts. The card shows recent
calls to those who manage the key and links webhooks to Automations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A MausBot only its person sees reaches no bot everyone sees, so a crown would
tell it to direct bots it cannot hand work to. Refusing other crowns would also
take a delegating Chief away from new members. Hide the crown in the app
instead, and change no route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rust's IpAddr does not parse `fe80::1%eth0`, but node's isIP accepts it, so
such an argument passed local validation and reached a server that refuses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Tests: the rest of the fakes answer the Ollama probe and expect the local-model rules

The mascot clock also asks for no frame once its last mascot has gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Leave the mascot clock to its own PR

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/verify-team-bot-access.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live calls could only create their GPT-Live session on api.openai.com with
an OpenAI key. Add a Live provider setting so a call can use a gpt-live-1
deployment on the user's own Azure OpenAI / Foundry resource instead.

- live.provider ("openai" | "azure"), live.azureEndpoint and
  live.azureDeployment in config.json, with OMB_LIVE_PROVIDER,
  OMB_AZURE_OPENAI_LIVE_ENDPOINT and OMB_AZURE_OPENAI_LIVE_DEPLOYMENT.
- Session create and the sideband attach go to
  {endpoint}/openai/v1/live/sessions[/{id}/attach], with the deployment as
  session.model and the resource key sent as api-key.
- The Azure key is only live.key; the OpenAI API key is never used for
  Azure. The endpoint must be https on an Azure OpenAI host.
- A call keeps the endpoint it started with.
- Call settings and the "Live needs setup" prompt gain a Service choice
  with the Azure endpoint, deployment and key fields; errors and the
  disclosure name Azure OpenAI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BFCWE5jB4NijPPZKUWuV4U
The Azure fields pushed server/config.ts past its file-size ratchet.
Move the live schema, type and environment overrides to
server/live-config.ts, as decider/config.ts does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Azure chosen the setup prompt grew taller than a 768px window and
its top (the title and the Service picker) could not be reached. Cap
its height and let it scroll, and say the disclosure once: the key form
already carries it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(skills): social post previews, with local videos that play in the chat

A bundled skill: a bot fills in posts.html and shows how a post looks on
Instagram, LinkedIn, X, Threads, Facebook, TikTok, Reels and Shorts, with
carousels, quiet checks sourced from each platform's docs, and light and dark.

A video in a folder page stays on disk: show_html records its path and file
identity, and the page files route streams only the asked-for bytes from the
open handle while it is still that same file. Publishing leaves video out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(skills): read the template's data block on a CRLF checkout too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot that opens a thread on itself can now pass model_selection
(engine instance + model id) to run that thread on another model it can
already use. It is checked like propose_model (available, not org-blocked,
no pending approval, compatible with the bot's permissions) and refused for
threads on teammates. Left out, the thread keeps the opener's model as before.

The tool list grows by the new option, so the catalog goldens and the
size budget baselines move with it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
While a routine ran, its bot only showed "Writing a reply": every routine-run
thread is left out of the sidebar, so there was no way to open the run and
watch it. A running (busy or working, not archived) routine run now gets an
activity row under its bot, in simple and advanced mode and beside an open
thread tree. The row goes away when the run ends. The thread tree itself
still keeps routine runs out, as before.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let people name the computer their phone pairs with

The pairing sidecar read the computer's name once at startup and fell back to
"OpenMausBot" when the profile name was empty or the harness answered late, and
there was no way to pick a name.

- Settings > Remote access: "This computer's name" (config computerName).
- New pairing codes and the Bonjour record use it; empty keeps the default.
- The sidecar re-reads the name every 30 s and re-advertises on a rename
  (the old record is withdrawn first, so the phone sees one computer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): no re-advertise after shutdown; let the server decide the name limit

- A name refresh already in flight when the sidecar stops no longer re-advertises
  after the watcher and responder are stopped (stopping flag).
- The name field drops its client maxLength: it counted untrimmed text, so a
  pasted name with leading spaces was cut short. The server trims and checks 63.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): a stop during an advertisement's bind keeps it unpublished

Review follow-up: stop() found no socket while advertise() still awaited
the bind, so the advertisement published after shutdown. A stop counter
lets advertise() close the late socket instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): count a stop that lands during a re-advertisement's goodbye wait

advertise() read the stop counter only after its own stop()'s goodbye
wait, so a shutdown stop() during that wait looked already seen and the
new advertisement still published after shutdown returned. Read the
counter before awaiting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On Starter the section is one line and the usual Upgrade, a new key is
refused, and a leftover key answers 403 with an upgrade message. An upgrade
works at once. The plan comes from the Admin's signed POST /api/cloud/plan,
which now also takes a tier, kept by host/cloud-plan-tier.ts; a home never
told is not Starter. The default wait drops to 50 s, under the 60 s of silence
Fly's proxy is reported to allow. The card says a key is like a password.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(antigravity): saved Low/Medium/High picks run on any base model, not only Gemini 3.8 Flash

A bot saved with gemini-4-argon-high failed every turn with "did not
switch to gemini-4-argon-high (still gemini-4-argon)": the runtime offers
only the base model with a thinking_level option, and the #3807 mapping
covered gemini-3.8-flash-* only. Map any <base>-{low,medium,high} id to the
base at that level, with the same guards (base offered, suffixed id not
offered, no level chosen by the turn).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(antigravity): pin the whole turn when a suffixed id is kept

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A new Antigravity session names thinking levels only for the model it
starts on, so model discovery attached Low/Medium/High to that one model
and every other model (such as Gemini 4 Argon) showed no level. Discovery
now switches its throwaway session through each offered model, within a
15 s budget, and keeps the levels each one names. The survey loop moves
from opencode-go.ts to acp/config-options.ts so both drivers share it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The open list of a native select is drawn by the platform (white on
Windows and Linux) while its options inherited the skin's light ink, so
in a dark skin the choices were nearly invisible. The select now opens
in the skin's colour scheme and its options use the menu colours.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The first Antigravity account could not be removed (only added ones can)
and had no Sign out, so its Google sign-in could not be cleared from the
app. Give Antigravity a signOut that forgets only that account's stored
token (its profile stays), and show Sign out for any signed-in
Antigravity account, like Claude and ChatGPT accounts.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Simple view: New thread, View threads and Set as main thread in the bot menu

Simple view hides a bot's thread list, so there was no way to start a
second thread, see the others, or choose which one the bot opens to.
The Simple bot menu now offers New thread, View threads (the bot panel's
Conversations list) and Set as main thread for the open conversation.

The choice is kept on the host only (BotRecord.mainThreadChoice) and
honoured while that thread is open and not a routine run; clients still
get only mainThreadId. Setting it is admin-only.

Closes #3814

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Main thread choice: only accept threads the resolver can pick; keep it optimistic

- PATCH /api/bots/:id validates mainThreadChoice against the same conversations
  botMainThread picks from (team-visible ones on a Team Cloud), with the same
  400 for unknown and ineligible ids (CodeRabbit).
- The patch queue overlay shows a pending choice as mainThreadId and keeps
  mainThreadChoice wire-only, so a broadcast during the save does not revert it
  (CodeRabbit).
- Stay within the file-size ratchet caps for server/index.ts, server/store.ts
  and src/state/store.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(bot-patch): refuse an archived conversation as the main thread choice

The main-thread resolver skips archived conversations, so saving one as the
choice had no effect. Refuse it with the same 400 as other ineligible ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Simple bot menu: offer Set as main thread only once owner/admin is known

While the owner/admin lookup is still pending, a view-only teammate saw
the action and got an optimistic change the server then refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Simple bot menu: no Set as main thread for private threads

The host refuses a Team Cloud private thread as the main thread, so the
menu no longer offers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: re-run (ubuntu shard 8 mcp-cards e2e flake; passes 3/3 locally, not touched by this PR)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Threads: let people archive channel threads and bot-panel conversations

Archive was missing from a group chat thread's menu and from the bot
panel's Conversations list, so a finished thread could only be deleted.
Channel threads now keep archivedAt (PATCH /api/groups/:id/tasks/:thread),
the room list hides archived threads behind "Show all", and the bot panel
shows them under "Archived (N)" with Unarchive in the row menu.

Closes #4009

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Conversations: keep an open search up when archiving leaves one conversation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep an archived open conversation listed; stay within file-size caps

- Bot panel Conversations: when the open conversation is archived and is the
  only one left, keep the list shown so it does not disappear (CodeRabbit).
- server/store.ts and src/state/store.tsx: fold the group-task PATCH handling
  into shared code so neither file grows past its file-size ratchet cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A minimal Arch install has no fusermount and lacks some GTK/NSS/ALSA
libraries, so the AppImage fails with "No suitable fusermount binary
found". Document the pacman packages that make it start (tested with
v0.1.138 on a current Arch image) and add the FUSE error to the
AppImage troubleshooting section.

Closes #4083

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Add a Clear attachments row in Settings, and point the full-store error there

When the attachments store reached its cap every upload was refused with
"attachments storage is full", and the app offered no way to see or free
the store. Settings > General now shows how full it is and can clear it
(with a confirm step). A clear keeps bot and profile pictures, the sidebar
banner, files routines and their runs use, upload partials and anything
newer than 10 minutes, and refuses while routines are still loading. The
507 error now says where to clear. The route is admin only and is off on
a Team Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Attachments clear: report failures, keep calendar-call files, show it in simple Settings

Review follow-ups for the Settings clear:
- Files that could not be removed (anything but ENOENT) are counted and
  shown as an error instead of a plain success.
- Files used by scheduled calendar calls are kept, like routine files.
- On a Team Cloud, which has no clear, the full-store error no longer
  points to Settings.
- Sizes below 1 MB show in KB, so a small store or clear never reads 0 MB.
- The row also appears in the simple Settings page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Attachments clear: keep files a running turn still holds

A turn parks generated attachments until it posts its message. Clearing
the store in that window removed them, so the message lost its files.
The kept list now includes every parked turn attachment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Attachments clear: keep files of unreadable or unloaded routines

A clear now uses every routine and run on disk, including routines whose
schedule could not load, and is refused while routines.json is unreadable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Attachments clear: refuse when a saved routine's attachments are malformed

attachmentPaths() now returns null (so the clear refuses) when an unloaded
routine or run has an attachments value that is not a list of { path } objects,
instead of throwing. Adds a route test that a refused clear deletes nothing
(CodeRabbit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(routines): refuse an attachments clear when a saved list failed to load

Loading drops a routine's or run's whole attachment list when any entry is
bad, so its valid files were no longer named and a clear could delete them.
Remember that a saved list failed to load and name no files until then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(companion): let a paired desktop change a bot's model

ChatView hid the model picker for remote clients, so the Desktop Companion
had no way to switch a bot's model even though the host already allows the
task model change from a paired device. Show the picker there and leave out
the host-only shortcuts (Settings, API keys, Manage providers) that a remote
client cannot open. Approval mode stays on the host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ModelPicker: keep the file within its size limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Model picker on a paired desktop: send setup and approval resets to the host

- A signed-out or unset provider no longer offers a sign-in the host does not
  open to a paired desktop; the picker says to set it up on the host instead.
- A switch that resets approval to Ask is saved on the host over HTTP instead
  of the desktop's own bridge, which has no server behind it on a paired desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Model switch: refuse leaving Custom on a paired desktop before stopping the turn

A paired desktop has no trusted approval bridge, so the host refuses a
switch that resets Custom approval to Ask. Refuse it up front with a
pointer to the host app, instead of stopping the running turn first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(model-picker): gate a thread-only switch on the thread's own approval mode

A thread on Custom permissions under a bot default that is not Custom skipped
the Ask-reset confirmation, so the host refused the switch with a 400.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(model-picker): confirm a thread-only Custom switch and check it resets to Ask

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Model menu: stay open after picking a model that has reasoning levels

Picking a model always closed the chat's model menu, so setting its
Effort (or thinking variant) meant opening the menu a second time.
Keep the menu open when the new model shows a reasoning row in it;
picking a variant row, a model without levels, or the contained Bot
settings picker still closes as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Model menu: keep focus in the menu after a pick that leaves it open

In Simple mode the picked row is redrawn as the current model, so focus could
drop out of the still-open menu and Escape no longer closed it. Bring focus
back (to the thinking level when there is one). The control-omb ui e2e no
longer reopens the menu after a pick, since it now stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ModelPicker: keep the file within its size limit

Move the reasoning-row helpers into model-picker-reasoning.ts so
ModelPicker.tsx stays under its file-size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Model menu: keep focus in the menu after Escape clears a search

Clearing the search after a pick can remove the focused row, which dropped
focus out of the open menu so the next Escape did nothing. Focus now comes
back into the menu (to the thinking level when there is one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: re-run checks (cloud-team-preference e2e timed out on one shard; passes locally 2/2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A bot created without picking a model starts on the installation's default
model, and nothing in Bot settings said so. People assumed it followed
their own choice. Add one line under the bot's Default model: new bots
start on the installation's default unless you pick another, and backup
models below switch automatically at the usage limit. Hidden while a
bot is still being made, where backups are not shown yet.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(two-places): ask before moving this computer's bots (#4192)

The "Bring your bots together" card started the one-time move on a
single tap. It now shows a confirm step that says what moves and where
(and, for My Cloud, how to bring the bots back); the move starts only on
"Move bots", and Cancel changes nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(two-places): keep the confirm step tied to its place and keyboard-safe

Review follow-ups on the confirm step:
- Key the card by the suggested place, so a new suggestion starts fresh
  and a confirm never carries over to a place the person did not read.
- Escape inside the confirm step works as Cancel and no longer reaches
  the card's own Escape, which dismissed the suggestion for good.
- After Cancel, focus returns to "Bring them together".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(handoff): run handed-off work on the receiving bot's own cloud computer

On Auto, a turn started by another bot's coordinate_bots handoff never got
a Boat cloud computer: only a pin or "Works on" sets wants = "cloud", and a
handoff can't call select_computer (that works only on a person's turn). So
delegated work ran browser-only even when the receiving bot has its own
cloud computer.

Now, for a work or notice handoff (not a consult) on Auto with no pin and no
team computer, when the Boat backend is configured, the engine and tool
scope allow a cloud computer, and the bot already has its own box (any
state), the turn mounts that box. The mount stays lazy, so nothing is
claimed or woken until the bot makes a computer call, and Auto still never
creates a box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(handoff): only bots' handoffs use the own cloud computer, and never create one

- isHandedWork: a person's own resumed root node is not handed work, so it
  keeps the normal Auto rules (CodeRabbit review).
- The own-cloud handoff path wakes or attaches the bot's existing computer
  but never provisions a new one if it disappeared between the status check
  and the start (CodeRabbit review).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Cloud computer handoff: keep server/index.ts within its size limit

Move the cloud computer start constants next to the power manager and fold the
handoff check into one expression; behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Handoff: bound the cloud computer status lookup to 3 seconds

An unreachable Boat service could hold every eligible handoff for up to
a minute before it started; it now counts as no cloud computer after 3 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Handoff: a failed cloud computer lookup doesn't pin the browser

A Boat status lookup that errors or times out is not a confirmed
'no cloud computer', so it no longer auto-pins the handed-off turn to the
built-in browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test: wait out a settling hand-off before deleting the test bots

The lazy cloud-computer e2e deleted its bots right after they read idle;
a hand-off can still hold its dispatch for a moment then, so the delete
got 409 now and then (seen on CI shard 2). Retry the delete while it
answers 409.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The browser header showed two lookalike corner-arrow icons side by side
(Expand for Maximize, Maximize2 for Full screen), so people mixed them up
and thought one did nothing. Maximize now uses the app-window icon with the
tooltip "Maximize (fill the app window)"; Full screen uses the corner-bracket
icon with "Full screen (whole display)". Both buttons keep their labels and
what they do.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every line a bot reads that is not its own person's typed line in a one-on-one chat opens with
[From <who> · <what> · <authority>], written by the harness: relayed and API lines are information
only, each person's line in a chat several people write in is named, work handed on is on the
person's behalf, and bot reports, webhooks, app events, routine lines and incidents speak the same
grammar. A relayed yes no longer answers a question waiting on a person. "from" is a note opening
escapeNotes knows and defuse runs escapeNotes, so no bot, relay, caller or webhook can forge one.
The system prompt states the three rules once.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs: how to run Mistral Vibe as a custom ACP engine

Mistral Vibe ships an ACP entry point (vibe-acp), so it works through the
existing customAcp driver with the user's own Vibe sign-in. Add a short
example: install, sign in once with `vibe --setup`, the instance config,
and what the chat shows when the sign-in is missing.

Refs #4100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: Vibe reads its credential from env, ~/.vibe/.env or the OS keyring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(local-vm): start the driver's Chrome without its own sandbox

The Local VM container drops all capabilities except SETUID/SETGID and runs
under the runtime's seccomp profile, so Chrome cannot create the namespaces
its sandbox needs and exits at once ("Failed to move to new namespace",
exit code 21). Set CUA_DRIVER_BROWSER_NO_SANDBOX=1 on the driver's start
line so cua-driver launches Chrome with --no-sandbox; the container stays
the isolation boundary. Bump IMAGE_LAYER_VERSION to 8 so images rebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: keep the Chrome sandbox comments free of file names

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep container-computer.ts within its size ratchet: fold the Chrome sandbox note into one comment line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Higgsfield's widget declares ~45 domains and lists its own API origin
around 42nd, so it was refused and the card rendered blank.

Fixes #4242

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without a saved list, Antigravity showed its fixed one (Gemini 3.8 Flash)
and nothing asked the engine for the account's models: create used the
saved list or the fixed one, and a browser sign-in that Google finished
on its own never read them again. Gemini 4 Argon never appeared, and the
picker gave no sign the list was not the engine's.

- Antigravity reads its models at start like the other ACP engines, and
  again when a browser sign-in finishes, however it finishes.
- An ACP engine says when its list is one the engine never gave
  (modelsUnconfirmed). The model picker asks a signed-in engine for its
  list when opened, and says the list may be out of date until then.
- Concurrent reads share one run; a fresh read waits for a cached one
  under way and reads again. A confirmed saved list seeds the account's
  models, so a new session starts on the requested model.
- The ACP catalog state moves to server/drivers/acp/model-catalog.ts and
  the account line joins the new note in InstanceAccountNotes, so core.ts
  and ModelPicker.tsx stay under their size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(engines): say clearly when an engine's command runs it inside WSL

On Windows, an engine whose custom CLI command starts it through wsl.exe
(or System32's bash.exe) can chat but cannot start or reach OpenMausBot's
Windows tool servers, so team, browser, data and other tools are missing
with no explanation. Show a warning on that engine in Settings explaining
why and pointing to a native Windows install. Nothing else changes, and
nothing changes on other platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(registry): read the instance CLI before awaiting its status

Review follow-up: load() could swap the live instance while statusOf()
awaited, so the WSL notice could use another instance's CLI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: re-run checks (windows shard 2 temp-dir EPERM in server-writes.test.ts, unrelated to this change)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Re-run CI (Windows hostile-pages flake)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A turn or automation run whose final reply came back, and that then
stopped because a step failed or wasn't allowed (openai-chat's
tool_error stop), was shown as a full red failure. Mark that
runtime error partial and show it in amber as "Partly done" in the
chat row, preview, screen-reader announcement, automation panel,
routine calendar and the automation's chat note, with the error under
Details. Run status, retries and failure counting stay the same; a
run is marked partly done only when its own turn ended that way and
it has a reply.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* MCP sign-in discovery says how it found the authorization server

McpAuthMetadata.source is protected-resource when an RFC 9728 document named the
authorization server and origin when the MCP origin was assumed. Sign-in ignores it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Probe asks for a sign-in when a server lists tools to anyone and refuses tool calls

A credential-less probe that lists tools sends one tools/call of a tool no server
defines. Only HTTP 401 behind an RFC 9728 protected-resource document means the server
needs a sign-in; every other answer keeps Connected. Probes that carry any header value
send no check. The fake MCP server can now guard only tools/call and serve well-known documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A probe that sent no credentials records the sign-in it found, and never signs anyone out

McpOAuthManager.requireSignIn records needs-sign-in without touching a sign-in or tokens.
The Test route marks (dropping tokens) only when the probe carried this entry's own Bearer,
and records otherwise. The background chat-apps probe records for credential-less probes, so
servers installed before the fix leave bots' turns until the person signs in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(plugins): one-click Agentcard card from a hosted MCP apps table (#4246)

* Hosted MCP apps: one table drives Whop's card, with behaviour unchanged

Whop's one-click card was written as Whop-only branches in McpServersPanel and
PluginsPanel. They now run over HOSTED_MCP_APPS, so the next hosted app is a
table row. The ten generic whop.* strings become hostedMcp.* with a {service}
placeholder, moved in every locale by a one-off script (translations that name
Whop keep working, the list sentence falls back to English).

verify-whop.ts also waits on the connected checkmark's accessible label and the
"1 connected" chip, which it had stopped matching since the card redesign.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Plugins: one-click Agentcard card, signing in to the user's own Agentcard account

Agentcard is a second row in the hosted MCP apps table, so it gets Whop's card,
Connect and Disconnect, Bot access, search, the Connected filter and count with
no new UI code. It connects the user's own account to mcp.agentcard.sh by browser
sign-in; OpenMausBot owns no cards, approvals or orders. Agentcard publishes no
logo licence, so its tile is a neutral card glyph.

A failed save or sign-out now shows on the card that raised it, not on every card
of the shared panel. verify-whop.ts also drives the Agentcard card. Docs gain an
Agentcard section and a line on servers that list tools before sign-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* zh: move the Whop strings main has translated since to hostedMcp.*

Main translated zh after the hosted-apps table landed on this branch, so zh carried the ten old whop.* keys. Same one-off move as the other locales: Whop becomes {service}, otherAppsSetup falls back to English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
After a Mac restart the Podman machine is stopped, so every Local VM turn
failed with "Start podman first". When the runtime is Podman on macOS and it
does not answer, start the default (or only) machine that is already set up,
show the provisioning state, re-check the status and carry on. Never inits or
installs; Linux, Windows and Docker setups are untouched. A failed start gives
a clear message and is not retried for 5 minutes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a self-hosted server the built-in browser's egress gate refused every
site on the same machine and its local network unless an admin listed it
in browserEngine.egress.allow by hand in config.json. Add an owner/admin
setting, "Open sites on this server" (browserEngine.egress.localNetwork),
off by default. When on, bots' browsers may open this server's own sites
and its local network. OpenMausBot's own ports (also through a private
address such as a Docker gateway), cloud metadata, link-local and a public
name resolving to loopback stay blocked. Desktop and MausBot Cloud are
unchanged. A partial egress patch now keeps the stored allow-list.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A ChatGPT-plan provider signs in through OpenMausBot, not the Codex CLI
login, but plan usage read ~/.codex/auth.json for every Codex instance.
So the plan provider showed the default Codex account's 5-hour/weekly
usage, and at 100% the limit clock held it even though it is a
different account.

Keep the provider in the account list (so limit holds from real
refusals still name it), but read no usage for it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(pi): book pi's priced cost and cached tokens on turn.completed

The pi driver kept only usage.input/output from turn_end, so pi turns
were logged with costUsd null and usageStatus partial. Sum pi's
cost.total into the turn's cost (zero stays unknown: pi's default for an
unpriced model), report cacheRead as cachedInput, and count cached
prompt tokens in input like the other drivers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pi): book a model call's usage on message_end, before its tool runs

A turn stopped while a tool runs never got the turn_end that carried the
call's usage and cost. Count it on the assistant message_end and skip the
repeat on turn_end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pi): keep pi.ts under its size ratchet

Move the run usage tally into server/drivers/pi-usage.ts (PiRunUsage) and
the prompt image reader into pi-rpc.ts, so pi.ts shrinks to 1036 lines.
Lower its ratchet entry to match. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: re-run checks (ubuntu shard 1 delta-context e2e timing flake; passes locally 47/47, unrelated to this change)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The OpenAI / Azure OpenAI choice was only in the in-call settings and the
setup prompt, which never shows once an OpenAI key is saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With many signed-in CLIs the model picker lists the same models three or
four times, and the only way to retire a built-in provider was to uninstall
a CLI people still use in the terminal.

A provider's Settings row now has Hide. A hidden provider is left out of
every list the server builds for choosing a model (the app's providers, new
bot defaults, automatic backups), because they all pass through
withInstanceConfig; its CLI and sign-in are untouched. Hiding is refused
while a bot, a conversation, the default model or a running turn uses the
provider, the same check removing an added account makes. Hidden providers
are listed apart in Settings, folded, each with Unhide.

Closes #4152
On a shared company workspace the server's network belongs to the operator,
so the owner's "Open sites on this server" switch is neither offered nor
honoured there. Also keeps server/config.ts within its size limit and states
the refusal notice's limits in the docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person running two companies can now keep both accounts signed in on one
computer. The You menu lists them; one tap switches, with no email code. Add
another account signs in beside the one in use, which goes on until that
succeeds. Sign out removes that account from this device and moves to another
signed in here, or to signed out when none is left.

One account is active. Everything in the background follows it, and a saved
account does nothing until it is active.

Upgrades need nothing: the active sign-in stays in the same file and format, so
an existing person stays signed in and an older app still reads it. The others
are in a new encrypted file an older app never opens.

Switching keeps each account apart:
- Each account's Clouds, and what was lent to them, wait with it and come back
  with it.
- The window's sessions for the account left are cleared, all of them for a
  team's Cloud that two accounts here may share.
- This computer stops working for the account left, without a request that
  could wake its Cloud.
- Each account has its own Files, so a folder one shares is never registered on
  another's Cloud.
- With more than one account here, no first move starts by itself.
- A computer that moved to one account's Cloud stays frozen under another. That
  account's own Cloud opens, or a screen says where the bots are and offers to
  switch. A switch is refused while a move is finishing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person couldn't find how to sign out of MausBot. The You menu now shows the
address signed in on this device and Sign out. On a Cloud's or a team's page the
menu has one row that opens the same sheet on the rail's own page, so that page
never reads the address.

Signing out also takes that account's Clouds off the rail and clears their
sessions in the window, which used to stay behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(team): simpler words and defaults for a team

MausBot is a member's Chief: crowned on arrival unless they already have a
Chief, with no second crown and an inbox that never moves. The crown widens
nothing: Chief tools still follow the member's role, and it takes no
place-wide notice, proactive work, incident turn or backup Chief.

"Looked after by" replaces owner and reports-to words. Sharing is two
choices, with stored view and edit levels kept in the data. The inbox is one
list. People no longer read incident, delegated, handoff or lends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): drop imports the rewrite left unused

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): the second Chrome line uses the new key too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): the crown check takes any patch body

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(team): pin the backup, setup card and leaving guards around the crown

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): a MausBot that can't be deleted gets its crown back, and German for the new lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(team): word expectations, the MausBot's reach, and a Chief crowned earlier keeps working

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): keep crowns as they are on main, and leave a member's MausBot uncrowned

A MausBot only its person sees reaches no bot everyone sees, so a crown would
tell it to direct bots it cannot hand work to. Refusing other crowns would also
take a delegating Chief away from new members. Hide the crown in the app
instead, and change no route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Azure's GPT-Live answers 400 "Unknown parameter: 'session.client'", which
failed every Azure call with a 502. Also sizes the Service label like the
rest of the API keys page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The override also replaced the desktop's and a Cloud home's egress config, so a desktop with any
egress setting lost its default local-network access. Only a shared company workspace's server
ignores the stored egress config now, its allow-list included; desktop and Cloud keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A media preview fetch had no timeout, so a response that stalled (seen
through a remote server behind a tailnet proxy) left "Loading video…"
spinning until the component remounted. Abort an attempt after 15s with
no progress and retry up to twice; the caller's signal still cancels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop app granted "fullscreen" only to its own renderer origin, so with the
app switched to a remote server (or My Cloud as home) the native fullscreen
button on a chat video did nothing. Grant it to the same page that may already
show notifications: the main window's main frame on that exact origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A saved login kept to some bots was checked per bot, but the sign-in lives in
the browser profile, and bots on the same named profile share one session. A
login kept to one bot was filled into a browser another bot uses, which was then
signed in too. A login now fills, and is offered to a bot, only when every bot
on that browser may use it; Settings → Logins says which bots it is held back
for and what to do.

Fixes #4253
codex-cli 0.165.0 reports an API-key login from `codex login status` as
"API key configured - …" instead of "Logged in using an API key - …".
Only "Logged in" was recognised, so Settings → AI showed Codex as
"Sign in required" for anyone using an API key or a custom
model_provider, and the device sign-in flow could not tell that an API
key was already configured.

Both readers now share one matcher that accepts either wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A custom endpoint is its own claudeAgent instance: base URL, token and
models in Settings, its own configuration directory, and no read or
write of this computer's ~/.claude. Bots pick it like any other engine
while the local Claude Code keeps its own sign-in.

The instance's catalog holds only the endpoint's models, the first one
the default, and a saved Claude model falls back to it on the turn.
Ranking keeps a custom endpoint behind a provider's own plan so a new
bot never switches to someone's endpoint by accident.

The token stays in the instance environment, so the engine list never
returns it, and removal keeps the directory like a named Claude account.
- Keep the endpoint's model and host on the turn: skip local inject
  probing, so a matching local slug cannot repoint ANTHROPIC_BASE_URL.
- Refuse endpoint edits while a bot is running on that endpoint, as the
  generic instance PATCH already does.
- Inherit the CLI from the first Claude account that sets one, not from
  the first account even when it sets none.
- Count a bot's fallback when disabling removal, and keep the endpoint
  section reachable when the ordinary Claude instance is hidden.
- Name the custom endpoint flow in the provider support table, and say
  the token goes only to the base URL entered rather than "never to
  Anthropic".
- Fix the verification recipe: set URL before the curl commands, and
  name the edited model consistently.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cmd+1..9 and Cmd+Shift+[ / ] indexed state.bots, so with sections, a
custom order or a collapsed section they opened a different bot than
the one at that place in the sidebar. Read the order from the rendered
sidebar rows instead, and keep the old order when no sidebar is shown.

Fixes #4284
Simple mode keeps no switch on any tab, so the section moves from the Details
tab to Bot settings, the one place it allows Bot API's switch. The host tests
finish a turn by hand instead of counting on how fast a runner is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the open bot in a collapsed section, Cmd+Shift+[ opened the
second-to-last bot instead of the last. On phone widths, the closed
drawer no longer counts as the sidebar on screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Outside macOS, Shift turns the bracket keys into "}" / "{", so the
e.key === "]" check never matched and the cycle did nothing. Accept
both forms. The physical key code is not used, since on many layouts
BracketRight types another character.
The composer opened the / menu only at the start of the prompt, and the
server only expanded a message that started with /name, so a message
could call one skill, at its start.

The / menu now also opens after a space or a line break, offering skills
only there, since /goal, /learn and /setup are read at a message's start.
The server lists every enabled skill called as its own word, with its
SKILL.md, and keeps the message as written. A message that starts with a
skill keeps today's wording, plus a line for skills its request calls.

Fixes #4248
* Threads of one bot run at once: a browser or computer is waited for, in plain sight, only by the turn that reaches for it

Plain turns already overlapped on every role and engine. What held threads back:

- A turn's first browser call claimed the bot's browser until the turn ended, and another thread's call was refused at
  once, with nothing for the person to see. It now waits with a status row, and a holder quiet for a minute hands it to
  the waiter; the holder's next call is refused once, so nothing lands on a page it did not open.
- A bot on a team's shared computer claimed it while the turn was set up, so a second thread never started even if
  neither touched the screen. It is now taken at the first screen call. A missing machine stops only the turn that
  reaches for it.
- A bot pinned to a Local VM that is already up did the same; it now takes it at the first screen call too.
- On a Linux Cloud the memory gate charged each thread of one bot for the one browser they share, holding a second thread
  back longer on a 2 GB machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Evals: a bot pinned to the Local VM takes it at its first screen call

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tests: the parked-turn check counts what starts after the computer frees

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tests: the parked-turn check sends its next message once the engine has gone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tests: the browser-free row may land just after the call that took the browser

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A bot runs as many threads as the machine holds, and a Starter Cloud one per bot

No fixed cap of three: a Cloud runs up to 16 and its memory gate decides; a machine without the gate runs one per 2 GB of
memory, 3 to 16; a saved number still wins. The first event-log setting no longer saves a thread limit nobody chose.

A Starter Cloud runs one thread per bot for what a person or a routine starts, whatever number is saved. The Admin says
which plan with its signed POST /api/cloud/plan, kept by host/cloud-plan-tier.ts; an Admin that never said means no limit.
Work a bot's own turn started goes through, so a turn can never wait on a child queued behind itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(browser): free a Windows profile held by an orphaned Chrome (exit code 21)

On Windows, releaseBrowserProfile returned at once, so a Chrome left running
after its agent-browser daemon was killed kept the persistent profile's
lockfile open, and every later launch exited with code 21 (profile in use),
even after an app restart.

Now, when the lockfile cannot be deleted, the Chromes naming the profile are
listed; one whose parent is no longer agent-browser (or the configured engine
binary) is stopped with taskkill /T /F. A daemon's own Chrome is kept and
remembered, so later turns only re-check it with one tasklist call.
Linux and macOS are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: check image and start times before stopping a Windows Chrome

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: also stop a Windows Chrome running under the configured Chrome's own name

An orphaned Chrome that holds the profile is stopped only when its image is
on the Chrome-family list. A Chrome set through AGENT_BROWSER_EXECUTABLE_PATH
under another file name (chrome-dev.exe) was never stopped, so the profile
stayed locked. The configured Chrome's own file name is now accepted too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: cover a Windows Chrome lock that stays held after taskkill

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Rooms: let a Chief of Staff open a new thread in a room (#3878)

manage_room gains a new_thread action. Like the person's "New thread"
in a room, it opens a thread that becomes the room's current thread, so
post_to_room and coordinate_bots for that room go there. Same checks as
the other room actions (Chief, own department, reachable members, peer
review), plus the phone credential guard the UI route has, an optional
redacted title, and at most four per turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Refuse new_thread titles over 80 characters and scope the receipt's routing note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: reject multi-line new_thread titles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(settings): Google Gemini preset for OpenAI-compatible servers

Settings -> API keys -> "Your own model servers" gets a "Fill in Google
Gemini" button that fills the name and Gemini's OpenAI-compatible URL, and
shows where to get the key (Google AI Studio). Searching the keys for
"gemini" now finds this row.

Gemini's /models lists ids as "models/<id>" and includes embedding, TTS,
image and live-audio models. For the Gemini origin only, model discovery
strips the prefix and keeps chat models, so the picker shows usable ids.
Other servers are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Flush the native log before counting timers in the idle-timeout test; tidy two Gemini tests

The renewable idle-timeout test counted the native log's shared 250 ms flush
timer, which is pending only when no earlier test left a real one running,
so it failed alone on main and after new tests shifted the timing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Main now holds the same plan helper for its Starter thread limit, so the
duplicate import and wire field the merge left are gone: one mechanism.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Relaunch DeepSeek Harness when a turn's tools change

dsh refuses session/resume of a session still open in the same process
("Invalid params: session is already active"), and core rethrows that
-32602 instead of relaunching, so the message went unanswered. Mark
DeepSeek restartOnMcpChange, like Qwen, Hermes, Copilot and Cline: the
old process exits and the session resumes in a fresh one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: check the fresh process got the new tools and resumed the same session

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: drop the comment above the fresh-process assertions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
It fails rarely, under load, and leaves nothing to read: the join is decided from these rows.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
automation-reports scripted on the old routine wording, and openai-tools expected a line sent through the API to appear word for word, where it is now JSON-encoded under its note.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A remote server's sign-in check is a call the broker test now expects. The privacy test's marker could match a room's random id, so it now uses one no id can hold. server/config.ts and server/index.ts come back under their pins: a room's new-thread handler moves to its own file, unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
With "Works on: Browser", the surface prompt said "there is no desktop,
file or shell computer this turn". Codex and Claude Code bots read that
as "no shell" and refused to run commands, even though their own shell
and file tools still work (SURFACE_AUTHORITY already says ordinary code
and file tasks may use their normal tools). The sentence now says there
is no desktop computer, and that the engine's own shell and file tools,
if it has them, still work.

Closes #4291

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The strings the simpler team words replaced fell back to English. Every pack now has them, using each language's existing terms.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An automatic pass that began before a switch could go on to re-lend to the
account just left, and send it a disconnect that could wake its Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(computer): answers the bridge writes itself carry resultType for 2026-07-28 clients

An engine on MCP protocol revision 2026-07-28 rejects any result without
resultType. cua-driver sends one, but the answers the bridge writes itself
(a refused call such as "Another thread is using this computer", a failed
relay, a ping) did not, so the bot saw "missing required resultType"
instead of the reason. Those answers now say resultType "complete" when the
request was made on 2026-07-28 or later; older clients get them unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(computer): a relayed Windows call is marked complete for a 2026-07-28 client

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(computer): the relayed 2026-07-28 call must also succeed, not only carry resultType

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix: end a Codex limit hold once fresh usage shows the window that refused is gone

A Codex refusal holds the engine until the reset it named, and the hold is
kept across restarts. Only a Codex turn that works ended it early, but every
new turn goes to another AI while the engine is held, so after a plan upgrade
Codex stayed "at its limit" until the old reset time. A fresh usage reading
with no window at its limit and none resetting at the hold's time now ends
the hold. Claude keeps its holds: it also refuses on limits its two usage
windows do not show.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: ignore usage read before a Codex refusal when ending its hold

A cached usage read (up to 45 s old) taken before the refusal could
release the new hold at once. Only a read fetched at or after the hold
began can end it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: count a repeated Codex refusal as the start of its hold

A second refusal with the same reset time returned early, so the hold kept
the first refusal's time and a usage read between the two could end it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: keep only the reason in the repeated-refusal comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(procs): count a Windows CLI stopped once it exits when taskkill /T fails

taskkill /T /F returns an error when any process in the tree could not be
stopped. The fallback then waited only for "close", which never comes while
a leftover process still holds the CLI's inherited pipes, so Codex reported
"codex did not shut down after termination was requested" on every turn.
Wait for "exit" too, as the success path already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: pin taskkill args and the exit-before-failure order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(docker): build and publish the server image for linux/arm64

The Dockerfile fetched Chrome for Testing, which has no Linux ARM64 build,
and copied the x64 DuckDB tree, so `docker build` failed on a Raspberry Pi
or ARM server. The JavaScript build now runs once on the build host's CPU;
the DuckDB tree and the browser follow the image's CPU (Debian's Chromium on
arm64, linked at the same path). CI boots the arm64 image on GitHub's ARM
runner, and publish pushes the server image for amd64 and arm64. The Cloud
home image stays amd64.

Closes #4060

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Key the arm64 Chromium layer on Debian's newest bookworm build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* Show Teach a task and Library in Advanced mode

Advanced mode hid two things Simple mode has: the composer's
"Teach a task" button and the bot's Library (what the bot made,
remembers, knows and where it works).

- Composer: Advanced shows a Teach a task button next to the
  paperclip (same /learn draft as Simple), and the phone + menu
  offers it in both modes.
- Bot settings: a new Library section after Memory renders the same
  LibraryTab; its Memory, Skills and Folder rows open the matching
  Advanced sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test the Library row targets and the agents check on Teach a task

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(templates): drop the full-window backdrop blur behind the Templates page

Without a GPU (Linux desktop with hardware acceleration off) the blur is
redrawn in software on every frame, so the page stayed laggy while open.
Keep the dim; the panel itself is opaque.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(templates): also catch an inline backdropFilter style

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* fix(claude): show an MCP server's question as an approval card

When an MCP server asked the person to confirm something during a tool
call (MCP elicitation), the Claude CLI sent a control_request the driver
never answered, so the tool call failed after the CLI's timeout. Plain
confirmations now become an approval card whose answer goes back on
stdin; forms with fields and link requests are declined at once with a
note in the chat. Codex's silent decline now leaves the same kind of note.

Cost-history helpers move to claude-cost-history.ts to keep claude.ts
under the file-size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(claude): withdraw MCP question cards on failed delivery and on relaunch

The answer to an MCP server's question now waits for the write to reach the
CLI; when it can't, the card is withdrawn instead of showing approved. Open
questions are also withdrawn when the launch that asked them fails and is
retried or rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(claude): only show https links in the notice; withdraw a card answered as the session closes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(claude): decline forms with required-only fields; withdraw a card cancelled mid-answer

- A form whose `required` names have no declared property is a form too: decline it instead of opening a card that would accept with empty content.
- A control_cancel_request that arrives while the person's answer is still being written now wins: the card is withdrawn (timeout) and answer() returns "failed" instead of recording it as the person's answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Withdraw the elicitation card as soon as the CLI cancels it

A control_cancel_request that arrived while the person's answer was still
being written only set a flag, so the card stayed open until the write
settled. Emit the withdrawal when the cancellation arrives instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: withdraw in-flight MCP answer cards when the session closes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A login Codex reads from outside auth.json (the keyring) is remembered so
later turns skip `codex login status`. Once that login was removed, every
later turn on the provider instance still launched Codex and failed only
after its reconnects. A turn that fails with Codex's missing-credentials
401 now forgets the remembered login, so the next turn asks Codex again and
stops at once when Codex is signed out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/config.ts
One deny-by-default gate for a thread the Bot API opened and anything it
hands on: confined engine in Ask, only the engine's hooks mounted, no computer
started, internal routes refused unless listed, a prompt with the bot's
instructions and memory only, and nothing flowing back into the person's other
conversations. An engine that can't be confined doesn't take calls.

Also: image tags are neutralized after normalising, a leaving teammate's keys
go with them, refused calls no longer write per call, each bot has its own row
cap, GET returns only the caller's own reply, failures answer in fixed words,
and bak_ keys are redacted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A `codex login status` asked before a turn forgot the remembered login
could finish afterwards and remember it again, so the next turn skipped the
check. Only a status asked since the last forget may confirm the login now.

A turn/start that Codex refuses for missing credentials forgets the
remembered login too, as a failed turn already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the server is busy, Node 24 can fire execFile's timeout after the CLI
has exited but before Node saw the exit. It then drops the output and reports
success, so cliVersionReader got no error and no version and showed
"CLI not found" for a CLI that works. execCli now marks such a run as timed
out, so the reader keeps the last version or names the timeout.

Agent-Attribution: 1
Agent-Chat: claude/b6b704f5-9b08-470a-aa80-b80efbdfe337
Agent-Writer: claude/b6b704f5-9b08-470a-aa80-b80efbdfe337
Agent-Role: main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claudeAuthStatus reported signed out for any answer it could not read:
an error with no output, non-JSON output, or JSON without a boolean
loggedIn. A brief hiccup then showed "Not signed in" for a working login
and fed signed-out handling such as the limit takeover. Only the CLI's
own loggedIn:false now means signed out. Anything else leaves
authenticated out, which the snapshot already treats as unknown (it keeps
the last reading, and the UI says "Sign-in not confirmed yet"). Stale
credential storage is still never trusted.

Agent-Attribution: 1
Agent-Chat: claude/b6b704f5-9b08-470a-aa80-b80efbdfe337
Agent-Writer: claude/b6b704f5-9b08-470a-aa80-b80efbdfe337
Agent-Role: main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the hook command was '"%OMB_HOOK_NODE%" "%OMB_HOOK_HELPER%"',
which only cmd.exe expands. Claude Code runs hook commands through Git
Bash on Windows (PowerShell when Git Bash is missing). Bash reads a
command word that starts with % as a job to resume, so every hook failed
with "fg: no job control" and no tool results, compaction notes or stop
events reached OpenMausBot. On Windows the hook now uses Claude Code's
exec form (command plus args, 2.1.139), which starts node directly with
the helper path, so no shell reads it. macOS and Linux keep the quoted
shell line.

The fake Claude CLI ran every hook with shell: true, which is cmd.exe on
Windows, so the tests never saw this. It now runs a hook with args the
way Claude Code does, without a shell.

Agent-Attribution: 1
Agent-Chat: claude/b6b704f5-9b08-470a-aa80-b80efbdfe337
Agent-Writer: claude/b6b704f5-9b08-470a-aa80-b80efbdfe337
Agent-Role: main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The report has no address or account id of the other account, and the operators
use its reason. The startup test now names the saved accounts being read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pass no model to the environment builder for endpoint turns and
  one-shot review calls, so an endpoint model id like `host::model`
  cannot repoint ANTHROPIC_BASE_URL away from the configured endpoint.
- Count task-level selections in the UI removal guard, so Remove is not
  offered while only a task still points at the endpoint.
- Keep the endpoint section, and its Add control, reachable when the
  ordinary Claude card is hidden.
The turn opens with the note every other line carries, and keeps the rules for
reading it without any guidance about tools it doesn't have. The card says in
one line when a bot's AI can't take calls. A real Team Cloud test covers the
path end to end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(composer): the teach button lives with the plus menu, back under the size limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tests: a comment says what the test covers, not which PR it came from

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Team Cloud, and a Cloud only its owner used, what came in from outside
runs confined, and that rests on the conversation's own records. A thread
opened from it had none of them and started at the bot's own level. Such work
now finishes where it is.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(team): name who can share a bot, say day-old questions, keep private chats out of the export

A bot that cannot reach another names who looks after it. An ask left for a
day is said in the person's inbox chat, with no card or flag. A team's lent
computer refusal is one honest line. A personal bot names the team a bot
lives in. The Owner's export of a Team Cloud no longer carries anything of a
member's alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): the export names nothing of a member's alone, wherever it is kept

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team): a day-old ask reaches a User's own MausBot only on a turn the person is behind

The line names what waits and where it is answered; this bot cannot answer it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Ratchet: the team's fixes leave server/index.ts a line shorter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Ratchet: server/index.ts at its size after merging main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* You menu: who you're signed in as, and Sign out

A person couldn't find how to sign out of MausBot. The You menu now shows the
address signed in on this device and Sign out. On a Cloud's or a team's page the
menu has one row that opens the same sheet on the rail's own page, so that page
never reads the address.

Signing out also takes that account's Clouds off the rail and clears their
sessions in the window, which used to stay behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Updater test: give its sign-in the two names main now uses

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(routines): no run banner on a run that worked in its own results thread

When a wait finishes inside the person's own conversation, the run's
thread and its results thread are the same. The "Run details" banner then
sat on that conversation for good, and "Back to results" pointed at the
thread already open, so clicking it did nothing. Show the banner only on a
separate execution thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep ChatView within its line ratchet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: wlals0874 <wlals0874@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
remark-gfm accepts a single "~" as strikethrough by default, and ChatMarkdown
draws strikethrough as a spoiler. A reply that writes two ranges such as
"77~82 ... 77~80" therefore hid everything between the two tildes.
Spoilers were specified as ~~double-tilde~~ spans (#265), so turn off
singleTilde for both the render and the normalization parse.

Co-authored-by: wlals0874 <wlals0874@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
* chore(release): bump version to 0.1.140

* chore(release): keep ChatView's limit at its real size after main moved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Found in a real browser: the Copy button sat on top of the command's address
and key, and the count disagreed with the list because the list kept calls from
before the API was last off. The command now wraps in full with Copy under it,
the card lists calls since it was switched on, and its description says the bot
answers from its instructions and memory with no tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found by driving the real app against a fake Admin.

- Signing out stops lending, and each Cloud answers that goodbye by re-issuing
  its session cookie. The answer could land after the clear and put the cookie
  back. The clear now waits for those answers (10 s at most).
- A My Cloud saved by hand carries no mark of its own; only the sign-in named
  it, and the sign-in had ended by the time the account's places were named. So
  it stayed on the rail with its cookie. The places are named first now.
- A team or a second Cloud joining the saved list made My Cloud the active place
  without moving the window, which was on This computer. That page then counted
  as another server's: no address or Sign out in the You menu, and My Cloud's
  circle did nothing until a restart. This computer now counts as a place that
  is there.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix(browser): a bot's browser isn't handed over until its open tabs have their identity

A tab that is already open when the browser starts isn't paused, so it can navigate before its
override lands. Chrome then gives that page and its frames empty high-entropy client hints, because
the launcher's --user-agent leaves the override their only source. The browser's start now waits for
those overrides, for at most 3 s, so a tab that never answers can't keep the browser from starting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(browser): the sidecar's open-tab fixture types on our Node lib

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A computer whose bots moved to a Cloud nobody here can reach (nobody signed in, or an account with no
way to that Cloud) now opens a clean workspace in its own folder, with one quiet line saying the bots
are in their Cloud. Sign in stays in the You menu. The frozen copy's server isn't running meanwhile, so
it can't run anything or show, and the move's code only ever reaches that copy, never the clean folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every saved account's Clouds stay on the rail, grouped by account with a thin divider; a click on another
account's place switches first, with the machinery the switch already had. Add another account moves to the
rail's plus. The You menu shows the address and Sign out, with no list of accounts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Move from Grok Bot: one full-window flow, no sign-in and no network

Each Bot writes its own setup; the person brings it back found in Downloads,
pasted or dropped, sees what comes over, and gets a checklist of what is left.
Replaces the share link, the public card fetch, Sign in with Cursor and the
finish-setup screen. An old cursor-session.json is deleted at start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: lint and locale hash cleanup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: Settings → Import in a browser too; the flow holds focus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: welcome-screen tests, plain-words check, ordinary colours only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: clamp the instructions preview to two lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: say why a found Bot can't be read, keep what a partial add brought, take drops anywhere

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: the flow is a rarely opened screen, not preloaded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: one button in Settings, one dialog, the plain flow

Copy the message, bring back the reply, preview, import, report. Removes the
onboarding entries, the Templates card, the full-window screens, the checklist
and the sign-in rows. Skills come on unless the skill scan flags them, event
routines go to a notes file in the bot's memory, routines are named
<Bot>: <routine>, and an existing server or an already moved Bot is a conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: plain words in the dialog's reasons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move from Grok Bot: a once-only popup, and the dialog cut to names and counts

The popup goes first in the once-only notices queue: after the welcome on a new
install and at the next launch otherwise, with Let's start opening the same
dialog. It reads nothing on this computer. The preview and the report are now
the Bot's name, a count per kind and a few plain lines. Nothing reads the Grok
Bot app's chats any more, only its list of Bots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A computer whose bots moved to a Cloud nobody here can reach (nobody signed in, or an account with no
way to that Cloud) now opens a clean workspace in its own folder, with one quiet line saying the bots
are in their Cloud. Sign in stays in the You menu. The frozen copy's server isn't running meanwhile, so
it can't run anything or show, and the move's code only ever reaches that copy, never the clean folder.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The partial egress config never reaches the gate there, so an operator's list does nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Between quiesce and reload a refresh could write the old sign-in over the new one; now nothing is asked or
written then. A switch that fails partway still reads its file again and shows the window. The browser's way
says how it ended, so the sheet isn't left waiting. Another sign-in's included-services token doesn't stay with
the server when the Admin can't be asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A file dropped on the dialog also went to the chat box behind it, which
uploads a drop straight away and shows it as an attachment, so one Send would
pass the export to the chat's model. The dialog now holds every drag on the
window in the capture phase, on every step, and only its first step reads what
was dropped. The chat box gets drags back once the dialog closes.

The report also says that files on Grok Bot's computer don't come over.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The rail's page failed to load if it first appeared while the server was restarting, and stayed a blank strip,
so the sheet on it (Account and sign out) did nothing. It now loads again at the next refresh, which comes once
the server is ready. The You menu's MausBot Cloud row says Sign in while the clean workspace's line asks for it.
The popup offering to bring bots here stays away beside a line saying they're safe in the Cloud. A top-up waits
for this computer's own copy without an hour's penalty, and the journal goes on once the swap has ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Azure refuses session.client, so an Azure call goes without the list that
limits the caller's data channel to hanging up. We could not check what Azure
does then, so treat the caller as able to send session or item events and to
receive events holding the bot's instructions.

The limit sits where a session is created, LiveCallController.start, ahead of
the busy and setup answers, so every way in meets it: a caller must be an admin
or the single owner. A local request is not taken for the owner where other
people use the server, since every bot's shell is a local caller too. A refused
caller reads a plain sentence and gets no call through OpenAI instead. A session
without the admin scope hears the same sentence from the sign-in gate, and no
longer learns the Azure endpoint or deployment from GET /api/config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Past the very start of a message, a skill call now needs both: words a person
typed themselves, and a line that opens with /name. A webhook's payload, another
bot's message, an app's words, a pressed button, a relay and a bot's own shell on
this machine stay plain text, and so does anything inside code.

personLine alone could not say this: it is also true for app messages, presses,
relays and bare loopback sends. The send route is the one place that knows, so it
notes a typed send there, bound to its thread and its words. The turn reads only
those lines, not the assembled prompt, which also holds quoted replies and app
context.

Own, imported and native skills now resolve in one call, so the ones the menu
offers run on a later line too. /standup.txt is no longer a call: punctuation ends
a name only when whitespace or the end of the text follows it.

A skill picked from the menu later in a line moves onto a line of its own, so a
pick is plain text and nothing new travels with the message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An empty answer for instances or webhooks still reached the reducer and threw in App. The check now sits in one helper, so store.tsx stays inside its size limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first fix cleared its flag at did-finish-load, which also fires for the error page that replaced the failed
load, so the rail stayed blank in the real app. Only a retry clears it now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fence mounts no bridge for a Bot API turn, so a case waiting for one could
only time out. It now checks that the engine ran confined with none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new Team Cloud names its Chief at random from a list of 64. A test that makes a bot from
that list and hands work to it by name then found two teammates with that name and was
refused, one run in 64. That was the one-answer test's occasional failure, under any load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/redact.test.ts
#	shared/redact.ts
Once quiet, the sign-in says nothing of its Clouds, so rows kept then lost their colours, a Cloud that ended lost
that word, and a Cloud being set up lost its row. The list past eight names each group once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Not only in the clean workspace: an invited person told to sign in looks for those words too. It opens the same page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Bought a plan with a different email?" signed the account out to use the other one. With several accounts kept
here it adds that email, and it says so for someone who joined a team with another address too. The deep link
lands on this card for a signed-in person with no Cloud, so it now has a way to add an account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the second new bot on, right-clicking a bot and pressing Rename opened the
edit on the first bot, and what you typed replaced that bot's name. When the
request moved on, the sidebar passed 0 to the first bot's row, and the row read
any change as a new request. A request back to 0 now just means there is none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codex.ts is at its line ratchet; the next change adds to it.
codex-cli 0.166.0 answers thread/start and thread/resume before the MCP
servers are up and builds the first model request with only the ready
ones, so a slow server such as the connected apps proxy was missing from
the turn. The driver now waits for the servers it mounted to report a
settled startup state before turn/start, bounded by Codex's own 30 s
limit, and skips turn/start when the turn is stopped or the app-server
exits while waiting.

Fixes #4342
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Your Cloud" fails the vocabulary test, and that has kept main's CI red since the clean workspace merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fetch keeps a custom api-key header across a cross-origin redirect, though it
drops Authorization, so an Azure session request now refuses redirects.

One live.key slot served both services, so switching Service sent the saved key
to the other provider, and an admin session or paired phone could repoint the
endpoint at a gateway they own and collect it. A saved key now records where it
may go, and is handed out only while calls go there. Switching Service or
changing the endpoint's host, through PATCH /api/live/settings or PUT /api/config,
forgets it and asks again, even after changing back. On the desktop the OS store
keeps a copy the server cannot delete, so the record stays even after a restart.

PATCH /api/live/settings now updates the environment, as PUT /api/config does.
Before, a provider set by the environment or by PUT won over a later PATCH: the
file changed and the app did not.

With Azure chosen, the Keys page row asks for an Azure key instead of an optional
OpenAI one, and docs name the hosts actually allowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing in the app asked a team's owner to bring anyone in, and People only
listed those already there, so it didn't show at all for someone alone on a new
team. Admins now get an Invite someone row under People, in Simple too and when
they're alone. It opens the team's People page on the Cloud, where invitations
are sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no AI, MausBot told everyone to sign in with Claude or ChatGPT, which a User
on a team can't do. It now says who connects it, in the message it stores and in
the one a person already has from before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn keeps its engine and the servers it mounted, as the doc said, but a connected-apps tool and
the first claim on a computer are refused at once. The doc now says so. A computer refused that way
told the person it didn't start and to try again; it now gives the rule's words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Shared · everyone in Acme can see" was fixed text, so it showed on bots set to
Only people added too. Every person's copy of a bot now says when only the
people added see it, without naming them, and the chat says "Shared · only
people added and admins can see".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Beside a person's own chats it was one of two rows both called "New thread", and
once anyone wrote in it, it took its first line's words as its name. On every
person's copy it now says Shared chat, and the chat's header says so too. It can't
be renamed, and a member's own MausBot has none.

What opens when someone clicks a bot doesn't change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine whose bot tried to hand work to one shared with different people
ended as completed, with nothing sent. The run now ends as not done, says "Rooms
couldn't hand this to Bookkeeping, because they're shared with different people.
Nothing was sent.", and reaches the person who wrote the routine in their inbox,
whoever else the bot's failures go to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both made the same request, which a User's session can't make, and it came back
as "forbidden: this session lacks the admin scope". The + menu and the new chat
panel leave them out while we know the person can't make a bot, and the keyboard
shortcut does nothing. New group chat stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a team with no AI, Send showed `provider instance "" is unavailable — pick
another model in settings` in red for a few seconds. A User now reads "Olive needs
to connect an AI before bots can answer. I've told them.", their message stays in
the box, and the owner really gets one line in their inbox, at most once a day
for each person. The machine only learns who the owner is when they first open
the team, so until then the User reads that they'll be told, and they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move was only on My Cloud's page, one bot at a time behind More, and nothing
pointed there. On a team's own page in the desktop app, Bring your stuff now lists
the person's bots on My Cloud with a Move for each. Move to Acme stays in the bot's
menu too.

Both confirms now say there's no way back and what stays on My Cloud: what the bot
remembers, the person's connections, and MausBot.

A team's server isn't the person's own, so its page reads only the names of My
Cloud's bots and names one by id. Main reads the bot from My Cloud, the team comes
from the Admin's verified session, and nothing moves until the person agrees in
main's own confirm, which no page can skip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the Team trial at one day, the app said "Free for 1 days", and "nothing is
charged today" when the first charge could be hours away. Both now have .one and
.many wordings in every language, as the room card's counts do. Other lengths read
as they did.

A running trial says only when it ends, not how long it was, so the promise about
today goes by what's left: a day or less, or no date at all, and it isn't made.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stopped team told everyone to subscribe again on their Plan page, with Manage in
your browser. A User can do neither, so they now read "Ask its owner to start it
again", with nothing to press. Whoever pays reads what they did.

The app's Team card had no line under its name. It now says "One shared Cloud for
up to 5 people", from the most people the Admin allows the plan, as the portal does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What fits on My Cloud's disk is its 15% reserve against the disk the test's server sees, which is the machine's.
A nearly full laptop or runner kept every copy off it, so Files' list came back empty. Its failure now says why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kimi signs in with `kimi login` (device code); Gemini CLI and DeepSeek
Harness take an API key saved on their own instance, since Gemini CLI no
longer accepts consumer Google sign-ins and dsh has no account login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dk1gBXC5CDhrU884yPYJAf
Gemini CLI returns to the fleet with an install step and a Gemini API key
under Settings → Connections; Kimi joins the engines a saved product fleet
gains. A Codex background call refused for its model moves on to the
account's next listed official model instead of failing the welcome test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dk1gBXC5CDhrU884yPYJAf
- a guest browser is the bot's own temporary one, so it has no browser-mates;
  the end-to-end case now checks a login kept to one guest bot still fills
- a login saved from a sign-in card is kept to every bot that browser signs in
  (BotLogins.cardBots), and the card names those bots before saving
- the shared-profile hint no longer says every bot uses the same logins; its
  stale translations fall back to English
- BotLogins looks up browser-mates itself from the bots it is given, so
  server/index.ts keeps one statement per line
- fill_login's own path is covered on a named shared profile with the real
  BotLogins and LoginStore
# Conflicts:
#	src/locales/source-hashes.json
On Windows agent-browser runs chrome-launcher.cmd through cmd.exe, so the
bot's Chrome is a child of cmd.exe, not of agent-browser. The exit-21 profile
release (#4268) only recognises an agent-browser parent and stops the live
Chrome. This test fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the bot's Chrome starts through chrome-launcher.cmd, which Rust's
Command runs in cmd.exe, so Chrome's parent is cmd.exe. Freeing a profile held
by an orphaned Chrome (exit code 21) recognised only an agent-browser parent,
so it force-stopped the live Chrome on every bot turn: the live view's stream
dropped, pages went back to about:blank and each restart opened another console
window. The profile listing now also reads the grandparent, and a Chrome under
cmd.exe belongs to the shell's parent. A Chrome whose daemon is gone is still
stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent-browser 0.36 stops only its child on Windows, which is cmd.exe when Chrome
runs through the launcher batch file. That Chrome keeps the profile under a
daemon that still runs, so the kept-Chrome shortcut now also checks the shell.
The real-process Windows test proves the keep through the cache and stops the
whole tree if it fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* wip: the You menu's Sign in row

* The clean workspace, after its first real-app run: rail, sign in, popup and top-up

The rail's page failed to load if it first appeared while the server was restarting, and stayed a blank strip,
so the sheet on it (Account and sign out) did nothing. It now loads again at the next refresh, which comes once
the server is ready. The You menu's MausBot Cloud row says Sign in while the clean workspace's line asks for it.
The popup offering to bring bots here stays away beside a line saying they're safe in the Cloud. A top-up waits
for this computer's own copy without an hour's penalty, and the journal goes on once the swap has ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: the top-up test's move is recent, so the copy isn't forgotten first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The rail's page: an error page finishing to load isn't the rail loading

The first fix cleared its flag at did-finish-load, which also fires for the error page that replaced the failed
load, so the rail stayed blank in the real app. Only a retry clears it now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The You menu's MausBot Cloud row says Sign in for anyone signed out here

Not only in the clean workspace: an invited person told to sign in looks for those words too. It opens the same page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The clean workspace's line says "the Cloud", as the app's words do

"Your Cloud" fails the vocabulary test, and that has kept main's CI red since the clean workspace merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
crypto.randomUUID only exists in secure contexts (https or localhost).
A self-hosted server opened by its IP over plain http is not one, so the
composer's sendId call threw and pressing Send did nothing. Add a
randomUuid() helper that falls back to a getRandomValues-based v4 UUID,
use it for every bare crypto.randomUUID() call in src/, and add a guard
test so new bare calls fail.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The vocabulary test refuses "your Cloud", so this line turned every branch based on current main red.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(coordination): say why a queued handoff has not started, with its id

A handoff to a busy teammate showed only "queued" in list_threads and
"waiting for that teammate to be free" in assignment_status, so neither
the bot nor the person could tell a full thread list from a stuck one.

server/host/queued-reason.ts gives the reason from the same state the
coordinator uses to hold it: the person's open card, the computer it
needs, an earlier turn in that thread, N of N thread slots in use
(naming the busy threads only to the receiver itself), or a room turn.
list_threads rows and assignment_status now carry it, and a queued row
shows the handoff id. Scheduling is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: drop the file-pointer comment in queued-reason.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The rail keeps what the follow-up shipped. Five strings that still pointed at a menu at the top of the sidebar, or
called the rail's icons circles, now say "on the left of the app"; their translations fall back to English until
they are refreshed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Let boxed bots read the files a person attaches

On a Cloud home the bot box hides the data folder and never puts back
the uploads folder, so the <attached-file> path a bot was given didn't
exist inside the box and every file attachment failed to open.

When the box is on, each upload a turn names is now copied into the
turn's working folder (.attachments/), which the box always binds, and
the path in the text sent to the engine points at that copy. Stored
messages, uploads and the box's mounts are unchanged; with the box off
nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(bot-box): show uploads from a read-only, server-owned folder

Address review on the attachments fix: uploads are no longer copied into
the bot-writable working folder. Each upload is hard-linked (or copied on
another file system) into <data>/box-uploads/<bot>/<thread>, which every
box of that conversation binds read-only after all read-write binds, so
the bot can read it but never change it or swap the folder for a link.
Tag paths are decoded before the uploads-folder check, and a deleted
upload is never pointed at.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(bot-box): drop an upload's box copy when the upload is deleted

Deleting or clearing an upload removed only the file in the attachments
folder; the link in each conversation's box uploads folder kept the data
readable to boxed bots and kept its space. Both removals now drop the
matching name from every box uploads folder. A failure to make the
uploads folder at box start is now logged instead of swallowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(attachments): keep box copies when the upload itself could not be deleted

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Hidden tool steps can leave a whole window of messages shorter than the
screen. With no scrollbar, an upward wheel or swipe was ignored and no
scroll event fired, so earlier messages could never be reached. Treat an
upward gesture as a scroll whenever earlier rows exist.

Closes #4365

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(sidebar): working or waiting bots move to the top of their list

A bot that is working or waiting on the person now shows at the top of
its own sidebar list (pinned, main, each department), keeping the
person's order among them; it goes back to its place when done. Only
the shown order changes: drag and Alt+Up/Down keep using the saved
order, so a reorder never stores the floated one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(sidebar): pin unchanged pinned/sectioned lists and a list drop while a bot is busy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The dot counted every unseen failed or missed run, but the Automations page
lists only runs of automations that still exist, and opening one is what marks
its runs seen. A run of a deleted automation (or bot) kept the dot on forever
with nothing to open. Count only runs the Automations page lists.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let a one-on-one goal step hand work to teammates

A one-on-one /goal step starts as a card continuation, and card
continuations never began a coordinator turn. So coordinate_bots from a
goal step had no root to hang on and was refused ("The requesting turn
has no root"), and the bot had to wait for the person to say "send it".

A one-on-one goal step now begins its own root, tagged with its goal run,
the way a room goal step already does. The root ends when the step
settles (and when a step falls back to a backup model). Other card
continuations are unchanged, and the "ask me before contacting other
bots" setting still asks first.

Closes #4321
Closes #4320

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Goal pass: a restart ends the one-on-one goal run, so its step is not rerun

The one-on-one goal run lives only in memory, so after a restart its step's
root would be rerun outside any goal. Fail it with a plain reason instead,
the way room goal steps already are. Also drop a stale comment, and move the
message paging helpers out of server/index.ts for the file-size ratchet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* ChatGPT plan: plain error for a refused model, and hide it for that account

ChatGPT's /models can list a model the plan then refuses through Codex
("The 'gpt-6.1-sol' model is not supported when using Codex with a ChatGPT
account."). The raw 400 showed in chat and the model stayed listed and
default, so every turn failed. Now that refusal, on the ChatGPT plan route
only, shows a plain message, records the model as refused for that account
(cleared on sign-in or sign-out), drops it from the model list, and later
turns that still name it run on the account's first usable model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ChatGPT plan: refused models are known at once and never lost

- Keep a run's refusals in memory so the next turn sees them before the
  saved list is written; clear them on sign-in and sign-out.
- A saved list that can't be read is never overwritten with one model.
- Drop the refused model from the menu at once, even when it was the
  account's only model.
- Background calls record the refusal too, as their message says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the MCP app-approval form out of codex.ts for the file-size ratchet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: run Command Code as a custom ACP engine

Command Code ships an ACP mode (`cmd acp`), so it already works through the
customAcp driver. Add an example next to Mistral Vibe: install, sign in with
`cmd login` (or COMMAND_CODE_API_KEY for servers), the config.json entry,
`cmdc` on Windows, and the errors you see when not signed in.

Closes #4339

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Docs: Windows full-path lookup for Command Code uses where.exe cmdc

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
After each relayed catalog, an added team whose catalog release differs from
its own moves to that release once the file is downloaded and readable, never
to a withdrawn one. Each part changes only when the publisher changed it (its
new hash is not r) and the person did not (it still hashes to w), using the
r/w stamps written at install; it is then written and re-stamped.

Updated: a bot's name, title, description, instructions, playbooks and skills
(new text, and skills new to it in the release), a group chat's name and
bulletin, a routine's name, prompt and schedule, and the team brief. Approval
is never raised, routines stay as the person left them, connections are never
added. A skill whose new text can't be written is put back, and the install
stays on its release until every part is written.

The withdrawn pass moves with it into server/org-library-releases.ts, and the
shelf's note now says a waiting release comes over on its own.
* Move: name what did not move and why, and stop retrying an app automation forever on a server without connected apps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move: read the send snapshot once per view; name items only when failing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
composer-attachments.ts runs outside the renderer and now imports random-uuid.ts, so the import graph test on main failed in every PR's typecheck + lint job.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Composer: a message takes up to 10 images

A message took at most four images; the composer left the rest out with a
notice and the server refused a fifth. Raise the per-message image count to
ten on both sides, kept in step by the existing test.

The total stays at 40 MB per message (what four 10 MB images allowed before),
so requests to the AI engines don't grow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Composer: images also fit the 40 MB a message may carry in all

Ten images of up to 10 MB each could pass the composer and then be
refused at send. Images past the bytes left are left out with the same
notice, which now names both limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
What fits on My Cloud's disk is its 15% reserve against the disk the test's server sees, which is the machine's.
A nearly full laptop or runner kept every copy off it, so Files' list came back empty. Its failure now says why.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(computer): skip the "use your computer" card at Full access

An Auto pin that reached this computer asked Allow once / Deny before the
first screen call at every approval level, even Full access ("Just do it").
Full access is the person's grant to act without asking, so the card is now
shown only below Full access. Every other level asks as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(computer): skip the card at Full access on the host fallback claim too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(computer): create the asking bots with settings.approvalMode so they really ask; keep index.ts in the size ratchet

POST /api/bots reads the level from settings, so the top-level approvalMode
was ignored and those bots ran at Full access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(computer): read the live approval level when the lazy host claim decides on the card

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(computer): read the live approval level in the explicit auto-pin host claim too

The wants=local path decided whether to ask once, at turn start, so a
thread switched down from Full access mid-turn could claim this computer
without the consent card. mountHostComputer now takes askNow() and reads
liveApprovalMode at the first screen call, like the implicit Auto path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(computer): ask again after the host wait when the thread dropped below Full access

The lazy host claim read the approval level once, before waiting for the
host. A thread switched to Ask during that wait got the screen with no
card. claimWithYourComputerConsent re-checks after the wait and asks
then; a Deny fails the claim so no screen call runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(computer): ask again after the host wait on the unpinned fallback claim too

Use claimWithYourComputerConsent on the auto fallback host claim, as
mountHostComputer already does, so a thread switched from Full access to
Ask while waiting for this computer still gets the card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(computer): seat-wait e2e bots ask before using this computer

The runtime-roots and room-roots seat tests expect a use-your-computer card
on the holder's and waiters' first screen call, but POST /api/bots creates
bots at Full access, where the fallback host claim now skips the card. Create
those bots with settings.approvalMode "ask" so they really ask, as the
host-lazy-claim tests already do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(place): keep Auto checked when Auto picked the place

A turn on Auto records the place it picked on the conversation
(surfaceSource "auto"). The composer place menu, the phone's place
menu and the Screen panel's Advanced note read that as the person's
pin, so after choosing Auto the menu checked Browser and the panel
said the chat was pinned to Browser.

Add personPin(task), which ignores Auto's own picks, and use it for
the checkmark, the pinned highlight and the pinned note. The icon
still shows the place in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(place): clicking a place Auto already picked pins it in the desktop menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(place-chip): drop the stale header comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Run skills named anywhere in a message, several at once

A /skill only ran when it started the message, only one ran per
message, and the composer offered skills only at the very start.
Each /name that starts the message or follows a space now runs that
skill (own, library, imported or native), and the composer menu offers
skills mid-message. /goal, /learn and /setup still only work at the
start of a message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Skill names: punctuation ends the name only at a word end; no double space after a pick

/standup.txt no longer runs standup, /standup. alone runs it bare, and picking
a skill before existing text adds no second space.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep server/skills.ts and Composer.tsx within the file-size ratchet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf(skills): resolve the bot's skills once for all mentioned skills

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(skills): keep enabledSkillFiles doc comment to what it returns

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(gmail): guard draft-only requests and support draft updates

* Honor outbound sending policy at Full access
* Let the built-in OpenAI-compatible server (local Ollama) set its reply wait

The wait picker showed only for servers added under "More servers", so a
local Ollama set through the base URL field had no way to wait longer for a
slow reply. Show the same picker for the built-in server once its base URL is
set, and let the instance route save a wait for a built-in instance that has
no stored config yet (it threw on the undefined config).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(keys): the keys page shows the built-in server's reply wait once its URL is set

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(keys): the reply wait hides again once the server URL is cleared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(apps): show_html can show a page without the card frame

A bot can pass frameless: true to show_html (or update_html) and the
page is drawn as part of the chat, without the rounded card around it.
It stays in its sandboxed frame with its title and tools. An update
without the option keeps the frame as it was; a frame-only change saves
no new version. Default unchanged (framed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(apps): say what frameless does when a page is replaced

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* build(apps): regenerate app-host.html for the frameless option

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(live): end a Live call when the person clearly asks to hang up

The server already hears the person's own words on a Live call. A strict
matcher (spokenHangUp) checks the echo-free words of each request; on a whole,
clear "hang up" / "end the call" the voice says a one-sentence goodbye and the
call closes after GOODBYE_MS through the same hangUp path as the End button.
The voice never ends a call on its own, and nothing from pages, files, bots or
its own echo can trigger it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(live): hang up only on the whole utterance; nothing relayed or granted during the goodbye

- a "don't" lost in the echo no longer turns "don't hang up" into a hang-up
- backend answers and cards are not relayed once the goodbye starts
- a consent timer cannot grant an approval during the goodbye

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(live): stay quiet once the call is saying goodbye

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: re-run (unrelated cloud-sync e2e flake on low runner disk)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/codex.ts
* fix(desktop): let clicks reach the full-screen live screen on Mac and Windows

The expanded live desktop covers the sidebar, chat header and frame bar,
which are window drag regions on macOS and frameless Windows. Electron
ignores z-index for drag regions, so a press near the top of the live
screen moved the window instead of reaching the screen. Opt the expanded
desktop out of drag, like the browser panel's transport bar (#3996).

Closes #4304

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(desktop): drop a comment that points at other files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(desktop): a comment that names no issue

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The same behaviour in server/host/gmail-drafts.ts, and Composer's image imports share a line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now runs each /name after a space, several at once. It takes no person
check, so a webhook's payload, a peer's message or an app's words can get the
server-written "The user ran your X skill". This keeps that position for words a
person typed and gates everything past the very start of the text on the typed-send
proof. Code never counts. The start-of-a-line limit and the menu's move to its own
line are gone: main's behaviour stands for typed words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
A local browser's approval is refused while any bot works. The test repeated its answer as soon as
the resumed turn had started, so on a slow runner the turn was still working and the repeat got a 403.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The five strings keep each language's own register and terms, with only the place changed, so they aren't left in
English. A bot now says "icon on the left of the app": the rail's tiles are rounded squares, not circles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/team-cloud.md
#	server/live-call-controller.ts
#	server/live-call.test.ts
#	shared/wire.ts
#	src/components/keys/KeysPage.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A bot on an engine this server no longer has isn't told no AI is connected.
- A hand-off refusal is remembered only for a routine run still going.
- A frame without onlyPeopleAdded clears it.
- The wrap rule no longer splits the .chat-text selector list.
- acp/core.ts stays inside its size limit, and the tool catalog inside its budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/routes/bot-messages.test.ts
Switching to a long chat with many code blocks spent most of its time
styling and laying out thousands of highlight spans that were far off
screen. A code block is now highlighted once it is within 800px of the
visible area, using the shared on-screen observer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A skill named in outside words or a bot's message stays plain text, a page outside work shows keeps its frame, and outside work still asks before a person's own screen at Full access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A row, tile or circle opens the thread its mark is about. Every other click goes
through openThread, which reveals the thread in the sidebar, closes what covers
the chat and says so when a thread is gone. Main shows a bot's banner on the
desktop app, so its click still lands after a reload or a move to another place,
and raises the window.

Simple gets Active Threads while anything is active, and a bot-opened thread at
work stays out of its fold. A teammate's own step in a chain no longer sends a
banner or leaves an unread mark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The action rows used flex-1 with no horizontal padding, so at the
panel's 360px minimum width longer labels (e.g. "Take control",
"제어권 가져오기") wrapped onto two lines. Let buttons size to their
content with flex-auto, keep labels on one line, and give every button
the same px-3 padding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
skill_manage gains enable, disable and delete actions. Each one always
shows an approval card (even with Full Access) that previews the current
SKILL.md; approval binds to its sha256 and is re-checked when applied.
Own skills can be switched or deleted; imported skills can only be
switched; library and engine skills are refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#4326 made every Full access bot with no stored policy stop at every send, which also stalled routines and team runs. A bot given a rule still follows it at Full access. The Gmail draft rules move out of the "call these tools directly" sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Count switch cards toward the open-card cap even in Full Access.
- Treat org skills as the person's to change, like library skills.
- Leave turning an imported skill back on to Settings, where its
  warnings and helper files are shown.
- Cap and redact the card's gist and source like other skill cards.
- Voice calls read a switch card's own title; drop duplicated prompts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A finished hand-off always woke its requester for a whole model turn, even to read "noted". A one-off small model now reads replies that did no work and owe nothing, in any language; on anything but a plain ACK the requester wakes as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A test's real Cloud server read this machine's disk, so with less than 15% free every folder stayed "waiting" and the test failed. Both Files e2e tests now load one prelude that gives the server a roomy disk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stage and approve logic now lives in server/host/skill-switch-host.ts,
so index.ts only grows by its four call-site lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine can carry its own modelSelection (instanceId, model, and an
optional effort or variant). The thread each run opens gets it through
store.createTask; an unavailable model falls back to the bot's model as
other threads do. POST and PATCH /api/routines check it like a bot's
model; null removes it. routines.json keeps it only in shape, a room goal
refuses it, and a workspace move carries it.

Closes #4330

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A usage limit that resets within 12 hours queues the stopped run again a
minute after the reset. With features.recurringRoutinesSkipLimitReplay on,
a scheduled run of a cron, daily, weekly or interval routine fails instead
with the usual usage-limit notice, and the routine runs again on its own
schedule. Manual runs, one-time and limit_reset routines, and the switch
to a backup AI are unchanged. Off by default.

Closes #4329

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- On a team, a Chief answers a teammate's question for the person only
  when the person its turn acts for is the one the question is for
  (teamOwners.routing.askedPerson), both when listing the questions and
  when coordinate_bots answers one.
- A coordinate_bots call that only answered questions for the person
  tells the Chief to continue and report the answer, instead of to end
  its turn and wait for results that never come.
- A routine's turn already counts as started outside, so it neither
  lists nor answers the questions; a new e2e scenario pins that.
- pl, ru, uk: {name} is the teammate whose question it was.
- question-cards.md: the webhook sentence reads plainly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The model menu was disabled for the whole of a turn, and the server
refused any model selection change while the bot was busy, including an
effort or variant change. Each turn reads its reasoning level when it
starts, so only an instance or model change needs the bot to stop.

The server now refuses only instance/model changes while busy. The menu
opens to just the reasoning level while the bot works, with a note that
it applies from the next message; the model stays locked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card's sha256 covers only the redacted preview, so a change to a
hidden secret kept the same hash. Pin a digest of the full file on the
server when the card opens and compare it before applying. Add host tests
for turning off an imported skill and for a hidden-secret change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While the bot works, the reasoning panel now sends updateBotDefault only when
the thread runs the bot's own model, so a thread with its own model never
copies that model to the bot. The panel also shows which scope the pick uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The pinned digest covers the skill's kind too, so an imported skill with the
  same SKILL.md can't stand in for the bot's own skill on approval.
- A pin is removed if the approval card can't be added, and only after the
  approval is recorded.
- A spoken yes to any skill card says "before approving it", not "enabling".
- Host tests flush the decision log before removing their temp folders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add Google account threw away the new account's id (onAdded was a no-op),
so the form closed with no sign-in, and the unsigned account only showed
among the providers still to set up. Keep its Google sign-in under the
card it was added from until it is signed in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots can make images in a reply through a generate_image tool, offered only
when an image provider is ready. Settings gets an Image generation page:

- a base provider and an optional backup (OpenAI, xAI, Gemini, OpenRouter or
  a custom OpenAI-compatible endpoint), each with its own model;
- a model picker with recommended models first and, for OpenRouter, its live
  image catalog; any other model ID can be typed;
- a Test button that checks a saved key with the provider without making an
  image;
- a per-reply image limit (1-10, default 4).

The bot avatar generator reads the same providers and keys. The Gemini and
Custom picture keys appear on the API keys page and open the new page.
The avatar preview route moves to server/routes/image-settings.ts to keep
server/index.ts under its line budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Attribution: 1
Agent-Chat: claude/8d3f04c3-97dc-4d46-b110-38aa5c07e5a0
Agent-Writer: claude/8d3f04c3-97dc-4d46-b110-38aa5c07e5a0
Agent-Role: main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Test on Custom answers "no_url" before any request when Custom has no
  usable base URL. Before, the key check fell back to OpenRouter's URL and
  sent the gateway key there.
- customModel gets the same pasted-key check as the slot models, and a model
  that matches a saved image key, or has an API key's shape, is never used,
  so it is never sent or shown in a tool result or error.
- The Gemini picture key gets its last-4 hint like the other picture keys.
- The avatar preview route gets a success-path test.
- The settings test spells the NUL as an escape, so it diffs as text; the
  fake image API no longer prints request bodies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The locale guard (src/locales/server-lines.test.ts) failed on the six
English card lines in server/skill-switch.ts. Title, body and the
answered title now come from serverLine() in the conversation's
language (English and German words added); the option label stays as
written because it is the answer the card sends back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/skill-switch.test.ts now reads the German pack, so ci-scope.test.ts
requires it in the locale-tests subset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file-size ratchet failed: ModelPicker.tsx grew to 1067 lines (listed at
1046). The busy menu now lives in ModelPickerBusyMenu.tsx, and the busy-lock
check and variantLabel move to model-picker-reasoning.ts. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some OpenAI-compatible relays (seen with a GLM model) still answer with the
pre-tools `function_call` field and finish_reason "function_call". The driver
threw "legacy function_call is unsupported; use structured tool_calls" on any
such reply, so every turn failed, even a plain "reply OK".

A named legacy call that comes alone now becomes one structured tool call with
a generated ID and goes through the usual name/ID/size checks; an empty
placeholder or a copy next to real tool_calls is ignored; finish_reason
"function_call" is accepted like "tool_calls". Replies without function_call
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed or stalled API turn filed an incident, which starts a Chief turn with tools carrying the thread's title and recent
lines, and could retry the call on its own. API threads are quiet there now, as read-and-draft threads are.

The words a person sees on an API thread whose engine is refused or too old now name the Bot API rather than the Cloud's
history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Waking a suspended machine moves the wall clock on, while its pending timers keep the awake time they had left. The hand-off tick judged "a tick is near" from a stored wall-clock time, so after a wake it dropped every write until its hour-long idle timer really fired. A person's own lines need no tick, so only hand-offs stalled.

The tick now knows whether its timer is near without reading a clock. The due timer had the same mistake, bounded at a minute: a poke is no longer ignored because the stored time has passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The Sidebar imports the row opener on its own line, clear of the Inbox branch's
import change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A malformed function_call mirror no longer rejects valid structured
tool_calls, and a nameless legacy call with arguments fails instead of
ending as a plain reply (CodeRabbit review on #4407).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A second memory beside the bot's, one folder per thread: about 4,200 tokens on every model call, a per-thread path that made each new thread rewrite the prompt cache, and a wrong place for bots to look for their notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn runs in a task folder, so memory/<topic>.md was not a path a bot could open; a turn whose notes are refused also lost the index when there was no MEMORY.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The memory gate let turns in strictly by arrival, so on 2 GB a person's line or a turn going on from their answer queued behind bot-to-bot work. It still lets in only what fits; only the order changes. A person's own work goes first, and bot work that has waited 5 minutes takes its place by arrival, so it is never starved.

On Starter a teammate's hand-off no longer takes the person's one thread per bot.

A line made only of stop words now stops in the app's languages, with @everyone or the bot's own name as a tag. It stops running work at once, and starts no engine when nothing is running, unless the bot just asked the person something.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Workflow, ScheduleWakeup, ReportFindings and ListAgents work only in Claude Code's own terminal or app, yet rode every model call at about 4,900 tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn parked on a card waited on that card alone. When the bot asked
again, the newer card replaced it and the parked work never heard of the
newer one, so it stayed parked for good. It now follows the newer card,
a card has one waiting turn, a stopped card waits on nobody, and at
start work left parked on cards nothing can answer is let go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A warm engine keeps a command server's process across turns, so turning
the server off and on left the old code running and bots removed and
re-added it, which deletes the saved key; a secretRef works once, so
the person had to type it again. Any restart, off-and-on included, now
reaches the next turn, and mcp_server gains a restart action that keeps
the keys. A connector test now says it only proves the server started.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
start_thread's schema named the bot's own id, and tools come first in a request, so no two bots shared a cached prefix and each new bot wrote its whole first request again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check on a bot's notes counted the skill links the harness itself makes in each conversation's folder, so the
first turn another bot or a webhook ran in a new thread flagged the bot for good. Those links now count for nothing;
anything a bot writes there, and the skill each link points at, still counts. A conversation a bot opened is never the
owner's, as the docs already say of a teammate's handed-in words. A refusal checks every gate first, names a way out
that works, and tells the bot to stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The conversation's working folder sat in the stable half of the system prompt, so each new thread wrote everything after it to the cache again. It now travels in the first message with the other per-conversation facts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A webhook, relay, app or another bot's message that starts with /name stays plain text. Also: the Gemini key is masked in diagnostics too, and the Windows path check in the native skills test matches either separator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A connector that stays on the person's computer after a move to My Cloud was told only
to the bots' prompt. The move's line said "Everything from this computer is here".

- The move's line lists each connector that stayed, with why.
- When the move ends, one bot says it in its own chat, with a notification; the first
  conversation with each other bot that could have used it says it once, as a notice row.
- The bots' prompt says why it stayed, that it worked there before, and not to call it
  "never set up" or write a replacement.
- The Cloud image carries uv and uvx, so a uvx connector moves as an npx one does, and a
  package runner's first start check waits for its download.
- A mail connector (mcp-email-server, imap-mcp and the like) stays, and says why: its
  accounts are on the computer it was set up on, and a bot's box has no route to a mail server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three review passes over the pt-BR catalog: the owner's term rules
("novamente", "sessão" for turns), meaning and grammar fixes, more
natural wording, and a critical native edit, followed by an
independent review. Tests that pin pt-BR text follow the new values,
the Resumo server copies gain a parity test, and the glossary records
the new terms.
It runs only on its own throwaway branch, so it does not belong in the PR to main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every bot took a full model turn for an @everyone line, including bots it did not concern. The Chief now gets it alone and hands it on with the existing hand-off; a bot or team named directly still gets it, a stop line goes to every bot as its own words (the server says which lines are stops, by the rule each bot's send path uses), and with no Chief nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The inbox opens as a tab in the right panel with its count, a close and a wider/narrower
control. The list has a search, and each row shows the sender and where it came from, the
time, what it is about in bold, and for a question its choices with the recommended one
marked.

A line read in full has the way back, n of m with steps up and down, and a menu; where it
came from; the bot's words before it drawn as the chat's Markdown; then the person's part,
chosen by the kind of card: a question's choices as cards to tick (number keys, a note,
send, x to close it), an approval's own card, a password's and a sign-in's own cards, a
reply to news, or Done. Answers go through the same respond route as the chat. Once a line
settles, the next one opens, or the list when none is left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot that asked for a password, a sign-in or a connection ended its turn
and nothing told the person: the thread looked finished and the only
alert was "<bot> finished". A card that outlives its turn now makes the
conversation wait on the person on every surface, sends its own
notification that says what is needed, holds back "finished", and stays
in view in the chat until it is answered. Parked hand-offs no longer
announce results while they wait on a card. Each wait has a stable kind
(question, approval, review, password, sign-in, connect) an inbox can list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both load code that names the translation catalogs, so the scope check wants them on the
locale shard; main fails that check without this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the owner's own line hits a lock on their lent Mac, a card in the chat shows what changed, with Allow and Not now.
Allow runs the same review as Mark reviewed in Memory, for exactly what the card shows. The same card lets the owner's
own line through what a webhook or a routine they didn't write posted in that conversation, for that line alone. A
webhook's or a routine's run, a line a bot handed in and a conversation a bot opened never raise one. Only the owner
answers it, on screen, and it counts only while it records them as its answerer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The place inbox now reads what an open card waits on through personWait, and lists the
conversations resting on the person for a password, a sign-in or an app to connect, each
with the chat's own card. The panel keys its answer by the same kinds (question, approval,
review, password, sign-in, connect) and answers each with the card the chat already uses.
An outbound-call card now counts as waiting, as it does everywhere else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A desktop paired to another computer showed "save on the host" for every
secret card. Only a key the host keeps in its own encrypted store has to
be typed there; a custom secret or a provider key is kept by the server
and can be typed on any of its pages. My Cloud opened in the app was
never such a page, and a test now pins that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
German and French leave the Team map in English, so its two new lines match them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing recorded why work waited, so a stall could not be explained afterwards, and a person saw "Thinking" or "Queued. Waiting for an available slot" with nothing to act on.

The record gets a held event for each reason a hand-off or a turn waits. A turn waiting for memory says what is running and what is ahead of it, and the status line says the same instead of Thinking; on Starter it adds that a bigger plan runs more. A hand-off held 30 seconds writes one line in the chat that sent it, naming the limit. Queued sends carry their reason in plain words for clients to show. The room card may show while a task waits for memory; at any other time it still waits for the turn to end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The German and French packs left 146 of the Team map's 180 strings in English. Written by hand in each pack's register and words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A GitHub import now brings the skill's whole folder (references, scripts,
assets, folders inside folders), not only SKILL.md, read at one commit and
checked against the git tree, with clear limits and a report of what came
in and what was left out and why.

- skill-fetch: resolve the link to a commit, list each folder in one trees
  request, download from the raw host at that commit and verify every file
  against its blob hash; LFS pointers, links, submodules, dot entries and
  caches are left out and named; a link straight to a SKILL.md brings its
  folder, falling back to SKILL.md alone when GitHub will not list it.
- skill-folder: one plan for what may come in (path rules, 200 files,
  16 MB, 2 MB a file, 8 levels), a writer that never leaves the folder,
  and a hash over the files that came in; added files are tolerated.
- Per-bot skills and the library store and check whole folders and record
  the GitHub owner, repo, ref and commit, with latestSkillCommit for
  updates.
- The scan covers every text file, scripts included.
- Both import screens say what arrived, in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Starter Cloud makes up to five bots beside its MausBot (STARTER_BOT_LIMIT in
server/host/starter-bot-limit.ts). Past that, every way a bot gets made answers
409 {code: "bot_limit", error} in plain words: New bot and Duplicate on desktop,
web and phone, templates and file imports, the organization's shelf, and a
Chief's create_bot and propose_team_setup. A group that doesn't fit is refused
whole, before anything is written. A bot is told to explain it to the person,
not to retry or work around it.

No bot is ever taken away. A Cloud over the limit keeps every bot; only making
a new one stops. A bot arriving with its own id (a move from a computer) and a
restored backup are never refused. Archived and moved-away bots take no room.
The plan is read at each request, so an upgrade lifts the limit at once with no
restart, and a Cloud whose Admin never named a plan has no limit.

The app opens a calm popup when a create button is pressed with no room, before
any form, and on the server's refusal when its count was stale. It offers the
usual in-app upgrade (preview, then the person's confirmation); a browser tab
opens the Plan page instead. Config carries botLimit for the page to count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the owner's own line hits a lock on their lent Mac, a card in the chat shows what changed, with Allow and Not now.
Allow runs the same review as Mark reviewed in Memory, for exactly what the card shows. The same card lets the owner's
own line through what a webhook or a routine they didn't write posted in that conversation, or the work a bot opened it
with, for that line alone: another post, or work handed in after they allowed it, shuts it again. A webhook's or a
routine's run and a line a bot handed in never raise one. Only the owner answers it, on screen, and it counts only
while it records them as its answerer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Email appears in Connected apps. The person gives an address and a password once, on the
existing secret card in a chat or on the Apps card, and bots get EMAIL_LIST_MAILBOXES,
EMAIL_LIST_MESSAGES, EMAIL_SEARCH_MESSAGES, EMAIL_READ_MESSAGE and EMAIL_SEND_MESSAGE.

- Servers are found from the address: the domain's autoconfig, well-known providers by
  domain or MX, Thunderbird's list, SRV records, then the usual names; else the card asks.
- Nothing is saved until a real header of the newest message reads back.
- The tools run in the server (ImapFlow, Nodemailer, mailparser): a bot's box never holds
  the password or a route to a mail server. The password rests sealed, goes only over TLS
  to a host with a valid certificate, never to another host after a refusal, and is masked
  in anything a bot or a transcript reads. On a Cloud home only public mail servers.
- Reads are marked read-only and mark the conversation as outside work; a send goes
  through the engine's normal approval. Per-bot access follows the connected-apps rules.
- Mailboxes move to My Cloud with the rest. A Team Cloud has none yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Team Cloud the main chat of a person's own MausBot counted as the team's, so an admin could read it and
its notes went to the bot's own folder, which anyone who sees the bot reads. It now has its person as its
starter, the same as a chat they open. MausBots made before this get the same at the next start, and the
notes they kept in the bot's own folder move to that person's layer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The list that makes a member's MausBot was narrowed with the view from before it existed, so it came without
its main chat. Responses are now narrowed with the view once the request is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The list that makes a member's MausBot was narrowed with the view from before it existed, so it came without
its main chat. Responses are now narrowed with the view once the request is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A goal coordinator's generated image is dropped at turn.completed instead of
  joining the room's public reply.
- A model equal to a key, before or after the save, is refused when typed and
  dropped when stored, so replacing the key cannot expose it.
- A refused image call cancels its body before reading it, so a broken 401/429
  body still moves to the backup.
- Test on OpenRouter answers unreachable when the model check gets no answer.
- An OpenRouter Test verdict is hidden once the image models it checked change.
- The not-ready status names Custom's URL and model requirement.
- The fake image API rejects a listen failure; the e2e fixture starts it inside
  its cleanup and clears OMB_FAKE_IMAGE_API_URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Another member's own MausBot, now that its main chat is theirs alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train: 33 reviewed PRs and main's test fixes (merge with Create a merge commit)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
A skill runs by name on main's own check. The screen card stays as main has it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/cloud-pro.md
#	docs/verification/chat-turns.md
#	scripts/control-omb.ts
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	src/locales/de.json
#	src/locales/fr.json
#	src/locales/source-hashes.json
# Conflicts:
#	server/config.ts
#	server/index.ts
#	server/key-hint.ts
#	src/components/keys/key-catalog.test.ts
#	src/components/keys/key-catalog.ts
#	src/state/config-status.ts
#	src/types/ogb.d.ts
The 26th send is refused before it reaches the app, so nothing is sent, and the
bot is told to report it; a routine at the cap ends with that report, never a
card. The sends count on the same daily counter the daily allowance uses. A
stored rule is kept exactly as set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/verification/chat-turns.md
#	server/index.ts
#	src/locales/source-hashes.json
#	src/state/config-status.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
# Conflicts:
#	server/index.ts
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/ci-scope.mjs
#	server/drivers/agents-catalog-goldens/bridged.profiles.json
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
#	server/index.ts
When two bots on a Team Cloud share a name, a person's @Name in a room went to
whichever sorted first, and the other could not be reached by @ at all, even
when picked from the menu.

- The composer remembers which bot was picked from the @ list and sends its id
  with the words (`mentions`, at most 20 ids), in rooms and one-to-one chats.
  A failed send that hands the words back keeps the pick.
- One resolver in shared/ reads @names for the app and the host: among bots
  that share a name, only the picked one is reached.
- A typed shared name with no pick is refused before anything is queued:
  "Two bots here are named "Quill": Quill, Analyst and Quill, Chief of Staff.
  Pick the one you mean from the @ list."
- The ids survive the room's and the one-to-one queue, and an answer to a
  bot's question in a room is addressed to that bot by id.
- The composer's preview of who answers agrees with the room, and the @ list
  shows "Chief of Staff" for a Chief with no title.
- A one-to-one bot is told about the picked teammate; for a typed shared
  name, about each bot of that name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	shared/notification.ts
#	src/components/NotificationsPanel.tsx
The pin button only mattered when another side panel opened, so it
looked like it did nothing. Now an unpinned tray closes when the person
opens a notification or switches chats; a pinned tray stays open. The
pin is remembered on this device across restarts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two bots could each wait on the other: the mail bot asked the chief of
staff for mailbox details, and before that was answered the chief of
staff, asked by the person in its own chat, asked the mail bot back. Both
then worked the same problem with their own plans. The ancestor rule
covered this inside one request only; enqueue now refuses a request or
consultation to a bot that waits on the asker's answer, naming the
assignment but not its words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
start_thread on yourself starts a new request with fresh limits and its
own stop. Until the runtime cut-over (6f38b547e) only a person's direct
request could do it; the check was dropped while the tool still says "a
self-opened job cannot open more jobs". A teammate's hand-off, or a job a
bot opened on itself, could open more jobs outside every limit of the
request it served. The rule is back in server/host/self-threads.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine made or changed from a confined conversation is recorded as outside work's; a bot's change never makes one nobody's, and an Undo puts it back as it was. A conversation's mark survives a team backup and restore. A page in a confined conversation keeps its frame when it is updated too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A webhook run opened with one note over the whole line, "event ·
information only", right above the instructions the person set up for
it, while the system prompt says to follow those instructions. With
configured instructions the note now reads as a routine's run does (on
their behalf, the event data information only); a payload's task and the
default instructions keep the old note. Origin, level and reach are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine's run or an outside runtime always takes its turn, so the one-off check there only spent a call; on the fake engine it also overwrote the turn dump a guest-routine test reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses review: switchGroupTask and switchTask to the thread already on screen no longer close an unpinned tray; newTask without a folder closes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New upstream user-visible text in Electron, the server, the drivers and the renderer now goes through the catalog. Approval summaries keep their code and params from the driver to the card, so the visual and spoken details follow the app language. The device word in screen and app requests is localized, and the catalog takes the fourth review pass (Sol editor, Astra verifier).
message_person from a confined conversation on a personal Cloud stays in that conversation, where the inbox keeps a guest's words apart; on a team it is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Export verifyKey from server/tts/gemini.ts querying the models endpoint with x-goog-api-key header
- Dispatch gemini verifyKey through server/tts/index.ts
- Validate geminiKey on config patch in server/routes/config.ts before persisting
- Add stub model handler in scripts/testing/key-readback.e2e.test.ts
- Add unit tests in server/tts/gemini.test.ts for success, refusal, quota, and connection errors
A copy frozen by a move to a server of the person's own is no longer shown.
When home is this computer and the freeze marker names a server the window
is not on, show() sends the window back to that server, or says where the
bots are and looks again. An unfinished move keeps its own screen.
Addresses review: botAdded that selects the new bot now closes an unpinned tray; a background add (preserveSelection) or a pinned tray keeps it open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Google's Antigravity runtime is built with TCMalloc, which reads
/sys/devices/system/cpu/possible at start and aborts when it can't. The box
had no /sys at all, so on every Cloud home (2, 4 and 8 shared CPUs alike)
setup failed with "Antigravity ACP exited 134" (SIGABRT through bwrap), and
its only output was "CHECK in NumCPUs: maybe_cpus.has_value() (false)".

The box now binds that file and `online` read-only, and nothing else of
/sys. The self-check gains cpu-list-readable so a Cloud home's report shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At Full access a requester answers a teammate's question unless only the
person can. "Which email account should be connected?" slipped through:
a teammate answered it for the person, and the asking bot took it as
confirmed. personOnly now knows which of the person's accounts, mailboxes
or logins to use (English and German); such a question waits on the
person, the requester is told not to answer it or pass an answer on, and
an answer a teammate sends anyway is refused. A wait on a card (a
sign-in) is still settled from elsewhere, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hand-off notified the person twice for one outcome: "results in from X"
when the teammates' results came back, then the asking bot's "done" with
its answer. The "results in" notification is now sent only when no "done"
is owed for that chat (after a restart, or when the asking turn itself
failed), so the person hears once, with the answer. Chat rows unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chat (API-key) engines cut MCP tool results at 50 KB, so files returned
as text (for example base64 from a drive server) arrived broken. A result
over 50 KB is now written whole to mcp-results/ in the bot's working
folder; the model still gets the first 50 KB plus the saved path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-selecting the selected bot or room while the team map, files or web panel
is on screen switches to chat, so it is a real navigation: an unpinned tray
now closes there too. Same-chat re-selects inside the chat view still leave it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After the person stops a teammate's work on their request, another bot
could hand it the same request again at once (a requester resumed by the
stop, or another conversation on the same line of theirs). The coordinator
now remembers, for a day, which bots' work on which request the person's
stop ended, and refuses a hand-off of that request to them unless the
person asked again after the stop. Stops with another cause, and work no
person's line started, are not remembered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Stop in the chat that handed work out dropped only the work that had
not started; a teammate mid-turn kept going and reported into a chat that
was stopped, with an "open to stop it too" pill. Now stopRequester ends
everything the request handed out, running work and what it handed on
included ("Stopped with the request it was for"), and a room helper's
engine turn is interrupted too. The pills go, since nothing is left
running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Mask key-shaped values before a big result is written to disk.
- Keep only the newest 20 saved results per folder.
- Save into a folder attach_file can deliver from; guest-opened threads don't save.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop vouches for a conversation's work by its origin, so a conversation a bot opened from the owner's own work
keeps its phone there. The new-folder test compares with forward slashes on every platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot or another program writing @Name where several bots in the room share
the name no longer reaches all of them.

- A bot's post_to_room is refused before anything is posted, with each bot's
  role and id; post_to_room takes mention_ids to post it again by id.
- A send to a room's messages from a program on the machine (no browser
  origin) is refused with the ids too, and takes them in mentions; the MCP
  send_channel_message passes mentions on. People keep the plain line.
- A bot's room reply that tags the shared name wakes none of those bots. The
  person sees a line saying the mention reached none of them, and every bot in
  a room where other members share a name is told, each turn, who they are by
  id and to use coordinate_bots with the id.

The two cloud-home tool list budgets were already within a few bytes of their
limit; they move up by the new mention_ids field, on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An ACP engine that died said only "exited 134". Antigravity kept no stderr
at all, so its setup said "Antigravity ACP exited 134." and nothing else,
while the real cause sat on its last stderr line (a TCMalloc CHECK).

One mechanism for both places an ACP exit is described (a turn's AcpHost,
Antigravity's setup client), server/drivers/acp/exit-report.ts:
- the exit in plain words, including a signal a wrapper (bubblewrap, a
  shell) reports as 128 + N: 134 "it stopped itself (abort)", 137 killed,
  139 crashed, 127 a program not found...;
- the last three stderr lines, each masked as it arrives: shared secret
  shapes, a link's query, Google's token and code shapes, a value after a
  secret's name and any long opaque run. Sign-in links are taken out first.

redactStderr/keepStderr go: every engine keeps only this masked tail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starter now makes five bots, and only limits making them: a team that had 13 before keeps them. That is the case this test is about.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud had no Cursor and no terminal, so its card could only offer an install command to copy. Pasted as the
CLI path, that command runs curl, whose --version banner passed as Cursor's: the engine showed as installed and
signed out, and the card asked for `cursor-agent login` in a terminal the Cloud doesn't have.

- An engine can declare what its own --version looks like; Cursor's is its build number. Any other answer is
  another program behind the CLI path: unavailable, with Reset as the fix, and Settings' CLI test refuses it.
- Sign in to Cursor from its card: `cursor-agent login` runs where the bots run, with NO_OPEN_BROWSER, and the
  card shows the one cursor.com link it prints, to open on any device. The device sign-in now takes a CLI that
  prints a link and no code; only Cursor's own loginDeepControl link with its request is ever shown.
- The Cloud image ships Cursor's own build, pinned and checked against its SHA-256, root's under /opt.
- A Cloud's bots are told its AIs run on the Cloud and are signed in from the model picker, never on the
  person's computer or the cloud computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud conversation on Auto, pinned to the cloud computer by an earlier turn, with the person's PC lent with its
screen: the surface paragraph said everything on screen happens on the cloud computer, that the user's own computer
cannot be reached from here and never to act on a different computer, so the bot told the person it couldn't use
their PC. The PC was reachable through shared_computer all along.

With the shared-computer tools, a Cloud turn's surface paragraph now says what this turn's places reach, names the
person's computer as the My Cloud paragraph does, and says it is reached only through shared_computer (never
select_computer), whatever the conversation is pinned to, and to say so in one sentence when list_shared_computers
says this conversation can't use it. Without those tools nothing changes, nor on a desktop server. The lending
rules and the Auto pin are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check decides whether to spend the requester's turn. Asking the teammate's engine sent it one more model call about the work it had just finished, carrying the brief, which a long-running Chief test counted as the job running twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI: Linux shards run four test files at once
# Conflicts:
#	server/host/mcp-servers-host.test.ts
#	server/index.ts
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Bot API thread is marked outside when it opens, and keeps its own gate on its botApi record; both route fences apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clicking an HTML file's name now opens the sandboxed preview instead of
saving it; download moves to its own icon button. In the desktop app the
preview dialog gets an "Open in browser" button: the main process writes a
private temp copy (0600, max 2 MB, cleared after a day) of the previewed
HTML and opens it with shell.openPath. Hidden on web/Cloud and while
connected to another computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up: switchGroupTask only closes the unpinned tray when that
room is the chat on screen, and re-selecting a thread a bot is already
switching to counts as the chat on screen. Field comment updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A move whose check found the same things missing pass after pass failed for good: one PC failed 94 times in a week, its
server frozen for each try, and the person saw only "My Cloud move needs you" with the reason in a tooltip.

- The check keeps its gaps by key. When three passes carried none of them and the try before ended the same way, they
  stay on this computer, the rest moves, and the done line lists what stayed and why ("These stayed on it:"), in the
  person's words: a bot's name for its notes, chats and files, a room, an app or key, attachments, sign-ins.
- A move that keeps failing while frozen waits 1, 2, 4, 8, then 12 hours between tries instead of every hour.
- The Admin's move report leads with what the check found missing, by kind and count (never a name or an id).
- The failing line says what is wrong and what happens next under "My Cloud move needs you", and the menu's Try again row
  carries the same words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up:
- mountChatTools takes the turn's scrubber; openai-chat passes safeText,
  so the configured API key and secret env values are masked in the saved
  file as they are in the model-facing text.
- The notice says when values in the saved file were masked.
- Room turns get the same toolResultFolder as direct turns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up for #4406:
- The copy folder is under the app's own userData, so on Linux a second
  account never hits another account's private /tmp folder.
- htmlCopyName prefixes Windows device names (CON, NUL, COM1...) with "_".
- The copy starts with a UTF-8 byte order mark so Safari reads it as UTF-8.
- Click tests for the Open in browser button and its error path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One failed tool call anywhere in a turn kept the whole turn failed for hosted chat models, even after the bot read the
error, went on with calls that worked and answered. On one Cloud this was the most common failed turn: 137 in a week,
136 of them recovered. #4180 already treated this as recovery for local models; now every chat-engine model does.

The failed step still shows as failed; a failure in the last calls before the answer, or a person's no, still ends the
turn as failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn that recorded a voice note and then failed (one bad tool step, an
engine error) deleted the clip at turn.completed, while images from the
same turn landed on its reply. The note now lands the same way: on the
turn's reply, or on a bot line of its own when the turn wrote none, with
its words kept as the transcript.

The turn's files now land before its failure row is written, so they sit
above it and the failure row stays the last line, the one that offers
Retry. Before, an image-only failed turn put its bubble under the error
and the Retry went away.

A turn the person stopped still deletes its notes, as does a turn the
harness retires (stall, cancelled dispatch, abandoned room turn) and a
thread purged with its bot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test's second hand-off went from Ben back to Ada while Ada waited on
Ben's answer: a crossed pair, which the new rule refuses. Its point is
capacity on Starter, so a third bot now makes that hand-off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The Cloud image is unchanged: on Linux, Cursor's card installs Cursor's own pinned build into the app's folder on
  the data volume, through the standalone install, which now takes a launcher release (bin/ links to a program that
  runs the rest of its folder, and goes on PATH at start-up only while the link and the launcher are the pinned ones).
- A saved CLI path that answers --version as another program gives way to the engine's own installed CLI, at the
  install and at any status read after it, as Set CLI would: nobody has to find Reset.
- On a Cloud, no card offers a command to copy or a CLI path to set; an engine it can't install says so in one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person who wants every reply as a voice note depended on each bot
choosing to call send_voice_note. Now the harness makes the note.

Settings → Connections → Voice and calls has "Voice note with every
reply" (tts.everyReply), for every bot. Each bot's Voice & alerts has the
same switch, following the main one by default ("Uses your Voice setting
(on)"); flipping it sets that bot on or off, and "Use your Voice setting"
follows again (voiceNoteEveryReply true, false, or null).

When a direct conversation's turn settles with reply text, the reply is
spoken in the bot's voice (tts.speak with bot.voice) and attached to it
like a send_voice_note clip, words as the transcript. Long replies stop
at the last sentence within the 1,000-character note limit. A failed
turn's reply gets one too. Skipped: a turn that already recorded a note,
an empty reply, a stopped turn, internal and bot-to-bot turns. Without a
voice, the thread gets one quiet notice per bot and cause.

Voice & alerts also says which voice a bot uses: the picker's default is
"Your Fish Audio voice" (or the provider in use) instead of
"Installation default", with a line saying whether the bot speaks in
that voice or its own.

New strings in all 16 language packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a bot attaches a file, remember the path it was copied from (`source`)
and offer "Show in Finder" (macOS) / "Show in folder" (Windows, Linux) on
right-click in the desktop app. It reveals the original, never the app's
copy, and says so when the original moved or was deleted. Not offered on
phone, web or a window connected to another computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ja.json had fallen back to English for 838 keys (settings, API keys, the
private desktop, the Grok Bot move, the sidebar, chat and more). This adds
836 of them. orgLibrary.newerRelease and permissions.outbound.help are left
out: source-hashes.json still records the English of an earlier, removed
Japanese translation for them, so they need a hash refresh at release.

Terminology follows the existing pack (ボット, ルーティン, 自動化, メモリー,
スレッド, コンピューター). Existing translations are unchanged.
Rewrites 399 existing Japanese strings; no keys are added or removed and
no English changes.

- Keep the long vowel on katakana loanwords (ブラウザー, フォルダー,
  コンピューター, メモリー, サーバー), per the JTF style guide 2.1.6; the pack
  mixed both spellings.
- Full-width colon, parentheses and question mark next to Japanese text.
- One word per concept: デバイス for device (was split with 端末), 自動化 for
  automation, 受信トレイ for inbox, オーナー for owner.
- Steer: 「誘導」 did not say what the button does; it now reads 「今すぐ送る」,
  matching the existing 「実行中のターンに送る」.
- Look after: 「面倒を見る人」 reads as babysitting; it is now 「担当者」.
- A half-width space between Latin text or a placeholder and Japanese,
  as most of the pack already does.
Read the freeze marker whenever the journal does not put home on My Cloud,
a journal that says back included, so a kept round trip no longer hides a
move to a server of the person's own. Recover only when the window is on
nothing yet or on this computer's own page, so a server already open stays.

The launch recovery owns the window, its deadline and its retry until it
settles, and only the recovery that owns it can let it go. Choosing a
server, a team or a Cloud retires all of it, and every deliberate
navigation or explicit ask retires it too, so nothing pulls the window off
the place just chosen.

A move still under way keeps its moving screen when its destination page
fails to load. The way back only opens plain saved servers, and gives up
when the server left the list while it was being asked.
The plan panel only knew Claude, Codex and Grok, so an OpenCode key
saved in Settings showed nothing. OpenCode Go publishes its windows at
zen/go/v1/usage: the rolling one, the week's and the month's.

The row takes the key from the instance environment (where the config
puts OPENCODE_API_KEY) or from a login the CLI keeps, reading the
Go login under "opencode-go" before the Zen one, maps rolling to the
5-hour slot and monthly to an extra line, and shows a row without a
plan rather than an error when the key has no Go subscription (403).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Starter capacity test opened a grandchild thread from a self-opened
job, which the restored rule refuses. Parent and child still run at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat header's "Claude: at its limit · resets Mon 2:30 PM" pill is gone. The model button
shows the engine's usage left as four rising bars after the model name: quiet while there is
room, one warning bar from 90% used, and empty bars struck through at the limit. Engines that
report no usage (API keys, local models) show nothing.

Hovering the bars opens a small card with each window (5-hour, weekly): % left, a thin bar and
when it resets. At the limit the deciding window says so, with how it clears and Check again.
The same rows open at the top of the model menu for keyboard and touch, and the button's name
carries "Claude: 38% used, resets 3:40 PM".

The limits report now lists every window beside the deciding one; an older server's single
window still shows as one row. In the narrow header the square model button stays a square
while there is room and widens to show the bars when they warn. On a phone, where the header
has no model button, the bars stand alone while near or at the limit and open the bot's model,
and the menu's Model row carries them too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's backup list hid the main AI's account, and allowed only one
backup per account, so a bot on one account could not fall back to a
cheaper or less busy model of that same account. Takeover already
handles same-account backups for usage limits.

- Bot panel and Advanced settings offer the main account too, minus the
  main model, with a note that it shares the usage limit.
- Two backups may share an account, never a model; rows are keyed by
  account and model, and edits/removals work by position.
- PATCH /api/bots keeps backups on one account with different models and
  drops only an exact repeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/bridged.profiles.json
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
# Conflicts:
#	server/host/mcp-servers-host.test.ts
#	src/locales/source-hashes.json
# Conflicts:
#	electron/one-home.mjs
#	electron/one-home.node-test.mjs
# Conflicts:
#	server/index.ts
# Conflicts:
#	src/locales/de.json
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Say in the code that auth.json is where OpenCode v1 wrote a login and
  that v2 keeps credentials in its own database.
- Fall back to the CLI's file when OPENCODE_AUTH_CONTENT is set but blank.
- Treat a 200 that carries no meter as an unreadable answer instead of a
  successful empty row.
Usage left as signal bars in the model button, not a pill in the header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A queued receipt now says why it waits on every surface that carries it: the send's answer, /api/bots and the bot.queued frame. The capacity test pins that text instead of the old shape.

A runtime notice keeps 400 characters, so a memory wait with the Starter line fits whole in the longer languages; the status-row test reads that number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bridged profiles grew about 360 bytes and skills+shared+non-chief about 1.2 KB, from the Bot API, team comms and the inbox tools in this train.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hover card and the model menu's usage rows now read like the rest of the app's usage meters:
"Claude usage" with "checked 3 min ago" beside it, each window's "% left · resets" on the right,
and a thin track that fills as the window is used, so a window at its limit is a full warning
track. At the limit, a divider sets off the quiet note and Check again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cmd.exe hop checks the daemon's start time against the shell's, so a pid
Windows gave to a newer agent-browser is not taken for the daemon. No test
held that rule: removing the check left every test passing. It now fails the
launcher test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On desktop windows with the top bar (macOS and Windows, frame on), the
Notifications bell now sits just before the Settings cog, with the unread
count, and opens and closes the same tray. The tab on the window's right
edge stays only where there is no top bar (browser, frame off, Linux).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hand-off's reply is now checked with a short one-off call on an engine, and the fake engine wrote that call's start to the same file as a turn's. The routine test read it as the teammate's next turn. Each held engine now keeps its one-off calls in a file of their own, and the test also checks that a one-off call made for the guest's work has no tools and no MCP servers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The restart count rides in a command server's env so the engine replaces its warm process. The apps catalog keyed a server by its env too, so after any add, change, turn-on or restart the catalog no longer knew the server: its apps were left out of every turn and a background probe ran each time. The catalog now leaves the restart count out of a server's identity.

Saving the key answers the card the setup turn asked with, so that turn goes on once more. The test let that turn run whenever it came, and on CI it took the thread from the next turn or swapped the warm process the test compares. The test now lets it run, and finish, before it sends anything else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A teammate's reply can now cost its requester a one-word check, booked like any side job as a root of its own. The test read "one root for the day" as "the person's trace", so the check's root kept it waiting for good. It now picks the person's root, checks that anything else is a side job of the Chief's with no tools, and adds the day's totals over every root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/host/mcp-servers-host.test.ts
/api/internal/attach-file refuses ATTACHMENTS_DIR, so a saved result there
could not be attached. Skip it when choosing toolResultFolder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A computer-use server may send up to 32 MiB, but a saved file over
MESSAGE_FILE_MAX_BYTES could never be attached, so it is cut as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows runners resolve the temp dir to its long form (runneradmin) while the
JS realpathSync keeps the 8.3 short name (RUNNER~1), so the new source
assertions failed on windows shard 3. realpathSync.native matches what the
server resolves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train 3: customer fixes, waiting-on-you, the inbox and the send cap (merge with Create a merge commit)
# Conflicts:
#	electron/cloud-rail.mjs
#	electron/main.mjs
Since Linux shards run four files at once, the guest-memory test's capture poll could run out: capture is an engine run of its own, and its fixed 20 s did not double with the other timeouts. Both capture polls, and the two tests around them, now use hostTimeout.

The limit test checked that Continue was gone right after one tick, but the state its answer sets renders when React schedules it, which a busy runner can put later. It now waits for the render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AskReply (question, option and inbox reply cards) and the inbox question's note box only checked isComposing, so WebKit's late confirming Enter (keyCode 229, e.g. Safari in the phone web app) sent half-typed CJK text as the answer. Use imeComposing like the composer does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The grant editor lists email's tools wherever a mailbox can be connected, as it does HighLevel's.
request_credential gains an optional address, read only for credential_id email.
The Apps grid's email card is a native card beside X and HighLevel, so the catalog test mocks it and the
catalog cap stays the catalog's; its state is appended after the older state, so seeded indices hold.
Windows has no POSIX mode bits, so the owner-only checks run where they mean something.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The conversation's Stop now ends the teammates mid-turn itself, so the
headless CLI's job read after it found them already cancelled and listed
no one in `stopped` (exit 4 held). It now counts a teammate that was at
work before the Stop and is cancelled after it, and presses Stop in a
teammate's own conversation only where work is still left.

The routine e2e pinned the old rule (a cancelled routine's running peer
kept going and replied later). It now checks the peer stops with the
run, is not left busy, and later user work in that chat never resumes
the run or lands a late reply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An Admin's openedThreads now also names their own MausBot's main chat,
since that chat is theirs alone. The test counted exactly one opened
conversation; it now expects exactly that main chat plus the one opened
with Scout, the same list on the second device, and still checks that
the Scout chat is the one reopened and that a member never sees it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner’s edits and approvals from the review artifact go into the catalog as written, and the three doubts left open take the reviewer’s recommended option. Strings that quote a renamed label follow the new name, and two new upstream team actions get their activity labels.
Train 4: security, Bot API, email, team comms and customer fixes for 0.1.141 (merge with Create a merge commit)
# Conflicts:
#	server/drivers/claude.ts
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fold the attachment source note into the existing doc comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Simple mode the closed picker and the menu's current row named only the
model ("Gemini 3.8 Flash"), so picking "Gemini 3.8 Flash · Medium" looked like
it did nothing even though the pick was saved. modelName now takes the
selection's variant and names the same choice its menu row does; any other
engine, or no/unknown variant, keeps the old label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The closed picker shows the level in its own span so a long model name
can't truncate it away; the current row's title and the bot-default name
include it too. Adds tests for a Low pick and for dispatching a level
picked from its menu row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A provider that only registers loopback redirects (Lusha refuses
https callbacks with "redirect_uris are not eligible for dynamic
client registration") can't finish from the chat card on My Cloud,
so the card refuses with a sentence that points to the paste-back
sign-in. That sentence, and the mcp_server tool description the bot
reads, said "Settings → MCP servers"; Settings has no such page. The
MCP servers list is under Apps, as every other string already says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.141
#4500 put the two guest-memory capture polls on hostTimeout(20_000), but hostTimeout only doubles on Windows, so Linux kept its 20 s and main's run on 7117517bc failed there again. Captures queue one at a time and each is an engine run or two of its own, which on a shard running four files at once can take longer than 20 s. Both polls now wait 45 s, and their tests have room for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The backup check required every tool the limited AI offers, including the USB phone. Claude offers the phone on every desktop, but only Codex and Pi drive one. So a Claude bot at its limit refused OpenCode, Gemini, Copilot, Kimi and every other ACP backup, chosen or automatic, and simply stopped. A Cloud has no USB port, so there it never had the phone to lose. The phone no longer counts; every other tool and attachment still does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Claude bot at its usage limit carries on with any backup that has its tools
fix(mcp): sign-in card points to Apps → MCP servers, not a missing Settings page
Show the picked Antigravity thinking level in the Simple model picker (#4160)
Take turns and dictation on Windows and Linux through Fish Audio
Backups: allow another model on the bot's own account
feat(html-preview): open HTML files in the preview, desktop "Open in browser" (#4406)
feat: save MCP results over 50 KB to a file in the bot's folder
Keeps main's BotLimitPopup beside the bar, which now takes the notifications bell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main folded openNotificationTarget into openThread, so the tray now opens rows through openThread and switchTask keeps both the tray close and main's revealThread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tool result folder line joins the cwd line, as it already does for room turns, so the file is back at its listed 15,711 lines and main's source guard passes again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In the bot box the network is reached only through the box's egress proxy,
but Codex starts an MCP stdio server with just a few env names plus
env_vars, so a person's own stdio connection had no proxy and failed DNS
("Temporary failure in name resolution") while shell runs worked.

When the box is on, forward the proxy env names to custom stdio mounts on
unscoped turns. Off the box nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Private desktops runtime check runs `which docker|podman` on the app's
augmented PATH. On macOS that list lacked Podman's official installer folder
(/opt/podman/bin) and Docker Desktop's per-user CLI folder (~/.docker/bin),
so when the login-shell PATH probe missed, Re-check said "Install a supported
container runtime first" although both worked in Terminal. Add both folders
to the macOS known dirs only (skipped when missing, after PATH and the login
shell), like the Windows list already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A limit_reset routine joined the conversation it came from, and that turn
ran on the conversation model, not the model set on the routine. A routine
with modelSelection now skips the join and opens a thread on its model.
Routines without one behave as before.

The e2e test also reads the --model the run turn was launched with, not
only the stored task selection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A room Chief asked about a teammate question got no person, because
  actingPeople.requester needs the turn generation in a room. Pass it for
  room threads, so the coordinate_bots answer path reaches answerForPerson.
- Move the acting-person comparison to createAsksActingPerson and test the
  production code instead of a stub.
- P7 now fails if the question card is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While a Mac sleeps the process is suspended but the wall clock keeps
going, so the first watchdog sweep after wake stopped every running turn
with "No activity for 20 minutes". The sweep timer now measures how late
it fired in real time and forgives a gap of more than three intervals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gemini's OpenAI-compatible endpoint puts each tool call's thought signature
in tool_calls[].extra_content and requires it back on the next round of the
turn. ChatToolCalls kept only id/type/function, so Gemini 3 models failed
every tool-using turn with "Function call is missing a thought_signature".
Keep extra_content when a provider sends an object; other providers are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new thread for a model-selected limit-reset run lost the conversation the
run is meant to continue. A limit-reset routine now refuses modelSelection
and keeps joining, so it stays on the conversation model.

server/index.ts and server/routines.ts no longer grow: the model check moved
to server/routine-input.ts, the routine routes share one refusal check, and
the optional fields are cleared in one loop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
916e2d21d imported createAsksActingPerson twice, so server/index.ts could not
load. The coordinate_bots result text moves to coordinateResultMessage in
server/host/teammate-prompts.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/routines.ts and server/index.ts may not grow. scheduledRecurringRun moves to server/routine-recovery.ts, and a few statements fold onto one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An earlier assignment can still resume the Chief, so the answer-only result only speaks for this call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RoutineInput.modelSelection can be null, which the draft Routine type does not allow, and pnpm typecheck failed. The draft drops it, as it does checks and access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The defaults and New bot editors offered "Open the Screen panel", which
can only act on a saved bot, so a new bot's place could not be chosen
even though the template already stores it. These editors now show the
Works on picker, sharing its grid with the Screen panel.
The size-ratchet extraction of fetchPastLimit had turned upstream's lazy undici import into a static one, which the lazy-server-modules guard rejects. It now loads undici on first use, as upstream does.
While chat text is selected and the Cite button is showing, Cmd+L on
Mac and Ctrl+L elsewhere opens the existing cite card. With nothing
selected the key keeps its normal behaviour. The Cite button shows
the shortcut as a hint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two feature comments move to the end of their lines, as the ones above them already do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 100% 5-hour or weekly window always marked Claude blocked, so turns moved
to the backup engine even when Claude Extra Usage (or the monthly spend
budget) was on and still had room. Now a full window only holds Claude when
that paid budget is off or used up. Other engines, Claude without extra
usage, and real refusals are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChatGPT Business and Enterprise workspace admins can turn off
third-party sign-in. Adding a ChatGPT account then fails on OpenAI's
page with 3p_delegated_access_policy_denied and the app gave no hint
why. Show one short line under the add button on the ChatGPT card.

Closes #4533

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a person used an MCP app card to make a change (a tool the bot could
also call, not read-only), the result was only shown inside the frame. After
reopening the conversation there was no sign it happened, so it looked unsent.

Now a successful change is stored on the row as a short "Done" note (tool
title, one line of the result, an https link if the result names one) and
shown under the card. Secrets in the result are redacted before storing.
Read-only tools, app-only tools, errors and declined calls record nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The words test bans 'workspace' in English copy. The note now has an id and the
Add button and name field point to it with aria-describedby (CodeRabbit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit review: the first press opens the card, but key repeats while the key
is held would fall through to the browser default (address bar).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a custom endpoint in Hermes' config.yaml (or a config OpenMausBot can't
read, such as Hermes set up in WSL), Hermes showed as Ready but its model list
was empty ("No model providers are available"), so no Hermes bot could be made.

When Hermes is installed and nothing else is listed, offer one
"Hermes default (config)" entry. It starts `hermes acp` without set_model or
-m, so Hermes runs the model in its own config.yaml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A blocked Chrome sandbox (AppArmor on Ubuntu 23.10+) and missing Linux
libraries both told people to run `sudo openmausbot browser setup`. The CLI
has no such command (`unknown argument "setup"`).

- Sandbox: the error and the live view now link the existing manual steps
  (docs/deploy-vps.md#ubuntu-2404-browser-sandbox) for an administrator.
- Libraries: they name the real command,
  `sudo openmausbot browser install --with-deps`.
- The stream close reason now carries only the need; the viewer knows the
  fix, so an older server's made-up command is never shown.

Closes #4515

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- hermesInstalled() looks up a wrapper such as `wsl hermes` by its first word, as resolveCliSpawn launches it,
  and accepts any runnable PATH match instead of only the first one.
- Ollama/LM Studio keep the empty answer (earlier models stay) only when their base_url is the local probe's own
  endpoint; another host or port is never probed, so it gets the Hermes default like a custom endpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Take turns and dictation now listen through Fish Audio on Linux, so the packaged app reports dictation available there; the smoke still asserted it was off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A blocked option in the new-bot editors now gives its full reason on
hover, as the Screen panel does. The draft test checks the selected
button itself and exercises choosing a place.
# Conflicts:
#	src/components/ChatMarkdown.tsx
# Conflicts:
#	electron/main.mjs
# Conflicts:
#	server/system-prompt.ts
# Conflicts:
#	.github/workflows/ci.yml
# Conflicts:
#	src/components/ModelPicker.tsx
# Conflicts:
#	server/index.ts
#	src/locales/de.json
#	src/locales/es.json
#	src/locales/fr.json
#	src/locales/hi.json
#	src/locales/it.json
#	src/locales/ja.json
#	src/locales/ko.json
#	src/locales/pl.json
#	src/locales/pt-br.json
#	src/locales/ru.json
#	src/locales/source-hashes.json
#	src/locales/tr.json
#	src/locales/uk.json
#	src/locales/vi.json
#	src/locales/zh-tw.json
#	src/locales/zh.json
- #4484, #4450, #4473, #4399: joined lines so server/config.ts, src/state/store.tsx, shared/wire.ts, server/drivers/acp/core.ts, server/container-computer.ts and server/vps-computer.ts stay within their listed sizes.
- #4482: OpenCode, which is in every default fleet, has no plan-usage row when it has no key of its own, instead of a red sign-in error.
- #4448: the engine-status end-to-end test no longer writes log and evidence files into the repo and the temp folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(browser): stop pointing at `openmausbot browser setup`, which does not exist
fix(hermes): offer Hermes' own default model when nothing else is listed
fix(apps): show a Done note under an MCP app card after it makes a change (#4532)
Settings: say that ChatGPT Business/Enterprise workspaces can block adding an account
Main green again: server/index.ts size, Linux dictation smoke
fix(limits): don't hold Claude at a full window while its paid extra usage has room
Cite selected chat text with Cmd+L / Ctrl+L
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/components/app/AppChrome.tsx
#	src/components/browser/StreamSurface.test.ts
#	src/components/browser/StreamSurface.tsx
fix(openai-chat): send Gemini's thought signature back with its tool calls
fix(watchdog): don't count computer sleep as a turn's silence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/components/CitationUI.tsx
fix(env-path): find Podman and Docker Desktop on a Mac launched from Finder (#4520)
Memory-capture test waits long enough on a loaded Linux shard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(codex): give a person's own stdio connection the bot box's proxy on My Cloud
Tests: analytics waits for its sends; the Cloud fixture says why it gave no code
Notifications: the bell moves into the window's top bar beside Settings
Usage card: title with when it was checked, tracks filled by use
i18n(ja): unify notation and terms across the Japanese pack
Main grew the file by 8 lines after the OpenCode row set its pin; the helpers now take the same lines as before main grew, and the pin tightens to 1046.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notifications: make the tray pin work (close unpinned tray on chat switch, remember the pin)
fix(openai-chat): accept a legacy function_call from OpenAI-compatible relays
fix(antigravity): start the new account's Google sign-in after Add Google account
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/components/ModelPicker.tsx
The notification-pin change took the file to 3,356 lines against its listed 3,354, which turns every PR's source guard red. The optimistic send's call now sits on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine model on another engine now gets the check a bot's own model
change gets: one its bot's approval level can't carry to (Custom across
engines, Auto-accept edits to an engine without it) is refused with 400,
on create, on edit and when an edit moves the routine to another bot. A
run whose routine model no longer fits, because the bot's permissions
changed since, opens its thread on the bot's model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A scheduled run of a repeating routine that a usage limit stopped is not
started again at the reset when the routine's next scheduled run comes no
later than one of its intervals after the reset (its minutes for an
interval routine, a day for a daily one, the gap to the following
occurrence for cron): that next run does the same work. Runs started by
hand, at startup or by an event, one-time and limit-reset routines, and a
routine whose next run is further off still start again at the reset.
The hidden features.recurringRoutinesSkipLimitReplay flag is gone, and
server/config.ts and server/index.ts are back to main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	apps/docs/content/docs/features/automation.mdx
Adds OpenAI beside main's Gemini voice in every provider list, keeps Fish
transcribe next to the OpenAI failure mapping, lays the seven engines out
four to a row, and drops the zh.json additions (English-only additions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- #4389: the computer panel's action rows wrap, so long labels in other languages don't overflow at the narrowest width.
- #4286: a portable Hermes shell starts in the bot's own folder (captured before the launcher moves into the install), and its end-to-end test runs on the host shards.
- #4275: new strings stay English-only; the Chinese edits come out.
- #4231: the OpenCode 2.x macOS signature is recorded as checked, and the docs list the differences from 1.x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Typecheck and the build moved out of static into their own job, so the guards-first check reads that job's needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/locales/de.json
#	src/locales/pt-br.json
The desktop diagnostics copy of the credential formats still matched only
AKIA keys; it now also masks ASIA (STS) ids, in step with shared/redact.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's callModeHint import beside the MCP servers import in the bot
panel's Settings page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Access tab now offers what the Share dialog does since the move to two
choices: everyone in the team can use the bots, or only the people added,
and a person is added or removed rather than given a level. planAccess keeps
the sharing's other fields, and adding never lowers someone who can already
do more. Drops the removed levelLabel and botAccess.everyone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- turn-images: keep main's 10-image limit; never strip a video's <attached-file>
  tag, so engines that read files still get its path and frames only add to it;
  drop the more-than-one-video 413 and the video byte check: the first video in
  a message is sampled and the rest stay as plain tags.
- Frames are capped so a turn's pictures plus frames stay within its image count.
- server/index.ts stays line-neutral. In beginTurn the frames are sampled inside
  the async setup, after the turn is claimed, so an ffmpeg run never opens a
  window before the turn registers.
- Tests: tag kept, first video only, frame limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the conflicts with main's personPin: the chip and phone menus use the
PR's listed places with main's pin, ComputerPanel keeps unpinToWorksOn with
main's heldPin, and both new test blocks stay. pageOnRemoteServer now reads
localComputer optionally, so capability mocks without it don't throw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's mentions field next to followUp in the failed-send record, its
recovery, and the composer's sent draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge origin/main and resolve its conflicts:
- server/index.ts: main moved turn-attachment landing into settleParkedFiles
  (server/host/turn-attachments.ts). The rule that drops a goal coordinator's
  image moves there as a parameter; main's "drop a voice note only when the
  person stopped the turn" rule stays. index.ts stays below main's line count.
- Agents catalog goldens regenerated. generate_image adds 773 bytes to the full
  tools list and 16 bytes to the bridged list (only its name in find_tool); the
  two +images profiles get baselines, every other profile is unchanged.
- Locales: English additions in en.json only. The other languages keep main's
  translations, minus the 19 avatar connection keys English no longer has
  (i18n:check refuses keys missing from English), and their source hashes.

Spending limit (owner decision):
- At most 50 images a day per installation, counted on disk
  (image-generation-day.json in the data folder) so a restart does not reset
  it, starting again at local midnight. No new setting. An image the provider
  did not make frees its place.
- generate_image makes an image only in a turn a person's own line started:
  the turn's work origin is the person's (a one-on-one request, or work handed
  on from one), or a room run answering a person's own room line. Routines,
  webhooks, apps, guests and a goal's coordinator (whose images never land)
  get a plain refusal the bot can pass on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/en.json
The zh.json additions were dropped (English-only additions), so the test
checks the English text for an error key and the fallback for an unknown one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Where the bot's own skill writes apply directly (appliesDirectly, as for
create/update), turning a skill on or off or deleting it now applies at
once: a one-line receipt, an auto-approved decision row, and Undo. No card
at Full access. Undo flips on/off back; a delete keeps the skill's files
on the receipt as previous, and Undo re-creates it through stageSkillWrite
(create) and applies it, turned off again if it was off. Undo refuses,
changing nothing, once the skill moved on since. The card path stays only
for changes that wait for the owner. Switch receipts can't be shared to
the library.

Merge main: regenerated agents catalog goldens (+108 bytes vs main on every
skills profile from the extended skill_manage schema, inside the 2%
budget band, so BUDGET_BASELINE is unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep only the wizard: server/cli-setup.ts, its test, and an install block
for Gemini CLI. Revert the workspace Gemini key (its env name collided
with the Gemini speech key), the default-fleet additions, the key catalog
and the unrelated Codex background-text fallback to main. The wizard saves
the Gemini/DeepSeek key on the engine's own instance environment, which
reaches the engine at run time ahead of any workspace key; a test pins that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prune() runs from isLive() on the heartbeat; a disk error from persist()
escaped and could take the process down. Catch it and log, keeping the
reduced in-memory set (a restart re-reads the saved one).

Reduced to this one fix: the OMB_SESSION_IDLE_DAYS idle-revoke setting is
dropped (owner rule: no new settings unless unavoidable).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/config.ts
#	server/tts/index.ts
#	src/locales/en.json
A merged change to the app frame's source left the built page behind, so host-page.test.ts failed on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main green again: store.tsx size, rebuilt app-host.html
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new Japanese strings changed lending.action.chrome, so the desktop's copy in electron/lending-words.mjs follows it. Agentcard's description is the vendor's own copy and stays in English like in every other language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
i18n(pt-BR): complete native Brazilian Portuguese localization
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings main's complete Brazilian Portuguese translation into the train.
Train 2's new English is wired through t() and translated to pt-BR. The
Voice and calls row keeps main's "OpenAI key" label and live-calls
purpose: read-aloud reuses the same OpenAI key, so the row only gains
search words, not a new name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The images profile's golden and budget were pinned before skill_manage's
enable/disable/delete wording landed, so it was 108 bytes short.
Regenerated with UPDATE_AGENTS_CATALOG_GOLDENS=1; the bridged twin is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The instance's configDir comes from join(), so on Windows it has
backslashes; the test spelled it with forward slashes and failed there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two new cloud computer tools. copy_from_computer brings one file of up to
50 MiB from the Boat into the bot's working folder (streamed to a temporary
file, then renamed); copy_to_computer sends one file of up to 5 MiB the other
way. Paths in the folder are relative, may not use .. or leave the folder
through a link (checked again once the download has begun), and never reach
the secret folder. Both go through the same gate, deletion fence and turn
checks as the other computer tools, and work with an own Boat key and through
the Cloud's included-Boat relay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test cut navigateMainWindow out of main.mjs at the first "\n}\n", which a CRLF checkout never has, so it failed on the Windows shards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The image generation tool had no activity.tool key, so its row fell back to raw English and the activity label test failed. It is "Generate image" in English and "Gerar imagem" in Brazilian Portuguese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train nov5-a: 17 reviewed PRs
Train nov5-b: 21 reviewed and fixed PRs (stacked on #4550)
chore(release): bump version to 0.1.142
pt-BR was the only pack CI held to being complete, so every PR that added English text had to add Portuguese too before it could pass. Now no pack is special: pnpm i18n:check fails for broken placeholders, keys English lacks and stale translations in any language, and a missing translation reads in English until it is filled. scripts/complete-locales.json and its same-as-English list are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A server line written into a conversation took the language of whoever
spoke in it last (or started it), so on a Team Cloud or a shared server a
room or a team's shared chat could fill with one member's Portuguese for
everyone. A conversation's lines now read in its one person's language only
when it is private to them (a member's own chat), else in the place's.

The place's language, with none set on the server or by the team's Admin,
was the one most apps here show, with a tie going to whoever pinged last.
It is now the one every app here shows, else English, so no one's pick
decides the words the others read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no language picked, the window shows the server's default (the
team's from the Admin, or the one set on the server) while main drew its
menus, tray and dialogs in the system's language, so a Portuguese team's
window could sit under English menus, or an English window under
Portuguese ones. The window's own page now tells main the language it
shows, and main's words follow it until a pick is made; a pick still
wins and stays synced as before. Only the window's page leads, never the
rail or another window, and the language must be one of the packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Noise_NKpsk0_P256_AESGCM_SHA256 handshake and records, the yamux profile,
token-derived psk and relay admission values, the pairing descriptor, and the
relay token, with vectors V1-V9 generated from fixed inputs and pinned by
SHA-256.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A code the app translates (an errorKey, a notice, a routine line, an
activity label or app, a card's words, a server line) that English lacks
is shown untranslated, and a key main passes to its text helper that its
packs do not keep reads as the key itself in a menu or dialog. The
existing native-keys guard covered only native.* keys; this one reads
server/, shared/ and electron/ for every literal under the sent prefixes
and every key main asks for (teamMove.* and the shared renderer keys too).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
readyBotCopy and the skin picker wrote t(key) || english, but t() throws
on a key English lacks, so the English fallback could never run: a ready
bot or skin added without catalog words would crash the gallery or the
picker instead of showing its own English. They now use tFromServer,
which keeps the given English for an unknown key, and tests pin that
every ready bot and skin has its catalog words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's folder page dropped files it can't carry without a word: a page
holding land.geojson lost it, the page's fetch 404'd and it rendered
blank while the bot was told nothing.

- Pages now carry .geojson, .topojson, .tsv and .ndjson, served with
  their own types. The allowed extensions and their Content-Types are
  one map shared by the folder page route and publishing.
- show_html (new pages and replacements from a folder) and publish_page
  now end with one sentence naming what was left out and why, grouped
  by reason and capped, e.g. "Left out land.foo (pages can't carry .foo
  files) and .env (hidden)." Hidden files and links that lead out of
  the working folder are named too. Nothing is added when nothing was
  left out.
- show_html and publish_page descriptions mention the data a folder can
  carry, a few bytes shorter than before; goldens regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep each person's language to themselves: shared chats, menus and missing keys
Every language follows the same rule: missing strings fall back to English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
copy_from_computer and copy_to_computer now mint a five-minute download or
upload link (files/download-url, files/upload-url) and stream the file straight
between the sandbox and the working folder, with no Authorization header on the
link and the link never in a result, error or log. One 2 GiB cap replaces the
50 MiB and 5 MiB ones; a download is refused when the folder's disk can't hold it
with 256 MiB to spare. Copies get their own 9-minute budget (the stdio proxy and
Codex's tool timeout wait a little longer); an older relay without transfer links
gets a plain refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
exec gets background: true, which starts the command detached on the Boat
and answers at once with a process_id; exec_status reports running or
finished, the exit code and the end of stdout and stderr, and can wait up
to 60 seconds for it to finish. A process_id is bound to the computer it
was started on. A plain exec that runs out of time now says the command may
still be running and not to run it again blindly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The device listener accepts /v1/e2e; a relay client keeps one control socket
and opens a data socket per phone session. Every stream reaches the same proxy
handler in memory. Devices gain routes (any or local) and e2eAt, which
ratchets them off the plain listener. Pairing windows can overlap for a
self-renewing QR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/ci-scope.mjs
The chat card sizes itself to the height the page reports, and the page
measures only its flow: html and body are freed to their content and the
root measured. A map, canvas or game laid out to the window (an absolute
inset:0 layer, or html, body, #map { height: 100% }) has almost no flow, so
the card shrank to a 48 px strip.

Now, when the flow is under 120 px and a layer at least half the frame's
size sits under its middle that the flow does not hold up (absolutely or
fixed positioned, or sized from the window and empty of flow), the page
reports the frame's starting height instead: show_html's height when the
bot gave one, else the card's 520 px. It keeps that height until its flow
needs more, so the frame never follows layers that follow the frame. The
first report waits for the page's load event, and the JSX shell's loading
line holds the frame's height, so neither measures a page before it is
drawn. Pages that flow measure as before.

show_html's description asks for height on maps, canvases and games; the
catalog goldens are regenerated and the budgets that grew re-set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The idle sleep archives the Boat ten minutes after the turn ends, which
would stop a background command still running. Each command started with
background: true is remembered per computer, and the idle sleep waits
while one still runs (or Boat cannot say), for at most two hours after it
started. exec_status forgets a command once it has ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/ComputerPanel.tsx
#	src/components/bot-settings/AccessSection.test.ts
#	src/components/bot-settings/AccessSection.tsx
A command server pasted the way other MCP clients write it,
{"type": "stdio", "command": ...}, was refused by POST /api/mcp/servers
with "Unrecognized key", while a remote server's "type": "http" was
accepted. The command entry now accepts an optional "type": "stdio" and
ignores it: the stored entry is the same as before, so the old shape and
existing config files keep working. Any other type on a command entry is
still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /v1/installations/self/relay-token mints a 12 h Ed25519 host token for a
stable per-installation host id, ordered relay nodes by rendezvous hash, and
records adoption counts for /healthz. Dark until RELAY_TOKEN_SIGNING_KEY is
set and RELAY_ROLLOUT_PERCENT or RELAY_ALLOW_INSTALLATIONS admits a computer.
From RELAY_CAPABLE_MIN_VERSION, a desktop with no old phones gets 409
relay_capable instead of a new tunnel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A restricted device's descriptor says "local" instead of leaving the phone to
infer it from a missing relay, which a signed-out computer also lacks.
Descriptors without the field stay valid and mean "any". V7 gains six cases;
the vectors' SHA-256 is re-pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`openmausbot send "Room" TEXT` always dropped the message into the room's
open conversation, and --task took only an id. send now takes the same
--task choices as run: current (the default, as before), new (a fresh
conversation titled by --title or the message's first line) or an id.
The output names the conversation: the thread id always, and the title
and "a new conversation" when it made one. --dry-run starts nothing, and
--title without --task new is refused.

run and send share one helper for picking the conversation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The connection key is made the first time the control plane admits this
computer to the relay; the sidecar gets it over the utility-process port. The
QR carries e2e and renews itself; Phones becomes one grouped card with the
live route and a Wi-Fi and Tailscale only setting; a new pairing never makes
a tunnel. 28 strings in all 15 locales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Companion: pause the HTTPS address after 30 days with no phone seen; room for a third domain

Cloudflare's tunnel pool is full (2,000 of 2,000 across both accounts), and
an install that paired a phone once and never used it again holds a tunnel
forever, as long as the app stays online.

- A paired phone now counts as needing the address only while it was seen
  in the last 30 days (or is connected, or its last-seen time is unknown).
  When every paired phone is older than that and no pairing is open, the
  address is given back after the usual 1-4 h grace and marked paused.
- Opening Settings > Phones brings a paused address back (prepare(), no
  button), as does starting a pairing. The control plane keeps the endpoint
  row, so it returns at the same hostname and the old phone reconnects
  without pairing again.
- The paired-devices list shows one quiet line under a paused phone, in all
  16 catalogs.
- Desktop-to-desktop pairing reads the accepted zones from one list,
  MANAGED_COMPANION_HOST_SUFFIXES, with an empty placeholder for the third
  account's domain. The strict c-<32 hex>.<zone> shape is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Companion: run only the Phones screen's own effects in the resume test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A data lane's interrupt() now re-delivers until its statement settles, as
the timeout and abort paths already did: DuckDB drops an interrupt that
lands before the statement is dispatched, so a one-shot interrupt (the
one close() uses) could leave the statement running to its 60 s timeout.

The memory-order test waits for the first hand-off to be running before
the person's line; until then nothing holds the memory and the person's
line rightly runs at once. The device-link test checks the opening limit
with a socket that opens at once instead of racing a real handshake
against 100 ms. The Mistral key flow gets the budget of the other
fixture-launching tests: its default 20 s was no more than the fixture's
own launch allowance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pairing code lasted five minutes and worked once, which is clunky for a
server you set up from a terminal. `openmausbot pair --ttl 24h` keeps
the code open that long (one minute to 24 hours, still single use), and
the pairing route takes the same `ttlMs`, refusing anything outside it.

For CI and scripts, `openmausbot token create NAME --out FILE
[--scope client|admin] [--expires 90d]` makes an access token: a session
that ends on its date and never renews, bounded by OMB_SESSION_MAX_DAYS
like every session. It is made through the same pairing route and
exchange as `connect`, so every place that refuses pairing (a hosted
workspace, a managed policy without remote access, a personal Cloud)
refuses tokens too. `token list` shows names, scopes and end dates, never
the token; `token revoke ID` ends one, and refuses a device's session.
Tokens also show in `openmausbot sessions`, marked "(token)". Against a
server too old to make tokens, the ordinary session it opened is ended
and the command exits 5.

Durations take days (30d) where a verb allows more than a day. The
sessions table moved out of cli.ts into cli-pairing.ts to make room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`openmausbot doctor` checked only the workspace. `doctor --host` checks
the machine before a server goes on it: the system and processor, Docker
or Podman (and whether this user can reach the daemon), unprivileged user
namespaces (AppArmor's and Debian's switches, the namespace limit),
seccomp, cgroup v2, free disk for the data folder, disk encryption, CPUs
and memory, the server's port, ports 80 and 443 (required with
--domain), and the clock against network time (signed requests allow
300 s). It only reads: /proc and /sys, version queries, the listening
sockets, and one HEAD request for the time.

Each check prints ok, warn or FAIL, and a failed one says its fix on the
next line. Any FAIL exits 7, the new "this machine is missing something"
code; warnings do not fail. --json prints one document with every check.
On macOS and Windows it says it checks Linux servers and exits 7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`openmausbot access add EMAIL` let people sign in with an emailed code,
but the code always came from the OpenMausBot account service, so every
person signing in got a MausBot account and the server depended on ours.
With OMB_SIGNIN_SMTP_URL set (smtps://user:password@host:465, or smtp://
with STARTTLS required unless the mail server is on this machine) and
OMB_SIGNIN_SMTP_FROM, the server makes and checks the codes itself: 8
digits, single use, ten minutes and five tries, kept only as a hash in
memory, and at most one every 30 seconds per address. The allow-list,
the per-source lockout, the routes and the sessions are unchanged; the
account service is not asked at all. A mail server that refuses, or a
missing sender address, answers 502 with the reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each card connects the person's own account, so the service bills them and
OpenMausBot pays for none of it. AgentMail and AgentPhone sign in with the
browser like Whop. Vapi and Telnyx have no browser sign-in, so a hosted row can
now take a pasted key: it rides in the server's Authorization header on a
server left off until its tools load with that key, a refused key says so,
and Disconnect deletes the server and its key.

Verified with scripts/verify-bot-contact-cards.ts against an isolated fixture
and the real renderer; the four real endpoints answer a bad key with 401.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A call plugin's create_call or make_call, AgentPhone's buy_number and
Telnyx's raw invoke_api_endpoint were not outbound, so below Full access
they skipped the send-on-your-behalf card and at Full access they ran
outside the daily outbound cap. Calls now count like a created message,
buying and purchasing like paying, and Telnyx's one raw API tool like
Composio's proxy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Widget form Enter only checked isComposing. WebKit delivers the confirming
Enter after compositionend with isComposing false and keyCode 229, so Safari
pressed the form's submit action with the half-typed field. Use imeComposing()
like the composer and AskReply.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Windows test runner path.resolve turned /srv/mausbot into a drive
path, so the encryption check found no mount for it and every report
gained a warning. The checks describe a Linux machine, so its paths are
resolved as POSIX paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The connector put the home's bootstrap secret and relay tokens in the container's environment, where docker inspect
shows them. It now writes them to a root-only file in its state volume and mounts that folder read-only at
/run/mausbot; the launcher reads it as root, checks it is root's alone and off the volume, and hands the secrets to
the server over its pipe as before.

hidepid on an own server needs CAP_SYS_ADMIN for one remount. The connector now grants SYS_ADMIN and SETPCAP, and the
launcher starts itself again through setpriv without either right after the remount (bounding and inheritable sets),
then checks the drop held: setpriv without SETPCAP exits 0 and drops nothing. A remount already in place is no longer
retried and logged as a failure. Both changes are gated by the image's version (0.1.143), so an older image keeps
exactly the settings it had and is never given SYS_ADMIN.

Also: the edge keeps its certificate storage on /data, so a new container reuses a certificate instead of asking
Let's Encrypt again; and the box's pid checks compare start times, so a box process that got the server's or the
canary's pid number (the checker running as a container's PID 1) is not reported as the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
E2E phone connection: wire spec v1, Node reference and test vectors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	electron/companion-account-service.mjs
#	scripts/complete-locales.json
#	src/components/CompanionSection.tsx
pt-br is the pack the i18n test keeps complete. Drafted with
scripts/generate-locale.mjs, reviewed, and kept to the 13 new keys; the
setting is named "Enviar em seu nome" as everywhere else in the pack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every job the connector runs now goes through one desk, whoever sent it: it is written to /var/log/mausbot/audit.jsonl
on the host (root's, appended to only, each line holding the hash of the one before it), run, and its result written
too. A job that would change something is refused when it cannot be recorded. Arguments are recorded without values
that could be secrets: an environment's names only, a download's origin only. A record for the Admin's requests to the
home (the pairing names who and which device, never the code) is ready for the control channel to use.

`mausbot-connector job <type> [args]`, run with docker exec, sends one job over a socket in the connector's own /tmp
through the same checks and desk, recorded as local. That desk is the interface the Admin's channel drives.
`mausbot-connector audit` prints the log and `audit --verify` checks the chain. install.sh creates and mounts the log's
folder; uninstall keeps it unless --delete-data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
autoSelectFamily with the gate's custom lookup never falls back: on a
list that mixes families where the first cannot route (a host with no
IPv6 route is the usual case — a self-hosted server with IPv6 disabled
by the compose file, say), Node 24 leaves the socket stalled until it
times out, and the IPv4 answer is never tried. Sites whose DNS answers
carry an AAAA record (accounts.google.com, mail.google.com, ...) then
fail in the bot's browser with ERR_SOCKS_CONNECTION_FAILED while
IPv4-only names still work.

Try the checked addresses by hand instead: each gets its own attempt,
attempts start staggered, the first to connect wins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MausBot Relay: control-plane host tokens (dark by default)
The test opens a second SQLite connection and takes the write lock with
BEGIN IMMEDIATE. With the default busy timeout of 0 that fails at once when
the harness is still finishing a write from the first card, which a loaded
CI runner makes likely. A 5 s busy timeout waits for that write and keeps
the test's intent.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A CRLF checkout on Windows changed their SHA-256, so the vectors' pin check and generator check failed on the Windows
shards for a reason that has nothing to do with the wire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A remote MCP server's WWW-Authenticate resource_metadata, its authorization_servers and every endpoint in the metadata document were accepted by a scheme-only check. A malicious server could therefore make the harness GET http://127.0.0.1:<port>/..., or a private HTTPS address, with a loopback request that carries no Origin.

Discovery URLs now keep loopback trust only for the MCP server's own origin (or another loopback port when the configured server is itself local); everything a remote document names must be public HTTPS, rejecting private literals and local names. Metadata is also read through the 64 KB cap instead of buffering the whole body first.
Debian 12's own Docker is 20.10, which the installer refused with a command to run. A Docker that is too old now gets
the same offer as a missing one: with --install-docker (or a yes at the prompt) Docker's official script replaces it
with the current Docker CE, and the version is checked again.

Debian 12's cloud images run AppArmor in the kernel without its tools, and the installer told people to install them
and restart. It now installs the apparmor package itself when the kernel has AppArmor on; no restart is needed.

`mausbot-connector probe --json` prints the connector's checks (the box probe with the home's own security settings
among them) as one object, so `openmausbot doctor --host` on a server that runs a connector can ask it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
relay: the phone relay service (splices sealed WebSockets, no database)
A home on a customer's server can now be reached at the customer's own domain with no second container, and
its pairing lockout counts each client on its own.

- OMB_CLOUD_EDGE_TLS=1: the edge runs deploy/fly/Caddyfile.tls, which serves the same routes on :8080 (for the
  agent) and on 443 for OMB_PUBLIC_URL's name, with a Let's Encrypt certificate it gets itself over TLS-ALPN
  (port 80 optional). The certificate and ACME account live on the volume in /data/.omb-edge/caddy, outside the
  server's data folder, so a restart, update or rollback reuses them instead of issuing again.
- Off Fly, the edge now trusts no client-address header by default: the client is the connection's peer. Before,
  it believed Cf-Connecting-IP from the home's own loopback, which a bot or any process in the home could forge.
- OMB_CLOUD_TRUSTED_PROXIES and OMB_CLOUD_CLIENT_IP_HEADER: an owner who puts a proxy in front names it, so
  members behind it no longer share one lockout (where ten wrong codes from anyone also refused the Admin's
  signed pairings). Each entry must be an address or range; /0, host names and anything Caddy could read as more
  stop the home with a message naming the variable. On Fly these settings stop the home too.
- The Fly Caddyfile's routes moved to deploy/fly/edge-routes.caddy, imported by both configs; `caddy adapt`
  gives byte-identical JSON for the Fly config before and after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A refused event stream looks like any other drop to EventSource, so the app stayed at 'Connecting to your bots…' with no way forward. Once the stream is late the connection strip now probes /api/auth/session; an ended sign-in swaps in the pairing page, while a live session still gets the existing Retry. The probe is skipped for an offline device or a sleeping Cloud, so neither is woken just to ask.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Command Code (npm `command-code`) speaks ACP natively with `command-code acp`.
The new commandCodeAgent driver:
- lists the account's live models and each one's effort levels through ACP,
  after a "Command Code default" entry that keeps the person's own pick;
- reads the sign-in from `cmd login`'s ~/.commandcode/auth.json or
  COMMAND_CODE_API_KEY without starting the CLI;
- sets Standard mode on Ask so every change waits for the app's approval,
  and Bypass Permissions only under Full access;
- removes the session files model discovery leaves in ~/.commandcode/projects.

It runs `command-code`, not `cmd`, which is the Windows shell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a team's own server the home runs in a container under its own AppArmor profile (omb-home-narrow), which allows
user namespaces for that container alone, so AppArmor's server-wide switch (on by default on Ubuntu 24.04) can stay on.
doctor --host told everyone to turn it off. When a MausBot connector runs here, it now asks it for its checks
(`mausbot-connector probe --json`): the user-namespace check passes when the connector's box probe does, and otherwise
says to run the install command again, never to change the switch; any connector check that fails is listed with its
fix. Servers without a connector get the same checks as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A removed device hears GoAway(3) inside the encryption before the 4001
close, so a relay can't fake a removal with a close code; the smaller
admission set follows a moment later. The integration tests now run the
real relay process; the malicious-relay suite keeps the fake one and adds
a forged 4001. OMB_E2E_SOAK=1 streams about 10 GB in 12 KiB frames through
the real sidecar and relay, with a token refresh and a control-socket
replacement mid-run. Vectors: V5 go_away_3, V6 phone_hears_removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For a customer who can't open a port, the home now runs the managed tunnel's connector itself, so the
address survives restarts with the home and each member behind the tunnel is counted on their own.

- OMB_CLOUD_TUNNEL_TOKEN: the connector token the control plane's ensureEndpoint returns for the server's
  installation credential, with OMB_PUBLIC_URL set to the tunnel's address. Refused with OMB_CLOUD_EDGE_TLS,
  on Fly, or when it isn't token-shaped.
- The image ships the cloudflared release scripts/prepare-cloudflared.mjs pins, checked against its digest in a
  build stage on the image's own CPU, root's, beneath the engines.
- The launcher runs it as a new omb-tunnel user with the token in its environment, which maus (and so no bot or
  engine) can read; cloudflared 2026.10 can't read --token-file from the socketpair Node gives a child. A
  connector that stops starts again after 5 s, doubling to 5 minutes; it never stops the home.
- deploy/fly/Caddyfile.tunnel adds a loopback-only listener on 127.0.0.1:8812, where the control plane points
  every tunnel; only it believes Cf-Connecting-IP. :8080 still believes no header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The relay line shows Connecting only after 1.5 s and keeps any line up for
0.4 s. A tunnel request reports how many old phones are paired, and 409
relay_capable is taken as no tunnel needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/etc/mausbot/policy.json on the host is the owner's, root's; the connector reads it (mounted read-only) before each job
MausBot sends and never writes it. `jobs` lists the only kinds MausBot may run there and `updates: "hold"` holds home
updates. A refusal is answered `refused_by_policy` and written to the audit log. A policy that cannot be used refuses
every change from MausBot until it is fixed, while status still answers. Jobs root runs on the server itself are not
limited by it, and a self-update of the connector is always accepted, so a held or locked-down server never strands an
old connector. Uninstall keeps the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An update now refuses an image the image check turns down before anything changes (start too, before anything of the
image is kept, so the connector never starts it on its own later), and so does the connector's own self-update. Today
the check is the protocol's digest pin; a signature check plugs into `checkImage` with the image running now.

An update whose new version answers but whose bot box no longer passes every self-check, or is off, is rolled back
like one that never answers, with what failed in the message. The box gets three minutes after the home answers. A box
that already failed before the update does not hold the update back.

Each step of a job that changes the home (pull, checked, stop, snapshot, swap, wait, healthy, rollback, ...) is written
to the audit log as it begins. The e2e now also runs a job from root on the server and reads the audit log back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docker raising its oldest API (as Docker 29 did, to 1.44) left other agents crashing and restarting forever. The
connector speaks API 1.43 to 1.47. At start it now asks Docker which it speaks and, when there is no overlap, says so in
one line with the fix (update Docker, or run the install command again for a newer connector), keeps it in its status
and checks again every 10 minutes instead of exiting. `probe` reports the same as a failing docker check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A deploy keeps only the secrets in secrets.required and drops the rest. HIGHLEVEL_CLIENT_SECRET is live but
unlisted, so the next deploy would have dropped it and turned the HighLevel relay off (503
highlevel_unavailable). RELAY_TOKEN_SIGNING_KEY is about to be set and would have gone the same way. Both are
now listed; set the relay key before the first deploy that lists it.

RELAY_NODES lists only relay1 until relay2's box and DNS exist, so no computer is handed a node that isn't
there. The token test pins two nodes itself, so node ordering stays covered whatever the config lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add Command Code as a built-in ACP engine
The owner is removing the HighLevel integration (nobody uses it), so a deploy may drop its secret: the routes then
answer 503 highlevel_unavailable until the integration's code is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Control plane: keep the relay signing key across deploys, list only relay1
Folder pages name every file they leave out, and carry map data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
E2E phone connection: the sidecar serves Wi-Fi, Tailscale and the relay
E2E phone connection: the desktop app turns it on and shows the route
A bot page that fills its window keeps a page's height in the chat
Every job the connector runs now goes through one desk, whoever sent it: it is written to /var/log/mausbot/audit.jsonl
on the host (root's, appended to only, each line holding the hash of the one before it), run, and its result written
too. A job that would change something is refused when it cannot be recorded. Arguments are recorded without values
that could be secrets: an environment's names only, a download's origin only. A record for the Admin's requests to the
home (the pairing names who and which device, never the code) is ready for the control channel to use.

`mausbot-connector job <type> [args]`, run with docker exec, sends one job over a socket in the connector's own /tmp
through the same checks and desk, recorded as local. That desk is the interface the Admin's channel drives.
`mausbot-connector audit` prints the log and `audit --verify` checks the chain. install.sh creates and mounts the log's
folder; uninstall keeps it unless --delete-data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/etc/mausbot/policy.json on the host is the owner's, root's; the connector reads it (mounted read-only) before each job
MausBot sends and never writes it. `jobs` lists the only kinds MausBot may run there and `updates: "hold"` holds home
updates. A refusal is answered `refused_by_policy` and written to the audit log. A policy that cannot be used refuses
every change from MausBot until it is fixed, while status still answers. Jobs root runs on the server itself are not
limited by it, and a self-update of the connector is always accepted, so a held or locked-down server never strands an
old connector. Uninstall keeps the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The connector makes an Ed25519 key at enrolment and sends its public half with the one-time code; the Admin answers with
its own signing keys, which the connector pins. Every connection starts with a challenge: the box signs it with its key
and its connection count, and the Admin answers with a hello its pinned key signed. The count only goes up and is on the
disk before it is sent, so a count the Admin has seen before gives away a copy of the key. Jobs arrive signed for this box
only and refused when stale by the Admin's clock; a bare job is refused. A box the team's Owner has not accepted answers
only status and host-health. The Admin's newest signed schedule and policy are kept on the disk. The Admin's requests to
the home arrive as yamux streams (the phone relay's profile, the same file): one request a stream, to the home's edge on
loopback only, each written to the audit log with the member a pairing is for. Reconnects back off with jitter, follow a
restarting notice, and a silent connection is dropped by the wall clock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make four release-gate flakes reliable (one real data-interrupt bug)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
doctor --host checks a Linux machine can run the server and its sandbox
Cloud computer: copy files to and from the bot's working folder
MCP servers API takes "type": "stdio" on a command server
send --task new starts a new conversation, and says where the message went
pair --ttl keeps a code open up to a day; token create makes CI tokens
Email sign-in codes through the server's own mail server
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Own server: an audit log the server's owner can read, and jobs from root on the server
Own server: updates check the image, keep the bot box passing, and record each step
doctor --host asks the MausBot connector on a server that runs one
Team on your own server: HTTPS on the home's own domain, and a lockout per client behind proxies
Team on your own server: a home with no open port runs its own Cloudflare tunnel
0.1.143 was released without this launcher, so the connector gives the secrets file and the two capabilities to home
images from 0.1.144 on. The secrets file also carries OMB_CLOUD_TUNNEL_TOKEN, which only cloudflared gets. A home that
serves its own domain (OMB_CLOUD_EDGE_TLS=1) has 443 published on 0.0.0.0, IPv4 only, beside the connector's
127.0.0.1:8080. The edge's certificate storage is the one the address work put on the volume, so this branch no longer
moves the edge's data folder itself. OMB_CLOUD_TUNNEL_BIN is the image's own setting, never taken from outside.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The audit log and job desk landed beside this branch's Docker API check; both imports stay, and the usage line names
probe --json with the job and audit commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Below Full access a bot's add saved every server switched off and posted a
Turn on card, so a person who asked for a server still had to approve it or
switch it on in Apps. A URL server now turns on, joins the bot's list and is
tested at once in every mode, as on Full access. Its tool calls still follow
the approval mode.

A command server keeps the card below Full access: turning it on runs a
program on this computer, which needs a yes there. The mcp_server tool says
so, reworded to stay within the catalog's size budget (3 bytes longer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot on My Cloud now uses an MCP server that runs on the person's own
computer through that computer's lending link, as one of its own MCP
servers:

- Each enabled server marked `runsOn` a computer that is lent now and
  online is mounted for the turn at My Cloud's own address
  (/api/internal/lent/mcp/<name>, behind a per-turn bearer). Every
  tools/list and tools/call goes to that computer as a lending job
  (mcp_tools, mcp_call) carrying the server exactly as saved on My
  Cloud. The computer starts a command server there, or posts MCP
  messages to a loopback address there, and keeps it running between
  calls.
- The computer is the authority: only for the person's own Clouds, a
  command server only while the terminal is lent, an address only at
  127.0.0.1, localhost or ::1, MCP messages only. My Cloud checks the
  same scopes first, and only turns that may use the lent computer get
  the servers.
- A server added on My Cloud with a loopback address nothing there
  answers, or a command My Cloud lacks or that reads a path in a home
  folder it doesn't have, is marked as running on the lent computer:
  the one named, the one the adder's session lends from, or the only
  one; a bot with several to choose from is told to ask.
- When the computer is offline, paused, never lent, too old or doesn't
  lend its terminal, the bot and Test say so in plain words instead of
  "Could not reach this address".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Team Cloud's home refused every sleep request with a blanket "team" busy
code, so its plan could never sleep. It now answers the Admin's power read
and sleep request like every other home: busy while a member used it in the
last minutes, a turn or routine runs, and so on.

New busy code "handoff", on every home: work one bot handed another that
moves on without a person (an assignment queued, running or due to resume
its requester, or a report to send). One parked on a person's answer does
not hold the home: the answer wakes it.

Tests: a real Team Cloud home with the power clock agrees to sleep when
nobody uses it, waits while a member does, and waits for a hand-off until
it is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/cloud-home.test.ts matches deploy/fly's Caddyfile, Caddyfile.tls, Caddyfile.tunnel and edge-routes.caddy line by
line, so a CRLF checkout failed it on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud computer: run long commands in the background and check on them
- A thread whose settings save failed, and whose follow-up read of the
  server's settings also failed, blocked every send until a reload. The read
  is now asked again (2 s, 5 s, 15 s, then every 30 s) while that save still
  owns the thread, so sends resume once the server answers.
- A usage-limit hold lost the time it began on a restart, so any usage read,
  even one cached from before the refusal, could end it. That time is now
  saved with the hold; a hold saved without it counts from the restart.
- A local data-folder switch whose rollback could not take the previous
  folder's lease back left no lease and no server until a relaunch: the
  safety-net restart threw on the missing lease. It now takes the previous
  folder's lease back, retrying briefly but never forcing a held lease, and
  starts the server there. A second switch waits until it is done.
- A thread switch whose reply carried no bot never cleared "switching".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the edge's Caddy configs LF on Windows checkouts
In the icons-only density ("avatars"), the sidebar collapses to a column of
bot tiles. Dragging a tile onto another row or onto a department heading is
just as useful there as in the expanded list, and the rail already renders the
whole tile as the drag source, so no separate grip is needed.

It did not work: the bot arrange was gated on `sections.interactive`, which
`sidebarLayoutInteractive()` returns false for whenever the density is "icons".
With the gate closed every row came back without drag handlers, so a reorder
was impossible in the rail while working normally in the expanded list.

Ask for the rail arrangement directly by also enabling it when
`density === "icons"`, leaving the expanded-list behavior untouched. Add a
regression test that renders the sidebar with the icons density and asserts
every row stays draggable.
The rail shows tiles without department names and hides the field where a
new department is named, so a drop there can only reorder the bot inside the
list it already belongs to. Asking for the arrange with `withinList` in the
icons density turns the middle of a row into a plain before/after place
instead of a new department, refuses a drop onto a list the bot is not in,
and rejects a cross-list move in `planBotDrop`.

The expanded list keeps its full behavior: reorder, move between departments,
and start a named one.
The rail test asserted drag handles but not the density it renders, so a
comfortable-density row would have satisfied it. Assert density, and add the
phone-with-icons case: tiles are there, no row takes a drag controller.
The repository asks for a comment only where the code cannot say the thing.
The three notes restated the test names and the withinList flag; the one fact
worth keeping (the rail draws no department heading, so it shows neither the
department a bot would join nor the field that names a new one) now lives in
the doc comment of the hook.
Own server: the box channel to MausBot, keys both ways and jobs signed for one server
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starting every command through the shell hung the test without Windows'
own environment and turned a missing program into a silent exit. A
program is now found on PATH with PATHEXT and started directly; a .cmd
or .bat shim runs through cmd.exe with each word quoted; one that isn't
there is named. The servers inherit ComSpec too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Full access, and the "Send without asking" choice, now send as many
times as the bot needs. "Ask every time" still waits for the "Send on
your behalf?" card before each send.

The server drops the daily cap check, its refusal text, the counter
and its file, and the GET /api/bots/:id/outbound route that only fed
the "used today" line. A rule saved or sent with a dailyCap still loads
and is accepted; the cap is dropped and limits nothing. Bot settings
show the two choices with no number field and no used-today line, and
the strings follow in every language that had them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once a person's bots moved to My Cloud, the desktop only opened the Cloud and
this computer's own copy stayed frozen. The rail now shows This Mac (This PC
on Windows and Linux) beside My Cloud. A click starts a fresh profile in its
own folder beside the data folder (~/.openmausbot-profiles/default, keyed by a
stable profile id so more profiles can join later), on the same address, one
server at a time. Nothing moves either way: the frozen copy keeps its marker
and its bots, and the move's code never reaches the profile. A line on its
page says the bots from before are on My Cloud and that an older copy comes in
from Settings → Backups. My Cloud on the rail goes back; the profile keeps
running, so This Mac is one click again. Every launch still opens My Cloud,
and people with no Cloud see no change.

This computer stays lent to My Cloud throughout: lending follows the sign-in,
and only the clean workspace for nobody who can reach the bots stops it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows keeps a running process's working folder, so the test removed the
home folder while the server still ran there. close() now resolves once
every server it started has exited (at most five seconds), and the test
closes them before removing their folder; each step names itself if it
hangs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Server menu's switch reads main's own wiring in a test that has no clean
workspace; checking My Cloud first keeps that test, and every path without a
move, exactly as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The VPS backend runs `docker -H ssh://<alias>` on this computer, so a machine
without the client could only show "spawn docker ENOENT". Report the one-line
install for the platform instead — in the VPS status and in the Settings
inventory — and document the client install for macOS, Windows and Linux.
The daemon still belongs to the VPS, and Podman cannot substitute here.
When a turn finds an engine signed out, the app holds that engine: new
conversations go to a backup for up to an hour, and conversations moved off
it wait until it is signed in again. Only a sign-in finished through the
app's own sign-in calls, or a turn that works, ended the hold. A sign-in the
app does not run itself left the engine held while Settings already showed
it signed in: Antigravity's Google sign-in on a desktop, which finishes in
the runtime's own browser callback, or `claude auth login` in a terminal.

The engine registry now tells listeners when a status read turns an engine
from signed out to signed in, and the limit takeover ends the hold then. An
engine whose status said signed in all along (a refused turn with a status
that disagrees) is not affected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team Clouds sleep like any home; a bot-to-bot hand-off holds it awake
Every turn asked whom it may use a lent computer for, which reconciles
the lending-memory record, even for bots with nothing that runs
elsewhere. The memory capture e2e test then missed its window on a busy
Linux shard. The gate is now asked only when the bot has such a server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Send on your behalf with no daily limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This Mac on the rail: a fresh place on this computer for Cloud owners
0.1.144 was cut without this launcher, so a 0.1.144 home could not read the secrets file and would keep CAP_SYS_ADMIN.
The connector gives the secrets file and the two capabilities to home images from 0.1.145 on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.144
A sign-in the app sees only in a status read ends the engine's signed-out hold
My Cloud reaches MCP servers on the person's lent Mac or PC
Own server: the installer upgrades Debian 12's old Docker and adds AppArmor's tools itself
Own server: the home's secrets in a read-only file, and CAP_SYS_ADMIN only for the hidepid remount
Fix four states the app could get stuck in
* Antigravity sign-in on a Cloud: deliver a pasted redirect inside the bot box

On a Cloud home the Antigravity runtime signs in inside the bot box, which
has its own network namespace. Its Google OAuth callback listener binds
127.0.0.1:<port> on the box's loopback, while "Send redirect" delivered the
pasted URL to 127.0.0.1:<port> on the server's loopback, where nothing
listens: connect ECONNREFUSED. A real-box test reproduces exactly that on
the old code.

The sign-in box now gets one more unix socket, a relay. The in-box Node
bridge dials out to it and keeps one connection waiting; when a redirect is
pasted, the server writes the callback's port on that connection and sends
the request through it. The box reaches nothing new on the host, only the
server picks the port, and the server never connects to a path inside the
box. Boxes without a relay, and every host where the box is off, are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Skip the relay plan check on Windows, where the box never runs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Drop an unused import after merging main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Show pages, apps and widgets in rooms, view-only

A bot in a room can now show a page (show_html), a widget (show_widget), an
MCP server's app UI or publish_page's inline card there. Everyone who can see
the room sees it, in the same sandbox and with the same CSP as in a bot's own
chat, and it acts for nobody: mausbot.room is true and send and setContext
do nothing, the host refuses ui/message, ui/update-model-context and server
calls, and the server refuses an app's message, its context, its server calls
and a widget press for a room's thread.

A folder page's files token is now the viewer's own and answers only while
they can still see the conversation and the page is still in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the room pages recipe's screenshots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Rebuild the phones' app host page with the room refusal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Email: find where a mailbox sends from, and say why it can't

Sending failed for mailboxes that read fine because the outgoing server was
never found, and the account was then saved read-only without the bot being
told. Two discovery gaps did it:

- a domain hosted at a provider under its own names (MX mail.<domain> on the
  provider's address, imap.<domain> a CNAME of the provider's server) wasn't
  recognised, since well-known providers were matched by MX name only;
- typing just the incoming server, which the card asks for when nothing is
  found, left no outgoing server to try at all.

Discovery now follows CNAMEs and the MX address's reverse name, knows
Easyname, and tries smtp.<x> and mail.<x> on 465 and 587 beside a working
imap.<x>. Each outgoing server is reached first without a password (TLS,
a valid certificate and a sign-in on offer), then the password goes, in
order, only to those that answered; a refusal ends it at that host. The
address and its local part are both tried as the user name.

A mailbox that reads but can't send is saved saying why in one sentence
naming the server, including the 465/587 TLS mix-ups. Sending can be
re-checked on its own, with an outgoing server typed by hand and its own
sign-in, and a test can be sent to the address. Gmail and Outlook answers
carry their own way in. Bots hear exactly what is wrong, that only the person
can fix it, and not to retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Email card: reading and sending checks, outgoing server, test send

The card in a chat and the Email card in Apps share one mailbox view: while
connecting, "Reading" and "Sending" tick with the servers they reached; once
connected, a test to the address. When only sending fails the Outgoing
server section opens, filled with what was tried and the reason, and Try
again checks sending alone. Gmail and Outlook show one line with their own
sign-in or an app password link instead of a password failure. New strings
are in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Email card: only this screen's own wait holds the connect form

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Email card: the security choice uses the shared Select

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode's models were read again only at start (and not even then while the
saved list was under six hours old) and when the person pressed Refresh, and
every read came from OpenCode's own catalog cache. Refresh ran `opencode models
--refresh`, which OpenCode 2.2.5 (the version the app now installs) rejects as
an unknown flag, so on OpenCode 2 it re-read the same stale list. A provider's
own model list was never asked.

- A refresh on OpenCode 2 keeps the listing process open long enough for
  OpenCode's own catalog refresh to land, then lists again. Checked against
  the real 2.2.5 binary with a stale catalog: the old read misses the newly
  added model, the new one has it.
- The models are read again past every cache at start once the last such read
  is three hours old, and every three hours while the server runs, checked on
  the wall clock so a suspended Cloud catches up when it wakes.
- With a Venice key, Venice's own text-model list is read on every model read,
  and any model it lists that OpenCode's catalog lacks is declared to OpenCode
  for listings and turns. End-to-end encrypted Venice models are left out. A
  failed read keeps the last list that answered.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
An MCP server whose one tool had a schema the local checker could not
compile was skipped whole on the chat engine. Executor's gateway is one:
its skills tool carries JSON Schema 2020-12's dependentRequired with no
$schema, and we compiled such schemas only as strict draft-07.

- A schema without $schema is tried as draft-07 and then as 2020-12, the
  MCP default. A tool whose schema still cannot be compiled is listed
  anyway: its calls are checked against the lenient copy, or only as an
  object, and the server checks the rest. Its parameters reach the
  provider without references the schema does not hold itself. Nothing
  is ever fetched.
- The tool limit is the provider's: Venice takes any number of tools, so
  its turns list every tool directly. A provider that refuses a request
  for too many tools teaches its limit: the turn is listed again within
  it once, and later turns start from it.
- Under a limit, the smallest configured servers are listed whole and
  the biggest go behind the tool search, so a small connector like a
  memory server is no longer the first to go.
- URL servers added more than once with the same address and sign-in are
  mounted once, and the turn says so.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* OpenCode: one thread per folder in a shared process

OpenCode keeps a session's MCP servers per folder and name, not per
session: ACP session/new and session/load call mcp.add({ directory, name })
(checked in OpenCode 1.18.27). When two threads worked in the same folder
inside one shared OpenCode process, the later thread's servers replaced
the earlier one's, so the earlier thread's tool calls went out with the
other thread's turn capability. When that other turn ended, a call still
in flight failed with "the internal turn capability has expired" and the
next one was refused, although the bot's own turn was still running.

A shared process now gives each folder to one thread for its whole life;
a second thread in that folder starts its own process.

The refusal for a turn that really ended now says so in plain words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tests: the plain turn-ended refusal, and a resumed OpenCode thread in its own folder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A phone restricted to Wi-Fi and Tailscale was never told: on the relay it was
dropped at once (4404) and said "asleep or offline"; on Wi-Fi its sheet kept
"Anywhere"; away from home it could never learn it was allowed again.

- companion.endpoints: the device's endpoint list, pushed as an id-less event
  on every /api/events stream it holds when its routes change.
- Narrowing holds the relay admission 300 ms (in the set itself) so the event
  lands, then shrinks it and closes relay sessions; direct ones stay. Widening
  admits first, then tells.
- A "local" descriptor keeps h/r (vectors: routes_local_with_relay is valid;
  new SHA-256 5471a007…bf4e), so a restricted phone can probe the relay.
- A paired device whose token is never used within 5 min is dropped.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Keep recorded voice notes on every turn ending, and speak how failed turns ended

A voice note the bot recorded was deleted whenever its turn ended as a stop:
the person's Stop, the loop guard, a new message going first, or an engine
error that reads as a client abort. Images from the same turn were kept, and
the tool had already told the bot the note was recorded. Recorded notes now
land like images on whatever line the turn ends with, above the error or stop
line so Retry stays last.

"Voice note with every reply" now also covers turns that fail or that the
harness stops: the note says what the bot got done and how the turn ended,
spoken from the error line. A turn the person stopped, or one the harness
continues, stays quiet as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* List the receipts helper the server now loads in the CI scope

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode 1.19.4 starts a background models.dev refetch in every process,
under a cross-process lock. The app's short listing processes (the ACP probe
and `models --verbose`) end long before that refetch does, so each read
left the lock held. The next `models --refresh` then waited until the lock
was a minute old, longer than its 20 s timeout, and the list stayed stale.
That is what happens when the automatic refresh runs right after the
startup read. Checked against the real 1.19.4 binary: on main, a refresh
right after a read times out and misses a newly added Venice model.

The listing processes now run with OPENCODE_DISABLE_MODELS_FETCH=1 and only
read the cache. The exception is the listing that waits for OpenCode 2's own
refetch. `models --refresh` now waits up to 75 s, so a lock left by an
earlier process is outlived. On the real binary the refresh now lists the
new model, in 1.3 s when nothing else held the lock.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
When the cloud computer a turn uses failed to start, the server stopped
the turn while a screen call was still waiting on the start. That call
then answered "the internal turn capability has expired" instead of
why the computer did not start. A refused call touches no computer, so
it now answers with its refusal even when the turn ended meanwhile, and
the refusal carries the computer's own reason and whether the
conversation is back on Auto.

A start also gave up too early: waking a stopped computer waited
readyBoat's own 60 seconds inside a 150-second start budget, and a
create that met the bot's previous computer still being removed failed
at once. A start now waits the whole budget for a wake, and waits for
that removal to finish before it creates the new computer.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The decision model page still said two providers and pointed at
"Settings -> Decision model". Since Workers AI support landed, the page
is "Decision and extraction" and a Cloudflare token decides with Clef
and reads with Clairic.

- Name the three providers and the fixed key order.
- Add a Workers AI section: account ID, token permissions (Read and
  Edit), what Save and Test do, the 10,000 Neurons a day free tier.
- Add OMB_WORKERS_AI_TOKEN, decider.workersAiToken and the account ID
  to "Where the key lives", and Cloudflare to "What leaves this machine".
- Add workersAiToken, workersAiAccountId and workersAiBaseUrl to the
  configuration reference.
- Rename "Settings -> Decision model" in README.md and cloud-pro.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn's files (voice notes, generated images) wait under the thread's live turn id until that turn ends, and only
the ending turn's own key was ever landed. A file parked under any other key for the thread (an event without a turn
id, or a live turn id that differs from the one the turn ends with) stayed parked and never reached the person. A
thread runs one turn at a time, so the settling turn now takes those too, and the server says when it does. The
voice-note route logs the thread, turn and file it parked, so a missing note can be traced.

Adds a chat-runtime end-to-end test shaped like a long real turn: the chat folded first, a line before the note,
lines in between, two failed calls, a normal end, voice note with every reply on.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The relay's /metrics gains relay_hosts_connected_peak, relay_sessions_spliced_peak
and relay_sockets_open_peak, each labelled by UTC day (today and the day before),
so a scraper that misses minutes still reads the day's true peak. The spliced
session count is now kept as a counter instead of walking every host.

The control plane counts relay usage per UTC day in a new relay_daily table
(migration 0014): installations that asked for a token, got one, reported
end-to-end phones, or asked for the first time. Each installation counts once
per day and kind; the table holds only the day, the kind and a count. A Worker
deployed before the migration keeps minting tokens as before.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
send_voice_note told the bot "Voice note recorded" on any 2xx answer, even an empty one, so a 2xx that did not come
from a saved note still read as success. The voice-note route now checks the file is on disk and answers with its
name; the tool says recorded only when the answer is { attached: true, file }, and otherwise reports that the note
did not go through and tells the bot not to claim it is attached.

The chat-runtime test of a long turn now uses the shape of the turn that lost a note (the chat folded first, a line
before the note, lines in between, two failed calls) and checks the attached file is on disk.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The app installs some engines itself (npm into tools/npm, OpenCode and Cursor's own builds into
tools/standalone, Antigravity's runtime) but never updated them, so a Cloud that installed OpenCode
before 2.x stayed on 1.19.4. One table now names the version each engine was tested at (and the oldest
the driver works with); Settings' Install gives that version, and an updater moves older copies up to it:
at start and then about daily by the wall clock, only while no turn runs and no process runs the engine.
A new copy is installed beside the old one, must answer --version (and the ACP handshake for ACP
engines) before it switches in, and the old copy comes back if anything fails. An old npm OpenCode moves
to the standalone build, and its npm copy goes only after that succeeds. Claude Code follows npm's newest,
as its own updater does. The engine card says "Updated to X" once.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* More workspaces on this computer from the rail's +, and a cloud on every Cloud's tile

+ offers New workspace on this computer first, to everyone with the rail (and the
Server menu offers it where there is no rail yet). It asks a name and a colour, then
opens it fresh: another profile beside This Mac, kept in a small registry beside the
profiles' folders. One runs at a time: opening another waits for the work under way in
the one that runs, at most a minute and said on the circle it opens, then stops it as a
quit does. A workspace's menu renames it, recolours it and removes it, asked first; the
open one is closed and its server stopped before its folder goes to the Trash. This
computer stays one lent computer whichever runs.

Every Cloud's tile gets a small cloud at its corner and says Cloud to a screen reader;
a named workspace has a laptop, a server of the person's own its server mark. The tile
still marked can be clicked again while another switch is pending, so the last click
wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Home window: a workspace picked while My Cloud's page is on its way loads over it

Two quick clicks (My Cloud, then a workspace) could leave My Cloud's page on screen:
the workspace's show saw this computer's page still there and loaded nothing, and My
Cloud's load landed after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Walk every path of the rail's workspaces in the UI harness

launchHomeWorld with `profiles` now runs main's own local-profiles.mjs and rail channels,
keeps each page's IPC in the order it was sent (as Electron does), widens the rail's
view while one of its sheets is open, follows the OS's light or dark look, and restarts
the app. The e2e walks + (Escape, Close, Back, an empty and a taken name), switching in
every order and during a turn, two quick clicks, Rename, Colour, Remove with Cancel, the
open and the last workspace, a restart, the rail past eight, the badge in both looks,
and a person with no Cloud whose rail appears with a second place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The Server menu's sliced switch test knows main's clean workspace

switchEnvironment now asks whether a workspace of this computer's own runs before it asks
whether My Cloud is home, so the test's stand-ins include it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- The included relay comes before an OpenRouter key whichever provider is
  selected; an own Jev or Workers AI key comes before it.
- Other decision jobs need a key of the person's own (Jev, Workers AI or
  OpenRouter), not only Jev.
- "What leaves this machine": a custom workersAiBaseUrl server receives
  the same data and the token; inbox triage sends each email's sender,
  subject and preview to the reading and the deciding provider; leave a job
  off for data that must stay local.
- workersAiBaseUrl is the REST root; /client/v4 is part of Cloudflare's own.
- README: the Workers AI token goes with its account ID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner asked to remove HighLevel: nobody uses it. Gone: the server's HighLevel client, sign-in, store, tools and
routes, its harness MCP kind and every driver's mount, its connection kind in the move to My Cloud (server and
desktop), the app's HighLevel card and bot-settings rows with their strings in every catalog, the control plane's
OAuth relay with its routes, cron sweep, vars and README section, and the docs, CI env and test fixtures that named it.

The highlevelMcp capability also gated the Email tools, so it is renamed emailMcp. A bot saved with HighLevel in its
scopes or tool grants still loads, without it; leftover HighLevel tokens in the data folder are deleted at start.
Control-plane migration 0013 drops the relay's tables; 0009 and 0010 stay as history.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- cloud-pro.md: the decision relay takes room routing, inbox triage, a
  bot's own decide call and the key check, as server/decider/relay.ts and
  its shared fixtures check. The Cloud Pro bullet says the same.
- A custom openrouterBaseUrl receives the decision data and the key.
- Inbox triage: reading happens only when a reading provider is set
  (Workers AI sends the email to Clairic and Clef-flash); the deciding
  provider also gets the details read and recently dismissed senders.
- Switching inbox triage off can hand mail to the bot's own engine;
  pausing the watch stops it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* A phone paired with a computer whose bots moved hears where they went, and reaches This Mac

After a move to My Cloud the app stopped this computer's phone link and never
started it again, so a phone paired with the computer kept dialling a link
nobody answered and showed "connecting…" for good. The pairing itself belongs
to the app on this computer, not to one data folder, so it already reaches
whichever workspace of this computer's own runs.

The phone link now stays on after a move and starts at launch as before. The
frozen copy answers every request from a paired phone (health aside) with
410, code "home_moved" and a sentence saying where the bots went; a workspace
of this computer's own (This Mac, or one added from +) answers that phone as
usual while it runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The move tests expect the phone link to stay on

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A launch now opens the place that was open when the app last closed: My Cloud,
another Cloud or a team's, This Mac or another workspace of this computer's own,
or a server saved by hand. One that can't open now (removed, ended, a server
that doesn't answer within a few seconds) is forgotten and My Cloud opens
instead, without a dialog; when My Cloud doesn't run either, This Mac does.
Workspaces still open one at a time through the same switch, so the frozen copy
never runs as one.

The line atop a workspace ("This Mac starts fresh…", "Work starts fresh…") gets
a close button that hides it for good in that workspace, saved in its own
config. It also goes by itself once it was shown on three days, or a week after
the first. Connect an AI stays offered while no AI is ready. The clean
workspace's line and a team's line are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Add a department dropdown to the Automations page header. It narrows both the
list and the calendar to schedules whose bot belongs to the chosen department.
- Settings has one job switch (room routing); inbox triage stops with the
  master switch or "jobs.inboxTriage": false in config.json.
- Cloud's relay also takes three extraction requests at /v1/extract
  (inbox reading, a bot's extract call, the extraction key check).
- Say what a bot's decide and extract calls send, and that OpenRouter
  reads mail with google/gemini-2.5-flash unless a chat model is saved.
- Room routing off still lets room lines reach the bots' own engines.
- Fix labels and wording left from the Jev/OpenRouter-only text: master
  switch name, Picked by Clef, workersai log rows, account ID format,
  Test's extraction check, own-key list for the included services.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the chosen department no longer held a bot, the list fell back to all
departments but kept a bot picked earlier, so it stayed filtered to that one
bot under "All departments". Reset both filters together.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Below Full access a URL server a bot adds turns on at once, because turning
it on only connects to an address. A loopback address now runs on the
person's own lent computer, so it keeps the Turn on card like a command
server does. The mcp_server tool says which URLs apply at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot on My Cloud could save a loopback address on any port and have the
lent computer POST to it, including the computer's own OpenMausBot server
and Chrome's DevTools port. The computer now reaches a URL server only on
an explicit port of 1024 or higher that is not one of its own (its
OpenMausBot server ports, and Chrome's DevTools port read from
DevToolsActivePort). My Cloud mirrors the 1024 rule in its scope check and
refuses such an address when it places a new server on the lent computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The e2e test now hands the lent computer its own server ports and checks
that a call to one is refused on the computer, in words the bot reads,
with nothing reaching the port. lentMcpRefusal's doc states the port rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adding one on My Cloud with no computer lent saved it as an ordinary
server that later failed with Could not reach this address. place() now
refuses at add time with a line saying what to lend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Models routinely fill every optional argument with "". Each tool read that as a real value, and the
whole call failed with a message the bot could not act on:

- coordinate_bots forwarded group_id, and the route's z.string().min(1).optional() rejected it, so
  handing work to a teammate never succeeded.
- session_search treats "given" thread_id or message_id as a read, and "" counted as given: a search
  answered "Reading a message needs both thread_id and message_id".
- show_html counted html, jsx and path as three bodies when two of them were "", and a blank app_id
  routed the call to the update member, which refused.
- memory_update with action "prefer" was refused for an empty old_text it never needed.

Drop blank strings once, where the tool is called, so every tool sees the arguments the model meant.
Non-blank values and values of another type are untouched.

coordinate_bots also sends in_my_folder unconditionally. In a conversation with no project folder the
route refuses it and the whole hand-off fails; send again without the flag instead of losing the work.
A saved Jev key (or OMB_JEV_API_KEY) always decides before Workers AI,
so clear it to use Workers AI. Clearing a key passes the decisions to the
next key in the order; the master switch stops them all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* Meeting notes: bots join Meet, Teams and Jitsi calls from their cloud computer

A bot can now join an online meeting as "<name> (notes)" from its cloud
computer, post a consent line in the meeting chat before anything is
captured, transcribe it live with speaker names, answer @notes questions in
the chat, and post a Meeting notes card with the transcript attached when it
ends. Four tools (join_meeting, meeting_status, post_in_meeting_chat,
leave_meeting) plus post_meeting_notes; a live card with a Leave button; an
opt-in routine that joins calendar meetings; Teams links read from invite
descriptions.

The bot on the computer is our own (server/meetings/meetbot.ts: headed
Chrome over the DevTools protocol, a PulseAudio sink per meeting, ffmpeg,
ElevenLabs realtime speech-to-text) behind one MeetingEngine interface. The
computer only ever gets single-use transcription tokens, never a key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Meeting bot: never read its own lines as questions, and never leave as alone without a count

Teams shows the bot as "<name> notes (Unverified)" and a platform may
render its own line under another label or with a time, so the bot now
skips lines from either of its names and any line that repeats one it sent.
A page that shows no participant count no longer counts as empty, so the
alone rule cannot end a Meet or Teams call whose page changed; more in-call
markers for Meet and Teams.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Meeting links: accept Meet's /meet/ path; the bot drives the page without enabling DevTools domains

Google Meet now rewrites a meeting's address to meet.google.com/meet/<code>,
which people paste. The bot never needed Page/Runtime.enable for its
evaluate, navigate and screenshot calls, and each is one more automation
signal to the call page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Meeting speech keys, plain Meet refusals, and an optional signed-in Chrome profile

Speech-to-text: the project's hosted ElevenLabs key is used only for Cloud
plans, through the Admin voice relay; a Cloud never falls through when the
relay refuses (the card says why and offers transcription on the computer
only when asked). Everyone else uses their own keys in order: ElevenLabs
(single-use realtime tokens minted on the server), Groq, OpenAI whisper-1,
then faster-whisper on the computer, which installs itself on first use with
a 'Setting up transcription' state. Groq and OpenAI are called from the
server on short pieces of audio the computer hands back over the event
channel, so no key ever reaches the computer.

Google Meet: 'You can't join this video call' gets its own plain reason; a
link that lands on Meet's home page ends at once as not active, the bot never
types into the code box, and 'waiting for the host' is reported only on the
real waiting screen. A persistent Chrome profile (profileDir) lets the bot
join Meet signed in to a Google account a person signed in to themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Meeting bot: Jitsi's join screen is not the call, and the page domain stays on for typing

Jitsi's pre-join screen has the same hang-up button as the call, so a quick
probe read it as joined and the bot never typed its name. Typing into the
chat failed without Page.enable on some joins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep server/index.ts within its size limit after main moved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A routine's report in the bot's chat carried only its last reply line's own attachments. Files the run sent with
attach_file are lines of their own, so a briefing's PDF and audio stayed in the hidden run conversation, while images
a tool had returned to the bot (pages it viewed while checking its work) were posted as if the bot had sent them.

Images a tool's result returns are now marked fromTool where the drivers emit them and where the turn parks them.
The report carries the files of the reply's turn in order (attach_file lines, then the reply's own generated images
and voice notes) and leaves the marked images out. Normal chats are unchanged, and unmarked stored images count as
sent.
A routine's report took its turn's files only up to the reply line, so a file attached after the bot's last words was
left out, and a run that only attached files had no reply line and stayed quiet. The report now takes the whole turn,
from the person's line that started it to their next one; lines they send into a running turn do not split it.
Adds an end-to-end run whose tool returns an image and which attaches a PDF: the image stays in the run conversation, marked as the tool's, and the report carries only the PDF.
A run that attached files without a word is reported from its last bot line. When a hand-off resumed the run, no person's line starts that turn, so the search reached the previous turn's reply and posted it again. It now stops at any line of another turn.
relay2.openmausbot.com (nbg1) is built and serving, so the control plane can list
it. Each computer gets both nodes in its own rendezvous order, which splits the load
and gives every host a fallback node.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud every bot engine runs in the bot box, which shows the process the
folder it started in and nothing else of the data folder. OpenCode threads
share one process, but the share key ignored the folder, so a second
conversation (or another bot) joined a process whose box could not see its
folder. OpenCode 2 checks the folder at session/new and fails with
LocationNotFoundError ("Internal service failure"), so after the engine update
to 2.x every chat but the first failed on a moved Cloud.

With the box on, a shared process is now keyed by the bot's conversation folders
(task-workspaces/<bot>) and boxed with all of them read-write and their uploads
read-only (BoxRequest.botThreads); any other folder gets its own process. Its
credential token belongs to the bot, not to one conversation. Without the box
nothing changes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The desktop's "Your own server" sheet only took an https pairing link, so the
http://<LAN or Tailscale address>/pair#code=… link a self-hosted server prints
was refused, a bare code could not be entered, and every failure read "That
isn't a pairing link this app can open".

One reader, electron/server-address.mjs, now serves the sheet, the clipboard
link, Settings → Servers, `openmausbot connect` and the MCP bridge:

- http is accepted on private networks (RFC 1918, Tailscale's 100.64/10 and
  *.ts.net, *.local, link-local, loopback, single-label names) and refused on
  the open internet with what to do instead. ALLOW_INSECURE_HTTP is gone.
- A bare address tries https, then http when the host is private.
- The sheet is now "Connect to a server": a link or address field, and a
  pairing code field shown when the link has none. A code pasted alone moves
  to its field. Main looks the address up as the person types and names the
  server ("✓ kitchen-box · MausBot 0.1.147 · Private network, not encrypted"),
  and the button reads "Connect to kitchen-box".
- Each failure says what is wrong: a pairing code without an address, an
  email sign-in code, an old six-digit code, a script key, public http, a
  link to this computer, unreachable, DNS, certificate, not MausBot.
- Computer sharing reaches a server on the person's own network over http.
- `connect` takes the link the server printed and prints commands the way the
  CLI was started (npx, pnpm omb, Docker, global).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* One pairing code everywhere: 12 characters, in the link and the QR, with wrong kinds explained

The phone link on a computer now opens the same 12-character pairing code a
server prints (7KQ2-M9XD-H4TP, dashes and case don't matter) instead of six
digits, for ten minutes. A phone app that still sends six digits is told to
update; the QR keeps carrying the high-entropy credential and never the typed
code, so older phone apps scan as before.

One shared reader, shared/pairing-code.ts readPairingInput, takes a code, an
omb_pair_ credential, or a link that carries either, and names the wrong kind
of input: an email's 8-digit sign-in code, an old six-digit code, or a script
key. The server's /api/auth/pair answers those with 400 and the sentence,
without counting a guess.

Five wrong codes from one address in five minutes now lock it for five
minutes, and the message gives a clock time ("Try again at 11:19"), worded on
the device's own clock. Every place a code shows says "Works once, until
11:14" instead of a countdown.

Pairing links fall back to the asking session's own address only when it is
https or a private network (shared/private-host.ts), so a public http or a
loopback link is never minted. An emailed sign-in code names the server it is
for in its subject, using only the configured or a private address.

The /pair page asks for the code first, says when it came from the link,
offers "Open in the MausBot app" and the command that makes a code, keeps
email sign-in as a link below, and warns on plain http over the open internet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The companion pairing form test expects the pairing code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the phone link's six digits until the phone apps type 12; never lock out a proxy's shared address

The phone link on a computer keeps its six-digit code for now: the phone apps'
type-a-code field takes six digits until their next release, and a phone that
can't scan must still pair. The server, /pair, the shared reader and the CLI
use the 12-character pairing code.

Wrong codes from an address a proxy gives every visitor (loopback, or a
gateway over IPC) no longer lock that address, which would lock the owner out.
Five of them in five minutes burn the open codes instead, so a new one is made.
Named addresses keep the five-in-five-minutes lock. Email sign-in and a Cloud
home's request signatures keep their own, looser count.

server/lan-address.ts picks the address a link should name: the LAN address,
never a container bridge, VM or VPN interface, home ranges before carrier NAT,
and 100.64/10 as Tailscale only on Tailscale's interface. It reads the
interfaces afresh on each call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* One pairing code everywhere: 12 characters, in the link and the QR, with wrong kinds explained

The phone link on a computer now opens the same 12-character pairing code a
server prints (7KQ2-M9XD-H4TP, dashes and case don't matter) instead of six
digits, for ten minutes. A phone app that still sends six digits is told to
update; the QR keeps carrying the high-entropy credential and never the typed
code, so older phone apps scan as before.

One shared reader, shared/pairing-code.ts readPairingInput, takes a code, an
omb_pair_ credential, or a link that carries either, and names the wrong kind
of input: an email's 8-digit sign-in code, an old six-digit code, or a script
key. The server's /api/auth/pair answers those with 400 and the sentence,
without counting a guess.

Five wrong codes from one address in five minutes now lock it for five
minutes, and the message gives a clock time ("Try again at 11:19"), worded on
the device's own clock. Every place a code shows says "Works once, until
11:14" instead of a countdown.

Pairing links fall back to the asking session's own address only when it is
https or a private network (shared/private-host.ts), so a public http or a
loopback link is never minted. An emailed sign-in code names the server it is
for in its subject, using only the configured or a private address.

The /pair page asks for the code first, says when it came from the link,
offers "Open in the MausBot app" and the command that makes a code, keeps
email sign-in as a link below, and warns on plain http over the open internet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The companion pairing form test expects the pairing code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the phone link's six digits until the phone apps type 12; never lock out a proxy's shared address

The phone link on a computer keeps its six-digit code for now: the phone apps'
type-a-code field takes six digits until their next release, and a phone that
can't scan must still pair. The server, /pair, the shared reader and the CLI
use the 12-character pairing code.

Wrong codes from an address a proxy gives every visitor (loopback, or a
gateway over IPC) no longer lock that address, which would lock the owner out.
Five of them in five minutes burn the open codes instead, so a new one is made.
Named addresses keep the five-in-five-minutes lock. Email sign-in and a Cloud
home's request signatures keep their own, looser count.

server/lan-address.ts picks the address a link should name: the LAN address,
never a container bridge, VM or VPN interface, home ranges before carrier NAT,
and 100.64/10 as Tailscale only on Tailscale's interface. It reads the
interfaces afresh on each call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Connect to a server takes a link, an address and a code, or private http

The desktop's "Your own server" sheet only took an https pairing link, so the
http://<LAN or Tailscale address>/pair#code=… link a self-hosted server prints
was refused, a bare code could not be entered, and every failure read "That
isn't a pairing link this app can open".

One reader, electron/server-address.mjs, now serves the sheet, the clipboard
link, Settings → Servers, `openmausbot connect` and the MCP bridge:

- http is accepted on private networks (RFC 1918, Tailscale's 100.64/10 and
  *.ts.net, *.local, link-local, loopback, single-label names) and refused on
  the open internet with what to do instead. ALLOW_INSECURE_HTTP is gone.
- A bare address tries https, then http when the host is private.
- The sheet is now "Connect to a server": a link or address field, and a
  pairing code field shown when the link has none. A code pasted alone moves
  to its field. Main looks the address up as the person types and names the
  server ("✓ kitchen-box · MausBot 0.1.147 · Private network, not encrypted"),
  and the button reads "Connect to kitchen-box".
- Each failure says what is wrong: a pairing code without an address, an
  email sign-in code, an old six-digit code, a script key, public http, a
  link to this computer, unreachable, DNS, certificate, not MausBot.
- Computer sharing reaches a server on the person's own network over http.
- `connect` takes the link the server printed and prints commands the way the
  CLI was started (npx, pnpm omb, Docker, global).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Server CLI: one link per way in, --lan for this network, commands that paste

A self-hosted server printed "pairing code: X" and "open /pair on the address
you use", listened on 127.0.0.1 only, and printed follow-up commands that
failed when pasted (`openmausbot pair` after `npx`, `serve --help`).

- `serve --lan` listens on every IPv4 address and drops any connection whose
  local or remote end is public; the link uses this network's address, read
  afresh for each code (bridges, VMs and VPN tunnels skipped).
- Loopback trust now also needs a loopback peer: a LAN client writing
  `Host: 127.0.0.1` is a stranger, not the owner.
- `--public-url` takes https, or http on a private network; the server checks
  the address answers with this server's own descriptor and prints a Reach
  line (✓, or what to fix). OMB_PUBLIC_URL counts the same way.
- `serve` in a terminal prints one pairing code, the link to paste into the
  desktop app (+ → Connect to a server) and a QR. Not in a terminal (a
  service, docker logs) it prints no code. With no way in it lists the ways
  in instead of minting a code nobody else can use.
- `pair` never asks anything, uses the running server's own address, and
  prints the same block; `--phone` (or `--chat-only`) is a chat-only code.
- Every printed command starts the way the CLI was started: npx, pnpm omb,
  Docker's `docker compose exec omb openmausbot` (the image ships that bin),
  or `openmausbot`. A test parses every command the CLI prints.
- `serve --tailscale` runs `tailscale serve` in the foreground, so the share
  ends with serve; it checks the tailnet has HTTPS certificates and that no
  other MausBot server fronts the name first, and turns off a share a crashed
  run left behind (by its marker).
- `service install` keeps --public-url and --lan, drops --no-pair, and under
  npx installs a copy of this version beside the data instead of refusing.
- `status` names the address others use and whether it answers; `devices`
  lists and signs out paired devices; `--version` prints the version;
  `serve --help` works.
- Docker: OMB_SERVER_NAME names the server instead of the container id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* CLI routes: status works with no server, the pack check and tests follow the new output, shorter argument errors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* CLI: a pipe closed early (status | grep -q) ends the output instead of crashing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Locale packs as on main: this branch changes none, and the earlier merges had left duplicate keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Connect to a server takes a link, an address and a code, or private http

The desktop's "Your own server" sheet only took an https pairing link, so the
http://<LAN or Tailscale address>/pair#code=… link a self-hosted server prints
was refused, a bare code could not be entered, and every failure read "That
isn't a pairing link this app can open".

One reader, electron/server-address.mjs, now serves the sheet, the clipboard
link, Settings → Servers, `openmausbot connect` and the MCP bridge:

- http is accepted on private networks (RFC 1918, Tailscale's 100.64/10 and
  *.ts.net, *.local, link-local, loopback, single-label names) and refused on
  the open internet with what to do instead. ALLOW_INSECURE_HTTP is gone.
- A bare address tries https, then http when the host is private.
- The sheet is now "Connect to a server": a link or address field, and a
  pairing code field shown when the link has none. A code pasted alone moves
  to its field. Main looks the address up as the person types and names the
  server ("✓ kitchen-box · MausBot 0.1.147 · Private network, not encrypted"),
  and the button reads "Connect to kitchen-box".
- Each failure says what is wrong: a pairing code without an address, an
  email sign-in code, an old six-digit code, a script key, public http, a
  link to this computer, unreachable, DNS, certificate, not MausBot.
- Computer sharing reaches a server on the person's own network over http.
- `connect` takes the link the server printed and prints commands the way the
  CLI was started (npx, pnpm omb, Docker, global).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings → Servers says how each server is reached and doing, and what to do

Settings → Servers listed saved servers by address only, with a separate
connect form that took an https link. A server that had signed this app out,
or stopped answering, looked the same as one that worked.

Each server saved by hand now shows how it is reached ("maus.example.com ·
HTTPS", "192.168.1.50:8799 · Private network, not encrypted", Tailscale) and,
when something is wrong, one line with one button:

- Reconnecting… while a passing problem lasts; after two minutes "Can't reach
  · since 09:12" with Try now. Retries wait 2 s, 4 s, 8 s and so on with
  jitter, never more than five minutes apart, and go at once when the app
  comes to the front, the computer wakes or the network comes back. A
  reachable server is looked at again each minute.
- Needs a new code, with Pair again, which opens the Connect sheet with the
  address locked and the code field ready. Pair again keeps the saved name.
- Not encrypted on the open internet, with Edit address; nothing is sent to
  such an address. These never retry by themselves.
- A server behind this app gets one note: "hetzner-1 runs MausBot 0.1.140.
  This app is 0.1.147." with Copy update command, fitting how it was
  installed (the descriptor now says npx, global, Docker or source).

Remove asks "Remove hetzner-1 from this app? The server keeps running and your
bots stay there." My Cloud has no Remove. Connect to a server opens the same
sheet as +. Checks start only once Servers is opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tests and the docs site follow the Servers page, the install hint and private-network http

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Locale packs list each Connect message once (a merge had added the 14 native.connect keys twice)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* One pairing code everywhere: 12 characters, in the link and the QR, with wrong kinds explained

The phone link on a computer now opens the same 12-character pairing code a
server prints (7KQ2-M9XD-H4TP, dashes and case don't matter) instead of six
digits, for ten minutes. A phone app that still sends six digits is told to
update; the QR keeps carrying the high-entropy credential and never the typed
code, so older phone apps scan as before.

One shared reader, shared/pairing-code.ts readPairingInput, takes a code, an
omb_pair_ credential, or a link that carries either, and names the wrong kind
of input: an email's 8-digit sign-in code, an old six-digit code, or a script
key. The server's /api/auth/pair answers those with 400 and the sentence,
without counting a guess.

Five wrong codes from one address in five minutes now lock it for five
minutes, and the message gives a clock time ("Try again at 11:19"), worded on
the device's own clock. Every place a code shows says "Works once, until
11:14" instead of a countdown.

Pairing links fall back to the asking session's own address only when it is
https or a private network (shared/private-host.ts), so a public http or a
loopback link is never minted. An emailed sign-in code names the server it is
for in its subject, using only the configured or a private address.

The /pair page asks for the code first, says when it came from the link,
offers "Open in the MausBot app" and the command that makes a code, keeps
email sign-in as a link below, and warns on plain http over the open internet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The companion pairing form test expects the pairing code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the phone link's six digits until the phone apps type 12; never lock out a proxy's shared address

The phone link on a computer keeps its six-digit code for now: the phone apps'
type-a-code field takes six digits until their next release, and a phone that
can't scan must still pair. The server, /pair, the shared reader and the CLI
use the 12-character pairing code.

Wrong codes from an address a proxy gives every visitor (loopback, or a
gateway over IPC) no longer lock that address, which would lock the owner out.
Five of them in five minutes burn the open codes instead, so a new one is made.
Named addresses keep the five-in-five-minutes lock. Email sign-in and a Cloud
home's request signatures keep their own, looser count.

server/lan-address.ts picks the address a link should name: the LAN address,
never a container bridge, VM or VPN interface, home ranges before carrier NAT,
and 100.64/10 as Tailscale only on Tailscale's interface. It reads the
interfaces afresh on each call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Connect to a server takes a link, an address and a code, or private http

The desktop's "Your own server" sheet only took an https pairing link, so the
http://<LAN or Tailscale address>/pair#code=… link a self-hosted server prints
was refused, a bare code could not be entered, and every failure read "That
isn't a pairing link this app can open".

One reader, electron/server-address.mjs, now serves the sheet, the clipboard
link, Settings → Servers, `openmausbot connect` and the MCP bridge:

- http is accepted on private networks (RFC 1918, Tailscale's 100.64/10 and
  *.ts.net, *.local, link-local, loopback, single-label names) and refused on
  the open internet with what to do instead. ALLOW_INSECURE_HTTP is gone.
- A bare address tries https, then http when the host is private.
- The sheet is now "Connect to a server": a link or address field, and a
  pairing code field shown when the link has none. A code pasted alone moves
  to its field. Main looks the address up as the person types and names the
  server ("✓ kitchen-box · MausBot 0.1.147 · Private network, not encrypted"),
  and the button reads "Connect to kitchen-box".
- Each failure says what is wrong: a pairing code without an address, an
  email sign-in code, an old six-digit code, a script key, public http, a
  link to this computer, unreachable, DNS, certificate, not MausBot.
- Computer sharing reaches a server on the person's own network over http.
- `connect` takes the link the server printed and prints commands the way the
  CLI was started (npx, pnpm omb, Docker, global).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Server CLI: one link per way in, --lan for this network, commands that paste

A self-hosted server printed "pairing code: X" and "open /pair on the address
you use", listened on 127.0.0.1 only, and printed follow-up commands that
failed when pasted (`openmausbot pair` after `npx`, `serve --help`).

- `serve --lan` listens on every IPv4 address and drops any connection whose
  local or remote end is public; the link uses this network's address, read
  afresh for each code (bridges, VMs and VPN tunnels skipped).
- Loopback trust now also needs a loopback peer: a LAN client writing
  `Host: 127.0.0.1` is a stranger, not the owner.
- `--public-url` takes https, or http on a private network; the server checks
  the address answers with this server's own descriptor and prints a Reach
  line (✓, or what to fix). OMB_PUBLIC_URL counts the same way.
- `serve` in a terminal prints one pairing code, the link to paste into the
  desktop app (+ → Connect to a server) and a QR. Not in a terminal (a
  service, docker logs) it prints no code. With no way in it lists the ways
  in instead of minting a code nobody else can use.
- `pair` never asks anything, uses the running server's own address, and
  prints the same block; `--phone` (or `--chat-only`) is a chat-only code.
- Every printed command starts the way the CLI was started: npx, pnpm omb,
  Docker's `docker compose exec omb openmausbot` (the image ships that bin),
  or `openmausbot`. A test parses every command the CLI prints.
- `serve --tailscale` runs `tailscale serve` in the foreground, so the share
  ends with serve; it checks the tailnet has HTTPS certificates and that no
  other MausBot server fronts the name first, and turns off a share a crashed
  run left behind (by its marker).
- `service install` keeps --public-url and --lan, drops --no-pair, and under
  npx installs a copy of this version beside the data instead of refusing.
- `status` names the address others use and whether it answers; `devices`
  lists and signs out paired devices; `--version` prints the version;
  `serve --help` works.
- Docker: OMB_SERVER_NAME names the server instead of the container id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Self-hosting docs: one short path per install method, then a troubleshooting table

docs/self-hosting.md now opens with "Pick a way in" (--public-url, --domain,
--tailscale, --lan, --tunnel), a golden path for npx, your own cloudflared or
proxy, Docker on a home network, Docker with your own domain and a service,
each ending at + → Connect to a server, and a table of the messages the
desktop sheet and the CLI print, with what each means and what to do. The
reference below follows the CLI and pairing as they are now: 10-minute codes,
the new lockout, private http, `devices`, `docker compose exec omb openmausbot
pair`, foreground `tailscale serve`, and one entry point in the desktop app.
The VPS guide, the local Compose README, the README and the docs site point at
those paths instead of repeating them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* CLI routes: status works with no server, the pack check and tests follow the new output, shorter argument errors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* CLI: a pipe closed early (status | grep -q) ends the output instead of crashing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Locale packs as on main: this branch changes none, and the earlier merges had left duplicate keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- select_computer's auto ranked waking a sleeping cloud computer above
  starting a private desktop that was only stopped (a stopped or
  recreatable desktop reads as canCreate, a sleeping cloud computer as
  canStart), so a conversation on Auto moved to the cloud computer and
  was pinned there. A private desktop that is set up now comes before
  waking or creating a cloud computer.
- auto also keeps the place the person chose (their pin in the
  conversation, else the bot's Works on) whenever it can be had; only a
  request naming another place moves it. The GET result names that
  choice so the bot sees it.
- The Simple bot panel's "Where it works" page listed only Let it choose,
  this computer, Browser and Cloud desktop, so a person could not keep a
  bot on the private desktop from there; each new conversation started on
  Auto again. It now offers the private desktop as the Screen panel and
  the composer already do.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* The phone link and Tailscale never start by themselves

The phone link (the companion) started at every launch once it had ever been
turned on, and at every start it ran the Tailscale CLI to learn this
computer's tailnet name. On a Mac the first program it tried was the Tailscale
app's own executable, which can open the Tailscale app and connect it. So a
desktop used only as a client of another server still brought Tailscale up on
every start, with no switch to stop it.

Now:
- Nothing runs a Tailscale program unless the person turns Tailscale on. The
  Tailscale card under Settings → Remote access → Advanced has an on/off
  switch with its state. On, the link is served at
  https://<computer>.<tailnet>.ts.net:8813 through `tailscale serve`, with
  Tailscale's own certificate; off removes only that serve entry, and never
  one the person made themselves on the same port.
- Every Tailscale CLI, PATH included, is tried before the macOS app's
  executable.
- The phone link starts at launch only for a computer that runs its own
  server and has a phone paired with it, never for a client-only desktop.
- Settings written before this read as off unless a phone is paired, with
  Tailscale off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The sidecar test preloads its recorder by file URL, as Windows needs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Each way into this computer is its own switch, and nothing starts until one is on

One flag used to start the phone link at every launch: its LAN listener,
Bonjour, the relay, the managed HTTPS address, and a Tailscale lookup that
could open the Tailscale app. Now each way in has its own on/off, kept in
companion-settings.json:

- Same Wi-Fi: the device port on this computer's LAN addresses, and Bonjour.
- Anywhere, through MausBot: the relay connection.
- Tailscale: the device port on the tailnet address. The app asks
  `tailscale status --json` once, on Turn on, and again only on Check again
  (which starts nothing). The CLI comes first; the macOS app's executable runs
  only in CLI mode, and the app is never opened or signed in. The sidecar never
  runs Tailscale at all, and there is no `tailscale serve` on the desktop.
- HTTPS address: the managed tunnel, turned on by setting up the secure address.

A connection on a way in that is off is refused, and with neither direct way
on no device port is bound. While nothing is paired and no code is open the
sidecar sleeps, so a client-only desktop starts nothing. The relay token is
asked for only while the relay is on.

The update keeps on only what a device seen in the last 30 days could be
using, and says so once for each route with Turn off beside OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The phone link answers only private peers, and finds Tailscale by its own interface

The device port binds every interface, so a connection is now answered only
when both ends are private (loopback, RFC 1918, link-local, fd00::/8) and it
arrived on a way in that is on; a tailnet connection must come in on
Tailscale's own interface from a Tailscale address. A public peer is refused
even with Same Wi-Fi on.

Tailscale is recognised by its interface (tailscale0, "Tailscale", or the utun
carrying a fd7a:115c:a1e0::/48 address), never by a 100.64/10 address alone,
which carrier NAT and other VPNs also use; the update's migration follows the
same rule. Turn on runs only Tailscale's command-line tool: with only the macOS
app installed it asks for Install CLI instead of running the app's executable,
and it tells signed out, not running and not allowed apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(computer): tell the engine its turn ended when the control gate returns 401

A self-woken engine (e.g. Claude's ScheduleWakeup) can keep calling the
computer tools after its turn settled. The control gate then answers 401
(the turn's internal capability is no longer active), but the control
client mapped every non-OK reply to CONTROL_UNCONFIRMED, "Retry in a few
seconds", so the bot retried for hours.

On 401 the client now returns a distinct CONTROL_TURN_ENDED refusal that
says retrying will not help and to end the turn. 403, 5xx and network
errors keep the existing "retry" answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(computer): assert the turn-ended refusal text on its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devs-reports): a devs tag only inside pasted text sends no report

The composer wraps long pastes in <pasted-text> blocks. personWrote()
already skipped quotes but still counted a tag inside a paste, so
pasting release notes or a log that mention the devs tag sent a bug
report. Drop pasted-text blocks before the tag check only; the report
keeps the pasted text when the person tags the devs themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Read pasted-text blocks in one pass when checking for a typed @devs

Address review: the lazy regex was quadratic on many unmatched opening
lines. Strip paste blocks with a linear line scan that reuses the
composer's own PASTED_TEXT_OPEN/CLOSE patterns, before quote comments are
split, so a quote inside a paste is skipped too. Report words still
include the pasted text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Append an unclosed paste tail without spreading it into push

A message with an opening paste line and no closing line keeps the rest
as the person's text. Spreading those lines into push() threw a RangeError
once there were ~150k of them, so the @devs check failed for that message.
Concatenate instead; new test with 150,000 blank lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Save voice-note switches in New bot defaults

The defaults editor shows the Voice notes and Voice note with every reply
switches, but the defaults schema did not list voiceNotes or
voiceNoteEveryReply, so saving the defaults with either switch changed
failed with: newBotDefaults.profile Unrecognized key: "voiceNotes".

Accept both fields in the defaults profile, type them in the shared
defaults type, and pass voiceNoteEveryReply to new bots (null means
follow the Voice setting, stored as absent like the bot settings route).

Closes #4588

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name tts.everyReply in the voiceNoteEveryReply defaults comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test that a false voiceNoteEveryReply default carries over to new bots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test that a true voiceNotes default carries over to new bots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): skip macOS VPN tunnels when advertising over Bonjour

On macOS 27 a Mac panicked after the companion closed its mDNS socket
while it held multicast memberships on utun interfaces that had just
come or gone (Tailscale, a mesh VPN, tun2socks). Multicast cannot cross
point-to-point tunnels anyway, so on macOS advertisableAddresses() now
leaves out utun, ipsec and ppp interfaces. Tunnel churn no longer changes
the advertised set, so the watcher no longer tears the socket down.
Other platforms and the pairing addresses are unchanged.

Closes #2513

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): drop issue numbers from mdns comments

The comment-history check keeps history in git, not in comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Hand Google sign-in to the person when Google refuses the bot's browser (#2642)

Google turns down sign-in in a browser run by software ("Couldn't sign you
in: this browser or app may not be secure"). Bots kept retrying. Browser
tool answers that show Google's refusal page now carry a notice: do not
retry; use connected apps for Gmail/Calendar/Drive, ask for another way to
sign in to the site, or let the person do the step in their own browser.
Not added in the person's own Chrome (My Chrome), where Google sign-in works.

Closes #2642

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Drop the issue number from a comment and a test name

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(companion): assert a Mac joins mDNS only on its LAN interfaces

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): no default-route mDNS membership on a Mac

If every per-interface join fails, the responder fell back to joining on
the default route, which on a Mac can be a VPN tunnel. Skip that fallback
on darwin only; other platforms keep it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Raise the streamed reasoning-details bound so long OpenRouter turns finish

OpenRouter streams reasoning_details as one full block per delta, so the
JSON size counted by ChatReasoningDetails grows many times faster than the
reasoning text. A long tool chain on a reasoning model passed the 256 KB
bound and the turn aborted with "provider reasoning details exceeded the
size limit". Raise the per-completion bound to 4 MB and pin it with tests.

Closes #4605

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): a Mac with no mDNS group joined reports discovery as off

If every per-interface join fails on darwin there is no default-route
fallback, so the socket can't hear queries. Close it and resolve false
instead of reporting advertising as active.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Append reasoning blocks one by one; widen the long-turn test wait; pin acceptance near 4 MB

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(acp): plain words when DeepSeek Harness can't connect an MCP server at start

dsh fails session/new with "mcp-client(<name>): initial connection or tool
synchronization failed" when one of the bot's MCP servers (usually connected
apps) doesn't connect. The chat showed that raw text. Say which server didn't
connect and what to do instead. Only that exact dsh error text is matched;
every other error and engine is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): a Mac retries a failed mDNS advertise a few ticks

With the default-route fallback gone on macOS, a join that fails while an
interface settles left discovery off until the network changed. The
address watcher takes an opt-in failureRetries; the companion sets it to 3
on darwin only. Linux and Windows keep 0, so their behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(acp): match only a whole dsh MCP start failure; say it couldn't be set up

Review follow-up: the MCP start failure is recognised only when it is the
whole error (after an optional JSON-RPC message, before an optional request
context), so an earlier failure quoted in other diagnostics keeps its text.
The words now cover tool sync failures too: "couldn't be set up".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): reset mDNS retries when the network state changes

A network that failed, went away and came back reused the spent retry
count, so it got no retries. Reset the count whenever the observed state
changes, before the already-handled check. Drop comments that narrate
the retry state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(acp): keep account wording over the MCP start rewrite

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(acp): drop history wording from failure-words comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): let a paired client use "Continue when your limit resets"

The remote-access relay's default-deny allow-list had no entry for
POST /api/limit-resets/continue, so a desktop used as a remote client (or a
phone) got the relay's own "no route: POST /api/limit-resets/continue"
banner instead of the one-time "Continue" automation. The harness has the
route; only the relay refused it.

Allow exactly that route. It creates a one-time automation in an existing
conversation, which is less than POST /api/routines already allows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(limit-resets): take Continue ids exactly as sent

A padded threadId passed the team-phone/relay visibility check (which
looks at the raw id) and was then trimmed by the route, so it could reach
a conversation the check never saw. Refuse padded ids with 400 instead.
Also pin that the relay still denies the other limit-reset routes and
methods (CodeRabbit review on #4684).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(decider): keep the chosen provider in Settings until a key is saved

Choosing OpenRouter under Settings > Decision and extraction snapped back
to TypeSafe Jev. The status reported only the provider of the account in
use, falling back to Jev when no key was on file, so the saved choice
never reached the screen and the OpenRouter key field never showed.

With no account yet, report the provider the person chose. Once any key
is on file the status still reports the account in use, as before.

Closes #4646

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: drop issue number from decider test comment and name

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(team-map): drop backdrop blur from the shared instructions and department memory dialogs

Both dialogs sat on a full-screen backdrop-blur overlay over the team map. Every
repaint inside them (each keystroke, the caret) re-blurred the whole map, and
without GPU compositing (common on Linux) that made typing lag and kept the
graphics process busy. The dark 55% scrim stays; only the 2px blur goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(team-map): trim overlay comments, assert the scrim in the dialog test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(automations): drop the full-window blur behind the automation editors

The schedule, app-event and webhook editors put a backdrop-blur-sm overlay
over the whole page. Each repaint in the dialog (caret, typing, scrolling)
re-blurs the page behind it, which runs in software without GPU compositing
(common on Linux): the Edit automation dialog held the GPU process at ~55%
CPU while idle and scrolled at 12-16 fps. Keep the dark scrim, drop the blur.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Don't mask short placeholder API keys in OpenAI-compatible replies

A local OpenAI-compatible server is often set up with a placeholder key
like "1" or "x". The reply masking split the bot's text on every
configured secret, so every "1" in the reply showed as [redacted].

Only mask key and integration secret values of 8+ characters, the same
minimum devs-report.ts already uses for environment secrets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(automations): pin the webhook editor scrim without blur; drop unversioned comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: cover short integration token placeholder in reply redaction

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(chat): save linked files over 25 MB and explain size limits plainly

A bot-linked file over 25 MiB could not be saved from chat: the message
file route refused it with "file exceeds 26214400 bytes" and offered a
Retry that could never work. The route already streams the file, so the
25 MiB cap was only needed for inline image previews.

- Downloads of linked files now allow up to 500 MB; inline image
  previews keep the 25 MB cap.
- Over a limit, the server returns 413 code file_too_large with a
  localized message (size, limit, file name); the app shows it and hides
  Retry. A video over the 25 MB preview says it can still be downloaded.

Closes #4628
Closes #4629
Closes #4630

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sidebar): line up Simple section counts when a section has no menu

In Simple mode, department headers reserve a 22px slot for their hover
menu, but sections without one (Group chats) did not, so their count sat
further right than the department counts below. Keep an invisible slot
of the same width on lines that have no menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(sidebar): pin the reserved menu slot as the line's last sibling

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(image-gen): accept null url from OpenAI-compatible image providers

DeepInfra and other OpenAI-compatible gateways answer image generation
with url: null next to a valid b64_json. The response schema typed url
as an optional string, so the whole reply was rejected and the person
saw "Custom returned no generated image". url is never read, so drop it
from the schema and let b64_json be null too, which keeps the clear
"must return base64 image data" message for url-only replies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(sidebar): check the menu button keeps the same fixed width as the reserved slot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(chat): no busy cursor on a video too large to preview

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(chat): keep AttachmentPreview within its size ratchet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(image-gen): assert bytes and mime in the null-url test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sidebar): calmer working line without raw commands

A working bot's sidebar row showed the raw step it was on (the full
command, search words, page or file name) and changed on every tool
call, often several times a second.

The sidebar now names only the kind of step ("Running a command",
"Searching the web", "Reading a file", ...) and holds each phrase for
at least 5 s; the newest phrase wins when the hold ends, and clearing
shows at once. The chat keeps every step and target unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(routines): read the newest account when several Gmail accounts are connected

Connected-apps sessions require an explicit account once an app has
several, but routine checks read with no account, so every Gmail read
was refused and the routine said "Couldn't read Gmail. I'll try again
soon." on every run.

Routine reads now name the newest active account for an app with two or
more; with one account nothing is named, as before. If that read is
still refused, the routine and the brief point to Connected apps instead
of promising a retry that cannot help.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): live folder pages for dashboards (show_html/publish_page live)

Opt-in `live: true` on show_html (with path) and publish_page.
- Chat cards: the folder is checked every 5 s by a cheap signature; on
  change it is re-read and the card replaced in place (max 50 watched).
- Published pages: republished to the same link at most once a minute
  after a change; the page carries an omb-live version and reloads
  itself when the version changes. Unpublished/410 pages are forgotten.
- Tool docs and the data-dashboards skill mention live; catalog goldens
  regenerated and budget baselines raised for the new property.

Closes #4753

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(chat): complete pt-br keys, location-neutral size message, no Retry on streamed size limit

- pt-br pack must have every English key (src/lib/i18n.test.ts activePackComplete);
  add the two new keys and their source hashes.
- serverError.file.tooLarge no longer says the file is on the bot's computer:
  a restored user attachment lives in the server's attachment store.
- A video read without Content-Length that passes 25 MB now carries code
  file_too_large, so the card hides Retry like the declared-size case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-tw): translate templates, new bot, desktop menus and chat strings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-tw): translate chat, routines and part of settings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-tw): translate settings, automations and server errors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-tw): translate activity, browser, cloud plans, memory, desktops, bot panel and keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-TW): translate server, brief, botAccess, skills, sidebar, voice strings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-TW): translate readyBots, model, botOverview, call, data, onboarding and more

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-TW): translate approval, imageGen, composer, apps, task, cloudSend, files, engineSetup, pair, room strings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-TW): translate the remaining strings (zh-TW now 9696/9696)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* i18n(zh-TW): add zh-TW to the server-side setup choices, greeting, memory note and weekday names

New bots set to zh-TW still greeted the person and offered setup choices
in English, because these server tables had no zh-tw entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(zh-TW): pin all five setup choices, the greeting, yearly month names and the zh-Hant/HK/MO memory seed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(chat): check the size limits through the message file route

A 26 MB linked file downloads, a 26 MB inline image preview gets 413, and a file over 500 MB gets 413.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(apps): handle review on live pages

- Live card refresh: reset the fingerprint when the folder changes, retry
  failed reads and full storage a minute later, keep the shown card when
  there is no room, use the card's current title, stop at a folder swapped
  for a link, pick up imported live cards, sweep replaced versions after
  the grace period, and wait during workspace backup/restore.
- pageSignature uses the same file filters as readPageBundle.
- Published live pages: take the signature before reading, back off ten
  minutes on a folder that can't be published, and refuse a queued refresh
  for a page that is no longer live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(bot-panel): keep the Usage label readable and line up thread link chips

The Details tab's Usage row kept its long value at full width, so the
label shrank to a single letter. The value now takes only the space the
label leaves and wraps there.

In the bot panel's taller conversation rows the #N link chip sat at the
top of the row while the time was pushed down to the title line; the
chip now gets the same offset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(bot-panel): keep shortcut hints at full width; only the usage value wraps

CodeRabbit: a long translated find label could let the shortcut shrink into it. Only the usage row gets the wrapping layout now; every other row keeps the previous layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pages): live pages retry briefly missing folders, skip writes during backups, resolve every entry

- Every entry of a page folder is resolved, so a folder swapped for a link mid-read cannot pull in files from outside.
- A folder briefly not found or unreadable is tried again later instead of waiting for its next change.
- A backup or restore that starts while a live folder is read writes nothing; the backup waits for a refresh under way.
- Only chat pages count videos in their signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(apps): save the built-in Email switch when connected apps are set up

validateConnectorGrants checked every connectorTools service against the
connected-apps (Composio) inventory and catalog. The built-in Email app
("email") is never in either, so turning on "<bot> can use Email" failed
with 400 "connectorTools names services that are not connected: email"
and the switch fell back to off. Leave only the built-in Email grant out
of those two checks; its tool-prefix check and its own call-time checks
in server/email/host.ts still apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(apps): keep composio.ts within its line limit; skip the catalog for Email-only grants

Move the built-in Email exemption into connectedAppGrantSlugs (connector-verdict.ts) so server/composio.ts stays at its
1091-line ratchet, and return before the connected-apps catalog read when a grant names only the built-in Email app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pages): read page files through the handle checked inside the folder

readPageBundle now opens each file, then checks that the opened file is still the one at a path inside the page's
folder (realpath + dev/ino) before reading it through that handle, so a folder swapped for a link between the check
and the read cannot hand over another bot's file. Test swaps the folder at open time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pages): trust the kernel path of the open file on Linux; live refresh keeps its exact root

CodeRabbit: a folder swapped to a link and back around the realpath/stat
check could still hand over a file from outside. On Linux the open handle's
/proc/self/fd path is checked instead; live refresh no longer re-resolves
its already-canonical root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(i18n): zh-TW activity window says "Used your Chrome" in Chinese like the pack

The desktop app keeps its own copy of the lending words; the new zh-TW
pack translates lending.action.chrome, so the copy has to match
(electron/lend-automatically.node-test.mjs checks this word for word).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(routines): retry a failed account lookup, blame only the tool's refusal on the account, open Connected apps

- A failed connected-accounts lookup is asked again on the next read instead of kept for the session.
- An HTTP error from the relay is a later try, not a several-accounts problem.
- The several-accounts message says reconnect, so Needs you opens Connected apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(pages): reset unused realpath/stat hooks after the Linux swap test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(routines): bound the account lookup by the read's time limit

A lookup that outlasts the read now fails the read as a timeout and is
dropped, so the next read asks again instead of waiting on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(codex): start Codex on the chosen model's provider

codex-cli 0.167.0 refuses a turn whose thread was started on another
provider than its current one: "This chat uses custom, but your current
provider is magpie. Switch to custom to continue." Personal Codex turns
launched app-server with no model_provider, so Codex's current provider
stayed config.toml's while thread/start and thread/resume named the
picked model's provider, and every message failed.

Launch app-server with -c model_provider=<selected provider>, as the
ChatGPT plan, Company and background one-shot paths already do, and
rebuild a chat from its history once when Codex refuses to resume a
session saved under another provider (data.type modelProviderMismatch),
like a missing or archived session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Train nov7-a: keep #4703's mask in one line and list openai-chat.ts at 1001

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: AdityaUmale <146627237+AdityaUmale@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(providers): recognize Model Studio workspace endpoints

* fix(providers): require literal loopback IPs for HTTP key checks

* fix(minimax): preserve explicitly configured API endpoints

* fix(auth): treat every client-IP proxy header as a proxy

A reverse proxy that forwards only X-Real-IP, CF-Connecting-IP, True-Client-IP or X-Client-IP left the request looking like a local loopback caller, so a remote visitor could get owner trust on a self-hosted server. Those headers now mark a request proxied just as X-Forwarded-* and Forwarded already did.

* fix(notify): show notification previews as plain text

A notification body kept the Markdown a bot wrote, so a lock screen read '**Facture reçue**' and a link as '[document](https://...)'. The server now runs the shared plainPreviewText helper before it truncates the line, keeping fenced code out as before. The browser banner, the desktop bridge and the bell panel also normalize stored entries, so notifications saved before this change read plainly too.

* Show OpenCode Go's usage marker like the other plans

Follow-up to #4482: the allowance was already read, but the marker never appeared. engineLimitFromUsage only accepted Claude, Codex and Grok, and engine-limits did not list opencodeGo as a reporting driver, so the model button had no bars and bots read the account as unsupported.

* Fix optional windows access in the OpenCode limit test

* Document the plan-usage row helper

* fix(server): keep tests that run outside the setup file off the real data folder

A test run without server/testing/setup.ts kept the person's real home, so DATA_DIR was ~/.openmausbot: managed-desktop.test.ts overwrote its config.json and tests that rmSync(DATA_DIR) would delete it. Under VITEST or NODE_ENV=test, a home equal to the OS profile folder now resolves DATA_DIR to a fresh temp folder.

* fix(server): treat an empty OMB_DATA_DIR as unset in config and host doctor

config.ts and host-doctor.ts read OMB_DATA_DIR with ??, so an empty value made DATA_DIR the empty string and the server wrote into its working folder, while cli.ts and the other readers, which use ||, fell back to ~/.openmausbot.

* French: use vous in the Cloud move messages, translate This computer

The Cloud move and key messages (cloudSend.*) said tu while the rest of
the French catalog says vous. Switch those 16 strings to vous, keeping
the existing wording otherwise.

Two strings still named the rail item in English, « This computer »;
the rail itself shows « Cet ordinateur » (rail.thisComputer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a failed connected-apps mount from failing the whole turn

The chat runtime treats every built-in mount as essential: one rejected
mount throws and the turn dies with "MCP request failed; inspect the
configured integration". Connected apps do not deserve that guarantee:
their tool catalog is fetched from the connected-apps service while
mounting, so an unreachable service failed every turn of every chat
engine even when the person never used connected apps. The CLI engines
(pi, codex, Command Code, ...) already drop the same server and go on,
which made the failure look engine-specific.

Treat composio and its own-apps server like a configured server: skip
the mount, tell the model through the skipped list, keep the turn.
computer, browser, agents and data keep their existing guarantee.

* French: name the computer's rail icon in general terms

The rail shows Cet ordinateur, Ce Mac, Ce PC or a workspace's own name
(src/lib/places.ts), so the two hints point to the computer's icon on
the left of the app instead of quoting one label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(ui): legacy execCommand copy fallback for insecure-context mobile PWA

On the installable phone web app served over plain-LAN-HTTP (#2678) the page is an insecure context, so navigator.clipboard is undefined and copyText's Web-API + desktop-bridge chain (#2405, #2435) never succeeds on mobile. Add a select-then-execCommand('copy') fallback between the two; no-op outside a real DOM, never throws.

* fix(bot-cwd): a working folder that links into the private data dir is never shareable

* fix(acp): discovery skips catalog entries whose id or label is not a usable key

* feat(approvals): an MCP tool's card names the custom server asking for it

* feat(sign-in): a dead server slows the pill's poll down, then says so

* test(packaged): the loopback trust gate refuses a public mutation at service trust

* fix(companion): allow paired devices to save a typed secret card

* Train nov7-b: pt-BR for #4779's new key; #4777 reserves the internal device server too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Train nov7-b: #4773's legacy copy runs after the desktop bridge and gives focus back

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Train nov7-b: #4749 closes only the failed mount's own client, not a configured server sharing its name

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Train nov7-b: #4715's test home moves to server/data-dir.ts, config.ts stays at its pin

The temp home is memoized and applies to the legacy folder too, so a test never migrates or deletes a real
~/.opengrokbot, and only VITEST counts as a test run. The new test's cleanup now deletes only a throwaway
omb-test-home folder: with a broken guard it would otherwise have removed the parent of the real data folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Train nov7-b: #4777's MCP title check uses startsWith, as lint asks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Zidan Zhu <3733774+zhihz@users.noreply.github.com>
Co-authored-by: KunjShah95 <kkshah05072005@gmail.com>
Co-authored-by: BunBnnuy <saratoga.yuu@gmail.com>
Co-authored-by: Rodolfo Chicone <rodolfochiconemd@gmail.com>
Co-authored-by: Ousmane Touré <151635824+otoure30@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: lukexluo <luke.lx@outlook.com>
Co-authored-by: Juyuan Gu <5266288@qq.com>
Co-authored-by: DeryFerd <deryferdikao125@gmail.com>
Co-authored-by: Saim Shafique <msaimshafique4664@gmail.com>
* Show a Watch button while a bot uses its screen (#4731)

While a running tool call is driving the bot's browser or computer and the
Screen panel is closed, the chat header shows a small "Watch" pill that opens
the Screen panel. It hides again once the panel is open or the tool finishes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Watch button: ignore finished calls and open on the matching tab

The pill now hides once the screen tool call has finished (tool.ok set)
even while the turn goes on, and opening the panel from it selects the
Browser or Screen tab for that tool instead of the tab last viewed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Watch button: open the remote panel on its Browser view during a browser call

A remote client's screen panel always started on Desktop, so Watch during a
browser call showed the wrong view. The opener now records a one-shot Browser
request (cleared by every other opening), and the remote panel starts on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* The phone link and Tailscale never start by themselves

The phone link (the companion) started at every launch once it had ever been
turned on, and at every start it ran the Tailscale CLI to learn this
computer's tailnet name. On a Mac the first program it tried was the Tailscale
app's own executable, which can open the Tailscale app and connect it. So a
desktop used only as a client of another server still brought Tailscale up on
every start, with no switch to stop it.

Now:
- Nothing runs a Tailscale program unless the person turns Tailscale on. The
  Tailscale card under Settings → Remote access → Advanced has an on/off
  switch with its state. On, the link is served at
  https://<computer>.<tailnet>.ts.net:8813 through `tailscale serve`, with
  Tailscale's own certificate; off removes only that serve entry, and never
  one the person made themselves on the same port.
- Every Tailscale CLI, PATH included, is tried before the macOS app's
  executable.
- The phone link starts at launch only for a computer that runs its own
  server and has a phone paired with it, never for a client-only desktop.
- Settings written before this read as off unless a phone is paired, with
  Tailscale off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The sidecar test preloads its recorder by file URL, as Windows needs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Each way into this computer is its own switch, and nothing starts until one is on

One flag used to start the phone link at every launch: its LAN listener,
Bonjour, the relay, the managed HTTPS address, and a Tailscale lookup that
could open the Tailscale app. Now each way in has its own on/off, kept in
companion-settings.json:

- Same Wi-Fi: the device port on this computer's LAN addresses, and Bonjour.
- Anywhere, through MausBot: the relay connection.
- Tailscale: the device port on the tailnet address. The app asks
  `tailscale status --json` once, on Turn on, and again only on Check again
  (which starts nothing). The CLI comes first; the macOS app's executable runs
  only in CLI mode, and the app is never opened or signed in. The sidecar never
  runs Tailscale at all, and there is no `tailscale serve` on the desktop.
- HTTPS address: the managed tunnel, turned on by setting up the secure address.

A connection on a way in that is off is refused, and with neither direct way
on no device port is bound. While nothing is paired and no code is open the
sidecar sleeps, so a client-only desktop starts nothing. The relay token is
asked for only while the relay is on.

The update keeps on only what a device seen in the last 30 days could be
using, and says so once for each route with Turn off beside OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* The phone link answers only private peers, and finds Tailscale by its own interface

The device port binds every interface, so a connection is now answered only
when both ends are private (loopback, RFC 1918, link-local, fd00::/8) and it
arrived on a way in that is on; a tailnet connection must come in on
Tailscale's own interface from a Tailscale address. A public peer is refused
even with Same Wi-Fi on.

Tailscale is recognised by its interface (tailscale0, "Tailscale", or the utun
carrying a fd7a:115c:a1e0::/48 address), never by a 100.64/10 address alone,
which carrier NAT and other VPNs also use; the update's migration follows the
same rule. Turn on runs only Tailscale's command-line tool: with only the macOS
app installed it asks for Install CLI instead of running the app's executable,
and it tells signed out, not running and not allowed apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Phone & devices: who can reach this computer, and one Pair a device dialog

Remote access on this computer becomes Phone & devices. It lists what is
paired, then how devices reach this computer: Same Wi-Fi and Anywhere, through
MausBot, each with its state ("On · since Nov 7", "On · waiting for a paired
device", "Off") and its own Turn on / Turn off, and a folded More ways in with
Tailscale and the HTTPS address.

Pair a device is one dialog. When the ways in a phone or computer needs are
off, it first says what MausBot will turn on, with a box for each, and turns on
only what stays ticked; then it shows the code and how the device will reach
this computer. Simple mode shows "Use MausBot on your phone [Set up]", or the
phone, its reach line and Pair another device.

The server pairing card and the domain card show only on a server's own page,
titled This server; connecting this app to another computer moves to Servers.
The old switch, account card, connection list and Wi-Fi card are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Phone & devices pairs phones, lists open codes, and calls every code a pairing code

Pair a device pairs a phone: its consent step asks only for Same Wi-Fi and
Anywhere, through MausBot. A computer pairs by link once this computer serves
one; the desktop companion client is no longer offered, and an installation
already in client mode sees only its Disconnect card with "This connection
type ends Dec 7."

An open pairing code shows in Paired, with the time it works until and
Revoke. The phone setup's "Manual code" is the pairing code, its email code is
the "Sign-in code from your email", and the old app name is gone from its copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Aurora is a near-black dark skin whose main pane carries a band of
light in Maus green and violet, drawn once as ordered-dithered dots at
the screen's size and fixed to the window. Cards, bubbles, the composer
and the header pills turn to frosted glass over it inside the skin's
scope; reduced transparency keeps them solid. The picker miniature stays
plain, like Halloween's.

Registered everywhere a skin must be: SKIN_IDS and the catalog tagline,
the token block (identity tones measured on its ground, frame = panel),
the dark menu radius list, the Windows caption overlay, and the rail and
window-frame verify lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The light field was a ::before on main.bg-app. On panes whose main is
not positioned (Files, Routines, Triggers, the team map, web panels) it
sized to the window and covered the sidebar, and on scrolling panes it
scrolled away. It is now the pane's own fixed background.

The glass fills move into Tailwind's utilities layer at a utility's
weight, so hover and expanded fills win again (the model picker), and
every glass rule sits behind prefers-reduced-transparency: no-preference
and forced-colors: none, so the header bar and composer strip go solid
along with the cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Mac "Allow control of this computer" card had no way to dismiss it,
so users who don't want local control saw it on every visit. "Not now"
now hides it everywhere it shows until the app starts again; nothing is
saved, so it comes back after a relaunch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A desktop paired to a host (remote client) sends every /api call through
the host's companion, which has no GET /api/auth/session route and answers
404. useOwnerOrAdmin read that as "unreachable", answered false and retried
forever, so the sidebar + menu hid New bot (and other owner controls) on the
paired Mac, though the host treats companion requests as its owner and
allows POST /api/bots.

On a paired desktop, answer owner without asking the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- mobile-code-blocks-ui: the copy-failure step now refuses execCommand too. #4773 made the legacy copy a real
  fallback, so denying only the clipboard API no longer fails a copy.
- chat-apps (live folder page): a name pages skip that Windows can create ("a#b.html", not "a?b.html").
- bundle pageSignature: the page path is the native realpath, as a page's source is; on Windows the plain
  realpathSync keeps the short 8.3 temp path, which is not the folder's own name.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Address CodeRabbit review on #4806: the focus listener no longer restarts
local control once the card is dismissed, the dismissal test uses its own
module instance, and the redundant comment is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Memory upkeep: start() no longer bumps the generation. stop() already ends
  the last one, so the bump only cancelled a capture that began before the
  first start. On a busy host a chat answered right after boot (while the
  engines are still being read) lost its capture for good, which is what
  made the Cloud lending memory e2e fail on loaded Linux shards.
- Mobile code blocks e2e: a refused Clipboard API write now falls back to the
  legacy copy command, so the failure check refuses both.
- Live folder page test: "a#b.html" is a name pages refuse that Windows can
  create ("?" is not).
- pageSignature test: resolve the temp folder with the native realpath, as
  fs/promises does, so a Windows short (8.3) temp path matches.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Settings → API keys → More servers only let you remove a server and add it
again to change the model IDs entered for it. Each added server now has a
pencil button that opens its model IDs, prefilled, with Save and Cancel.
Saving sends PATCH /api/instances/:id { models }, which replaces the
server's managedModels; an empty list goes back to detecting models from
the server's /models list. Other engines and the built-in OpenAI-compatible
slot are refused with a clear error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coordinate_bots forwarded group_id verbatim while the other optional
fields were trimmed or dropped when blank. An empty group_id reached
the endpoint as groupId: "", which fails its min(1) check, so 1:1
delegation always came back as a validation error. Trim the value
and leave it out when it is blank, the same way reason, title,
done_when and answers are handled.

Fixes #4800
Reserve the connection page during the click, so a browser does not block the tab opened after the sign-in start request; report a blocked page instead of waiting in silence; and let a remote server's page in the desktop app open the sign-in link directly instead of an about:blank tab the app refuses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
If Not now is pressed while the Accessibility settings step is still
open, stop before opening Screen Recording settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Refuse a list that drops the current default model of that server (409,
  localized), so new bots never start on a model the server no longer offers.
- Check the 64 IDs / 200 characters limits before saving and show errors
  from the model-ID editor next to it instead of below the add form.
- Test that Save puts the returned servers into the store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A number (or other non-string) group_id passed the argument check and
was then silently dropped when the request was built, so the call
delegated to the current room instead of returning a validation error.
Check the type up front, next to the other optional string fields:
missing, null and blank values are still omitted, anything else that
is not a string is rejected with the usual usage error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A live page keeps re-reading its folder, and a published live page keeps re-uploading it to a public link with no
turn running. Each refresh now asks for the bot's folders in that conversation, the same roots its page tools use,
and a page whose bot is gone or whose folder is no longer inside them stops being live: the chat card keeps the page
it shows, and a published page stays at its link as it was. Published live pages also wait while the workspace is
backed up, restored or moved, and read their folder with exact roots, as the chat card already does. The chat card
lists the store's live pages once, after a restart, instead of scanning every app row each minute.

The two ACP MCP set-up failure messages are chat notices now, with pt-BR wording.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
A blank group_id masked a nonblank camelCase groupId: the fallback only
ran when group_id was undefined, so the request omitted the destination
and delegated in the current room. Resolve both spellings before the
argument check — a blank group_id falls back to a nonblank groupId, two
different nonblank destinations are rejected as conflicting, and a
non-string groupId is rejected instead of silently dropped. Missing,
null and blank destinations with no fallback are still omitted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Full screen under the bot's screen used to take control straight away, which
pauses the bot. Now, without control held, it opens a watch-only full-window
view of the bot's screen: the bot keeps working, Escape or Exit full screen
closes it, and Take control is a separate button in its header (it opens the
live desktop full screen, as before). With control held, Full screen still
opens the live desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a custom command MCP server is restarted, the host adds
OMB_MCP_RESTART to its env so engines that keep servers across turns
start a fresh one. Codex starts a new app-server (and new MCP children)
every turn, so the marker means nothing there, but its OMB_ name trips
the reserved-variable guard and every turn of the bot fails with
"cannot set reserved environment variable OMB_MCP_RESTART".

Strip the marker from custom command servers before the guard runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The watch-only full screen now uses useModalDialog: Tab stays inside it and
  focus goes back to Full screen when it closes.
- Take control no longer closes the view before control is held; a refused
  request shows its reason over the picture and keeps watching. Once control
  is held, the live desktop takes over as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The env_vars assertion already pins the custom server's config; the
process-level check could fail if the test runner itself inherits the
variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Attempts go through the gate's track, so gate.close() ends them; a client that leaves cancels attempts still dialing
instead of each waiting out the OS connect timeout; a fast failure moves straight to the next address. The test's
first address is ::1 at a closed port instead of a public IPv6, and it now requires the answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
#	src/locales/zh-tw.json
Moves the expired-reset timer and collapsed row from FailedTurnRow into
usePastLimitNotice(tool, messageAt) in EngineUsage.tsx so ChatView.tsx stays
under its file-size ratchet pin (1306). Behaviour is unchanged.

Takes main's source-hashes.json and re-records hashes for
chat.error.pastUsageLimit in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main pins that when both spellings arrive the documented group_id is used (agents-proxy.test.ts), so an older tool
list never breaks a delegation. #4816's real fix stays: a blank group_id falls back to a nonblank groupId and is never
sent as an empty string. Its two new rejections (different values, a non-text groupId next to a real group_id) become
group_id wins, with one test for both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blank-dropping is now a per-tool list of top-level keys (coordinate_bots, session_search, show_html,
memory_update), so a blank that is itself a value, such as a cleared room bulletin, a bot's private
folder or a blank inside mcp_server settings, still reaches its tool. The in_my_folder retry is gone:
inMyFolderCwd returns no folder, not an error, when there is nothing to share or the hand-off is into
a room, so the one request goes ahead. Tests cover blank session_search ids, a blank show_html jsx and
a blank manage_room bulletin; the in_my_folder unit and e2e tests expect the hand-off to proceed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#4776 gives Grok a sign-out through its CLI's logout, so the instance list reports signOut: true; the test pinned
the old false. The egress test's server answered on connect, so its answer could share a packet with the SOCKS reply
and be read away with it; it now answers once the client writes, which keeps the exact 'reached' check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only until is dropped when blank; a blank text or old_text is refused with the schema's own message, as
agents-schema.test.ts pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Name the Exit button for screen readers when its text is hidden, stop the
Escape that closes full screen from reaching listeners beneath it, and keep
focus in the view when Take control goes disabled so Escape still works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switching into a long chat fetched the newest 200 messages, and with big
tool-step inputs that payload reached ~3 MB, which took ~7 s on a slow
link. Chat and room switches now ask for the newest 80; the startup
snapshot, scrollback pages and jumps keep their sizes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The helper-key suggestion is posted as a plain bot text row with
setupSuggestion set and no serverCard, so catch-up and direct context
rendered it as "Assistant:" lines. The bot then disowned text the
person saw it "say". Treat setupSuggestion rows like server cards in
transcriptText and promptWithReply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A chat switch now loads 80 messages. When the read cursor sits above
that page, keep a pending divider (no message yet, the cursor kept) and
place it when olderMessages brings the boundary in, for bots and rooms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses CodeRabbit review: a widget-kind add-a-key card is now worded as an
app card the bot did not write, and a reaction to it keeps the reaction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LONG_COMMANDS_TEXT told bots to detach long commands with nohup and
check the log in later calls, and to set wait_until or a trigger to
check back. On native Codex a detached job is not tracked: its shell
exit does not mean the work finished, and a later call may find no
process left to wait on. Delegated turns cannot set a wait at all, so
the scheduled continuation the prompt suggested was unauthorizable.

Prefer a longer per-call timeout and stay with the command in the
foreground until it exits, polling a live session to terminal exit,
and require the command's own fresh exit code and output. The
wait_until/trigger continuation is now offered only on a turn the
person started in their own chat. The Local VM keeps its own detached
path, spelled out, since its container outlives the call.

Fixes #4840
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit r4504659392/r4504659387: the setup suggestion replayed under the
card label 'built from their mail, calendar or other bots' work', which is
wrong for the app's fixed text. It now uses its own records label, keeping
the untrusted-data block; the test asserts the exact block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Connect sheet moved into Settings → Computer → Connect from elsewhere →
Your servers (#4764), which runs on this computer's own page. workspaces:probe
and workspaces:add still only answered the rail's page, so the lookup threw,
nothing was found and Connect stayed disabled.

Both channels now take a page main vouches for (the rail, or this computer's
own page), like the other connect paths. A server's own page is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Grok bot with a tool selection refuses every turn when Grok's own config
has an MCP server the selection doesn't cover. The refusal is intended, but
the message only said "Disable native MCP connections", which doesn't tell
the person where. It now names both ways out: remove the servers from
Grok's own settings, or set Tool selection back to all tools in the bot's
Access settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The repo keeps history in git, not in comments (comment-history test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- LONG_COMMANDS_TEXT: poll a live session until terminal exit or the
  timeout elapses; an unexited command is reported still running and
  unresolved, never claimed finished. A command that cannot finish
  within the timeout is split into shorter pieces, each confirmed by
  its own fresh exit and output. No tracking mechanism is named for
  an indivisible over-timeout command: none exists for Claude
  (background tasks disabled server-wide) or Codex.
- VM_LONG_COMMANDS_TEXT now states it is the exception to the
  no-detach rule: vm_exec caps timeout_seconds at 300 and the VM
  container outlives the call, so jobs longer than 300 seconds still
  detach inside the VM.
- shellTimeoutHint no longer offers the nohup retry: the hook fires
  only on Claude turns, and turn teardown SIGTERMs the CLI process
  group, so a detached job dies at the turn boundary. Retries stay
  in the foreground or split.

Addresses CodeRabbit review 5816094960 on #4845.
server typecheck rejects card.text (string | undefined) in cardRecords.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Real Grok lists the servers a session accepted alongside native ones, so a
fixture mixing both now exercises the selected-server path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On My Cloud a committed restore waited for the person to quit and reopen
the app, which a browser cannot do, so every request kept returning 503.
The server now restarts itself through its launcher right after it
answers the restore, and the restore notice waits for it to come back
instead of asking the person to quit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add backup.serverRestarting to pt-br (a complete pack, so the
  activePackComplete test failed) and zh-tw.
- After 3 minutes of waiting, the My Cloud notice also says the restart
  is taking longer than usual and to reload the page; it keeps waiting
  and keeps the restore marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A status request that hangs across the My Cloud restart would stop the
polling for good. Each poll now gives up after 10 seconds and the next
poll runs as usual.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Termux `process.platform` is "android", so the release key became
`android-arm64`, which is not in RELEASES. Both the install path and the
availability probe then reported `agent-browser publishes no build for
android-arm64` — a build that does exist and is already pinned in this table.

Android is bionic, not musl, so `linux-<arch>` (glibc) does not run either.
What does run is the statically linked musl build: it carries its own libc
and needs no interpreter. Key Android to `linux-musl-<arch>` so that is the
asset it resolves to.

Other platforms keep the key they had: linux+musl and linux still map exactly
as before, and isMusl() is untouched because Android genuinely is not musl.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A reply's prose bubbles and table cards share one surface and stack with
  joined corners; small tables fit their content instead of stretching.
- Reply headings step up (20/17px) with room above; structured replies get
  16px side padding.
- Radii snap to one scale: 6, 8, 12, 16, 18 for chat surfaces, full.
- Midnight menus get an elevation shadow; Daylight pane edges are visible.
- Default Lucide icons draw at 1.75px.
- Palette shows each bot's avatar and a visible selection in Midnight.
- Model menu says what Default thinking means.
- New bot card: primary title plus a line saying what picking does.
- Inbox: no doubled title; the empty state says what lands there.
- Bot panel: segmented tabs, 64px avatar, labelled Conversations and
  Routines sections with a real Add a routine button.
- Header bot pill keeps its chevron visible.
- Settings: Language and typing get their own group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A reply with tables is one bubble; each table sits inside it as an inset
  12px card like a code block, and its prose keeps the reading width.
- Code blocks in chat take the 12px card radius.
- Thinking gets an Auto segment that shows as selected on the default.
- Bot panel: the model value uses the free width; Add a routine uses the
  same pill as New conversation.
- New bot card choices have a resting fill so they read as buttons.
- Structured-reply padding no longer leaks onto the outer row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode answers a Zen free model that used up its free allowance with
"Free usage limit reached. Free models work in OpenCode … subscribe to
OpenCode Go to keep going". The ACP core emitted every usage limit as
`limit: "engine"`, so the reset clock held the whole OpenCode account for an
hour (a guess: the refusal names no reset). The usage card then read "At its
limit" with a full bar, and every turn of every bot failed over to another AI
while the account's Go allowance was untouched.

A usage limit now carries the reach its own engine reports: the core asks
`AcpSupport.limitScope`, and OpenCode answers `model` for a free model's
allowance and `engine` for a Go or monthly one. A model-scoped limit holds
that model only, so the bot keeps the account available and can run a Go
model.

Tests: the recorded quiet-turn log line ("Free usage limit reached…") now
emits `limit: "model"` (fails on the old always-engine line), and a table
covers free, Go and monthly refusals. docs/opencode-go.md gains a "Usage
limits" section.
- Inbox is one surface: title on the left, widen and close on the right.
- The open Inbox row is quieter and aligned with the bot rows.
- Routines copy no longer contradicts its button; Activity shows a chevron.
- The Bot's screen button wears the header chips' surface.
- The panel's model value uses the room it has.
- Thinking segments size to their labels.
- Settings fades its bottom edge so more content reads as scrollable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Inbox header uses the bot panel's header box and round buttons.
- Untitled conversations read 'New conversation', matching the button.
- Daylight dims Settings and the palette lightly; the sheet carries its own
  shadow. Midnight's scrim is lighter too.
- A table in a reply spans the bubble like a code block.
- Setup choices: a firmer resting fill.
- Thinking segments are taller and every level explains itself.
- Panel and Settings section labels are 13px semibold.
- Settings groups sit closer together.
- Routines copy points at Automations.
- Panel conversation rows: the title gets the first line; the time sits
  beside the preview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Zen's free allowance is shared by that login's free models, so a refusal that
held one model left the others eligible: each fallback met the same allowance
and waited out its quiet turn. A model-scoped runtime error now carries
`limitModels` when one allowance is shared, and the takeover holds every model
it names: OpenCode sends the provider's free models, never a paid Go model on
the same login.

The OpenCode classifier also reads `FreeUsageLimitError` and
`GoUsageLimitError` by name. `LIMIT_WORDS` already matched those, but the
quota pattern did not, so such a refusal was not carried as a limit at all.
- Price, grouped-thousand and percent columns line up on the right
  (isTableAmount, alignment only; sorting is unchanged).
- A reply table's header row takes a slightly deeper tint, and a heading
  right after a table keeps its section spacing.
- The conversation search button wears the same pill as New conversation.
- Settings drops the static bottom fade for real bottom padding.
- Usage and Activity rows show a chevron.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a 2 GB Cloud, a bot that hands work to many bots queues each of their turns
for memory. Every waiter re-sorted the queue on each wake, asking twice per
waiter whether its turn was a person's own, and each answer read and parsed
every open assignment. With about 27 waiters and 31 open assignments, that was
roughly 85,000 row parses every two seconds. The main thread stayed pinned, Fly
throttled the shared CPU, and the Cloud stopped answering until it was restarted.

The queue now asks once per waiter, and the running-turn check reads only that
thread's open rows.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- In Simple, the Inbox panel matches the bot panel: 320px, page surface,
  and its search field sits on the header inset.
- Model menu check marks use ink, not a stray blue.
- Settings sheet is 860px so it clears the sidebar; its close button sits
  on the title line.
- Bubbles and reply paragraphs avoid a lone last word (text-wrap: pretty).
- The open Inbox row is a light tint, so only the open chat reads selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Let your own server use this computer: one popup after pairing, and a switch in Settings → Servers

A desktop paired with a self-hosted server could only reach that server; its own
folders, terminal and screen were never offered, because lending to a server
other than a Cloud needed the maintainer flag on both the local and the remote
server.

Now a saved server where this desktop's pairing has the admin scope, and which is
no Cloud, team or hosted workspace (ownServerSession, read live from
/api/auth/session), is a server of the person's own:

- Right after pairing (and once for a pairing made before this), main asks in
  its own dialog: "Let <server> use this computer?" with Allow / Not now
  (default Not now). Allow lends the apps on the screen and the MCP servers kept
  for this computer; folders and the terminal are chosen in Settings. Not now
  lends nothing and this pairing is not asked again.
- Settings → Servers shows "Share this computer" with a switch for each such
  server (the switch asks the same popup), "Choose what it can use" opens the
  existing computer access panel (folders, terminal, apps and screen, each
  change confirmed in main's dialog), with Pause / Resume there and in the
  menu-bar item, which now names these servers like Clouds.
- No maintainer flag is read for these grants. Pause and quitting hold them as
  they hold Clouds; Stop ends them at once and needs no flag. Pairing again with
  that server keeps lending; the pairing losing its admin scope, or another
  server behind the address, ends it.
- The server takes a computer by default, from admin pairings only
  (features.sharedComputers false turns it off, true lets every pairing lend as
  before); its bots get the lending tools only once a computer is lent.

The channels and popup move out of main.mjs into electron/server-lending.mjs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* CI runs the computer-sharing gate test with the locale tests, since it loads the desktop's native text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Own-server lending: nothing new before pairing, and never where others sign in

- The public description (/.well-known/openmausbot/environment) is as before:
  lending is no longer advertised there by default. A server only its one owner
  signs in to tells that owner's own session what it takes (`lending` in
  /api/auth/session, next to `own`), and the desktop reads it from there.
- Owner lending follows the existing own-home rule (server/own-home.ts): only
  where nobody else signs in, and only for that owner's admin pairing. The
  shared-computer routes are enabled per request for that owner alone; the
  desktop counts a server as its person's own only when the server says `own`.
- The bots' routes and tools still appear only once a computer is lent; a
  settings change no longer closes owner lending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* chore(cua): upgrade the bundled Cua Driver to 0.41.3 on every platform

macOS and Windows move from 0.28.2 and Linux from 0.19.3 to Cua Driver
0.41.3 (tag cua-driver-rs-v0.41.3, commit bd0e299c). Every pinned
SHA-256 was taken from the downloaded release assets and matches the
release's checksums.txt and SHA256SUMS.

- npm SDK @trycua/cua-driver and its native packages 0.41.3 (lockfile
  integrity from the registry, verified against the downloaded tarballs)
- macOS universal and Windows x64 release archives re-pinned
- Linux archive, every reviewed member, source commit, release.json and
  package verifier re-pinned; the daemon contract is now 0.8.0
- third_party/cua-driver records regenerated with cargo-about 0.8.4: 381
  registry crates, ten Cua packages (cua-cursor-motion and the
  libs/cua cua-telemetry crate are new), Inter unchanged
- lent-screen schema fixture regenerated from 0.41.3 describe output:
  element_index is gone (element_token only), agent cursor tools take
  session instead of cursor_id, set_agent_cursor_style is removed
- saved steps no longer fall back to element_index
- the model never sees 0.41's batch runners (run_steps, run_script),
  guide, extension installer or visual parser, so every screen action
  stays its own approved call

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cua): read a window before a coordinate action, as Cua Driver 0.41 requires

0.41 takes window x,y only from that window's own screenshot in the same
session, so the X11 input smoke now calls get_window_state before its
click. The lending e2e addresses its element by element_token, the only
element address 0.41 accepts and so the only one a lent screen forwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cua): run the X11 input smoke under a window manager

Cua Driver 0.41 sends foreground input only to the window the window
manager reports active (_NET_ACTIVE_WINDOW), as every real Xorg desktop
has. A bare Xvfb has no manager, so the smoke now starts openbox first,
and the Linux CI and release jobs install it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Wayland stays blocked everywhere except one desktop: Hyprland with Cua's
compositor plugin active. The plugin gives bots their own seats inside
Hyprland, so their input never shares the person's pointer or keyboard.

- Detect Hyprland (HYPRLAND_INSTANCE_SIGNATURE plus a desktop named
  Hyprland) and read /usr/bin/hyprctl -j cua:status with a two-second
  limit. Active means a configured input build, a ready transport and a
  matching ABI. Checked again at every start.
- Without the plugin, the Local control card says in one sentence how to
  turn it on, links Cua's Omarchy guide, and Try again checks again.
- Prefer Omarchy's package-owned /usr/bin/cua-driver: root-owned, owned
  by cua-driver-bin per pacman -Qo, the package version naming the
  binary, and in the bundled minor line at or above the bundled patch.
  Otherwise the bundled driver runs with CUA_DRIVER_RS_ENABLE_WAYLAND=1.
  The plugin is never bundled.
- New linux-wayland-hyprland-supervised contract, checked against the
  inspected driver version; HYPRLAND_INSTANCE_SIGNATURE reaches the
  driver.
- A client_not_bound refusal (Chromium, Electron) tells the bot to use
  its own browser for web pages. Actions keep the existing approvals.
- docs/linux-desktop.md gains an Omarchy section.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
A desktop or self-hosted server runs on a computer of its own, so a missing
program there is just missing, not a computer nobody lent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/lent-mcp.ts
- Add a routine on an empty bot opens the routine editor straight away; the
  Routines note links to Automations.
- Midnight's menus (model picker included) carry the elevation shadow.
- A right-aligned table header puts its sort arrow first, so the label
  lines up with the numbers.
- Settings fades its bottom edge only while more lies below, via a
  scroll-driven timeline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/bot-box/broker.ts
# Conflicts:
#	server/vps-ssh.ts
- pt-BR: skins.tagline.aurora.
- Update emails: a replaced receipt the Admin answers unknown_receipt for is dropped instead of failing every sync.
- cloud-computer-auto-sleep e2e: a fake ssh, so VPS commands reach the fake docker now that they open one master first.
- browser engine: no issue number in a test title; drop an unused export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card gets a Save button. On a touch screen it opens the share sheet (Save to Files); elsewhere it downloads.
The page comes from GET .../app/download as application/octet-stream, with Content-Disposition: attachment,
nosniff and CSP sandbox, so the bot's HTML is never rendered on our origin. A page with files beside it is
refused with a message, since it can't be saved as one file.

Closes #4675
The download route sits beside the page document, so it gets the same client-scope and companion allowlist entry.
- Table headers sit on one line again: the arrow leads a right-aligned
  label and every header button is top-aligned.
- Bot panel rows use bare 16px icons, and labels, icons and row text share
  one 14px inset.
- Settings rows centre their controls (the Color my messages switch sat
  3.5px high), and More looks shows the current skin.
- New menu: Templates uses a layout icon; Settings: Usage & billing uses
  the gauge the account menu uses.
- An empty Inbox hides its search field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Starter Cloud runs on the smallest machine with a shared CPU. A restore or a
move can bring any number of bots, and nothing limited how much ran at once, so
one request fanned out to dozens of bots could stall the machine until nothing
answered.

- At most two turns run at once across the Cloud. Every turn waits for a place,
  including one whose engine is still running. A person's own turn still goes
  first, and a turn waiting on work it handed out holds no place.
- With two running and four waiting, a new hand-off is refused. The model is
  told why, and the app shows the plan popup with Upgrade.
- Past five bots, the rest are paused but kept. The five most recently active
  stay awake, and the set is saved so it never reshuffles. A paused bot takes
  no turns and says why. The person can swap which five stay awake from the
  popup or Cloud settings, and upgrading wakes them all.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Model menu: when picking also changes the bot's model, the current row
  says "Pepper's model, used in all its chats".
- The bot pill's tooltip names what it opens: details and conversations.
- Thinking on Auto explains the tradeoff up front.
- Settings: "Color themes / Browse themes" and "Use the bot's color for
  my messages" replace "More looks / Change" and "Color my messages".
- Panel conversation titles may take two lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Untitled conversations read "Untitled chat", so a list row never shares
  the New conversation button's label.
- Settings pairs "Light or dark" with "Theme: Midnight · Browse themes"
  right beneath it.
- The Routines note points to Automations with a quiet chevron link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Model rows show their one-line blurb under the name where one exists
  (Opus, Sonnet, Haiku, light models); others stay name-only.
- Settings keeps a thin scroll thumb in view and a 20px fade only while
  more lies below.
- The Theme row explains how it relates to Light or dark.
- The shared sidebar picture says who sees it.
- The Automations link sits on its own line under the Routines note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Model rows go back to names only: the app's one-line blurbs call an older
  Opus the smartest model above newer ones, so the tooltip keeps them.
- Simple Settings switches are ink when on, not the system blue.
- The Routines link reads as a link: "See every bot's routines in
  Automations ›".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The + menu offers "New conversation with <bot>" for the open bot, above
  New bot, so a fresh chat never means a second bot.
- Settings: "Theme · Midnight" carries its value in the label; the hint
  says Follow system switches Daylight and Midnight and other themes stay.
- Thinking: the menu is 324px, segments are 32px with 13px labels, Auto is
  marked recommended, and each level says what it is for.
- The Automations link reads "View all routines in Automations", with a
  28px target and an underline on hover and focus.
- ModelPicker.tsx is back at its size ceiling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
scripts/testing/verification-docs.test.ts builds heading anchors with a single
hyphen, so the link #4879 changed was already right for this repo's check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Map the X11 smoke's test window again when openbox drops it

On loaded runners, openbox sometimes never maps a window that opens while it is
still starting. The test window then stays unviewable, and the smoke times out
before Cua Driver is touched. That happened three times in a row on the
release build.

The smoke now finds the window whether or not it is mapped, asks for the map
once more if it isn't viewable, waits up to 20 s, and fails at once if openbox
has exited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Report openbox output and the X11 tree when the smoke's window never shows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Report the window manager's process state when the smoke's window never shows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The bot-picker list uses the theme's hairline border and raised hover.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Owner chose to keep #4845's wait_until scoping and fresh-exit-code rule, and
shorten its no-detach text so it doesn't forbid every background process on
every engine or add 1,300 characters to each turn. The Local VM keeps its
detached path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The setup card is titled "Pick a starting point" with "Choose a focus for
  this bot, or type your own below. You can change it later.", so it no
  longer repeats the greeting's question.
- Model rows and tooltips make no ranking claims; the stale blurb table is
  removed.
- The Theme row describes the current state: following the computer, or
  "Using Midnight" with how to switch back.
- Daylight reply tables step back to a 2% body and 4% header tint.
- The Automations link is ink and underlined at rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings can report Tailscale enabled and ready while the pairing
dialog offers only "Retry secure access" and "Pair on this Wi-Fi".
The pairing route selector only knew the tailnet name from the
sidecar's legacy tailnetName field, which stays empty when the
sidecar never learned the name, so it considered Tailscale
unavailable even though Settings had the route name. The sign-in
screen also had no Tailscale action at all: the controller's
useTailscale handler was never wired to a button.

Consider the enabled routes.tailscale.name from Settings as a
fallback host when choosing the explicit Tailscale route, keep a
pairing pin valid while that name still matches, and offer a
"Pair using Tailscale" action on the hosted-capacity screen when
the route is available, so the QR and the manual code/address
fallback work without provisioning a hosted HTTPS address.

Fixes #4883
Preflight's file-size ratchet fails the PR head because
PhoneSetupFlow.tsx grew to 1115 lines (listed at 1101). Move the
sign-in phase's divider plus Wi-Fi and Tailscale route buttons into
the new PhoneSetupSignInRoutes component, leaving PhoneSetupFlow at
1089 lines. Pure relocation: same buttons, same handlers, same
strings, no behavior change.

Also drop the dead `since` fields from the new Tailscale route
tests: the route source type has no such field, so tsc rejects the
literals. Nothing reads `since` on this path.
A routine run parked on a question (for example a key card) stays "Needs you"
forever when the question was settled somewhere else: the only control was
Answer, and Cancel run lived only in the calendar drawer. The Automations row
and panel now show Cancel run next to Answer for the waiting run, using the
existing /api/routine-runs/:id/cancel route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The unreadable-credential-store notice in Apps always said "This Mac's
credential store", even on Windows. Pick the wording by platform, the way
the app already names "This Mac" / "This PC" elsewhere, with a new
connectors.stalePc string in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A newer cancelled run could make Answer open that run while Cancel run
targeted the older waiting one. Answer now opens the waiting run; sign-in
keeps its old target. Test covers a newer cancelled run before a waiting one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Diwali skin beside Halloween: indigo night, marigold accent, faint string
lights and two slow firework bursts (off under reduced motion).

While it is on, "Dress my bots up" puts each colour in a Diwali body: five
firecrackers in the bot's own colour (rocket, anaar, chakri, sparkler, bomb)
and five sweets in their real colours (laddu, chakli, jalebi, kaju katli,
karanji). All ten are also pickable year-round in the avatar pickers.

The Halloween catalog becomes a generic carved catalog (shared/carved-bodies.ts,
pnpm gen:carved) holding one pack per festival; Halloween paths are unchanged.
FESTIVALS in shared/bot-body.ts maps each festival skin to its bodies and a
costume per colour; one dress-up switch serves both festivals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use the preload platform instead of the capabilities fallback, so a failed
capabilities call no longer shows This PC on a Mac, and keep the original
notice for a remote server's store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The saved Tailscale switch is the authority for the route: when it is
explicitly off, the Tailscale selector returns no route, even while
the sidecar still advertises the old tailnet endpoint or the legacy
tailnetName still names it. Previously the sign-in screen could offer
pairing over a disabled route after a failed sidecar route update.

A tailnet pin now tracks its basis as well. A switched-off route or a
changed saved name invalidates the pin even while the old endpoint is
still advertised, and an advertised pin whose endpoint is withdrawn
goes invalid instead of lingering on the saved name. A pin rebuilt
from the saved name only needs that name to still match. Provenance
is recorded on the pin at creation.
A remote server's page in this desktop gets the local platform but no
remoteClient bridge, so a Windows desktop showing a remote workspace
could call the server's store "This PC's". Say This PC only on this
app's own page, with no active remote client.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wire ended on the viewBox edge, so the fitted curve's handle reached
y=254.2. The phones bound-check every path point, handles included, so the
catalog test now checks raw coordinates the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Connect native Claude and Codex agents with API keys

* Keep direct API model selection in agent settings

* Explain direct API gateway discovery failures

* Simplify API setup with editable official base URLs

* Make direct API docs generic

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Harden gateway model discovery from review

Restore the official catalog when an endpoint moves back to the official
URL, bound the catalog read, skip Claude Code's reserved default model,
keep a discovered catalog on mapping-only edits, let legacy endpoints
rotate keys without a catalog, and rediscover on Refresh models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Check each Claude bot launches its own gateway model

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep fixed Codex models and explain catalog disconnects

A Codex endpoint saved with a model records it, so key rotation and
Refresh models never replace it with a discovered or official catalog.
A gateway that drops the connection mid-catalog gets a fixed message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep parent credentials out of Claude endpoints without a directory

An endpoint configured by hand without configDir now drops inherited
Claude routing and credentials the same way one with a directory does,
so its own API key is the one Claude Code uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a typed model for API-key agents and send the key only over HTTPS or loopback

Each API-key connection stays its own engine with its own CLI home and the key
only in its environment. On top of that:

- The Claude and Codex forms get an optional Model field again, so a host
  without a /v1/models list can still be added. Empty still reads the list.
- Reading a host's model list never sends the key to a plain-HTTP address off
  this computer (the same rule as checking a key in Settings → Keys).
- The forms start empty. The official URL is only a placeholder, since an
  Anthropic key already has its own engine in Settings → Keys; an empty Codex
  URL means OpenAI.
- Drop the unused agentEndpoints.provider and agentEndpoints.custom strings,
  and refresh the pt-BR copy for the changed hints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: PedroRBC <pedrinhorbc@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat: add Kiro agent (kiro-cli 3.1.0 over ACP)

- Portable dedicated driver server/drivers/acp/kiro.ts (131 lines) via createAcpDriver/AcpSupport, same pattern as cursor/copilot
- Spawn: kiro-cli acp --agent-engine=v3 --auth-method=cli (V3 only, no V2 flags)
- Auth: KIRO_API_KEY or XDG_DATA_HOME/kiro-cli/data.sqlite3, loginNote kiro-cli login
- Models: ACP discovery with passthrough agent-default->auto fallback, variants for effortLevel (thought_level)
- Permissions: sessionMeta kiro.policyPreset allow-all for Full, configureSession autopilot on/off for Ask, sessionScopedApproval true ensures Full->Ask downgrade forces new session
- Core: sessionMeta contract (core.ts), load/new _meta passthrough, fetch_cloud_config and [STEERING filters
- Tests: driver metadata, auth probe, fallback, permission contract, edge-case filters, model discovery

Verified against real kiro-cli 3.1.0 (build 5acd3b9) isolated HOME, stock customAcp vs kiroAgent harness (Full auto-approve, Ask allow/deny, Full->Ask->Full switch, 23 models).

No Kinetik branding, no private paths, no credentials, no update infra.

Fixes #TBD - adds first-class Kiro support like Codex/Antigravity

* fix: replace placeholder Kiro tests with behavioral RPC verification

- Full/Ask now verified via fake-acp FAKE_ACP_DUMP session/new _meta.kiro.policyPreset
- Full→Ask forces new session via contractKey (sessionMeta in processContract)
- [STEERING] filter now exercises real streaming via FAKE_ACP_UPDATES_FILE
- Add docstrings for kiroDataDir, kiroHome, kiroSignedIn, resolveKiroModels, pickKiroAuthMethod to satisfy coverage

Part of PR #4664 test-quality fixes (CodeRabbit). Behavioral tests use recordEvents + turn.completed, isolated tmpdir, no sleeps.

* fix(security): harden permission operationKey and sessionAllows isolation

- operationKey now requires absolute path for non-command ops; generic
  title-only writes (Review changes) return null, closing P1 collision where
  Write File to /tmp/safe.txt could auto-allow /tmp/evil.txt
- auto-allow now gated by answersAlone for execute kind; shell ops like
  rm -rf / that fail safetyFloorClears are never remembered, fixing
  privilege escalation for all ACP drivers (CodeRabbit)
- Kiro persistent consent now scoped to contractKey (sessionMeta+cwd);
  cross-cwd reuse correctly clears sessionAllows
- permission-boundaries test updated to assert non-memorable generic title

Addresses CodeRabbit HIGH: distinct operations sharing remembered permission
and answersAlone removal. Verified: 19/19 kiro+boundary tests PASS, acp.test PASS,
lint 0 warnings, typecheck PASS.

* fix: address CodeRabbit findings, extract Kiro helpers, harden consent

- command-safety: canRemember now checks answersAlone(command) regardless of kind; mislabeled execute bypass fixed
- persistent permissions: shouldRemember unified to !optionAlways; Kiro native consent via _meta.kiro.consent (scope/resource/workspaceRoot) for allow_always, sessionAllows only for session-scoped allows
- auth: kiroSignedIn uses statSync not readFileSync, heuristic probe documented
- steering: filter narrowed to [STEERING steer- wire format, not generic substring
- session restart: sessionScopedApproval retained for security (policyPreset requires new session); configureSession handles autopilot
- temp dirs: Windows-safe mkdtempSync + join, isolated per test
- core.ts: extracted Kiro filters/consent to kiro-content-filter.ts, reduced to 1758 lines, ratchet updated
- i18n/typecheck/lint pass; kiro.test 12/12, permission-boundaries 7/7

Fixes discussion_r4494378540, r4494109326, r4494109358, r4494109388, r4494109407, r4494109445, r4494109465, r4494283440

* Register Kiro like every other engine and keep its quirks in its own driver

Kiro now appears everywhere a built-in engine does: the capability table and
its test, both fleets, engine memory, tool scope, the engine library and its
icon, the built-in instance list, the analytics list and its docs, the engines
UI preview, the providers docs, and an account notice in English and
Portuguese (Brazil).

The shared ACP runtime gets one optional hook, updateFilter, which an engine
uses to rewrite or drop a session update. Kiro's driver uses it to hide its
own cloud-settings tool and to cut its steering echo out of the reply. The
Kiro-only branches, the unused model option list, the steering map nobody
read, and the larger size pin for the runtime are gone.

The permission changes are dropped: "allow always" no longer writes a
permanent rule into Kiro's own store, session allows end with the native
session as they do for every engine, and the operation key every ACP engine
shares is unchanged. Approval mode is Kiro's Autopilot, set every turn.

The sign-in check reads Kiro's real store (data.sqlite3 in the system's local
data folder) and counts only a stored login token or KIRO_API_KEY; Kiro's
~/.kiro/config.json no longer counts as signed in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Draw the Kiro mark in its purple with no light literal, and fade it as a brand mark

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: basim hussain <basimadil1@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Each bot lists the imported skills that fit it and finds the rest by search

Skills brought in from Claude Code or Codex filled every bot's prompt and task
folder: a new sales bot listed 254. Past 15, a bot now lists the ones a person
switched on for it plus the best word matches to its name, role, instructions
and department, and skills_list takes a query that returns the best enabled
matches with the SKILL.md to read. Bots with saved choices keep listing every
skill that is on; nothing that was usable stops being usable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Shorter skills_list text, and the tool-catalog goldens for its query

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the refreshed skills hint's locale hash after merging main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	src/locales/source-hashes.json
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a Linux host without Chrome's system libraries, agent-browser's launch
fails with the glibc loader error ("error while loading shared libraries:
libatk-1.0.so.0") and the bot only sees that raw text, so it cannot tell
the person what to run. Our own Chrome launch already explains this with
BrowserHostError("libraries"); browser tool errors now append the same
message, naming the library and `sudo openmausbot browser install --with-deps`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train nov8-a: 4 AdityaUmale PRs + 11 community fixes
# Conflicts:
#	src/components/ComputerPanel.simple.test.ts
* fix(companion): stream the JSON scrub past the whole-body ceiling

A paired desktop or phone asks for the same bot list as the desktop
(`/api/bots?messages=200`, already bounded and slimmed by the server), but
the companion buffered every JSON reply whole to remove withheld fields and
refused anything over 32 MiB with a 502. A long history (about 52 MiB in
the report) never reached the paired client.

Replies up to 32 MiB are still scrubbed whole, exactly as before. Past
that, the companion now scrubs as the bytes arrive: a strict streaming JSON
reader drops the same withheld members (checked by decoded name, so an
escaped spelling is caught too), with memory bounded by one chunk. Bodies
that were never JSON still pass verbatim; a body that stops being JSON
after its start went out is cut off, never finished unscrubbed. Phone
tunnel replies are gzipped as they stream. Browser-control and viewer-join
answers, which are checked or rewritten whole, keep the 502.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(companion): lighter large-reply tests, with a named deadline

The large-reply tests sent three 52 MiB bodies and kept a scrubbed copy at
module level, a few hundred MB per worker; on a loaded CI shard one of them
ran past 40 s. The proxy now takes a test-only lower ceiling, so every
streaming case runs on a 1.3 MiB body over a 256 KiB ceiling. A single test
still crosses the real 32 MiB ceiling, with one shared message text so only
the serialised body is large. A connection the proxy neither finishes nor
closes now fails by name after 15 s instead of as a test timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(companion): pace a streamed reply by write callbacks, not 'drain'

On Linux (reproduced on Node 24.22.2, real kernel) a large streamed JSON
reply to a slower reader stalled for good: the response flushed
everything with writableNeedDrain still set and never emitted 'drain',
so the paused harness was never resumed. The streamed path now holds
the harness back until the write that filled the socket has its own
callback, which always comes. Gzip on the tunnel is paced the same way,
with zlib's ordinary 'drain' between the harness and the compressor.

The tests add a slow reader: one reply crosses the real 32 MiB ceiling,
and one 10 MiB reply crosses a lowered one. On Linux both failed with
the old code ("the proxy neither finished nor closed the connection")
and pass with this one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A ChatGPT-plan instance runs Codex on a home of its own so its sign-in stays
separate, but that home started empty: plan turns lost the person's
config.toml (MCP servers, settings, projects), skills, plugins, sessions and
MCP sign-ins. The plan home now keeps only its sign-in (auth.json, auth.lock,
models_cache.json) and a few local folders as its own, and links every other
entry of the person's Codex home into it. What earlier plan turns made stays
in place; only empty folders, Codex's rebuilt .system skills and released
runtime locks give way to a link. SQLite journals are never linked on their
own. Windows uses junctions for folders and skips what it cannot link.

Plan turns now load the person's Codex skills natively, so imported copies of
them stay out, as for the person's own Codex.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every step of a routine run (each reply, a question opened or answered, an
engine error) rewrote the whole routines.json, with every routine and up to
2,000 runs. A restart acts only on a run's status, so progress now reaches the
file at most once per 5 seconds, while every status change (start, end, retry,
failure) is still written before the server yields and carries any waiting
progress with it. Stopping the scheduler (backup, move, shutdown) writes what
is waiting first; from shutdown on, progress is written at once.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-call.test.ts
#	src/locales/source-hashes.json
The Claude driver retried a turn whose CLI exited with a transient-looking
error (timeout, connection reset, 5xx) as long as it had seen no streamed text.
That flag was cleared after every completed assistant message, and a tool call
never set it. So a turn that had already made several model calls, and then
failed on a later one, was sent again from the start, up to twice. On a
subscription that spends the same work's quota again, in one chunk.

A turn now counts as answered once any model call of it returns. An answered
turn is never sent again: it ends with its error. A launch that failed before
anything answered still retries as before. The CLI retries a failed API call
itself; resending a turn whose prompt it already took only repeats paid work.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
electron-updater wraps a failed GitHub request (e.g. a 504 while looking up
the latest release) in ERR_UPDATER_INVALID_RELEASE_FEED and appends the whole
releases feed, release notes included. The classifier matched "signature" in
the notes and showed "The update failed verification" even on background
checks. Classify only the error before the dumped feed, and treat a wrapped
HTTP 5xx as a network failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#4835 dropped the import while #4887 added two calls to it, so main fails typecheck.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Connect turns on only once the app finds the server. When the check threw,
the sheet swallowed it and the button stayed grey with no line under it, and
while the check ran (up to 12 s for a local address) nothing said it was
looking.

- While it checks, the sheet says "Looking for the server…".
- A check that fails outright now says it can't reach the host.
- On a Mac, a local-network address that never answers, or that the system
  refuses as unreachable, names the Local Network permission and where to
  turn it on (macOS blocks an app from the local network until the person
  allows it). A refused connection still reads as unreachable, since the
  network let it through.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A 5xx error page that mentions a signature must still read as a network
failure, not a failed verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Older Claude Code shows a bot only the first text part of a tool result, and
the apt-based install command only applies to a Linux host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pin built from the legacy tailnetName, with no routes or advertised
endpoints, was rejected by its own availability check, so the legacy
route could not remain pinned. The availability check now falls back
to the legacy name when no saved route name applies, matching the
pin's basis. A changed legacy name still invalidates the pin.
Look for the loader's missing-library line only after agent-browser's
"Chrome stderr:" marker, so a page error that merely quotes the
loader's words gets no install advice, and cap the library name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two merges crossed: one started calling mkdirSync for an endpoint's own
CODEX_HOME, the other dropped the node:fs import it no longer needed.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A phone left plugged in for a bot sleeps when idle, and the phone tools had no
key to turn the screen on or off. type_text accepted only basic ASCII, so a bot
could not search in a Chinese app or type a number like +86.

press gains wakeup and sleep. type_text keeps Android's input for basic ASCII;
other text goes through the ADBKeyBoard input method when it is the phone's
keyboard, and otherwise the error says how to set it up. When open_app finds no
match, the error points the bot at list_apps and the package name, since adb
cannot read an app's localized label.
OpenCode 2.2.0 and 2.2.6 keep every ACP session, even after
session/close or a killed process, so each catalog probe left untitled
sessions in the discovery workspace's history. The probe now deletes
the sessions it opened before it stops OpenCode, and deletes sessions
earlier probes left behind when cut off by a timeout.

Fixes #4896
Without a target package, any running app listening for ADB_INPUT_B64 could
read the typed text. Tests now also pin the 256-character bound, adb failures
and the ambiguous app-name error.
Pressing wakeup first is harmless on a lit screen, while a sleep at the end
could turn off a screen the person is using, and the swipe-lock advice was
never tried on a device. ADBKeyBoard takes typing from any app on the phone,
which the doc now says.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sweep deleted any session in the discovery folder idle for 40
seconds, so another OpenCode client working there could lose a session
and its messages. Probes now record the sessions they open in a ledger
in the discovery folder and delete only those: their own, and ones an
earlier probe left when cut off by its timeout. Nothing is recorded or
deleted unless OpenCode advertises sessionCapabilities.delete.
Every waiting turn ordered the whole queue each time it woke, asking who goes
first for every waiter, so one wake of W waiters asked W² times. The plan's
cap asked whether each running thread waits on its hand-offs, and that read
every open assignment.

- The queue's order is worked out once per wake and moment, and again when
  the queue changes.
- outstandingFor reads only the thread's own open rows and their children.

Tests: one wake of 40 waiters asks at most 90 times (it was 1,602), and four
times the waiters cost under six times the asking. runningIn and
outstandingFor read none of the other threads' rows.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Move from Grok Bot guide, a sitemap, and MausBot as the name

- New page, Getting started → Move from Grok Bot: what comes over from each
  Grok Bot Bot (instructions, skills, scheduled routines paused, event
  routines as a memory note, memories, apps to connect again), what doesn't
  (chats, files, keys and sign-ins, group chats, the model), each step in
  Settings → Import, how it differs on My Cloud (paste or choose the file;
  no Downloads lookup), what the desktop app reads, the error messages, and
  how it differs from restoring a backup. Linked from the docs home.
- The docs site gets sitemap.xml and robots.txt, built from the same page
  source as the navigation, so new pages are listed by themselves.
- The product is MausBot in the site name, nav title, page titles,
  descriptions, headings and prose. OpenMausBot stays where it is literal:
  the GitHub repository and its URLs, installer file names, log and data
  paths, the npm package, process names, macOS permission entries and
  quoted in-app labels. docs/analytics.md follows its docs page.
- The nav's Website link goes to mausbot.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Docs: no angle brackets in the Move from Grok Bot report line; the provider docs test reads MausBot

MDX read *<name> is here* as an unclosed tag and failed the docs build.
server/model-providers-docs.test.ts quotes four sentences of the provider
page, which now name MausBot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The install advice now needs the result to start with agent-browser's
"Chrome exited early (exit code:" launch error, so a page error that
quotes a whole launch error no longer gets it. Also accepts the
"Chrome stderr (last N lines):" form, and puts the advice before the
stderr so a client that cuts a long result short still shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot asked to fix sending for a connected mailbox could only describe where
to go: request_credential for email answered "already connected" for any
connected mailbox, and the failed-send text said only the person could fix it,
in Connected apps.

- request_credential with credential_id email, for a connected mailbox that
  can't send, now posts a secure card for its outgoing server: server, port,
  security and an optional sending user name and password, started from the
  server it sends through or last tried. Never a password.
- Saving runs the same check the mailbox's own form does (checkOutgoing):
  only the outgoing fields go, a server that still can't send leaves the
  card open with why, and one that sends is kept and resumes the bot, which
  hears whether sending works now. A paired phone's one value is the sending
  password at the server the card started with.
- The failed-send text and the system prompt line point the bot to that card.
  A working mailbox and a new one behave as before.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
After a rename the sidecar can still advertise the old Tailscale
hostname, so selection pinned the old hostname while the availability
check compares against the saved route name. The first availability
check then rejected the pin and closed the invitation. Selection now
prefers the saved name (when the switch is on) over the advertised
endpoint and the legacy tailnetName, matching the authority the
availability check already uses. An invalid saved name still falls
through to the advertised endpoint, then the legacy name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The schema's maxLength counts characters, so 200 emoji passed the schema but
failed the UTF-16 length check. ADBKeyBoard drops text when no field has focus
and the broadcast succeeds anyway, so that path no longer claims it typed.
open_app's description now says it takes English or package names.
A crash while writing the ledger could leave it half-written and lose
the session ids it records. A probe whose OpenCode exits mid-survey now
has a test: its session stays in the ledger and a later probe deletes
it once stale.
Train nov8-b: 15 community PRs
Train nov8-c: #4570 and #4611 with our fixes
Background calls (titles, skill review, memory text) always picked a small
OpenAI model, even when the bot's chats run on a gateway the person declared
in ~/.codex/config.toml. Where OpenAI is blocked, every one failed with
"403 Country, region, or territory not supported", and the one retry only
fired on a model-refused answer. The retry on the bot's own model could not
work either: `codex exec --ignore-user-config` skips config.toml, so its
providers were "not found".

- Pick a small model from the provider the bot's model (or the account
  default) runs on, else that model itself; never switch to OpenAI.
- Carry that provider's config.toml table as -c overrides; a bearer token
  or http_headers value goes into the child's environment, not argv.
- When an OpenAI small model is blocked (403 / region) or unreachable, run
  once more on the bot's own model and remember it for the instance, so
  later calls go straight there. ChatGPT plan and Company paths unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/vps-computer.ts
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved on current main: box.ts keeps main's relay bridge and crypto
import and adds closeSync; plan.ts keeps main's header (sign-in relay,
CPU list) and adds the statSync import.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The coordination e2e case stays as main has it: a teammate's step
already notifies nobody there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved on current main: the agents catalog profiles golden takes
main's version; its new sizes and hashes follow in a later commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Windows or Linux desktop, a server page, a remote client and the Cloud
now all read the same notice, so no platform check picks a key. The
second key is gone from every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Below Full access, a server a bot adds by URL now turns on by itself only
when its address is public https: no loopback, LAN or local name, and
every address its name resolves to is public. A command server, a server
on a lent computer, or a URL on the person's own computer or network still
waits for the Turn on card, so a bot cannot reach the person's machine or
LAN without their yes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
opencode-go.ts went from 985 to 1,045 lines with the probe-session ledger, over the
1,000-line limit for unlisted files. The probe (its folder, the session survey, the
ledger and its cleanup) and the session-catalog reader it uses now live in
opencode-probe.ts; opencode-go.ts re-exports what the tests import and is 781 lines.

The protocol step, "send session/delete for each discovery session when initialize
advertises it", is now one shared helper (session-delete.ts). The OpenCode probe uses
it with its ledger, and the shared discoverAcpModels (Kiro, Cursor, Copilot, Command
Code, custom engines) uses it too, falling back to forgetSession only when the agent
did not delete the session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every list read and every change takes the next number, and a list from
the server lands only if nothing later was shown. A read answered after
Done, or a list read sent before it, no longer moves the row back. A
failed read or Done puts the row back as it was and reads the list
again, so it never sticks even when that read fails too.

This replaces the merged design's revisions, pending overlays and
generation counter, which main's rewritten inbox no longer fits.

Co-authored-by: Sebastian B <sb@wmc.sh>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bytes and hashes recomputed from the full golden for every profile whose
tools are an exact subset of it; the profiles with their own tool text
(non-chief, cloud home, MausBot) have their bytes moved by the same 23
and their hashes taken from CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode's unreached-model check moves to opencode-unreached.ts (re-exported from opencode-go.ts), so opencode-go.ts stays under 1,000 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved on current main: server/tts/fish.test.ts keeps main's file (it
imports fish.ts statically, so the branch's stubbed-endpoint tests would
reach the real API); a redirect test for every request follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
transcribe sends the person's recorded audio with the Fish key, so it
refuses redirects like the key check, voice listing and speech requests.
One test stubs fetch and checks all four kinds of request. The Podman
test now checks that the Containerfile ships the skills folder, instead
of matching every Docker build copy, since the two images copy DuckDB from
different folders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved on current main: index.ts keeps main's lines and only appends
notificationListed to the visibility line and swaps the notification
routes' arguments (net zero lines); bot-settings and tasks keep main's
read-cursor and error imports and pass notificationListed(auth).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sign-in prompt told bots to use connected apps, not a browser sign-in,
for any Google or Microsoft account. Bots then refused company single
sign-on into other sites even with a saved login. Keep the connected-app
preference for Gmail, Calendar, Drive, Outlook and OneDrive data, and let
an asked-for Google or Microsoft sign-in go ahead like any other site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-applied onto main's codex.ts by hand (main moved the Company and endpoint
arguments to codex-endpoint-config.ts, added the direct API endpoint, the shared
Codex home and its own version probe). Following the review:
- The plan arguments, the renewal check and the guarded bridge start live in
  codex-plan-token.ts, so codex.ts shrinks (1729 -> 1724 lines). The PR's
  codex-provider-config.ts is dropped: its Company code is already on main.
- The renewal check keeps its answer for the driver's CLI and reuses main's
  version probe; a snapshot that reads another version (an update) replaces it.
  It no longer runs `codex --version` before every turn.
- A failed launch keeps main's quiet catch and only closes the bridge, so a
  turn that already settled is never completed twice.
- childEnv() drops the bridge variables and ELECTRON_RUN_AS_NODE before a
  bridged run sets them.
- A background call checks the account again after the version read, so a
  sign-out during that read never starts Codex with the old token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's video over 25 MB could not be attached to the chat (attach_file
opened the source at the 25 MB preview cap), and a bot on a VM has no
link to fall back on. People could not send one over 25 MB either. The
composer, upload route, attach_file and its tool text now share one
FILE_MAX_BYTES (100 MB, Cloudflare's upload ceiling) from
shared/upload-limits.ts. Everything read whole into memory keeps the
25 MB PREVIEW_MAX_BYTES: inline video/audio previews and voice notes.
The Cloud move's attachment read now streams instead of reading the
file whole.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Resolved against main as the review says:
- index.ts: the internal route takes one call signal from turnCallSignals and
  hands it to both the pages call and tts.speak, so the file shrinks by a line.
- publisher.ts: the page queue wraps main's publishBundle(LivePublish); a live
  refresh names its page, so it takes only the page queue. publishNow gets the
  target and keeps main's refresh, live and liveFiles logic. Every record an
  uncertain upload writes keeps `live` and the old signature, so a live page
  is never silently stopped and is published again.
- store.ts: `uncertain` sits next to main's `live` and `signature`.
- pt-BR text for chat.page.uncertain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-applied onto main by hand, as the review says, without the crash marker:
- pause() stops sharing first, then saves; a failed save sets pauseError, and
  Pause again retries the save (no early return while pauseError is set).
- resumeLending() stays paused and sets pauseError when its save fails, and
  turnOn answers { ok: false, reason: "paused" } while still paused.
- Any later save that carries the pause clears pauseError.
- The tray says "Pause is not saved. Sharing is stopped now. Retry saving pause
  before quitting." and offers "Retry saving pause" next to Resume, from
  native.lendTray.* keys (English and pt-BR).
- Dropped: the lending-session marker and its start-paused branch, the rmdir
  in close(), the summary clouds rewrite (main already lists own Clouds while
  paused), the docs lines about the marker, the cloud-lending test reorder and
  the unclean-exit and restart-protection tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* UI clarity round 1: one row style in the bot panel, a quieter setup card, tables in lines

The bot panel's Details tab drops its cards: Model is a plain row, search sits on the
Conversations label, This conversation follows the list, and empty Routines is one
action with All routines on its label. The setup card's rows rest unfilled with quiet
letter hints and say what a pick does. Reply tables are drawn with a hairline edge.
The account menu leads with Automations and Team map; Connect apps logos stay grey
until hover; Settings drops the fixed-theme hint and names the empty name row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* UI clarity rounds 2-4: Thinking folds to one row, logos blend into the pill, one right edge in the bot panel

- Model menu: Thinking is one row (icon gutter, current level, chevron); the Auto…Max steps
  and their hint open under it. Inset divider; shorter one-line hint.
- Connect apps: resting logos sit apart with no tile, grey, blended into the pill so a
  favicon's own disc or box drops out; hover brings tiles, colour and fan back.
- New-bot card: A–F letters trail the options, so labels line up with the heading.
- Bot panel: "Automations ›" link, flat action rows, one-line conversation titles, and
  the time on the same right edge as the chevrons.
- Replies: code block drawn like the table. Settings: theme subtitle names the look;
  People row gets a round mark aligned with the name row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train nov8-d: 31 PRs (Aditya's 6, Nov 8 community fixes, older fixes)
Quiet bot-opened threads, guest model scope, neutral credential-store wording, ordered inbox
The non-chief, cloud home and MausBot profiles carry their own tool text,
so their hashes could not be worked out from the full golden; CI's run
reported them, with byte counts that already matched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a slow Windows runner the folder's publish read its files after the test had already moved the folder to another page, so it queued on that page and the test waited on itself until it timed out. The test now waits for that read before going on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The agents catalog profiles golden takes main's sizes moved by the new
mcp_server wording (+23 bytes); hashes recomputed where a profile is an
exact subset of the full golden, the rest follow from CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
UI polish overhaul: one radius scale, clearer type, replies that read as one answer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps both OpenCode support fields: the unreached-model check from this train and the free-model limit facts from main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When Claude Code (compact_boundary) or Pi (compaction_end) condensed a
long chat on its own, the chat showed nothing outside the hidden activity
rows. Emit a context.compacted runtime event from both drivers (main
session only, not aborted) and record it as a compaction row with
engineCompaction set and no summary. CompactionChip shows a small
"Chat condensed into a summary" card for it; the row is never context
and the context rebuild ignores it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The UI polish now shows an untitled thread as 'Untitled chat', which had no
zh or zh-tw text, so Chinese users saw English; the picker test still
expected the old 'New thread' wording. The Apps row's logos rest at 60%
and brighten on hover; they're decorative, so the touch test lists them as
not an action.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A bot can open a thread of its own on another model (start_thread's
model_selection, from #4236) and, with report_back, have the result
resume it like a teammate's. It finds the models with list_models.

list_models answers from the registry's in-memory state, so it never
probes an engine, and it checks each listed model with the same refusal
start_thread applies, so a listed model always opens:
- current is the model this conversation runs on, listed first.
- each engine lists a short list (all of a catalog of 12 or fewer, else
  8) and `more` counts the rest; `search` finds them across engines,
  capped at 20. A 2,000-model OpenCode catalog stays under 400 bytes.
- an engine no thread can run on (signed out, unavailable, permissions
  that don't carry over) lists no models and says why in `unusable`;
  three refusals in a row end any engine's scan.
- engines that can't run anything now (not set up, turned off) are
  named once in `unavailable` instead of a row each: on a fresh
  workspace with one working engine the list is 588 bytes, not 2,493.
- model_selection takes an effort from the engine's `efforts`.
- list_models is a reviewed read-only tool.

A report-back thread comes back like a teammate's, both ways:
- the opener can answer its own thread's NEEDS INPUT question:
  coordinate_bots with `answers` naming that thread's assignment is the
  one message a bot may address to itself.
- a thread whose chosen model can no longer run when its turn comes
  (signed out while it waited for a slot, or after a restart) fails
  with that reason instead of running on the bot's own model.

Rebased onto main: a bot's second own thread is no longer refused as
waiting on itself (the crossed-wait check now skips own threads, which
can never ask the bot back), the "Opened thread" row reuses the translated rooms line,
and the Cursor fixture answers --version as cursor-agent does. The
own-thread helpers moved to server/host/own-threads.ts, so
server/index.ts shrinks.

The tool list grows by 707 bytes per profile; BUDGET_BASELINE moves to
the measured sizes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps the browser profile erase that joins a stop in progress, alongside
main's downloads cleanup on every stop. Leaves out the routine-run rollback:
main batches those writes through saveLater.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/message-file.ts
#	src/components/ChatMarkdown.tsx
A short wait_seconds cut off the first status read too, so a Boat answer that
took a little longer came back as an error instead of the status. The first
read now keeps the call's own time limit; later reads still return the last
observed status when the wait runs out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the test that expected the first read to be cut at the requested
wait, which this train changed on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the fix for main's own test failures after the UI polish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both skins added themselves in the same places. Kept both, with Diwali next to
Halloween and Aurora last, which main's Aurora test expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pt-br pack is complete, and i18n.test.ts checks that it has every
English key. Add the two new chat.engineCompaction* strings and their
source hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pi sends compaction_end with aborted:false and an errorMessage when
automatic compaction fails. Treat that like an abort so the chat does
not claim a summary was made. The fake pi CLI now sends one failed
attempt before the successful one; the test still expects one marker
per turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pi can end a compaction with no result and no error when it skips it (for
example with an expired credential). Treat only a compaction_end with a result
as a condensed chat, and flush streamed assistant text before the marker so it
is saved ahead of it and not joined to later text. The fake CLI now sends a
failed, a skipped and a successful attempt, with a fails-only switch for a
no-marker test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up train: Codex plan token renewal, OpenCode recovery and discovery sessions, page Stop, unsaved Pause
Add a Diwali skin with firecracker and sweet mascots
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
DashScope/Qwen streams a tool call's id only on its first chunk and sends
"id": "" on the chunks that carry the rest of the arguments. ChatToolCalls
treated that "" as a changed id and failed every tool turn with "provider
changed or omitted a tool-call ID". In streamed deltas an empty string now
counts as omitted, like null; finish() still requires a real id, a changed id
still throws, and whole replies are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Pi-compatible CLI that sends a non-string summary (false, {}) no longer
gets the condensed marker; the fake pi CLI now sends one too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clicking a link to a folder in a chat message now opens that folder in
Finder or Explorer when the desktop app runs on the computer that holds
it. Files, the web, phones and windows connected to another computer
keep today's behaviour (save a copy / folder listing).

Main only ever hands a plain folder to shell.openPath: links are resolved
first, and files, Mac app bundles (Name.app or Contents/Info.plist) and
dotted folder names are refused, so a link can never launch anything.

Feature requested by email (bug inbox), approved by the maintainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the desktop can't decrypt credentials.bin it refuses every key save,
and the Apps warning only says to restart. Add a "Reset saved keys" button
in that warning, shown only when this app's own desktop could not read its
store this launch. After a native confirm, main moves the unreadable file
aside (credentials.bin.unreadable-<ms>, never deleted) and relaunches; if
the move fails it shows an error and does not restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Typing another computer's MausBot desktop app address (or its 6-digit
phone pairing code) into Connect to a server showed "not a MausBot
server" or "code from an older MausBot". The desktop app's Remote access
answers the descriptor with a 401 pairing refusal, so the probe now
recognises it and the sheet explains that one desktop app can't connect
to another and points to My Cloud. The 6-digit code message says the
same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Disable the link while a folder open (or its save-a-copy fallback) is
pending so a second click can't start another save, and trim narrative
comments as review asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page a bot shows in chat can now be pinned to the sidebar's Tools list
(Advanced mode), next to pinned web panels. The pin opens the page full
size with Reload and Unpin, survives a restart, and counts toward the
same six-panel limit. Rooms don't offer the pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The button waits for the desktop's answer, so a double click can't open
  two confirm dialogs.
- When the saved keys can't be read but the apps list still refreshed
  (for example a key from the environment), the reset shows in its own
  warning line instead of disappearing with the stale notice.
- If the app starts quitting while the confirm dialog is open, the file
  is not moved, since no restart would follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
answerLine() quoted the answer with the 400-character limit used for
names and questions, so an answer to a handed-on assignment's question
(from a bot via coordinate_bots, or from the person) reached the asking
bot cut at ~400 characters while the sender was told "injected". The
runtime already stores answers up to 12 000 characters; quote it at
that size. Questions and defaults keep the 400 limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reinstalling or moving to another computer with the same Composio project
key made up a new Composio user, so every app connected before looked
disconnected. When an installation has no Composio user yet, look at the
project's connected accounts: if exactly one openmausbot_ user exists and
still has a live connection, keep using it. None, several, or a listing
error fall back to a new user as before; existing installs never look.

listConnectedAccounts moves to composio-project.ts so the session code can
share it; null lists every user and an optional stop ends paging early.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page in a bot chat now shows as a short preview card. "Open page" opens it
in a large view that fills the messages area while the message box stays
usable below; Point keeps it open, Esc/X returns to the chat. While a page is
open, typed messages carry {appId, rev} and the server adds a short context
note so "this page" resolves to it. The pool keeps the open page's frame live,
so its scroll and interactive state survive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the page's chat is loaded in the app, its stored version (doc and
rev) is part of the pinned view's fetch key, so a bot replacing the page
or a watched live folder changing refreshes the pinned view, as the chat
does. Otherwise Reload still fetches the current version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only a file that is really gone (ENOENT) counts as moved; any other error is reported.
A remounted Reset button waits for the open question instead of asking again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A project too big to read in 4 pages can't show there is only one OpenMausBot user,
so setup goes on with a new user as before instead of waiting on every page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The frame no longer remounts with the old page when the bot's chat is unloaded or reloaded;
only a new stored version changes it. A loading placeholder shows while the page is fetched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated on main plus only the catalog text change, so no contributor code ran
here; the other PRs in this train don't touch the catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
A .md or .markdown file in a message (chat chip, inline link, side panel Files
list) now opens a preview that draws it the way the chat draws a reply, with a
toggle for the raw text, reload and save. Files over 2 MB show a short notice.
Paths inside the file stay plain text; no message context is passed to the
renderer, so they never fetch other files. The renderer is loaded lazily.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(pages): compact page card that opens beside the chat, message box stays usable
Train: bot-box hard links, MCP add at public addresses only, Fish redirects + Podman skills, per-person notification reads
# Conflicts:
#	src/components/app/AppMessage.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stored answer is already clipped to 12 000 characters; redaction can
lengthen it by any factor, so a fixed quote cap could still cut its end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Content-Length can be missing or wrong, so the probe now streams the body
and cancels once it passes 4 KB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The compact page card now shows every page in a 220px preview that opens beside
the chat; the frame inside still takes the page's own height. The test expected
the card to grow to the page.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Memory tidying, rules for every bot, and instruction history in Simple

- Memory upkeep now files finished or stale work logs out of MEMORY.md into
  the project's topic or work-log, and never offers a rule the person gave
  for moving. Moves stay capped at 20 a pass and land in Changes with Undo.
- Bot settings show one line, "This bot loads a lot every turn.", with Tidy
  memory, only when the person's own always-loaded text passes 24 KB with at
  least 8 KB of memory, and only while Memory and its upkeep are on.
- "Rules for every bot" sits next to About me, saved the same way, sent only
  to admins, and loaded in private and group chats just before each bot's
  instructions: department context wins over the rules, the bot's own
  instructions win over both. The preview counts it.
- The instructions editor shows memory's Changes list for SOUL.md, built from
  the existing profile history and rollback route, naming the person, the
  bot, an outside edit or a team setup. Team setup and library updates now
  record their instruction changes too.
- The Simple Memory page gains the upkeep switch, the lending review notice
  and Changes with Undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Expect the Memory upkeep switch on Simple's Memory page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The fake Electron app pointed the updater's log and quiet-install record at
/unused-updater-test-log, which on Windows CI is a real folder on the runner's
drive. Each test now gets its own mkdtemp folder and removes only that one.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Train nov8-e: 18 PRs (Aditya's 4, phone tools, page saving, older fixes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/cloud-computer-background.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/de.json
#	src/locales/es.json
#	src/locales/fr.json
#	src/locales/hi.json
#	src/locales/source-hashes.json
#	src/locales/tr.json
#	src/locales/uk.json
#	src/locales/vi.json
* Simple bot panel: always allowed, reply style, notifications, Slack, who can see it, Inspector

Bot settings now holds what only the Advanced dialog had:
- the tools the bot no longer asks about, under Before it acts, each with a
  remove button;
- Reply style as two pills, and this bot's Notifications switch, in one card;
- a Slack row once the bot has its own Slack app;
- Who can see it, for an owner or admin of a self-hosted web workspace, on its
  own panel page.

The Details tab lists the Inspector beside Find and Activity. A test pins
Simple's bot menu to Pin or Unpin with no folder actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Simple computer panel: VPS start, replace and choices, the Android tab, Keep this computer's bots

While the bot's VPS is not running, Simple offers the same start, prepare or
replace button as Advanced, the cloud computer picker and, for a bot that
picks its own place, Start VPS automatically. "Show advanced controls" stays
only where there is nothing to press.

The Android tab shows after Screen whenever a device is connected, and the
"Keep this computer's bots on this computer" switch no longer needs Advanced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Simple settings: new bot defaults on AI, Show tool calls on Looks, More settings

- AI holds one row for new bots: the effort they start with, and Edit for the
  rest of the defaults.
- Looks holds the Show tool calls switch.
- A More settings row at the bottom of General opens the pages Simple hides
  (decision model, image generation, skills library, backups, workspaces,
  experimental) and a Limits group: group turns, tool time limit, parallel
  threads, event log cleanup, prompt cache keep-warm and saved steps. Search
  finds each of them as "· More settings", links to the hidden pages still
  open them, and each has a Back to More settings.

New strings in all 16 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Simple fold-ins: wait for config before Who can see it, leave More on a new link

- Who can see it shows, and its panel page opens, only once the workspace's
  config says it is not a team.
- The Looks and More sub-pages belong to the request that opened them: a link
  to another setting, even one back on General, shows that page instead.
- Keep this computer's bots drops a comment that only narrated the code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Addresses CodeRabbit r4507856011 and r4507856018 on #4962.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses CodeRabbit r4507849458 on #4979.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A secret typed into a bot's card now lasts: it is saved, sealed, in the
same encrypted file as saved logins (logins.json.enc, same key, still
version 1, with a new optional secrets list), kept to the asking bot and
always masked. When the bot asks for a secret by the same name again, in
any conversation or after a restart, it gets a fresh one-use ref or a
private file made from the saved value, with no card. A secret given for
OpenMausBot's own tools only is never written to a file without a new
card, and the bot can ask again with replace when the saved one is wrong.

The store is renamed VaultStore (server/vault-store.ts). New admin-only
routes GET /api/vault and POST/PATCH/DELETE /api/vault/secrets list and
change saved secrets without ever returning a value; /api/logins is
unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Addresses CodeRabbit r4507547860: the default branch keeps main's 400-char quote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloud background status: keep the last output when a check fails (#4924's follow-ups)
A stored answer is clipped at 12 000 characters, so a secret at the
very end can be cut and no longer match redaction. When the answer hit
that limit, drop its last partial word before quoting it in full.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clipping a stored answer at 12 000 characters could cut a held secret
mid-way, and a secret with spaces could leave its first words behind
even after the last partial word was dropped. Mask secrets in the full
answer first, only when it is longer than the limit, and drop the
envelope-side tail trim that this replaces.

Addresses CodeRabbit r4508031847 on #4969.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`localhost` resolves to both loopback addresses, so a browserEngine.egress.allow
entry for 127.0.0.1:<port> left localhost:<port> refused via ::1 (and the other
way round). An entry for exactly one loopback address now also allows the other
on the same port only; ranges and other addresses are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a room, a bot @mentioned by another bot stayed silent if it had already
spoken that round, and bot replies were followed only one hop. Now a bot
that spoke before the mentioning reply answers again, a bot that already
answered within that reply's own chain is still skipped, and the chain is
capped at 3 hops per round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot that spoke earlier could be run twice for one reply when a nested
mention already woke it, and @everyone from a bot re-woke bots that had
already spoken. Count each bot's turns per round and require a direct
name mention for repeat turns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): bump version to 0.1.150
When a turn has both the built-in browser and a computer (Local VM or cloud
computer), the prompt sent every web task to the built-in browser and never
said the two browsers share no cookies. A bot whose site was already signed
in on the computer went to the signed-out built-in browser, saw "not signed
in" and asked the person to sign in again. The two-surface wording now says
sign-ins are separate and that a web task for a site already signed in on the
computer stays there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The one-time move reads, freezes and carries whichever server runs on the
desktop's one port. Its only guard, ownCopy(), was false just while the
clean workspace or a rail profile ran, so a named local environment open
when the move started by itself was carried and frozen in place of this
computer's data folder, and its identity was the one the Admin heard.
Forgetting the copy after 30 days, a lift and a top-up had the same gap.

ownCopy() is now true only while the server runs on the data folder itself
(compared resolved, so a trailing separator doesn't matter; no server is
not the own copy) and no swap is under way. Any other folder gets what the
copy's own files say (its marker and identity) and everything else is
refused, as the clean workspace and profiles already were. A named
environment the person chose stays open: what must reach the copy waits.

A first move no longer starts while another folder runs: no journal, no
"Moving your bots" line, no failure counted. The Admin hears the existing
local_unavailable reason, and the move looks again each minute, so it
starts soon after the person opens this computer's own workspace.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Address review: the browsers may share sign-ins (My Chrome), match the account
the task needs, honour an explicit Browser tab request, drop a narrating test comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Free a chat that an allowed lending card left showing Working

Allowing the lending card after the turn that raised it had ended turned
the conversation's resting "waiting-on-you" (busy false, set while another
card stays open) into "working", which marks the task busy with no turn.
carryOn then read the thread as busy, gave up after CARRY_ON_MS without
continuing, and nothing ever cleared the flag: every queued message and
hand-off was held, and Stop found nothing to stop.

- The card's answer goes back to "working" only when a running turn waited
  on it, as every other card's answer does.
- A person's Stop frees a conversation no engine turn holds: a busy flag
  with nothing running, or a setup that never returns.
- The turn watchdog frees a conversation shown working that no watched
  turn, dispatch or settling turn holds once the stall limit passes, and
  stops a parked turn whose engine has no process for it once it has been
  silent past the computer wait plus the stall limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep live waits on pid-less engines; release a stopped setup's computer

- The parked cap now applies only when the turn's engine is known to be
  gone: its driver tracks a process and has none for the turn, or the pid
  it names has exited. An engine that names no process (the in-process
  OpenAI-compatible ask_user path) proves nothing, so a person can still
  answer its question after any wait.
- Freeing a conversation lets go of the computer its stopped turn held:
  its claims, Local VM lease and remote computer. Only a thread nothing
  holds is freed, so a newer turn's ownership is never touched.
- A setup re-checks its claim after preparing its tools and before it
  starts memory tracking, so a setup that resumes after Stop cannot start
  tracking over the turn that replaced it.
- A Stop that cancels a routine run frees the conversation the same way,
  when the run's setup never returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Checking the computer first could start it, and a failed start ends the turn
before the bot can ask for a Browser sign-in. Now the bot uses only what it
already saw in the task, so it never starts the computer just to check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep a moved Cloud's bots where they are when its address changes

A Cloud that moves to another provider answers at a new origin. The
desktop's one-time move journal was matched by origin, so it read the
new address as My Cloud ending and could bring the bots back while they
still ran on the Cloud. The home also refused its old origin, which a
forwarder on the old address still sends from browser tabs and devices
paired straight to it.

Desktop: the journal keeps the Cloud's id from the verified session's
list, and the Admin's Cloud is the same one when its id matches or the
journal's address is in its new formerOrigins (read beside each origin
in the account summary, absent today). The journal then follows the
Cloud to its new address and the move goes on, or stays done, there.
The window opens it there and its saved place moves with it. A Cloud
that truly is another still ends the move as before.

Home: OMB_CLOUD_LEGACY_ORIGINS, comma-separated exact https origins,
read only on a Cloud home. The server's same-origin checks count
exactly those as its own besides its Host's; X-Forwarded-Host stays
ignored. The edge needs no change: the forwarder rewrites Host to the
new name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Never match a moved Cloud by an old address when the ids differ

A former address listed for My Cloud no longer makes a journal's Cloud
the same one when both ids are known and differ: that journal's Cloud is
another, and ends or comes home as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Make Simple the only mode (flip, reversible)

Advanced mode reads as off everywhere and nothing turns it on; its code
stays. One line in src/lib/simple-only.ts (SIMPLE_ONLY = false) brings the
switch back, and each browser gets back the mode it had.

- No way back to Advanced: the mode row in Settings (Simple General,
  Advanced General, a paired remote client's Appearance), the Simple mode
  popup, the computer panel's "Show advanced controls" (now Open VPS
  settings), and Settings search's "· Advanced" hints.
- Automatic recovery moves into More settings → Limits, and search finds it.
- At first boot, before first paint: a browser that was on Advanced (chosen,
  or defaulted by a prior run) owes a one-time "simpler look" notice in the
  Simple mode popup's queue slot; omb-advanced-mode is deleted; font, chat
  width, threads shown, sidebar tools layout, pinned circles, universal pins,
  run card and web panels go back to their defaults once.
- A paired remote client keeps its "advanced || remoteClient" controls.
- app_active.mode is always "simple"; new_look_notice documented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Simple only: fix what the flip left behind, move the renderer smoke to Simple

The renderer smoke ran in Advanced mode (its preview had a prior-run key).
With Simple the only mode, a few things a person used were no longer
reachable, and the smoke now drives Simple's own paths.

App:
- Settings → AI: the New bot defaults row offers Share as preset… again.
- The bot panel: Library → Skills offers the organization's skills, and
  Bot settings says where an installed bot came from.
- Code blocks: the plate's buttons are 44px on touch screens, its menu's
  button shows a focus ring, and the menu opens anchored in the viewport
  instead of clipped inside the block.

Renderer smoke (same subjects, Simple paths):
- Find in conversation and Inspector from the bot panel; keys on the AI
  page's API keys; the model picker that sets the bot's model for all its
  chats; the plain-words tool chip; the sidebar search pill. The run card
  ("This run", Save as skill) is Advanced only and its checks are dropped.
- The thinking timer: conversations from the bot panel, elapsed time from
  the working line's tooltip.
- Bot tools: MCP servers added in Apps, switched per bot on Bot settings →
  Apps it can use; usage from the panel's Usage row into Settings.
- Presets and the organization library through the fixes above.
- Mobile code blocks: Simple's plate (Copy, and Wrap lines in its menu).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep ComputerPanel under its size limit

main's release lowered the listed size to 1782 lines; the SIMPLE_ONLY import
took one more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On Linux with NVIDIA the app turns the GPU off, so the glass pop-ups'
28px backdrop blur is redrawn on the CPU: an open Apps pop-up kept the
GPU process at 5.6% CPU (1.9% without the blur) and scrolled at 54 fps
with 33 ms p90 frames. The main window now tells its page, and
.glass-surface uses the existing reduce-transparency solid look there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once a task has started in the Browser tab it stays there, so browser-local
work is not lost at a sign-in step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Chief's day-two recap ("So far I've sorted 29 emails...") was posted on
any tick once the morning came, checking only that no turn was running. In
the gap before the person's message got its answer, it landed right under
that message and read as an unrelated reply. Now it waits until the newest
message in the chat is no longer the person's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preference no longer overrides a place the user named, gives way when the task needs something already in the Browser tab (such as a cart), and falls back to the Browser tab when the site turns out signed out on the computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The runtime holds resuming hand-offs behind a busy turn as well as queued
ones, but the queued-note set dropped every id whose status was not
"queued". Two resuming hand-offs behind one turn pruned each other's note,
so the line was posted again on every queue check and piled up in the chat.
Count "resume" as still held too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up: a launch with --disable-gpu renders on the CPU too, and the remote
(My Cloud) page needs softwareRendering in the remote-safe bridge keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up: use the active path, count widget-only turn replies as answers,
and ignore server-written lines (no turnId) such as the first-look announcement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Mac user's scheduled run (0.1.150) failed with "claude unknown option '--autocompact'", and its retry failed the same way. The flag is passed whenever the last snapshot's `claude --help` listed it, and nothing turned it back off when the CLI actually refused it, so every turn kept failing until a snapshot saw a different CLI version.

When a turn's claude exits before result with that exact error, leave the flag off from the next launch on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address review: a resumed launch that refuses --autocompact now relaunches
at once on the same cursor instead of starting fresh, and a help probe
still in flight cannot turn the flag back on for the version that refused it.
The test asserts the refusal happened and the cursor is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An automation whose run waits only on work it handed to teammates showed
"Needs you · It's waiting for your answer." in the automations list, though
nothing was asked of the person. The server marks that wait with a fixed
attention line; the client now recognises it (shared ROUTINE_HANDOFF_WAIT),
keeps the automation Working, and words the run line as waiting on the
handed-on work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A refusal from an older CLI's turn that exits after a newer CLI's help probe
no longer turns the flag off for the newer CLI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up: a room goal's own wait is never treated as a hand-off wait, and
when a newer run waits only on teammates, an older run waiting for the person's
answer still makes the automation Needs you, with Answer opening that run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Antigravity's Google sign-in redirects to 127.0.0.1 on the server. On a
Cloud (or a desktop paired to another computer's server) the person's
browser can't reach that, so pasting the redirect address is the only way
to finish, but that step sat inside a closed "Signing in from another
computer?" fold. Open it by default there; keep it folded on a local
desktop, where the redirect lands by itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud, a Claude Code custom endpoint failed every turn with
"bwrap: Can't find source path .../providers/claude-<id>": the endpoint
gets its own CLAUDE_CONFIG_DIR, nothing creates it (no sign-in), and the
bot box binds it as a required path. Make it before the spawn, only for
custom endpoints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit review on #5062: a failed endpoint folder no longer leaves an empty
omb-mcp- temp folder, and the box test asserts the endpoint's own bind and skips
where the checkout itself is under /tmp (never bound).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit review on #5048: passedAutocompact no longer searches every argument
(a --tools value could match), and a later stderr line after init can't turn the
compaction window off or resend an accepted turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The relay client opens the first node's socket before it closes the
second node's, so the second relay drops the host only once that close
frame arrives. The test checked the second relay right after the first
one admitted the host, and failed whenever the close was still in
flight: on main's nightly runs on Nov 6 and 7, and 11 of 30 local runs.
It now waits for the second relay to drop the host.
A Cursor session/load that names a missing id was treated as a generic invalid params error, so the turn failed and the dead id stayed on the thread. The same thread now opens one new session and keeps its transcript.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A truncated or partial message could miss the real session id, or treat a longer id and an unrelated "not found" as the same failure. Recovery now reads the uncut diagnostic and rebuilds only when that id is the saved one.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Regenerated on `main` at `1de1164d` (0.1.150): the pack now covers every English string in this release
(9909/9909), including the 32 added since the first version of this patch, and the routine line names its
weekday, month and zone in Chinese (`每周星期一 09:00 中国时间`).

The pack keeps upstream's own values wherever `main` already has one, and only adds what it lacks; the
former partial-completion strings, the server-side routine lines and the 0.1.150 additions are all in it.

Tests: `pnpm i18n:check` passes with every placeholder intact and 16 catalogs valid; `routine-cron-text-zh`
pins the Chinese weekday, month and zone and that English and Traditional Chinese are unchanged.
A linked password manager is now a VaultProvider (server/vault/providers.ts): it lists its items by name and site,
with the bots each may use, and reads a value only at the moment a bot uses it. 1Password is the first one.

- 1Password API Credential, Password and Secure Note items are secrets a bot may use by the item's title (other
  fields as "<title> <field>"). request_credential hands one over by one-use ref or private file with no card, read
  from 1Password then, masked like a filled password, never saved in the Vault. A secret saved in the Vault under the
  same name comes first; a vault kept to other bots stays hidden.
- 1Password logins work as before, now built through the same provider path.
- GET /api/vault lists linked secrets beside the saved ones (names only, read-only).
- The bot's prompt names the secrets it may use, never their values, so it asks for them by name.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Cursor Ask mode never got --force, and session-provided agents tools
were also missing --approve-mcps and stayed on stdio proxies. Always
pass --approve-mcps, send own MCP over HTTP, and respawn when the
agents bearer rotates so team tools stay mounted.
A stream that ends with neither finish_reason nor [DONE] raised a
ChatProtocolError the resend gate always rejected, so the turn died on
the first attempt. Classify it as transient (stream_truncated) and let
exactly that error through the gate under its existing guards — nothing
streamed, no tool call handled, not aborted, attempts left — so a resend
repeats no text and executes nothing. The backoff scale defaults to 1
only for this reason, which also covers callers that never opted into
transient retries. Other transient failures are unchanged.

Part of #5012.
Adds a bulk POST /api/inbox/read-all endpoint scoped to the calling
person, and a header control that appears only while something in the
inbox is unread. The control works in the desktop panel, the phone
sheet and simple mode.

Asks are never answered, closed or marked done by this action; they
only lose their unread marker.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
A self-hosted Linux server with no Google Chrome and no agent-browser Chrome
fell back to agent-browser's own browser search, so every page open failed with
"Chrome not found ... Run `agent-browser install`". Chrome for Testing was pinned
and auto-downloaded only on Apple silicon Macs.

Pin Chrome for Testing 153.0.8010.47 for linux64 and linux-arm64 (size and
SHA-256 measured with scripts/pin-chrome-for-testing.ts) and let a Linux server
use the existing verified download path. The Linux desktop app
(OMB_RESOURCES_PATH) keeps its bundled headless shell, unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At Full access a bot with no sending rule sent Composio code runs without
asking, but one set to Send without asking got a card for every code run.
Under allow, a call the app cannot inspect now goes out without a card at
Full access, as with no rule. Below Full access it still asks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A chat engine whose address is Ollama (port 11434, added as Ollama, or it
answers Ollama's /api/tags and /api/version) is now presented as Ollama
everywhere the instance list goes, instead of "Other (OpenAI-compatible)".

- Its models come from /api/tags, with size, parameter count and
  quantization; embedding models and our context-window names are left out.
- It needs no API key.
- The engine is unavailable, with the reason, while Ollama isn't running,
  can't be reached, or has no models yet (with the `ollama pull` command).
- A model whose /api/show capabilities lack "tools" runs its turns without
  tools instead of failing on Ollama's refusal; one without "vision" gets no
  images.
- The model picker heads it "Ollama" (no "API key") and shows each model's
  facts; the setup panel shows Ollama's reason instead of an API key form.

Saved configs are unchanged: the driver stays openai-compat, so bots, the
new-bot default, background calls and every other place an OpenAI-compatible
server works keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What it remembers lists the notes one per line with add and remove, and
the full text editor only lived in Advanced settings, which the simple
panel does not reach. An "Edit as text" row now opens the whole file in a
text box right there.

It saves against the hash the file was opened at, so a note the bot
writes meanwhile is a conflict to settle (Reload keeps the typed draft
beside the bot's version, or Overwrite with mine), never silently lost.
Switching bots or turning memory off closes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address CodeRabbit review on #5093: Puppeteer/Playwright cache entries count
only when their Chrome executable exists, a missing unzip gets a clear
message, and the docs say the download needs the built-in browser on, x64 or
arm64, and unzip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The move's check asked My Cloud for its whole manifest in one request: every
attachment its rows name (each stored row of every conversation parsed, and
kept parsed in memory) and every bot file's hash. On a throttled 2-CPU Cloud
with 25 bots that took longer than the 120 s a request may, so the check
failed as "The operation was aborted due to timeout", lifted the freeze and
went back to the copy an hour later, to time out the same way.

- My Cloud's manifest leaves out the attachments and files when asked; the
  attachments it does list come from only the rows that name one, read
  straight from messages.db. A check's chats, ids and stamps read ids and
  parents from messages.db, never parsing a conversation through the store.
- The check asks the chats 200 conversations to a request (split in two on a
  timeout), My Cloud's files a bot at a time, each request given time sized to
  its work, and waits for a slow Cloud while it keeps answering. A
  conversation found whole is not asked about again, so a check cut short
  goes on where it was, five minutes later instead of an hour.
- The copy lists bot files a bot at a time and stamps each conversation's
  earlier lines once.
- The line says how far the check is, that My Cloud is slow and when the move
  goes on, or which computer it waits for.
- Two computers moving into one Cloud take turns at the heavy part: a lease
  on My Cloud, held through a copy pass, or from the freeze to the switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The linked-1Password test asserted the file's POSIX mode (0600), which Windows doesn't keep, so the Windows vitest
shard failed on main since the Vault change. It now checks the mode where it exists, as the other private-file tests
do (attachments, cli-setup, admin activity, connected apps). The file's path and contents are still checked
everywhere.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A bot handed work by another bot could not call select_computer, so on a
cloud or VPS desktop fill_login could not move it to the built-in browser
and it looped asking the person to switch. Hand-off turns may now select
the built-in browser only (never another computer); the turn continues
there with the same hand-off, and the asker gets the browser turn's result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pass of the move asks a read, or a chats request My Cloud adds by id, again
through a blip the length of a Cloud restart instead of ending the pass. A
check counts as having got somewhere only once some of its work is done, so a
Cloud that answers only the manifest keeps the hourly wait.

The test now runs the whole move, copy to switch, of 100 bots and 3,000
conversations against a slow Cloud. A summary keeps up to 200,000 items.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pacman's post_remove passes the old version as $1, so the remove hook's
remove|purge gate exited early and the launcher link and browser profile
were never cleaned up. Digits now count as an uninstall (dpkg never passes
one). package:pacman duplicated package:arch. The docs say this package is
built by hand and not official, since CI and releases only build AppImage
and deb. CONTRIBUTIONS.md does not belong in the repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One exact quote from the person per cited conversation, the existing
stated-in-conversation and secret checks, and the check that every number,
path and URL in an entry comes from those quotes. The name, month and family-word
lists and the relative-date rewriting only worked in English and Polish, and
the name check would have refused nearly every German or Cyrillic fact, so
they are gone, along with the message timestamps that only fed them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
text-accent and hover:text-accent painted the fill colour, which sinks below
4.5:1 on some dark skins' panels and cards. One rule routes them to
--color-accent-text, the same mechanism as the filled surfaces above it. Midnight's
button labels stay white.

Co-authored-by: Osvaldo Gehm <osvaldo@odig.net>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a desktop or self-hosted server every outside event's report went into
the bot's main chat, so a busy webhook buried the person's latest conversation.
It now gets the same "<name> · Results" chat a Cloud home gives it. A run that
reported into a person's chat before keeps moving off it, while the results
chat keeps being reused.

Co-authored-by: Praveen Bishnoi <parveenbishnoipb2929@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reload after a second conflict keeps the first kept draft too.
- The text is read-only while a save is in flight, so typing after Save is not lost.
- pt-br translation for Edit as text (the i18n complete-pack test needs every English key).
- Tests: two Reloads, locked while saving, a save that lands after switching bots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One burst splits a task into many threads of the bot's own, runs them up to
the plan's limit and merges the results. This is the part that holds no
wiring yet: the limits per plan, the SQLite store whose counts live on the
burst row, the lane that takes children one at a time from an index, and the
manager from preview to merged result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pt-BR botPanel.memory.editText.
- docs/composio.md: code the app can't read asks below Full access; at Full
  access it goes out unless the rule is Ask every time.
- Room mentions: the same lines joined so server/index.ts stays under its pin.
- Codex MCP disable: the fake parses without the repo's TOML module, keeps its
  exec bit, and codex.ts stays at its pin.
- Windows-safe paths in the Chrome download and thread event tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/main.tsx
The company sign-in wording let a page's SSO button start a provider login the
person never asked for. It now needs the person to ask.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A MausBot hidden from the sidebar ("Not now" on the welcome card, or Hide)
stayed out of every department and every search, even after it was renamed
or moved to a department. A renamed MausBot ("Nova") could then only be
reached through an Inbox ping.

Renaming the hidden MausBot or moving it to another department now turns
"show in sidebar" back on, unless the same change sets it. While the sidebar
has a search, the viewer's own hidden MausBot is listed when it matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cancelling a tree gave every descendant the top node's reason, so work
that never asked anyone a question was recorded as "the person did not
answer". Work under the node now reads "Stopped with the request it was
for", the words a person's Stop already uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An opaque team call (code that can reach any app) was allowed when the team's
connected-app list could not be read, because a failed read counted as an empty
list. The team check now reads the inventory directly and refuses when it cannot
confirm the list: an unreachable backend, a malformed answer, a broken account
walk, or a broker that says its read came up short.

Deployed brokers do not send the completeness field yet, so a missing field means
what it means today: complete. Malformed rows are counted as incomplete but
stay in the display list. Only server/ changes; nothing under
cloudflare/composio-broker.

Co-authored-by: Sebastian B <sb@wmc.sh>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The request budget refused with a bare "Room handoff budget exhausted",
so bots told the person to reset something nobody can reset. It now says
the limit belongs to the request, that results renew it, and what to do.
One coordinate_bots call to several teammates counts as one request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The folder link called the desktop's open-folder with whatever path the page held, before any message or workspace check. It now asks the route first and opens only a folder that route just authorized; the listing stays as the fallback, and a refusal never reaches the desktop. Every file link also said "Opening..." for its whole save, so those ChatMarkdown changes are reverted.

The handlers in electron/main.mjs are one line each so the file stays within its pin, and the first openFolder test resolves the expected path with fs.promises.realpath (Windows 8.3 names).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two handlers now live in electron/secure-credentials.mjs behind installCredentialStoreIpc, one line in main.mjs, so the file stays within its pin. The unreadable state is read when the page asks rather than captured at install, so it follows the launch read's real result. Tests cover both.

The confirm stays as a deliberate exception to the no-ask-first rule: "unavailable" can be a keychain failure on a good file, and a reset drops every key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh installation connecting a project key could silently become the project's one earlier OpenMausBot user. On a Team Cloud that would hand that person's connected apps to every member's bots, so the lookup is now an option on prepareProjectSession, off by default, passed only from the config route when the server is not a Team Cloud. A Team Cloud never lists the project's accounts, and neither does a session set up later.

Tests cover the default-off path, and the config route on a Team Cloud and on a personal installation. docs/composio.md now says what actually happens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Redaction, a quoted earlier failure, or a different capitalisation of the id could drop a live session or keep a dead one. The check now uses the original message privately, and the text shown to people stays redacted.

Co-authored-by: Cursor <cursoragent@cursor.com>
Handed-off work parked on the person never expired: the host set no
limit, cards had no clock, and the stall check skips any tree with a
parked node, so its requester waited for good. Parked hand-offs now get
one reminder after a day and close after three, on the wall clock so a
restart doesn't reopen the window. A root's own cards stay unbounded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before the first move to My Cloud, a popup asks which bots go, with "Move
everything" as the quick way. A bot's menu offers "Move to My Cloud" later.

The chosen bots go in one move over the phases a bot's move into a team runs on,
with the send kept to them. This computer stays home and never freezes: only
the chosen bots are held, each on its own, and the others keep working here.
A room goes when all of its bots do. A bot that moved stays here archived, as
one row in the sidebar that opens My Cloud, and comes back if My Cloud ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thread a bot opens on itself with start_thread report_back already
returns its result to the opener (#3920), but the opener could not send
it a correction or follow-up: coordinate_bots refused the bot itself.

coordinate_bots now lets a bot address itself when thread names a
report-back thread it opened from this same conversation. While the
thread runs, the message goes into its running turn; after it finished,
it runs as new work in that thread and its result resumes the opener.
Everything else sent to yourself is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One built-in MCP server that failed stopped every later turn, in seconds and without naming it: only two built-ins could be left out, a failed mount threw with no server name, one failed call closed the whole session, and nothing noticed the Mac driver had died.

A built-in other than the agents server is now left out when it can't start, and the turn says so. A failure during a turn ends only that server. What a server said on stderr is kept, masked, and shown with its name. The Mac driver is watched and started again.

On Cloud homes a server gets 30 seconds to start, an overrun reads as a startup timeout, openai-compat retries transient failures, and chat-runtime turns wait for memory like other engines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Someone back from buying My Cloud is looking at My Cloud, not this computer's
page, so asking only there left the move waiting with no one asked. The list
comes from this computer's server, whichever page shows it; My Cloud's page
can start it only from a real click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses review: patchBotProfile, setBotsSection and updateTeamMembers now clear sidebarHidden like patchBot, and search reveals only the viewer's own hidden default bot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Any other server on this computer or network was asked for /api/tags. It now
gets the /api/version question the context-window code already asks, and no
more unless it answers with a version.

Looking for Ollama can be pointed away from this computer's own port, so the
test no longer depends on what happens to listen on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engines deny an unanswered approval after 15 minutes and the turn ends,
so handed-off work to an Ask-level bot failed whenever nobody was
watching. Work a person started now parks on a question card instead:
it lists in the Inbox, survives restarts and is bounded like any parked
work. The answer only lets the bot try again. The engine's own prompt
still gates the action, so nothing is granted here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A gateway error on My Cloud's own description is waited out instead of read as a
Cloud too old to take a move. A conversation is checked again when the path it
shows changed on either side, though its rows did not. An answer about the
attachments that names no list fails the check. A check waiting for My Cloud
ends when the person stops the move, and a failed one lifts the freeze before
it lets go of the lease.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot proposes a burst with one tool, or the person types /burst; either way
a preview card appears and nothing runs until the person presses Run. Pressing
Run starts the parts through the normal turn start in the burst lane, merges
the results on the bot's own model in the parent chat, and files the result in
the Inbox. The plan limit is enforced in the server at Run, and burst threads
hold no place under the plan's turn cap or the per-bot thread limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preview shows the plan with Run, Edit and Cancel; the same card then shows
the progress, with Retry failed and Cancel all, and lists the parts when
opened. /burst sits in the composer's slash menu. A burst's threads stay out of
the sidebar unless one is open or needs the person.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot can search every connectable app with a find argument on COMPOSIO_MANAGE_CONNECTIONS. Connect cards offer two or three more apps in one tap, and the Apps modal gets Suggested for you, ranked by what bots looked for, an on-demand Jev pick, then apps that go well with what is connected. The search box now covers the whole catalog from any view, and the Connected view and its count include the person's own MCP servers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Changing the Chief only flipped flags on bots, so a room the old Chief
led kept answering to it, and a room with no Chief in it ran hand-offs at
each bot's own approval level with no sign why. A room the old Chief led
now goes to the new one, with one line saying so. A room that can't
change now, or never had its Chief, shows a one-line note with an Add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From review:

- A model /api/show says can't chat is left out whatever its name, and a
  name only counts where Ollama gives no family.
- A failed version request doesn't undo a server's yes, and another service
  on Ollama's port stops showing as Ollama once it has answered otherwise.
- A fixed model list on Ollama still learns which models can call tools.
- A text-only model on the network gets its note about an attachment instead
  of the turn being refused over a picture it would never be sent.
- The picker's row says a model's facts to screen readers too, and the
  selected model shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new Ollama row in Settings → AI → API keys → Your own model servers looks
for Ollama on this computer when its section opens (127.0.0.1:11434 and
localhost:11434), or at an address someone enters, and adds what it found
with no key or URL to type.

The row, the engine's setup panel and the engine list say what is wrong in
the app's own words: running with how many models, no models yet (with the
one-line `ollama pull` command), not running (with `ollama serve` and a
download link), didn't answer, or something else answers there.

- GET /api/instances/ollama answers one look. It is for the owner only, and
  not on a hosted workspace, since it makes the server ask an address.
- The engine snapshot names the problem, so the app can word it.
- A ready Ollama's row lists its pulled models with their facts and no longer
  offers to manage an API key.
- The first model list is waited for, briefly, so the models are there right
  after adding Ollama and a first turn knows which models can call tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only a routine's report became a line, so a teammate's finished work and
the answer summing it up never reached the Inbox. Finished handed-off
work now gets one quiet line, and each result replaces the last, so a
job keeps one unread row. The requester's summary replaces that row too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From review:

- A turn waits for the first model list, so it knows whether its model can
  call tools even when the list takes longer than the wait at start-up.
- A server added as Ollama that answers as something else says so, instead
  of showing as ready.
- The setup panel can check again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A model whose /api/show capabilities include "thinking" now gets a thinking
control in the model picker: the choices /api/show lists for it, or on and
off when the server doesn't list them. The pick goes out as Ollama's
`reasoning_effort` on /v1. Ollama refuses it for a model that doesn't think,
so a model without the capability never gets one.

The chat engine gains the per-model variants the agent engines already use,
so the picker needs no new control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a long list (OpenRouter, a well-stocked Ollama) the picker shows only a
few suggestions per provider, so a model someone uses often can sit behind
"Show all". A star on each row, shown on hover and always once set, moves the
model to the front of its provider's suggestions the next time the menu
opens. The row doesn't move under the pointer.

Starred models are kept on this device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat engine had no way to set reasoning effort, so a model reached with
an OpenAI key or through OpenRouter always ran at its provider's default.

A model that reasons now gets Low, Medium and High in the picker, through the
per-model variants the chat engine already has for Ollama. OpenAI's are named
by id; OpenRouter says per model through supported_parameters. The pick goes
out as `reasoning_effort` to OpenAI and `reasoning.effort` to OpenRouter, and
any other server gets neither field and no control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rail's click did nothing visible until main had finished the switch, and a
click while a switch was under way could be dropped or overtaken, so it took
several clicks. Now a click marks its place on the rail at once, pending, with a
shell over the page; any other click replaces it on the spot.

Main: every rail click goes through a place-switch that lists it at once and
stops what the last one had under way; a click back on the place on screen stops
that switch where before it was dropped; a server restart that can no longer be
stopped leaves the window on the place chosen last; a click for this computer or
one of its workspaces waits its turn behind a restart in flight; and the rail stays up
through a restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"OAuth session expired" wasn't read as a sign-out, so turns failed one
by one with no hold and no failover. The notice also went silent: every
refused turn pushed its 30-day stretch back, so a bot still being refused
was never told again. Sign-outs are now said again once a day across all
bots, and the notice names the bots with no backup to carry on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A computer could sit offline for days with its bots none the wiser: the away
notice only spoke up when no computer at all was online, and the prompt said
nothing about which computers exist. Each turn's prompt now lists every lent
computer by name with its status, and list_shared_computers names the away
ones even when another is online.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Starter plan a routine on a paused bot just failed each run, so it
looked like the routine was broken. The routine list now says the bot is
paused and offers the swap, right where the routine is shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A coordinate_bots call over a length limit got a catch-all about every
field, and propose_team_memory only named the limit. Both now say which
field was too long, what the limit is, that nothing happened, and how to
send it again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engines that call tools in strict mode send every optional field. A
propose_team_setup create then carries botId "" (refused as an
unrecognized key), an update carries key "", and a model choice carries
effort/variant "" or null, which the receiver reads as a choice
("effort is not recognized" / "choose either a model variant or an
effort level"). Treat those blank placeholders as left out at the tool
boundary, as dropBlankArguments already does for other tools. Non-blank
values are kept, so real mistakes are still reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Vault page, and "Use a saved one" on secure cards

Settings → Logins becomes Settings → Vault (same section id, so old links
still open it): one list of saved logins, saved secrets and linked 1Password
items, with search, All / Logins / Keys & secrets, and Add (a login, a secret,
or a pasted .env file). Saved secrets can be renamed, have their value
replaced or their bots changed, and be deleted; a value is never shown. Linked
items are read-only. A row opens API keys for the app's own keys, and the
password manager block keeps the existing 1Password link.

The secret card and the sign-in card list Vault items that could fit, by name
only, under "Use a saved one" / "Use a saved login". Picking one lets that bot
use it and answers the card. The new card routes are admin-only, like the
Vault. The Keys page's 1Password row now says "Set up in Vault". Docs updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Screenshots of the Vault page and a card's Use a saved one, from the isolated UI harness

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A routine someone else changed is refused the lent computer (by design),
but the run was told the general 'start a new conversation' words. Now it
is told the routine was changed outside the owner's chats and that saving
it again in its editor makes it theirs again. The check is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Like the other one-home e2e tests, it loads main's translated words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A config update dropped the paused list, so the routine warning and the
swap button disappeared after any frame until the next full load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without a Boat account the meeting tools are left out, so a bot sent a
Teams/Meet link had no tool and no reason to give. Add a one-line prompt
part, only for bots with the agents tools on a server with no cloud
computer, reusing the existing refusal text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot working in a repo that ships skills in agents/skills, .agents/skills
or .claude/skills now sees them on its Skills page under "In this project".
A new "Use the project's skills" switch (features.projectSkills, off by
default) lets them into the prompt's skills index and the / menu. Claude
Code keeps loading .claude/skills by itself, the bot's own, library and
brought-in skills keep their names, engines without file tools get none,
and project skills never travel in a bot or team package.

Closes #5122

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot adding or updating an MCP server with a secretRef now stores vault:<id> in env, headers and oauth.clientSecret
instead of the value. The value is read from the Vault when the server starts, is tested or is called; removing the item
turns the key off and says so. A pointer reads only an item given to that server, and only for a bot the item lets use
it; a bot can't write one itself, and existing plain values stay as they are.

Saved Vault secrets now travel with Send to My Cloud under their own id, keeping which bots may use each, and are
checked by fingerprint on a move. Linked password-manager items stay linked. A deleted bot leaves its secrets, and a
secret only it could use goes with it.

Tidy-up: the unused Logins strings are gone from every language, and the 1Password lines now say logins, keys and
secrets (en, pt-BR).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The point-at label came from innerText, which adds no break at the edge of
an inline-block box, so a card like <span class="tag">Cloud</span>Restore
showed as "CloudRestore". Build the label from the element's text instead,
with a space at the edge of every box that is not plain inline, and leave
out what is not shown (display:none, visibility:hidden, a closed details
body, scripts and styles), as innerText did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The prepared text no longer glues short sentences past the length limit, so the
test can't rely on that to get an utterance over 500 characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RELAY_ROLLOUT_PERCENT goes from 0 to 100, so every desktop gets relay host tokens, and RELAY_CAPABLE_MIN_VERSION
names 0.1.145, the first release whose phones also hear a route change inside their session (#4695). A desktop at
0.1.145 or later whose paired phones all speak the relay gets 409 relay_capable in place of a new tunnel; a tunnel it
already holds keeps working, and phones on older builds still get one. Both relays answered healthy and idle before
this. RELAY_DISABLED "1" still turns every token off at once.

The same two values are set on the live Worker from the dashboard, so a later deploy from this file keeps them.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A dream's quote that ends with a URL or path picked up the sentence's full stop,
so a good entry was refused. The phone and trigger tests now look for a webhook's
report in its own chat, and the phone test also checks the owner's chat keeps the
phone. Two new tests had their own mistakes: a broker token the fixture refuses,
and undefined evidence that fell back to the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Room turns settle through their own path, which dropped the ask. The
long-running Chief scenario now follows a hand-off that parks on the
person, gets its answer and then ends as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skip content-visibility:hidden contents and use only the first summary of a closed details (CodeRabbit review).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train nov9-b: open linked folders, Reset saved keys, bring back connected apps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A self-hosted server several people sign in to is shared the same way a Team
Cloud is, so everyone's bots would have got that person's connected apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A retry is the same request again: tools stay mounted, nothing shrinks, and a failure that isn't transient still goes out once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings -> Decision and extraction gets a Custom endpoint provider: a base
URL, model ID, protocol and key, with Save and Test like the others. System
One posts Jev's request to {base}/systemone; OpenAI Decisions posts an
ordered question list to {base}/decisions and reads answers by position.
Both go through the same answer checks. It decides only; extraction keeps
its providers. A custom endpoint comes first in the key order.

The key is write-only and lives in the encrypted store on desktop
(OMB_CUSTOM_DECIDER_KEY). Jev, OpenRouter and the custom endpoint now share
one keySafeUrl check (https, or http to this machine only).

The decision page's dropdowns use a themed MenuSelect built like the voice
picker. New strings are translated into every locale (machine-drafted).

Closes milind-soni/OpenMausBot#5026
A saved custom key came first in the key order whatever was picked, so it
kept deciding after switching back to Jev, and with any other key saved
Settings reported that provider and never showed the custom setup fields.
Now Custom endpoint decides alone while it is picked (nothing decides until
it is set up) and stays out of the fixed order otherwise.
A chat can now start a new engine session without opening another
conversation. Every message stays visible, a divider marks where the
fresh session began, and nothing before it reaches the model: replay,
recovery text, summaries and warm-session reuse all stop there. The
divider lives on the conversation, so it survives a restart, an engine
switch and a move between computers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train nov9-a: 29 PRs (19 from Aditya, 9 small fixes, relay test flake)
Train nov9-leftovers: dream fact checks, accent contrast, webhook results chats, pacman packaging, team inventory refusal
Inside Settings it was a full-screen overlay nested in the Settings window, so
the window's sidebar covered its left side. In Settings it now expands in the
page, and the standalone popup after the first chat stays a dialog.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
server/model-manifest/model-manifest.json holds the engines' fixed model lists
and the list prices. It is bundled, refreshed from main's raw URL in the
background and on opening the model list, and cached under providers/. A stale,
bad or oversized download is ignored and the last good list stays; a download
never overrides a newer bundled copy; reading the list never waits on the
network; OMB_DISABLE_MODEL_MANIFEST_FETCH=1 switches fetching off.

Downloaded model ids must pass the engine's id rule before they reach CLI
arguments. A model with minCliVersion newer than the installed CLI shows as
needing an update in the picker. Claude, Cursor, Grok, Kimi and Antigravity
start from the manifest; Codex keeps its live model/list. CI validates the file
on every event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server gets a listener on each tailnet address, never 0.0.0.0. It answers
only Tailscale peers (or this machine) that use the exact MagicDNS name or
bound address, and a request there is never loopback trust. Pairing links name
the tailnet address. serve --tailscale listens this way when tailscale serve
can't front it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under the Tailscale route, Your other computers is its own switch, off by
default. tailscale serve fronts the server when the tailnet has certificates
and port 443 is free; otherwise the server listens on the tailnet. A Mac with
only the Tailscale app learns its name from MagicDNS without running anything.

Connect to a server now tells apart Tailscale off here, another tailnet, macOS
Local Network refusing, and a computer that didn't answer. Packaged Mac builds
declare NSLocalNetworkUsageDescription.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Registering a new parent-port listener earlier than the others could change
which listener hears the app's queued first messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Destroy every socket on a listener being closed, upgraded ones included, and
  bound the wait so one open WebSocket can't hold up later changes.
- Keep the share closed until a packaged app has read its organization's saved
  policy, and follow changes to that policy.
- End a tailscale serve a crash left behind, and one still settling at quit.
- Accept only Tailscale's addresses; a test rig names its stand-in exactly.
- serve --tailscale follows Tailscale's interface instead of fixed addresses.
- A bare 100.64/10 address is Tailscale only on a computer on a tailnet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A queued message, a stop or another turn can keep the browser turn from
running; the hand-off then returned the reply that only asked to move, as if
the work were done. It now returns a failure saying the work was not done
(a turn that already failed keeps its own failure). The e2e test asserts the
fixture engine's reply from the browser turn, not the prompt text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): bump version to 0.1.151

* Add Claude Fable 5.2 to the Claude model picker

Lists claude-fable-5-2 above Fable 5.1 and 5, keeps the default model,
counts its 1M context window, and adds its Anthropic and OpenRouter list
prices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a3a951a1b0a5e1105f12917e933d0cb950e869df)

* Restart computer control's helper when it dies, and move macOS and Windows to Cua Driver 0.45.4

Cua Driver 0.41.3 read the keyboard layout on a worker thread during press_key
and hotkey, which macOS 26 can kill the process for. 0.44.0 fixed that, so the
npm SDK and the macOS and Windows binaries move to 0.45.4. Linux stays on its
certified 0.41.3: the crash is macOS-only.

Nothing watched the helper once it was up. It now restarts by itself with
bounded waits and stops after repeated crashes, readiness says it is down
meanwhile, the socket stays the same across restarts, and the bridge stays up
so a bot's tools survive and it gets one plain sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f23cfd02c6fdb58e51903f89ede6eacd08232af0)

* ci: run the two computer-control launch tests with the locale tests

They now load the code that reads the translated catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: fix the two CI failures from the helper-restart change

The e2e test still expected the sentence the helper-restart change replaced.
Its failed assertion also left the scripted driver exiting on every call, so
the next three tests failed with it. The new sentence is intended; the test now
expects it and that it still says how to restore a quarantined driver.

The respawn test wrote its fake bridge's import as a bare path, which on Windows
is `D:\...` and an unsupported ESM URL scheme, so the bridge died on load. It
now imports through a file URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Milind Soni <soni.mil2001@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: milind-soni <milindsoni201@gmail.com>
A turn can finish before dispatch returns; if the browser continuation was given up then,
the late outcome now settles as stopped instead of the move request. The stopped text no
longer claims no work was done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses travel as text in a bot's memory, and the Cloud prompt never said it
is not on the person's own network, so a bot tried Tailscale and SSH facts from
the Cloud shell. The prompt now says so, and sends such commands through the
lent computer's run_command.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
select_computer is refused on every turn that isn't a person's own message, and
a bot-opened or routine conversation has no such turn, so it was offered only
to be refused. It is no longer listed there, as a fact of the conversation so a
conversation's tool list stays the same from turn to turn and its prompt cache
holds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A home on its own server (OMB_CLOUD_EDGE_TLS=1) gets its certificate from Let's
Encrypt, which allows 50 new certificates a week per registered domain. With
OMB_CLOUD_EDGE_ACME_EMAIL set, the launcher renders an explicit issuer list:
Let's Encrypt first, unchanged and with no address on it, then ZeroSSL's ACME
endpoint. Caddy 2.10.2 tries issuers in order and only reaches the fallback when
Let's Encrypt has just failed that certificate, and it generates ZeroSSL's EAB
credentials from the address (no ZeroSSL sign-up or key). Whichever CA issued
it, the certificate stays on the volume and is reused.

Unset or empty: the Caddyfile's placeholder is blank and the adapted config is
identical to before, so a home's behaviour is unchanged, and an empty value
can't break Caddy's parsing the way an empty `email` option would. Fly homes
(no edge TLS) never read it. OMB_CLOUD_EDGE_ACME_FALLBACK_ONLY=1 uses the
fallback alone, for a live check that it issues.

The address is validated against what Caddy's config can carry and goes only to
the edge, never the server. The image build validates Caddyfile.tls with the
rendered issuers, using its own Caddy.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Show the person what is keeping this computer from their Cloud

Lending could stop for days with nothing to see: an ended sign-in, a Cloud whose
address changed, or a signed-in My Cloud with no saved place here left the menu
silent and the bots saying offline. The icon's menu now names the Cloud and why,
even with nothing else lent, and one notification says so once it has lasted ten
minutes, so a blip is no news.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Iterate the notice maps directly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
While a Cloud sleeps its desktops stop calling it, so a computer it had not seen
for over a minute failed instantly, and one lost to a boot failed the moment
the Cloud came back, though the desktop was about to reconnect. For about 90 s
after a real wake, a bot's shared_computer call and list_shared_computers now
wait for the computers lent to it. A plain restart keeps today's behaviour.

The Cloud also tells the Admin it woke (signed, best effort) so the Admin can
move cloud.power on at the desktops' next session read; the Admin half of that
is not in this repository yet.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Show Ollama as Ollama: its mark, its pulled models and why it can't answer

A chat engine whose address is Ollama (port 11434, added as Ollama, or it
answers Ollama's /api/tags and /api/version) is now presented as Ollama
everywhere the instance list goes, instead of "Other (OpenAI-compatible)".

- Its models come from /api/tags, with size, parameter count and
  quantization; embedding models and our context-window names are left out.
- It needs no API key.
- The engine is unavailable, with the reason, while Ollama isn't running,
  can't be reached, or has no models yet (with the `ollama pull` command).
- A model whose /api/show capabilities lack "tools" runs its turns without
  tools instead of failing on Ollama's refusal; one without "vision" gets no
  images.
- The model picker heads it "Ollama" (no "API key") and shows each model's
  facts; the setup panel shows Ollama's reason instead of an API key form.

Saved configs are unchanged: the driver stays openai-compat, so bots, the
new-bot default, background calls and every other place an OpenAI-compatible
server works keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Decode the test's engine config as the registry does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Ask a server with a fixed model list nothing about Ollama; fade Ollama's mark as mono

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Only ask a server for Ollama's model list once it has answered as Ollama

Any other server on this computer or network was asked for /api/tags. It now
gets the /api/version question the context-window code already asks, and no
more unless it answers with a version.

Looking for Ollama can be pointed away from this computer's own port, so the
test no longer depends on what happens to listen on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tighten how a server counts as Ollama, and what a model is

From review:

- A model /api/show says can't chat is left out whatever its name, and a
  name only counts where Ollama gives no family.
- A failed version request doesn't undo a server's yes, and another service
  on Ollama's port stops showing as Ollama once it has answered otherwise.
- A fixed model list on Ollama still learns which models can call tools.
- A text-only model on the network gets its note about an attachment instead
  of the turn being refused over a picture it would never be sent.
- The picker's row says a model's facts to screen readers too, and the
  selected model shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let work handed on from the owner's own line keep their lent computer

Bots refused 33 calls as "only conversations you start": a hand-off's line is
no line of the owner's and a thread a bot opened is never theirs, even when the
owner asked for that work a moment before. A hand-off now keeps the lent
computer exactly when the harness recorded, as it was handed on, that the turn
handing it on could itself use the computer: only the owner's own line can
start such a chain, each hop is recorded and fails closed, and any hand-in
from another turn ends it for that thread for good.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the wire types within their size limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Close the holes a review found in handed-on lending, and narrow it

Each finding was reproduced first.

- A bot's answer could steer a turn still holding the lent computer: relays,
  answers for the person and messages into a running turn now end its hold
  unless the sender could itself use the computer.
- A handed-on turn could write the bot's memory unwatched, and reached the
  owner's phones. Both now take the owner's own conversation; only the lent
  computer follows the hand-off.
- start_thread no longer carries it: Stop on the turn that opened such a thread
  doesn't reach it. Work handed on with coordinate_bots is stopped with its
  sender.
- A hand-off keeps it only at a level no looser than its sender's.
- A continuation that names no request line drops it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Read the sender's conversation level, and keep one-way work off the computer

The level cap read the bot's own record, so a conversation set to Ask on a Full
bot could hand the lent computer to a Full teammate. It now reads the level
that conversation runs at. A one-way notice or a consult no longer carries the
computer: nothing awaits a notice, so Stop on its sender doesn't reach it.

Adds end-to-end tests of both, and of relayed answers through the real route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Tell the owner the moment a bot's memory locks, with an Allow card

A bot whose memory changed during a turn the owner did not write stayed locked
out of the lent computer until someone happened to open its Memory settings;
nothing said so, and a bot's turns just got refused. The moment the lock is set
the owner now gets one Allow card in the bot's own chat, showing what changed.
Allow accepts exactly that and starts no turn; Not now holds until the memory
changes again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give the bot-level card's title its German words

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the German title's placeholders to the ones the English has

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Say which MCP server needs a sign-in, and stop Test passing when every call is refused

A URL server can list its tools to anyone and refuse every tool call with HTTP 401, as Gmail's MCP server does. Test only
listed tools and tried a tool name no server has, which such a server answers before it asks who is calling, so it read as
working. Real calls then failed with "Error dialing <address>": the 401 started Claude Code's own sign-in, which cannot work
through the broker, and it hides the reason because the address holds a token.

Test now tries one read-only tool that has nothing to work on when a person asks for the test. The broker answers a refused
tool call in words that name the server and what to do. A failed step names the server and the reason on its row, and a
server that isn't saved here is named in the 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Read a failed step's reason out of the chat runtime's JSON

The chat runtime reports a step as pretty-printed `{ ok, result }`, so the failure's own words were never on the first line and its steps got no problem line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add the MCP failure lines to the complete Brazilian Portuguese pack

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A person's own turn that resumes with teammate results also carries a coordination
node and comms depth; it must keep the person's computer choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The design for self-hosted MausBot as a design doc, with a section that
reads it against the code: what is built, what differs and what is planned.

A public page for a customer's security reviewer lists what the connector
can do on a connected server and what that server sends, checked against
connector/ and the home's code. The connector has eleven jobs, not nine:
export-disk and import-disk were missing from the design's list.

Co-Authored-By: Claude <noreply@anthropic.com>
deploy/install.sh checks the server first and changes nothing while it
does: operating system, processor, memory, disk, Docker and Compose, ports
80 and 443, the domain's DNS record, outbound reach, user namespaces, the
clock and the version to install. Each failed check prints one sentence
saying what to fix; --check runs only the checks.

It then writes the Compose setup under /opt/openmausbot with the data in
one folder, pins the image to the stable channel once that is published
and to the newest release until then (never latest), starts it, waits for
health and for HTTPS, and says how the first admin signs in. Run again, it
repairs its own files and updates, keeping .env and the data. --uninstall
stops the server and deletes nothing. With a one-time code it also runs
the connector's own installer, as MausBot serves it.

Docker is offered, never installed unasked. The whole script is functions
called from its last line, so a cut-off download runs nothing.

The quick starts in the self-hosting docs lead with it; the manual path
stays below. A workflow runs shellcheck, the checks against made-up
servers, and a real install on an Ubuntu 24.04 runner.

Co-Authored-By: Claude <noreply@anthropic.com>
The first run on an Ubuntu 24.04 runner found the newest release's image
reported as missing although it is published. The registry's answer was
neither yes nor no, and the installer read every such answer as no.

It now fetches the pull token once, asks up to three times, and tells a
missing image (404) from an unclear answer, naming the status it got.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses review: a null placeholder for an optional team-setup field no
longer overwrites the bot's value (an empty description still clears it),
and blank effort/variant are dropped from propose_model and start_thread
model selections too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses review: deleteSection and applyTeamSetup updates apply the same
reshow rule as the other rename/move paths, and a search that lists two
unsectioned Chiefs keeps the second as a bot row instead of dropping it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses review: the Linux "agent-browser already finds a browser" check
now reads the augmented PATH that agent-browser is started with, so a
browser only there no longer triggers a needless Chrome download; the
missing-unzip message asks to check both the install and the server's PATH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot doing work another bot handed it could never set a wait, so work
that needed to check back later (a build, a page, a file) had to poll or
give up. Work handed on now may set one wait when the person's own
request started the chain. Routine, outside, guest and room work stay
refused, as before.

Limits:
- one open wait per handed-on assignment (409 past that), stored with
  the wait so it holds across a restart;
- handed work can set a wait but never cancel one; the wait ends on its
  own or the person stops it;
- the assignment is looked up once, before the body is read, and the
  request is refused if it is no longer the running assignment after.

The prompt tells handed work it may set one wait_until and cannot cancel
it. An isolated e2e covers the person-started success, the one-wait
limit, cancel refusal, refusal after the assignment ends, and refusal for
work a routine handed on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found running it for real in a fresh ubuntu:24.04 container. Without curl
the outbound, clock and version checks each failed with a sentence about
the network; now only the curl line is to fix and the checks that need it
are skipped with a note. A check on an installed server said ports 80 and
443 were free while this install held them.

Co-Authored-By: Claude <noreply@anthropic.com>
Once the download is under way the launcher no longer falls back to the
engine's own browser, so a session's launch settings cannot change when
the login-shell PATH arrives with a Chromium on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Give tunnels back once the relay has replaced them, and never fail a relay computer at the tunnel limit

Both Cloudflare accounts are at their tunnel limit, and a running desktop keeps
its connector up, so idle reclaim never frees its tunnel. This adds, in the
control plane, every switch off by default:

- The relay first. A relay-capable desktop that the relay can carry gets no
  tunnel when it has no old phone, also when it is coming back after a release
  or reclaim. At the limit it is answered 409 relay_capable (tunnel: "full")
  instead of 503 endpoint_capacity. A desktop the relay cannot carry (older
  release, relay off, outside the rollout, blocked) gets a tunnel as before.
- RELAY_TUNNEL_RELEASE_PERCENT / RELAY_TUNNEL_RELEASE_DAYS: the cron releases
  a tunnel once every paired phone has used the encrypted connection and no
  old phone was reported for the wait (3 days).
- TUNNEL_LEGACY_PHONE_CUTOFF_PERCENT: relay-served computers give up their
  tunnel whatever phones are paired. TUNNEL_MIN_APP_VERSION: desktops below it
  get 426 update_required and lose their tunnel.
- OMB_TUNNEL_RECLAIM_PREVIEW_DAYS: a dry-run count of idle reclaim at another
  offline period; the live minimum drops from 3 days to 1 (the value stays 3).
- /healthz reports what each switch would clear before it is turned on.

Migration 0015 adds relay_adoption.legacy_clear_at and the dry-run table; a
Worker deployed before it keeps working and releases nothing.

Co-Authored-By: Claude <noreply@anthropic.com>

* Tunnel release: one relay rule for cron and provisioning, current versions only, and backpressure

Review fixes for the tunnel release.

- The cron and provisioning now share `relayAdmits`: relay on, not blocked,
  inside the rollout or named. The cron no longer marks a tunnel that
  provisioning would hand back when RELAY_ROLLOUT_PERCENT is lowered.
- Under the old-phone cutoff, provisioning gives up a working tunnel only for
  a computer holding a relay token from the last two days, as the cron does.
- The stored release is refreshed by every relay-token request, and the cron
  applies TUNNEL_MIN_APP_VERSION only to a computer seen in the last two days.
  /healthz minAppVersion.eligible counts the same way.
- At the tunnel limit, relay_capable ("full") is sent only from
  TUNNEL_REASON_MIN_VERSION (empty by default). Earlier desktops with an old
  phone keep 503 endpoint_capacity, which they show and retry from.
- A run marks no more than one cleanup sweep removes, minus what is already
  waiting, so marking stops while the sweep is failing.
- The reclaim dry-run total is read at most every five minutes per isolate,
  and nothing is written per scan step while the preview is off.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
A workflow run by hand points the `stable` image tags at a released
version's digests, without building, and records it in stable.json on
the `channels` branch. The update check follows that record instead of
the newest release.

deploy/update.sh updates a Docker Compose install: the stable image by
digest, a copy of the data first, a health check that includes "an
engine can still start a bot", and the old image, settings and data put
back when the check fails. A journal makes it safe to interrupt and to
run twice. It works on a checkout's deploy folder and on the installer's
/opt/openmausbot layout.

Co-Authored-By: Claude <noreply@anthropic.com>
A server writes data-format.json into its data folder and checks it
before it creates, migrates or locks anything. Data in a format it
cannot read ends the start with one plain line that names the version
that wrote it and what to do.

The rule that makes a rollback safe, "what version N writes, N-1 can
read", is in CONTRIBUTING.md. A format change ships in two releases
(read it first, write it one release later), and a test holds the two
numbers against the last release's, which Prepare next release records
with the version bump.

Co-Authored-By: Claude <noreply@anthropic.com>
On Windows the lending indicator is its own notification-area icon, and
its menu had no way to quit the app: someone who only sees that icon
had to go hunting for the main tray icon or Task Manager. Its menu now
ends with the same "Quit OpenMaus Bot" item the main tray icon offers.
The macOS menu-bar item is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Windows tray icon's tooltip, its Open and Quit items, and the
startup screen said "OpenMaus Bot"; the product is OpenMausBot
everywhere else, including productName. The pt-br and zh-tw tray
strings carry the same fix, and their source hashes are refreshed for
just those keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Linux the bot browser took its device scale only from GDK_SCALE.
Cinnamon, GNOME and KDE set the scale as Xft.dpi instead, so pages
rendered at 1x and looked blurry in a 2x or 1.5x app window. Read
Xft.dpi from xrdb when GDK_SCALE isn't set; 1x when it can't be read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For a MausBot version that runs the hardened profile the installer now
fetches the repository's own host preparation and Compose settings
(deploy/box, connector/profiles), runs the preparation, starts the server
with those settings through COMPOSE_FILE in .env, and runs the server's
self-check of the sandbox: a bot cannot read config.json, or the install
says so and does not report success. A preflight check looks for AppArmor
and its tools first. --no-sandbox leaves it out; a version without the
profile gets a sentence instead.

It places deploy/update.sh in the install folder when the repository has
it and names it as the way to update. A version update.sh pinned by digest
is kept by a later run of the installer.

Compose now runs from the install folder, as a person and update.sh run
it, so the sandbox's settings apply to every later docker compose command.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
The connector was built for servers we run Team Clouds on, so it did
whatever the Admin signed. On a server a customer runs, it now works in a
second mode, chosen on the server at enrolment and enforced there:

- Nine jobs only (connector/src/customer-run.ts). export-disk, import-disk
  and a start that names an image or settings are refused as they arrive,
  again at the desk, and have no code path in the attached home; each
  refusal is in the audit log.
- The Admin's requests never reach the home: the connector answers four
  itself (health, version, seats, update) and refuses the rest, pairing
  included.
- The heartbeat and job replies are rebuilt from named fields: versions,
  states, counts, a seat count. A failed job sends a code and a fixed
  sentence; the reason stays in the audit log.
- It attaches to the Compose install the server installer makes instead of
  starting a second home, and refuses to enrol the other way beside one.
  An update is handed to the server's own update.sh through a small
  systemd unit; backups copy the data folder to a volume on the server.
- mausbot-connector pause / resume, and the owner's policy file can keep
  the connector's own update out.
- The home answers GET /api/seats with a number.
- The mode is in the enrolment request and the heartbeat, added only by a
  customer-run server, so an operated server sends what it always did.

The public page and the design doc now describe this mode as built, with
what remains marked planned.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Under Wayland, XWayland's RandR size can already be logical, so dividing
it by the Xft.dpi scale could shrink the bot browser's viewport. Wayland
sessions keep main's behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed sandbox check stops the install when it means a bot can reach
what it must not or that bots will not work, and so does a self-check
that gives no answer and any check the installer does not know. Five
checks that are about neither only print a note with the check's detail.
The five names are in one marked place; a result that carries its own
severity is believed over that list.

update.sh and the sandbox's files now come from the tag of the version
being installed, and from main only when that tag has none of them. The
installer says which it used.

Co-Authored-By: Claude <noreply@anthropic.com>
A command server added on a desktop install has no owner, so every bot
without its own server list mounts it. When a bot adds or turns on such a
server, the result now names the other bots that get it and tells the bot to
pass that on, with where to switch it off for one bot (that bot's settings,
under Apps it can use). The chat activity row says the same in one line.
Turning on a server that was already on for everyone says nothing new.

Closes #5165

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One file every UI change follows: principles, where things go, colour
tokens, type table, radius scale, spacing, icons, surfaces, the shared
components to reuse, motion, words, states, Simple vs Advanced, accessibility,
the checks that enforce them and a PR checklist. CONTRIBUTING.md and
AGENTS.md point to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The notice took the bots the server is mounted for now, which leaves out a
server whose start check failed, so a broken server's add could skip it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pt-br pack must carry every English key (activePackComplete), and the
own-servers e2e now names the other bots the added server is on for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
usedBy now also checks the bot's servers that run on a lent computer
(lent-mcp given()), so the shared notice names those bots too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Claude hold was never released by fresh usage (only Codex holds were), and
usage was only re-read while a limit-reset automation waited, so a limit that
reset early (plan upgrade, reset outside the app) kept every turn on the backup
AI until the original reset time.

- holdGone: release any engine's named hold once fresh usage shows no window
  at its limit and none resetting at the held time (never while a window is
  still full); a new refusal holds it again.
- While any engine is held, re-read usage every few minutes.
- POST /api/limit-resets/release + a "Try again now" button in the blocked
  usage card to end a hold by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up: classify the end-of-stream condition by throwing a
StreamTruncatedError (a ChatProtocolError subclass) at its single raise
site and checking instanceof at the resend gate, so a provider error
body that merely contains the phrase cannot enable the default resend.
The retry.ts message pattern is gone — the type is the one source of
truth. Trimmed the gate comment to the policy, and added a test that a
truncation after a handled tool call never resends, so its effect
happens exactly once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When bots move to a place whose own MausBot the person already used, that
MausBot stays the MausBot (mark, crown, delete protection). The arriving
MausBot becomes an ordinary, deletable bot named for the computer it came
from, and doesn't take the crown. Unused starters behave as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bots with per-app tool grants were refused COMPOSIO_REMOTE_WORKBENCH (needed
for a Google Drive upload) with a refusal pointing at a grant no control could
give. Add an admin-only per-bot appSandbox switch under Access > Connected apps:
on, the sandbox tools are offered and direct calls pass the relay (still held
for approval below Full access); a sandbox tool inside MULTI_EXECUTE stays
refused; off, the refusal names the switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A full usage window (no extra credits) keeps the engine blocked whatever the
hold, so the button would succeed and change nothing. The report now marks a
hold-only block as held, and the card shows the button only then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Requested by email 1a1c1405 (approved by the maintainer, option B): in New
browser the person can open an installed extension's own pages
(chrome-extension://) from an Extensions toolbar menu. chrome:// pages and
every bot navigation stay refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit (review 5836854207): when the opener carries a question from one
report-back thread and steers a different one, relay matched the carried
question first. Only for a thread the sender chose itself (steersOwn) the
carried match now has to be in that thread; unnamed carried answers stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit r4521257717: after the first move pass a managedSections change
sends chiefOfStaff without defaultBot, so the guard let the arriving bot take
the kept MausBot's crown. The computer it comes from now also says whether the
bot is the MausBot there (sourceDefault), and the guard uses it. A Chief that
is not a MausBot still takes the crown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The notice that a server is on for other bots, and the remove card, now
leave out hidden bots and bots whose audience is narrower than the
sender's, so a room never shows an admins-only bot's name to members.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The locale-reader scan in ci-scope.test.ts no longer counts a browser
extension's own _locales folder as one of our translations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A review assuming a hostile control plane found two ways round the mode.

- self-update accepted any connector digest, including builds from before
  the mode, which run as operated. On a customer-run server the Admin's
  self-update is now refused at all three checks; only root on the server
  replaces the connector, and never with an older version or an image
  that names none.
- update accepted any server digest, so the server could be rolled back.
  An image older than the one running, or without a version label, is now
  refused by the connector after the pull and again by the updater's
  runner on the host. A second floor for the hardened profile is in place
  and unset until a release carries that profile.
- restore is local only, and each sender keeps its own three backups, so
  the Admin's never push out one the owner made.
- Enrolment sends the server's facts reduced as the heartbeat does, and a
  customer-run server closes its connection with the code alone.

The policy-file exception for self-update is gone again: the Admin's
never reaches the policy in this mode.

Co-Authored-By: Claude <noreply@anthropic.com>
Dialogs and sheets opened from Settings rendered inside the Settings pane,
whose backdrop-filter makes it the containing block for position: fixed
descendants, so they were centred on the pane and clipped by it.

Render them through a Layer that portals to document.body. Modal layers
keep an open order so Escape and Tab reach only the newest one, and
Settings ignores keys while a dialog opened from it is on top.

The Connect to a server sheet also stops handing focus back to Settings on
Tab: its key effect no longer re-runs when the parent passes a new onClose.

Fixes #5221

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refresh a sign-in a server refuses on a real call, or end it

A 401 on a tool call now renews the token at once; when the renewal is
refused or nothing can renew it, the stored sign-in is marked signed out.
Refreshes report how they ended, and a sign-in that expires with no way to
refresh says when.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tell a Team Cloud's admins how each connection is doing

The Admin's signed read adds, per MCP server and app: health (working,
needs-sign-in, refused, unreachable) from real tool calls, refreshes and
Test, with checkedAt and a lastError class; expiresAt; addedBy and
addedAt; the team bots that use it; lastUsedAt. App accounts' status words
map to the same four. A connection each person connects instead gets each
member's state (connected, needs-sign-in, not-connected). A rare background
check tests a team server nothing used for a day, never while asleep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Document connection health in the Team admin read

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Two failures on a self-hosted 0.1.150 instance, both from the model's shape rather than a missing permission:

- A screenshot named both targets (`ref: "e193"` and `selector: "main figure img"`) 28 times and each call failed
  with "Pass only one of ref, selector, or x and y." A screenshot now keeps the first target it was given and drops
  the rest; a blank `ref`/`selector` reads as not given. The other browser tools keep their literal fields, so a
  `fill` with empty text still clears a field.
- Opening `http://127.0.0.1:8188/` failed with only `ERR_SOCKS_CONNECTION_FAILED`: inside the server, loopback is the
  server itself, not the person's computer. A failed navigation to a loopback address now says so and names the LAN
  address to use instead.

Tests: `chat-mcp-browser-args.test.ts` pins one target kept from several, a blank target, the untouched `fill` text,
and the hint on a failed loopback navigation (quiet for a reachable address or a successful load); scoped lint and
the server typecheck pass.
The tests #5129 added failed shard 8/8 on main and on most open PRs. Handed-on
work that is stopped returns to its sender; after a restart that starts a turn
of the sender's a moment after the cleanup looked, which the held engine never
ends. Every held turn wrote one dump file, so the next test's toolsFor could
connect to that leftover turn.

Each held engine process now writes a dump of its own and toolsFor connects to
the turn it started. The restart test and the two parked tests stop turns until
no handed-on work is left to start one. The waits have deadlines of their own.

Co-authored-by: Claude <noreply@anthropic.com>
main gained Claude Fable 5.2 as hard-coded entries in the model list and the
price table. The manifest already holds it (claude-fable-5-2, 1M context,
$8 input, $0.20 cache read, $40 output, CLI 2.1.321 or newer, and the
OpenRouter id), so the manifest side is kept. The picker row keeps both
main's local-model detail and this branch's needs-an-update block.

Co-Authored-By: Claude <noreply@anthropic.com>
Fable 5.2 is first in the list and needs CLI 2.1.321; the test CLI reports
2.1.232, so the first model that is not the default is now one that cannot be
picked. The bot creation test and the renderer smoke choose the first model
that can be picked, and the bot creation test also checks that a proposal
naming the too-new model is refused.

Co-Authored-By: Claude <noreply@anthropic.com>
Remove only deleted a skill the bot owned, so one from the shared library stayed on the list. It now drops that bot's assignment, including a skill turned on for every bot, and leaves the library copy and the other bots alone.
The check for which library skills a bot still has lives next to the library store.
* Keep a Team Cloud's Shared chat unread mark each person's own

One person reading a bot's shared chat, or marking it unread, cleared or set its one
unread flag for everyone. On a team a bot's shared conversations now keep each person's
own read line in room-reads.json, as group chats already do: lists and streams carry
each person's own mark, and a read reaches only that person's streams. A private chat,
a My Cloud and a desktop keep their one mark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a Team Cloud notification's read mark each person's own

A shared chat's "done" or mention is one feed entry for everyone who sees it, with one
read flag, so one person reading it, pressing Read all or opening the chat read it for
the whole team, and notifications.read went to everyone's streams. On a team each entry
now keeps each person's own read mark (read_by on the row, never sent) and the read
event goes only to the reader's streams. One entry with per-person marks rather than one
entry per recipient: the routing, the 500-entry feed and its deletes stay as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let each User order their own bots on a Team Cloud

PUT /api/bots/order rewrote the one fleet order every client shows, so any User, even
one who could only view a bot, reordered the team's list for everyone. On a team a
User's reorder is now their own list (bot-orders.json), shown in their GET /api/bots and
told only to their streams. Whoever has never ordered theirs sees the team's order,
which an Owner's or Admin's reorder sets, as before. A bot added later takes its place
in the team's order in every list. No app change: the app already reorders locally and
follows the bots.order frames it is sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Count a User's open chat as in front of them on a Team Cloud

The app's presence ping names the chat open on screen, which keeps its engine and
prompt cache warm a while; the server counted it only for an Owner or Admin, so a
User's open chat went cold as if nobody had it open. On a team every member's now
counts; elsewhere still only the owner's. The sightings feed nothing else: no
notification is held back because someone has a chat open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep index.ts and message-db.ts within their size ratchet

The per-person read and order wiring moves into host/room-reads.ts and
host/person-bot-order.ts, and the notification feed's per-person read stays in the lines
message-db.ts had, so neither file grows past the source-size guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Forget a leaving member's own bot order and notification read marks

When the Admin says a member left, their read lines in rooms and shared chats were
deleted but their own order of bots (bot-orders.json) and their key in the feed's
read_by stayed. Both now go with their read lines, a row only they read included;
nobody else's marks or order change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Expect a Team Cloud notification read to be the reader's own in its e2e test

client-notifications.e2e.test.ts checked the feed's one read mark after a member read
on a Team Cloud, the shared state this branch makes each person's own. It now checks
the reader's own marks (read_by), that the one mark is untouched, and that Bob opening
a shared chat leaves Ada's list as it was. What each person may read is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Fixes from review of the stable channel and deploy/update.sh:

- The stable record is read with a small JSON reader that only looks at the
  top level. The greedy sed took the last "version" in the file, the oldest
  history entry, so every update from the second promotion on failed.
- The data copy goes into a new volume per update and is compared with the
  data, file by file, before anything else changes; the copy from the
  update before is removed only then. A restore copies into a new folder,
  checks it, then swaps it in by renames, so a failed restore leaves the
  data and the copy untouched. It no longer starts the old version on
  data that was not put back, and keeps the journal so it is tried again.
- A hangup (closed SSH session) or a dead `| tee` no longer stops an
  update half-way. An update an earlier run left unfinished is kept when
  healthy; otherwise the next run says what going back would lose and asks
  (yes / keep / nothing changes). Ctrl-C undoes only this run's update.
- It never moves to an older version without --allow-older (exit 5, as the
  connector's update runner uses), judged by the version the server
  reports, so a `latest` build of main moves to stable once stable is newer.
- compose stop is checked, and the server seen stopped, before the copy.
- Room for the copy is measured where Docker keeps volumes, not on the
  data's own disk; an install folder it cannot write is exit 4, not 3.
- Until a first promotion, update.sh takes the newest release, as the
  server's update check does, so the app's `git pull && ./update.sh` works.
- promote-stable.yml treats only a missing channels branch as "no record",
  and puts the stable tags back when the record cannot be published.
- The server's update check gives the last answer for a day while the
  channel cannot be read, never the newest release in its place.
- e2e: a multi-entry history, a failed restore, a hangup, a refused
  downgrade; shellcheck in the e2e workflow.

Co-Authored-By: Claude <noreply@anthropic.com>
Portaled to body, these dialogs no longer follow their opener in DOM
order, so focus stayed on the Settings button and Tab walked Settings
first. Both now use the shared modal-dialog hook: focus moves in on open,
Tab is contained, Escape closes, and focus returns to the opener.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The stamp is written with writeFileAtomic (fsync, and the Windows rename
  retry), and a stamp that cannot be written (EACCES, EROFS, a Windows EPERM
  past the retries) is logged and skipped instead of ending the start.
- A marker that cannot be read (empty or NUL-filled after a power loss, not
  readable by the server's user, a directory) counts as format 1 while
  `writes` is 1, and the stamp puts a good one back. A byte-order mark in
  front of the JSON is read past. Once a version writes format 2, an
  unreadable marker is refused as before.
- data-format.json is left out of workspace backups, and the destination
  keeps its own: a newer server's marker restored into an older one would
  stop it on every start.
- Tests for each case, a real start on an empty and a NUL-filled marker,
  and a Cloud rolled back one image and forward again on the same data.
- CONTRIBUTING says plainly that the marker protects nothing yet (both
  numbers are 1, stores that accept only version 1, no SQLite
  user_version) and what would have to change for the rule to hold.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
A wait that has ended but whose notice has not been posted yet still
sits in the list with `ending` set. The per-assignment check counted it,
so handed-on work could be refused a new wait after its first one had
already fired. Skip ended waits there, as the per-bot check does.
* Bot box: show a command line's server files only when the caller named them

A path on a command line the server starts, or in a configured server's
environment, no longer brings the server's own files into a bot's box.
Adding such a command is refused on a boxed server.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep a configured server's program in a bot's folder on its command line

A configured server run without a bot (for a chat engine) has no bot folder
in its box, so the program its command line names in a bot's folder is still
shown, read-only, as before. With a bot known, only that bot's folders are.
The spawn options carry the `configured` flag.

Co-Authored-By: Claude <noreply@anthropic.com>

* Update the two tests that pin a configured server's box request

Co-Authored-By: Claude <noreply@anthropic.com>

* Name the hardlink test's data-folder file as the caller does

Co-Authored-By: Claude <noreply@anthropic.com>

* Quote the bot-folder server's echo in the real-box test, so sh runs it

The script was echo the bot's own server ran: the apostrophe opened a quote sh never closed, so the test failed on
a real box with "Unterminated quoted string" whatever the plan did. Found running the suite in a Linux container.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
* Say who is here on a team and who has a shared chat open

On a team nobody could tell who was around. The server now counts a person here while one of their
sessions has the event stream open, or a window of theirs said so lately, and for 45 seconds after, in
memory only. GET /api/team/people carries here, and the stream carries team.presence, at most one every
5 seconds per person.

A window says which conversation it shows (POST /api/presence/here). Only one more than one person can
read, and the sender can, is ever kept: a private chat is taken as no conversation, so nobody, an admin
included, learns it is open or exists. The people who have a shared chat or a group chat open get its
list (thread.presence), checked again as it is sent. When someone joins, leaves or changes role every
app hears team.people and reads the people again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show who is here in People and in a shared chat's header

A dot on the face of each teammate who is here now, listed first after you. A bot's shared chat and a
group chat show at the right of their header the faces of the others who have it open; a private chat
shows none. The app sends nothing to a server that says nothing about presence.

People now says it is loading, and that it could not load with a way to try again, instead of staying
blank. At phone width choosing a person closes the full-screen list. A team.people frame reads the
people and this session's role again, so a role change shows without reopening the team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Describe who is here on a team

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the presence wiring in its host, adding no lines to index.ts

The presence host now owns the server's set of open event streams: adding a stream counts its person
here and deleting it starts their grace, so the stream handler is as it was. It sends its own frames
and reads OMB_TEAM_PRESENCE_GRACE_MS itself, and its route joins an existing ROUTES.push. Behaviour is
unchanged; server/index.ts is back to main's 15,627 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Give the presence words their Brazilian Portuguese

The pt-br pack is held complete, so each key the team presence branch added to en.json needs its line
there: the People list's "here now", loading and could-not-load lines, and who has a conversation open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Team: remove the peers allowlist, bot-to-bot approval cards and chief escalations

The owner agreed (Oct 26, Nov 2) to delete three controls that contradict how team bots talk: every bot reaches every
bot, nothing stops to ask a person before one bot contacts another, and a waiting question reaches the person through
their inbox, not a flag.

- peers: the bot field, new-bot defaults, the PATCH branch and its confirmPeers error, the admin-activity and overview
  rows, the Chief's team-setup checks, the desktop's move to My Cloud, and the Permissions note with "Let it talk to every
  bot". Reach is the audience rule alone; a routine's refused hand-off has one reason.
- approvePeerComms: peer-approval.ts and its key, the cards in coordinate_bots, post_to_room and a Chief's room changes,
  the coordinator's approvalGranted, and the Permissions switch. The use-your-computer consent cards stay.
- features.chiefEscalations: escalations.ts, raise_escalation, /api/internal/escalate and the Chief's escalation notices.
  Incidents and their retries stay.

Saved data still loads: a bot saved with either field loads without it and reaches every bot, saved new-bot defaults
read as if they never had them, a peer card left open is settled at start, the config switch is dropped like any
unknown key, an old Team escalations conversation is an ordinary one, and a PATCH from an older app that still sends
the fields is taken and ignores them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team deletions: prove saved data with the removed fields still loads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Say in Phone & devices when the secure link ended for older phone apps, and stop dialling it

The control plane can now answer 409 relay_capable with `tunnel: "retired"`
(old phone apps no longer get a tunnel) or `tunnel: "full"` (every account is
at its limit), and 426 update_required to a desktop below its minimum version.

- The client reads `tunnel` from the answer.
- On any relay_capable answer the desktop stops the connector and forgets the
  address it still held, so nothing keeps dialling or advertising one that is
  gone. Before, a tunnel removed on the server left "The secure connection
  needs attention" showing for good.
- "retired" is remembered. While a paired phone has not used the encrypted
  connection, Settings > Phone & devices says what happened and the one thing
  to do: update the MausBot app on that phone, then pair it again. The phone's
  own row says the same. The notice goes when the phone is paired again or the
  address comes back.
- update_required gets its own message instead of the generic failure.

English and pt-BR strings.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep asking for the address after it ended or the accounts were full

After `relay_capable` with `tunnel: "retired"` or `"full"` the desktop forgot
its address, and the watchdog only re-asks while an address is stored. So a
computer with an old phone never asked again until someone opened Phone &
devices: switching the relay off handed nothing back, and "wait for room"
never resolved.

That state is now remembered (`companionTunnelWaiting`), and every watchdog
tick asks again while an old phone still needs the address, as a desktop that
kept its address already does. It stops when no old phone needs one, when the
control plane answers a plain relay_capable, or when the address comes back.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
The health report gains a small speed object read from /proc when the
report is built: CPU steal and the kernel's CPU, memory and disk pressure
over the window since the last read, the boot's time to listening, a wake
from a stopped sleep's time to the request that woke it, and people's
messages since boot by how long they waited for their engine's turn to
start, in six fixed buckets. Numbers only, no timer of its own.

Co-authored-by: Claude <noreply@anthropic.com>
* Run keep-warm pings, warm summaries and app connections in the bot box

Where bots' turns are boxed, three things OpenMausBot starts by itself for a
bot ran beside the server instead of in the box:

- a Claude keep-warm ping and a warm summary, which relaunch Claude Code with
  the conversation's MCP config (Claude Code starts every command server in
  it as it launches);
- OpenMausBot's own connection to a command MCP server for an app's page;
- the background probe that learns whether a command server offers apps.

Each now asks for the bot box by name, as Test already does, so a command
server starts where the bot's turns start it. A warm summary also runs in its
conversation's engine home on a Team Cloud, like a ping. With the box off
nothing changes.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep-warm: test that a boxed ping and summary launch as the turn did

A ping only reads the turn's cached prompt start when Claude Code is launched
as the turn was. The new test compares a boxed turn with its boxed ping and
summary: working folder, environment (each process's broker token aside),
system prompt, MCP servers, prefix flags and what the box shows. Started
beside the server, a fork gets a different environment and the test fails.

The fake CLI's summary dump now records its environment too. procs.ts is left
as on main.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
The route rechecked the assignment only after reading the body, but
WaitManager.create then awaits the first check (a page fetch can take
seconds). Work stopped meanwhile still left a wait that fired later.
create now asks stillAllowed() last, after the probes and limits.
* Bring Advanced mode back, and put browsers that were on it back on it

Turn SIMPLE_ONLY off: the mode reads and switches again, the Advanced mode
row is back in both Settings views and a paired remote client's Appearance,
search's "· Advanced" hints and "Show advanced controls" return, and
app_active sends the real mode. The one-time cleanup no longer runs, so a
browser that skips 0.1.151 keeps its mode and settings.

At boot, a browser whose omb-new-look is due or seen (it was on Advanced)
goes back to Advanced once and is owed a short "Advanced mode is back"
notice in the Simple mode popup's slot; none stays on Simple. Advanced reads
the reset threads choice as shown, so thread folders are back in the
sidebar without writing any setting.

Keeps Automatic recovery under More settings → Limits, Share as preset,
org skills, package provenance and the code-block touch targets. Adds
"font" to Appearance's search words. The renderer smoke's preview stays on
Simple unless a test picks a mode.

Co-Authored-By: Claude <noreply@anthropic.com>

* Say Advanced mode is back only while this device is still on it

A person who switched to Simple before the notice's turn came would
otherwise read that the device is on Advanced mode.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
An app's own connection to a command MCP server starts a server someone
configured, as Test and a turn's MCP tools do. It now marks its box request
`configured`, so an environment value naming a folder in the data folder is
not made writable in the box, as for those two.

Co-authored-by: Claude <noreply@anthropic.com>
* See a change made in the same clock tick as the last look; steady the slow-download test

The fingerprint of a bot's memory and folders remembered a folder's names by
its mtime and ctime, and a file's hash by its size and stamps. A filesystem's
clock moves in ticks (about 16 ms on NTFS), so a second change inside one tick
left the same stamps and was answered from what was remembered after the
first: a link planted right after a removal went unseen, which failed
lending-memory.test.ts on a Windows shard of main. A stamp less than 2 s old
is now read but not remembered.

The slow-download test sent a piece every 120 ms against a 400 ms stall limit
and failed on a busy runner. It now sends one every 60 ms against 1 s, and
checks the download outlasted the limit.

Co-Authored-By: Claude <noreply@anthropic.com>

* Bot page height test: wait for the frame to go quiet, not for 30 ms

"leaves the starting height once the flow needs more" failed on Windows shard
1/8 three times with `expected [ 520 ] to deeply equal [ 520, 610 ]`. A height
report crosses three timers of the test's fake frame (the observer, the frame's
next paint, the message to the host), and the test waited 30 ms for it. A timer
waits about 16 ms on Windows, so the report arrived after the test had stopped
looking. With those timers at 25 ms the old test fails the same way here.

The fake frame now counts its tasks until they have run, and the test waits
until none is left. The helper is unchanged: it sent the report.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
The Cloud home in cloud-lending.e2e.test.ts runs the real memory gate, which on Linux reads
/proc/meminfo: a new engine starts only while free memory, less a floor, covers every turn
admitted in the last 90 s plus the new one. Most of the test's turns stay running, so by the
"Asking bot" turn about 11 GB is held, and whether it starts depends on what the other test
files on the same runner leave free. Since #5168 added two test files, ubuntu shard 1/8 runs
a different set beside this file, and the asking bot's turn waited for memory ("Waiting for
memory on this Cloud. Running now: 11") past the test's 20 s card wait.

The server now loads testing/memory-gate-hooks.mjs, as memory-order.e2e.test.ts does, with
host-memory.json saying 60 GB free: the gate still runs (now on every OS), and the test's
outcome no longer depends on its neighbours. The seam takes only a fixture whose home is its
data folder, so the server's HOME is now the data folder.

Co-authored-by: Claude <noreply@anthropic.com>
* Keep a team member's browser and phone signed in while they use them, with no desktop

A Team Cloud asks the Admin, signed, whether the people whose sessions are in use and about to end are still in the
team (cloud-team-roster.ts): at their role their sessions live another hour, gone they are signed out at once, and no
answer changes nothing. The browser sign-in names the team, and a team's sign-in page offers the way back through
MausBot Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Welcome a new member to their team, once, and keep each admin's welcome their own

A User's first time in a team shows the team, who invited them, who else is in it, the bots shared with them, the
privacy rule once and one chat to start, kept per person in people/<person>/welcome.json. On a team the Cloud
welcome's own record is each person's, and the Owner's last step offers Invite people.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Open a team from the join page's link, and land an invited person in their team

openmausbot://team/<id> names a team by id only: the app opens it as its own verified session lists it, starts its
own browser sign-in when signed out, and offers another address when the one signed in isn't in the team. The
Admin's landing opens an invited person's team first, once per device, with no plan pushed before it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a routine that lives in someone's private chat theirs alone on a team

On a Team Cloud a routine was filtered only by its bot. A routine a member
made from their private chat, or pointed at it, reached every member and every
Admin, the Super admin included: its name, prompt, attached files (with their
path, and the file itself was then served to anyone who asked for it), and the
ids of the private chats it was made in and reports to, in the list, the live
stream, a bot's overview, team exports and a bot's trigger tools in any other
chat. Anyone who could edit the bot could change, run or delete it. A routine a
bot made in a private chat also ran as nobody's, so its runs and results landed
in chats the whole team reads.

A routine that names someone's private chat, where it was made or where it
reports, is now that person's alone in every list, stream frame, count, export,
edit and delete path and bot tool, and a file only it carries is refused. Its
runs open their chats as that person and report into a chat of theirs. Every
other routine stays its place's, without the id of a chat the viewer may not
read. Nothing changes off a team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Hand a leaver's shared routines on, and delete their private ones with their chats

When someone left a Team Cloud nothing touched their routines. A routine still
ran as its writer's, so each run opened a chat private to a person who was gone:
it kept spending, nobody could read what it said, and its questions reached
nobody. Their private routines stayed on disk, run history and all.

Leaving now deletes the routines that live in the person's private chats, with
their run history and the files only they carried. A routine they wrote for a
shared place keeps running as the routine of whoever looks after its bot, or
nobody's (the Admins') when nobody does; one that reported into a chat of
theirs gets a chat of its new owner's. Each hand-over is one admin activity
row naming the routine and its new owner, never anything from a private chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Take a leaver off every bot and say in admin activity that they left

A person who left a Team Cloud stayed in every bot's sharing and visibility
list and kept looking after their bots, so joining again quietly gave back
everything, and admin activity said nothing about it.

Leaving now takes them off every bot's sharing (an @domain entry stays) and off
"Looked after by": a bot they looked after is nobody's and its asks go to the
Admins, and a Chief that would then be its department's second gives up its
crown. A bot moved in by them is no longer handed back to them at the next
start. One admin activity row names who left and when, with how many bots were
handed back and routines handed over, and nothing that was theirs alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the team routine wiring out of server/index.ts and routines.ts

The private-routine and leaving fixes grew server/index.ts and
server/routines.ts past their listed sizes. Where a routine lives, whether a
bot's turn may know of it, where its results may go and the leave clean-up's
part in routines now live in server/host/team-routines.ts, and removing one
routine with its run history is removeForBot narrowed to that routine instead
of a second copy of it. Nothing behaves differently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep only sessions in use alive, honour the remote access rule in the browser, and land only on a first sign-in

The roster check now asks about everyone active each round and extends only a session itself used within the hour, so
an idle session on another computer still ends on schedule and someone removed is out at the next check. A User's
browser sign-in is refused while the team's rule turns remote access off, and their open browsers sign out. An invited
person's team takes the window only on a first sign-in on the device with no place of their own on screen; a link's
sign-in that ends on another address says so. The team page's address is told to signed-in sessions only. The team
link's wiring moved out of main.mjs and index.ts to keep both at their listed size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Email a Team Cloud member what happened while they were away

A mention, a question waiting on them, or work they asked for finishing reaches
an away member as one batched email the Admin sends. The machine sends names
and hashes only, signed with its bootstrap secret; a private chat's item names
no bot and no place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add "Email me when I'm away" to Settings → Profile on a team

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the second-instance line the Cloud link's test reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Drop an unused test constant

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Type the away tests' fakes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Whoever asked owns the run in a Team Cloud's shared conversations

In a conversation more than one person reads, a line from anyone but the
person whose request runs is queued instead of steered, never triggers the
answer-first stop, and runs after as its own turn. Only the asker or an
Owner or Admin stops the run (Stop, typed stop, a group chat's stop words,
the guarded request stop); others get "Only Priya or an admin can stop
this." Waiting lines carry their writer and the conversation carries whose
request runs, so everyone sees the queue; only a line's writer removes it,
and only the asker joins their own lines to the run. One module decides
(server/host/run-owner.ts); private chats and one-person servers are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show whose request runs and what is next in a shared chat

The working line reads "Working on Priya's request", with one quiet line
under it, "Next: Tom's request" (", then 2 more"), and a small remove
control only for the viewer's own waiting message. A shared chat shows no
queue above the composer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test and document who owns a run in a team's shared chat

Two and three people on a Team Cloud: a teammate's line waits and runs
after, cannot stop or join the run, an admin and the asker can stop it, the
asker's own addition and a private chat behave as before, and a routine run
started mid-run touches neither.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team: a new thread can be made private before anyone's app hears of it

store.createTask told every stream of a new thread before its caller could record who it is private to, so one frame
showed everyone a handed-on thread's title (for a fresh thread, the first words of the request) and the private chat it
came from. createTask now takes a callback that runs before listeners hear of the thread; hand-offs use it next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team: a person's own MausBot hands work to the bots they may chat with, from their private chats

Reach past its audience only to bots its person can chat with, only from a chat private to them and only with their own
request behind the turn. A bot they cannot see is never named and is refused like one that does not exist; a view-only bot
refuses work. The work runs in the receiving bot's own private chat with that person, private before its first frame, and
comes back whole.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team: three-person test and docs for a person's MausBot reaching shared bots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team: a new conversation is private before anyone's app hears of it

store.createTask told every stream of a new thread before its caller recorded who it is private to, so for one frame
another member and every admin could get a person's new conversation: its id and its title (a person's own title, the
first words of a hand-off's request, an API caller's message, a routine's name). createTask now takes a callback that
runs before listeners hear of the thread, and every caller that records a starter does it there: a person's new
conversation, a hand-off's thread, a bot's own new thread, a routine's run, a routine's results chat, a person's inbox,
a Chief's notices chat and a thread the bot API opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team: a new member's MausBot is theirs from its first frame, and nobody's copy of a bot moves

A new member's MausBot was announced before its main chat was claimed for them, so every admin's stream got that chat's
id as a team conversation (and, until a restart, so did one made for a person's inbox). store.createBot now takes a
callback that runs before listeners hear of the bot, and both places that make a member's MausBot claim its main chat
there.

The e2e now also proves the frame seen on screen is gone: while a member opens a private chat, no frame of any kind
reaches another member or an admin with its id, and their copy of the bot (its threads, their labels, its main chat and
the one Shared chat) stays exactly as it was. That frame came from the same order fixed in the previous commit: with no
starter yet, the new chat counted as the team's and became the bot's main chat for everyone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Record who stopped a run, and name people as the People list does

The stopped row of a run someone stopped carries who pressed Stop
(WireMessage.stoppedBy), from the button, a typed stop and the guarded
request stop. The asker, each waiting line's writer and the stop refusal
name a person by their profile name, or for an address the part before
the @ ("Only Dev or an admin can stop this.").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Shared chat: say who stopped, Stop and Retry for the asker and admins, your own waiting words

A stopped row reads "Maya stopped this." to everyone but Maya. Stop and a
stopped request's Retry show only to its asker and to Owners and Admins
(and to everyone for a run no person asked for). Someone whose message
waits sees its words under the "Next:" line with the remove control;
nobody else does. Names from an address read as the People list's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test who stopped a shared run and how unnamed people are named

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Welcome fixes from the on-screen run: own chat shown as private, focus on the action, the team's name for admins

A chat the person just started is never labelled the shared chat while its task is on its way. The welcome puts focus
on its one action, counts as using the team while it is on screen, and gives a bot with no description a quiet line
from its instructions. Owners and Admins read the team's name and what is true on a team in the Cloud welcome.
MausBot's own card doesn't interrupt a team's first run. A person no longer in the team is told so in one sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Send a team routine's results where it lives, and let anyone choose Just me or the shared chat

On a team every routine a User made reported into a results chat private to
them, and its runs opened as theirs, so a routine meant for the shared chat
(made there, or given the bot's main thread) was read by nobody else, even
when an Admin ran it. A User could not point one at the shared chat either:
it was refused as a conversation they had not started.

A routine's results now follow where it lives. One of a shared place opens its
runs as the team, whoever made or runs it, and reports into the shared chat or
a results chat everyone there reads; a private one stays its person's. The
routine form on a team offers two places, Just me and Shared chat, and anyone
who can chat with the bot may choose either. A shared routine whose results
chat was opened privately for its writer reports into the shared place from
its next run; the old chat is left as it is. A teammate's own MausBot takes no
routine from anyone else, and one its person sets up is theirs alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* List only the bots a person can chat with in the routine picker on a team

The Owner's routine picker listed every member's own MausBot, three entries
all called MausBot, and a User's listed bots they can only view. On a team the
picker now lists the bots the person can chat with and their own MausBot,
never a teammate's, and keeps the bot a routine being changed already has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show "Email me when I'm away" at the top of Settings → General on a team

It was behind Account's Edit in Simple. It is now its own row of Account there,
and stays in the Profile card in Advanced; the docs name that place and say the
email's button opens the team's page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let the results picker tell a team by itself, so the routine page does not grow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Run the new team test with the locale tests in CI

It reads translations through the team fixture, so the CI selection check wants it listed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep the send, queue and stop routes working when built without the run-owner rule

The routes' own tests (and any caller that builds them without it) gave
every send a 500 "deps.runActor is not a function". The rule is now an
optional dependency: a route built without it refuses nothing and sees no
admin, as on a server one person uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Brazilian Portuguese for the shared chat's queue, stop and refusal lines

The pt-br pack is held complete, so every English key this branch added
needs its line there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Translate the away-email switch into Brazilian Portuguese

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix the desktop's start-up and the CI failures from the team join work

The packaged app stopped at launch: the team link's wiring read nativeT
before main declared it. It is now read only when called, and a test
checks everything handed to that wiring exists by then. The sign-in
follow-up no longer names teamLinks inside functions other tests run
alone. The 21 new strings have their Brazilian Portuguese.

Co-Authored-By: Claude <noreply@anthropic.com>

* Team: a person's MausBot reach adds no lines to server/index.ts

The check that a personal hand-off opens for the chat's own person, and answers only in their chats, moves into
personal-reach.ts as checkHandOn, and the reach is built on the room-access line. Behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Train: chief-of-staff keeps main's hasAuthority import beside #5177's also

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A Streamable HTTP server that answers a POST with one SSE event and hangs up
may leave off the blank line after it. readSse() dropped that unfinished block
at end of stream, so the request failed with "event stream ended without the
response" and the server test said it returned no valid tools list.

Only a POST reply now parses what is left at end of stream as its last event;
the long-lived legacy SSE stream is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A custom stdio MCP server mounted on Codex gets its env only through
Codex's own environment (env_vars forwards by name). The app-server is
spawned as "bot", so the bot box cut that environment down to its
allow-list and the server started without its configured env (plain
values and Vault refs alike). The connection test already passes
allowEnv for these names, which is why it worked there.

Pass the mounted servers' env names as box allowEnv on the app-server
spawn, only when such names exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the bot box on, the computer MCP runs inside the sandbox and cannot
reach the host Docker socket, so Local VM turns used to fail with the
opaque "MCP server exited". Route Local VM mounts through a small gate
that refuses that combination with a clear message, and document the
limit in docs/bot-box.md.

Fixes #4983
nativeSkillListing always reported enabled:true, and the Skills page hid
the switch for origin native, so personal ~/.codex/skills stayed on for
every bot even after imported copies were removed. Persist a per-bot off
list, honour it in listings and /name expansion, show the switch, and
pass skills.config enabled=false overrides into Codex so the engine
skips those skills without deleting the person's files.

Fixes #5044
- localVm.memoryGb / localVm.cpus set each desktop's memory (swap capped to
  match) and CPU limits; Docker and Podman apply a change to a stopped
  desktop when it next starts.
- On Docker Engine for Linux the desktop's cua account takes the host
  workspace owner's uid/gid at first start, so a MausBot running as any
  account other than 1000 gets a writable workspace. A root-run server
  hands the workspace to uid 1000 instead.
- Desktops get CHOWN, DAC_OVERRIDE, FOWNER and FSETID so a bot can
  `sudo apt-get install`. On Docker Engine for Linux the desktop's root is
  the host's root, so those desktops run with no-new-privileges and the
  safety check requires it there.
- A desktop-flags label marks desktops made under these flags; older ones
  are recreated by the existing one-time update, workspace kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a "Claude on Amazon Bedrock" engine instance that runs Claude Code
with CLAUDE_CODE_USE_BEDROCK=1 and an AWS profile from the machine's
~/.aws config. No AWS secret is stored; the AWS SDK resolves SSO and
credential_process itself.

- POST /api/instances/claude-bedrock and PATCH /api/instances/:id/claude-bedrock
- Strip inherited AWS_* keys that would outrank AWS_PROFILE
- Plain error for missing/expired AWS credentials pointing to aws sso login
- Settings > Engines > Claude: add, edit and remove Bedrock engines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the bot box on, a custom stdio server's env names are now admitted into
Codex's spawn. A name whose value matched the inherited environment stayed in
Codex's shell, which the box used to strip. Exclude every box-admitted name
from shell_environment_policy when the box is on; with the box off the shell
keeps what it already inherited, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An uploaded .xmind is read on the server and saved as its outline, one section per sheet, with notes, labels, markers, links and floating topics. Both content.json and the legacy content.xml are read. Content is limited to 32 MB, 100,000 topics and 500,000 XML elements, and anything unreadable answers 400.
claudeEnvironment() was deleting shell-inherited AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_BEARER_TOKEN_BEDROCK and
AWS_DEFAULT_PROFILE for every named Claude account and custom endpoint, not
just Bedrock engines, breaking any existing account that reached Bedrock
through shell-level AWS credentials. Thread a bedrock flag instead, scoped
the same way endpoint already is, and only clear those keys for a Bedrock
engine. Also stop a custom endpoint from inheriting a Bedrock engine's CLI
binary, and reword the AWS credential error so it covers non-SSO profiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Podman run by root keeps the host id map, so it gets the same
  no-new-privileges rule as Docker Engine on Linux.
- Only those runtimes are label-gated for a one-time recreate; elsewhere
  older desktops keep their flags rather than losing files outside the
  workspace for a convenience.
- The uid step moves files before /etc/passwd, so an interrupted first
  start finishes on the next one; gid 0 is never handed to cua.
- A root-run server hands the whole workspace to uid 1000 with
  `chown -R -h`, and a refused chown no longer blocks creating the desktop.
- In-app safety text and docs match the new limits and capabilities;
  pt-br is translated, other locales fall back to English for the three
  changed strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
container-computer.ts and config.ts are on the size ratchet. The
capability sets, root rule, host-id step and hardening checks move to
container-isolation.ts; the localVm schema joins its settings in
local-vm-settings.ts. Callers import from the new homes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The top bar always called the home Cloud "My Cloud", even after its owner
renamed it in the Admin (Settings -> Name and colour), while the rail showed
the saved name. And the saved name was only set once at setup, so a rename
never reached the switcher either.

- WindowPlaceTitle: home shows its saved name unless it is still the default
  "My Cloud" (then the localized label, as before); a team's Cloud keeps the
  team's name.
- home-places follow(): on each session check, rename the home entry to the
  name the Admin lists it by (only the entry that is home at the machine's
  origin; no write when unchanged; nothing when the Admin has no list).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switching local places while a bot still works used to wait at most 60 s with
only a ring on the tile, then stop the running place and cut the turn. Now a
dialog says who is working and what switching does, and offers:
- Wait for it to finish: no time limit, the place opens once the work is done
- Stop it and switch: the old behaviour (up to a minute, counted from the answer)
- Cancel: nothing switches

Without the new optional ask() dependency the behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fill_login now looks in a connected mailbox (Gmail, Outlook or IMAP) when a
page shows a code box and the login has no 2FA key, and types the code through
the existing secure fill path. Only new mail from the page's own site counts,
and plain code picks the code: no candidate, more than one, or a code already
used means today's fallback, said in plain words. The bot gets a status only.

A sign-in with just an address goes through a new email argument, and a page
that wants an emailed code with no mailbox connected gets the existing Gmail
Connect card, once per person. On a Team Cloud a person's own Gmail or Outlook
is read only for the turn acting for them in a chat that is theirs alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the owner's own Composio project key saved, the desktop check-in, a
Cloud home's start-up registration and its plan grant no longer reach the
service, and pausing, deleting or restoring an older app-event automation
changes only the local copy. OMB_COMPOSIO_BROKER=off disables the service
outright on desktop, server and Cloud; connected apps then show the
needs-a-key state.

Team Cloud per-person apps still use the service when a key is saved; the
switch makes them report unavailable.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On the packaged app, OpenAI, Anthropic, OpenRouter, Mistral, Cerebras,
Groq, Greenference, Meta, DeepSeek and OpenAI-compatible keys now save
through credentials.bin instead of plaintext config.json, and existing
keys move there at startup, only after the encrypted write succeeds.

The server now sees those keys in its environment, so instances with
their own URL no longer fall back to it on the desktop, and an Anthropic
first key still leaves Claude sign-ins alone.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On a shared server (and in the hardened server image) a local program without a session gets the service routes
only, so `openmausbot doctor` failed there: GET /api/instances was refused, and the refusal was worded as if a
desktop app had refused it ("the installed desktop app requires a paired session token"). deploy/update.sh uses
doctor for its "can the new version still start a bot" check, so on such a server that check never ran.

- GET /api/health/engines answers how many engines could start a bot now, never which. It is a SERVICE_ALLOW row, so
  a local caller without a session may ask; a caller through a proxy still needs a session.
- doctor, refused the engine list, falls back to that count: ready when one engine is, and says the names need a
  session.
- The MCP client's 403 message says which kind of server refused: a shared server's, or the desktop app's, as the
  server's own refusal says.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
unicode61 indexes a whole Han or kana run as one token, so a word in the
middle of a Chinese sentence never matched and paraphrased questions
recalled nothing (#5161). Each CJK character is now its own token, split by
U+200B in a search_text column the FTS index reads through a view, and a
query asks for its CJK bigrams as phrases, skipping particles and filler.
Existing indexes migrate on open; English matching is unchanged.

On 20 paraphrased Chinese questions over 20 notes: 0 recalled before, 20 after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude instances now skip the usage meter unless their config sets
`usageMeter: true`, so the server no longer sends the subscription
OAuth token to the usage endpoint by default. Limit failover still
works from refused turns, as it does for ChatGPT-plan accounts.

Refs milind-soni/OpenMausBot#5079

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While the bot box is on, a boxed bot can write the server's HOME, and the
server's own processes (engine status reads, probes, catalogs) run outside
the box. They no longer search HOME's program folders (~/.local/bin,
~/.opencode/bin, ~/bin, nvm and the rest) or the bots' workspace folders,
and they refuse to start a program whose path or link target is there. The
login-shell PATH probe does not run while the box is on. The data folder,
where Settings installs engines, and system folders such as /usr/local/bin
are searched as before; boxed processes keep HOME's program folders on
their own PATH. With the box off nothing changes.

Co-authored-by: Claude <noreply@anthropic.com>
A server process that dies without closing (out of memory, kill -9) leaves openmausbot-server.lease behind. When
Docker restarts the container, the new run has the same hostname but a new pid namespace, and the lease check reads a
record from another pid namespace as another container's: every start was refused ("already owned by a process on
another machine") and the container restarted in a loop, never healthy. Found with kill -9 of the server process in
the compose stack (RestartCount 0 -> 11, "Restarting" for good).

The container's entry (server/server-launcher.ts) now removes, before it starts the server, the records this same
container left in an earlier run: its hostname, this boot, another pid namespace. Nothing else of the container's
runs at that moment, and a container's processes all end with it. Another container's records (another hostname)
are left, and a second container on the same volume is refused as before.

Co-Authored-By: Claude <noreply@anthropic.com>
Caddy shared the server container's network (network_mode: service:omb). Whenever the server's container restarted
without Caddy (`docker compose restart`, which restarts Caddy first; a crash Docker restarts by itself; `stop omb` then
`start omb`, as the backup docs said), Caddy stayed in the old, dead network: port 443 refused connections while
`docker compose ps` showed both containers up and healthy. Found on a real server; reproduced here for each case.

Now Caddy publishes 80/443 itself and reaches the server over two Unix sockets in a shared in-memory volume (`edge`,
tmpfs, mounted at /run/openmausbot): OMB_TUNNEL_SOCKET for the app (a listener the server already has, since
v0.1.140 at least) and OMB_WEBHOOK_SOCKET for webhooks (new: the receiver listens there too). A socket's path is the
same file again as soon as the server is back, so Caddy needs no restart.

Trust is unchanged. The server still listens on loopback only. A request on a socket has no peer address, which
request-auth treats as proxied (isProxied via ipcPeer): it needs a session and is never a local one, as a request
through Caddy on loopback was. X-Forwarded-For is still read from that hop alone (requestSource treats the socket as
the local proxy), so the pairing lockout still sees each client. Caddy itself no longer has loopback access to the
server at all. The sockets are outside /data, which the bots' sandbox binds; the sandbox has its own /run.

- deploy/docker-compose.yml + deploy/Caddyfile, and the local stack (compose.yaml + deploy/local/Caddyfile).
- docker.yml: after the pairing checks, the tenant stack goes through `compose restart`, kill -9 of the server,
  `stop omb`/`start omb` and the backup's stop/start, each followed by HTTPS through Caddy, still remote.
- scripts/docker-image.test.ts: neither compose file puts Caddy in the server's network, and the Caddyfiles name the
  sockets the server listens on.
- Docs: back up and restore path B with the whole project stopped and started (with a restore command), `git pull`
  before a path B update, and how Caddy reaches the server.
- Dockerfile: the web app's build gets a fixed 6 GB heap; on a 4 GB server it ran out of memory with Node's own
  limit. The docs say a build from source needs about 6 GB (or swap), else use the published image.

Co-Authored-By: Claude <noreply@anthropic.com>
The Compose files pass `OMB_SIGNIN_EMAILS: ${OMB_SIGNIN_EMAILS:-}`, so a server whose .env does not name anyone still
has the variable set, to an empty string. The server took a set variable as "the environment decides", so on every
such server Settings → Remote access → "Who can sign in with an email" answered 200 and the list stayed empty
(found on a real server, with the installer's compose file; the same holds for deploy/docker-compose.yml and
deploy/.env.example).

- A variable that names nobody (absent, empty, blank) leaves its list to Settings; config.json, the CLI's
  `access` note and the settings route read it the same way (server/sign-in-env.ts).
- PUT/PATCH /api/config that would change a list the environment decides answers 409 and names the variable to
  change; a list sent back as the environment has it is no change, so changing the other list still works.
- deploy/docker-compose.yml passes OMB_SIGNIN_* with no value, so Compose sets each only when .env does.

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	apps/docs/content/docs/self-hosting/deploy-vps.mdx
#	docs/deploy-vps.md
From the real-server test of this installer:

- HTTPS went down silently whenever the server's container restarted without Caddy (`docker compose restart`, a crash
  Docker restarts, `stop omb`/`start omb`, the documented backup): Caddy shared the server's network and stayed in the
  old, dead one. compose.yaml and the Caddyfile now match deploy/docker-compose.yml on main (#5303): Caddy publishes
  80/443 and reaches the server over two Unix sockets in a shared tmpfs volume. A run of the installer rewrites both
  files, so an existing install moves by running it again.
- Settings → People / Invite answered 200 and changed nothing: compose.yaml always set OMB_SIGNIN_EMAILS and
  OMB_SIGNIN_MEMBER_EMAILS, empty when .env had none, and a set variable won over Settings. They (and the SMTP pair)
  are now passed with no value, so Compose sets each only when .env does (the server side is #5304).
- In a terminal, the installer now prints the first admin's one-time sign-in link itself, not the command to make
  one. Not in a terminal it still prints the command, and says why: a log must not hold a link that signs in as the
  admin.
- The checks (`--check` too) say when the version they would install has no bots' sandbox, read from the registry
  (the image's settings, OMB_IMAGE=server) before anything is downloaded.
- Compose's Pulling/Creating/Started lines no longer leak through: they go to a file, shown only when the step fails.

deploy/e2e/run.sh now uses a .internal name, for which Caddy issues a certificate of its own CA, and checks HTTPS
through Caddy after the install, `docker compose restart`, kill -9 of the server process, `stop omb`/`start omb`, the
documented backup and restore (tar quiet about sockets, archive 600, owner and mode kept), and after a run moves an
install from the layout before.

Co-Authored-By: Claude <noreply@anthropic.com>
The documented backup stopped `omb` alone, which left HTTPS down (Caddy stayed in the dead network), there was no
exact restore command for the installer's layout, and tar listed "socket ignored" lines that looked like errors.

One command backs up data/ and .env into a private (600) archive with the project stopped and started again; one
restores data/ from it, moving the current data aside first, and changes nothing when the archive has no data/. Both
were run as written, in Docker, followed by HTTPS through Caddy (and are in deploy/e2e/run.sh). Also: the first
admin's link, the sandbox note in the checks, and that a run moves an older install to the current layout.

Co-Authored-By: Claude <noreply@anthropic.com>
update.sh (#5171) moves an install from before Caddy had its own container by writing the installer's two files;
this keeps its copies equal to the installer's once both are on main (skipped until then).

Co-Authored-By: Claude <noreply@anthropic.com>
Real runs of a one-on-one goal whose lead hands the work to a teammate showed two faults:
- the next goal step started while the teammate was still working, so the lead kept
  saying "still waiting" and the goal could end blocked; a step now also waits until
  no teammate holds work handed out from that conversation (within the existing wait cap);
- the lead wrote the private <openmaus-goal> envelope in the turn a teammate's result
  woke, outside the goal's own turns, and the person saw it; any reply now has the
  envelope removed before it is shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- U+200B is now the escaped SEARCH_MARK constant, used by the indexer, the
  snippet cleaner and the tests, so no editor can drop the invisible character.
- A CJK run with no bigram ("猫", "猫的粮") now asks for its lone Han characters,
  so a one-character question still finds its note; a lone kana stays a particle,
  and a leftover character beside real bigrams is still left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the real-server test of this branch:

- home.health.box was always null for a server its owner runs, so the Admin could not see whether the bots' sandbox
  was on. The server's health answer behind the gate now says `box: "on" | "off"` (botBox.enabled()), the connector
  reads it with the other home reads and reports `{ box: "on" | "off", checks: null, failed: [] }`: on or off, never
  the self-check's results. A server that does not say reports null, as before.
- The heartbeat's seats was 1 with one admin and one member: not a lag. The owner, paired by code, has no address,
  and devices without an address counted only while no address was known at all, so the member's address hid the
  owner. They now count as the owner unless an admin is known by an address (on the list, or an admin session with
  one).
- `mausbot-connector job` without a type, and the command's usage, list the jobs with their arguments, restore's
  backupId among them (an id from `job status`'s backups). A job given an argument it does not take says which it
  takes ('unknown argument "id"; this job takes backupId').

Co-Authored-By: Claude <noreply@anthropic.com>
The pricing page promises Starter "Bots: Unlimited, 5 awake at a time,
2 working at once", but making a sixth bot was refused. Creation is no
longer capped on any path (New bot, Duplicate, a paired device, templates,
presets, package and shelf imports, a Chief's create_bot and team setup).

A bot made past the five awake starts paused, so nothing the person was
using is ever paused to make room: the awake set is now written down while
every bot still fits. POST /api/bots answers such a bot with
"paused": true and the app opens "Keep these awake" with it swapped in for
the least recently active idle bot, one tap away. A Chief's create_bot gets
a line saying the new bot is paused. The 2-turn cap and hand-off bound are
unchanged.

A paused bot's routine or webhook run now fails at once with the paused
line instead of making an empty conversation each time, and never wakes a
sleeping Cloud; its daily memory upkeep waits. Package imports now count
the same 100-bot workspace ceiling POST /api/bots and team setup already
had. Clients still show the upgrade popup for an older server's bot_limit.

Co-authored-by: Claude <noreply@anthropic.com>
From the real-server test:

- "Can it still start a bot" was never checked on a hardened server: `openmausbot doctor` without a session is refused
  there (exit 5), so the check was skipped. update.sh now asks the server's own count first, GET
  /api/health/engines (#5305, answered to a local caller without a session), and uses doctor only on a version that
  has no count. The wait for an engine is OMB_UPDATE_ENGINE_WAIT_S (120 s, as before).
- After a rollback, .env named the installer's moving `:stable` tag again, so a later run of the installer (or
  `docker compose pull`) silently undid the rollback. The version that ran before is now pinned by its digest, after
  `--rollback` and after an update that failed; a version built on the machine has no digest and is left as it was.
- An install the installer made with Caddy in the server's network (HTTPS refused whenever the server restarted
  without Caddy) gets the installer's current compose.yaml and Caddyfile at the update, as a run of the installer
  writes them (#5158 keeps the two copies equal); a rollback puts the old files back with .env. A repository
  docker-compose.yml with the old layout is left alone, and `--check` and the update say `git pull` brings the
  current one.

Tests: the fake answers the count for a version that has it and refuses doctor on a hardened one; new cases for the
hardened check, the layout move and its rollback, and the path B note. Rollbacks now expect the digest pin. The
interruption tests match the health check's own call, not the count's.

Co-Authored-By: Claude <noreply@anthropic.com>
- The plan-usage cache key now includes whether an account's usage is read, so turning
  usageMeter on or off never serves the previous report for up to 45 seconds.
- LimitResetClock ignores a usage reading for an account whose usage is no longer read,
  including one from a report fetched before the switch, so a full window seen before
  the meter was turned off cannot divert its turns. A refusal's hold still counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Caddy in its own container there is nothing to wait for: it reaches the server over the socket whenever the
server answers. Waiting on service_healthy made `docker compose up` block until the server's first health check (30 s
apart), so HTTPS stayed down for that long after every start, and for a version that never got healthy `up` blocked
about 90 s before it failed: that was part of the 437 s a failed update took (update.sh waits on its own).

Co-Authored-By: Claude <noreply@anthropic.com>
As deploy/docker-compose.yml (#5303): Caddy reaches the server over the socket whenever it answers, so `up` no longer
blocks on the server's first health check, and the installer waits for health itself as before.

Co-Authored-By: Claude <noreply@anthropic.com>
While the bot box is on, a boxed bot can write the server's HOME. npm,
which the server runs outside the box to install and update engines, now
gets its own HOME, user and global config and cache in the data folder,
so a .npmrc, an npm cache or anything else in HOME has no effect on it,
the install scripts it runs or the CLI it checks afterwards. The
lent-folder clone runs git with no global or system config, no ext::
transport and no fsmonitor, signing in only from ~/.git-credentials
through git's own store helper. With the box off nothing changes.

The new test runs the real npm and git against a HOME holding hostile
config: with the box off they act on it, with it on they do not, and a
package's own install script still runs.

Co-authored-by: Claude <noreply@anthropic.com>
Keep the existing file-size ratchet without changing executable code.
The original ratchet test fails before this cleanup and passes after it.
A failed update through the connector took 437 s on the test server before the old version was back. Measured
again in Docker, the server was down for: the copy (seconds for small data), `compose up` blocking about 80 s (Caddy
waited on service_healthy, and the new version never became healthy, so `up` waited for the healthcheck's three
30 s tries), then update.sh's own wait of 300 s, then the rollback (16 s). The installer's current compose file
starts Caddy with the server (#5303), so `up` returns at once, and the wait is now 120 s (OMB_UPDATE_WAIT_S for
more): a healthy server answers within seconds, and the wait for an engine afterwards (OMB_UPDATE_ENGINE_WAIT_S)
is separate. Also: the docs for the update's steps (the engine count, the digest pin after a rollback, the
installer's files).

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
* Connected-apps service: erase an installation's data

DELETE /v1/installation erases an installation's D1 rows and the triggers
and connected accounts it created at Composio, Composio first so a failure
can be retried with the same token. A Composio user another live
installation still acts as keeps its connected accounts. Staff can do the
same with a CLOUD_GRANT_SECRET signature. The server gets a function to
call it; nothing calls that function yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Only erase Composio data proven to be this user's, and drop the staff route

Every managed customer shares one Composio project, so an account or trigger
listed without a user id is now left alone. The staff erase route is removed
until something in the Admin signs requests for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Bot box: the server's engine model reads run in the box

Several engine reads the server makes on its own load the engine's
settings, extensions or MCP servers from HOME, which a boxed bot can write
while the bot box is on: Pi's model list and catalog update, OpenCode's
session probe and its models reads, the Hermes and DeepSeek catalogs, the
Muse model list and the ACP memory upkeep one-shot. Each now asks for the
bot box, as a bot's turn does, with the instance's own keys vouched for;
with the box off they run as before. The Hermes and DeepSeek catalogs move
from a plain spawn to spawnCli, and execCliBoxed gives the models reads
execCli's answer from a boxed spawn. OpenCode's discovery folder, which
the boxed probe can write, starts over when its marker is missing, and its
git reads no global or system config.

Co-Authored-By: Claude <noreply@anthropic.com>

* Resolve the Hermes and DeepSeek catalog CLIs on the supplied PATH again

spawnCli resolves a command on the app's PATH, while these catalogs used to
resolve it on the PATH their environment carries. On Windows that is where
an npm .cmd shim is unwrapped, so a shim only on that PATH no longer
started. Each now resolves on its environment first, as before, and hands
the result to spawnCli.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
* feat(modelgo): ModelGo as an AI provider, with a one-time sponsor card

ModelGo, a sponsor, joins as a bring-your-own-key provider on the shared
chat-completions runtime. Its row is in Settings -> API keys, a bot can ask for
the key in chat, and the model list is the key's live GET /models, text models
only. Its key goes only to ModelGo's own host. HTTP 402 billing_insufficient and
403 first_recharge_required read as plain sentences.

One corner card, once per person on every page, except white-label builds and
desktops whose organization refuses the provider. It sits after update consent
and the account's notices, and waits out a live call. The first run's Connect an
AI step gains a ModelGo row. Every clickable link to ModelGo's site is one
tracked constant, enforced by a test. modelgo_offer reports shown, get_key,
add_key, not_now and close.

The lettermark is a placeholder for ModelGo's logo. The two room wire budgets
move to their measured sizes for the credential id this adds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ModelGo's real logo icon replaces the placeholder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Each ModelGo logo gets its own gradient ids

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(e2e): the renderer previews mark the ModelGo card seen

The once-per-person sponsor card sits in the bottom-left corner, over the
sidebar's foot, so on the previews' fresh profiles it covered "You" and the
control-omb ui and presets tests could not click it. The previews already mark
the Move from Grok Bot popup seen; they now do the same for this card
(threads-preview shows it again with ?modelgoOffer=1), as do the web app test
and the desktop bench. The one-workspace fixture already marks every notice.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Connecting an app asks which bots can use it

Connecting an app gave it to no bot, and the note on the Apps page sent
people to a Settings page that no longer exists.

- One bot: the app goes to that bot once the connection succeeds.
- Several bots: one small prompt, "Which bots can use {app}?", with a
  switch per bot. Started from a bot's "Connect another app", that bot
  is already on. Dismissing changes nothing.
- Each connected app says "Used by ..." or "No bots yet", with Change
  opening the same prompt.
- A failed or abandoned connection, a reconnect, and a second account of
  an already connected app ask nothing and write nothing.
- Team Cloud: only an owner or admin is asked or can change it, and is
  always asked, even with one bot. Each person's own helper is left out.

Every write goes through appSwitchPatch, the bot's own "Apps it can use"
switch. The stale per-bot note is removed from every locale.

Co-Authored-By: Claude <noreply@anthropic.com>

* A newly connected app is on for your bots, with no prompt

Replaces the "Which bots can use {app}?" prompt after connecting.

- Every bot whose apps are on can use the new app. Untouched bots
  already can; a bot with its own app list or tool list gets it added
  through appSwitchPatch.
- A bot whose apps are off stays off, except the bot the connection
  was started from.
- One line that needs no action, "Your bots can now use {app}." with
  Change, which opens the switch list. It outlives the Apps pop-up.
- Team Clouds follow the same rule for an owner or admin; a member's
  connection still writes nothing.
- An app the organization's rules refuse is never granted.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix(phone): show the pairing QR over the whole window in Settings

Settings' glass pane has backdrop-filter, which made it the containing block for the
pair dialog's `fixed` overlay: the dialog was squeezed into the Settings pane and the
QR's top was clipped. Portal the dialog to the body, and take Escape and Tab there
so Escape closes only the pair dialog and Tab stays in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(phone): move focus into the pair dialog, restore it on close, let Tab reach the code details

Addresses CodeRabbit review on #5290.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(phone): trim narrating comments in the pair dialog

Addresses CodeRabbit nitpicks on #5290.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#5104, #5112, #5115 and #5117 are stacked on #5100's branch. Recording its
head here makes their merges below carry only their own changes.

Co-Authored-By: Claude <noreply@anthropic.com>
A choice of bots at its switch has had My Cloud switch their automations on.
Letting go of them here then would run them in both places, so Move
everything stops only the choices that have not reached the switch.

Co-Authored-By: Claude <noreply@anthropic.com>
Conflicts: Settings search words and the key catalog, where main added
ModelGo; both kept, Ollama moves from the OpenAI-compatible row's words to
its own row. ModelGo (#5309) answers serverUnavailable with a sentence; this
PR makes that hook return { reason, ollama? }, so ModelGo now returns
{ reason }.

Co-Authored-By: Claude <noreply@anthropic.com>
Conflict: openai-compat.ts imports; main added operatorEnvKey, this PR
titleCaseModelId. Both kept.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Conflict: claude.ts imports; #5154 (in this train) reads the Claude list from
the model manifest, this PR adds claudeOAuthExpired. Both kept.

Co-Authored-By: Claude <noreply@anthropic.com>
Conflict: server/index.ts's long import line; main dropped the bot-limit
imports since, this PR adds coordinateTooLong. Kept main's line and added
the one import.

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	server/system-prompt.test.ts
# Conflicts:
#	server/index.ts
# Conflicts:
#	server/index.ts
#	server/runtime-coordinator.test.ts
#	server/runtime-coordinator.ts
#	server/runtime/runtime.test.ts
# Conflicts:
#	server/chat-apps-mcp.test.ts
#	server/chat-apps-mcp.ts
#	server/host/mcp-config.ts
#	server/host/team-connections-host.ts
#	server/index.ts
#	server/routes/mcp-servers.ts
# Conflicts:
#	server/drivers/agents-catalog-goldens/bridged.profiles.json
#	server/drivers/agents-catalog-goldens/bridged.tools-list.json
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/index.ts
Only a Cloud whose one person owns every Vault item lets a moved server name the items its vault: keys read; elsewhere an admin could point a server at a member's saved secret. A Team Cloud also stops advertising vaultKeys to a move.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Conflict in electron/cua.mjs: main now restarts computer control's helper
when it exits (cua-restart.mjs, bounded tries, stops when only the person
can fix it). #5126's socket watch is kept for what main does not see, a
Mac driver that hangs without exiting or a standalone one, and it hands
the restart to main's helper restarts instead of running a second retry
loop. Its own retry list and permission check are dropped as duplicates,
and the restart test now drives main's restarts with a socket per start.

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/bridged.profiles.json
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/index.ts
# Conflicts:
#	shared/wire.ts
#	src/components/DigestChip.tsx
# Conflicts:
#	server/index.ts
#	server/routes/bot-patch.ts
#5104's ProviderSnapshot import took the file to 1,001 lines; it shares the
line above instead.

Co-Authored-By: Claude <noreply@anthropic.com>
#5124 imported it on its own line; main already imports from peer-provenance.ts, so it joins that import.

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	electron/main.mjs
# Conflicts:
#	src/state/store.tsx
#5115 offered levels only to o-series and gpt-5 ids, so the gpt-6 family got
no control; it now covers gpt-5 onward, still leaving the chat aliases out.
A tool turn on a model OpenAI moves to /v1/responses dropped the picked
level, since that body was built without requestBody; it now carries it as
reasoning.effort. Tests cover both.

Co-Authored-By: Claude <noreply@anthropic.com>
Wired as not a Team Cloud and not a hosted workspace; absent, nothing is granted.

Co-Authored-By: Claude <noreply@anthropic.com>
It imports cua.mjs, which on main now reads translations other than English.

Co-Authored-By: Claude <noreply@anthropic.com>
Main added a chat-runtime engine (modelgo) after #5126 listed them; #5126's
own test that keeps the list complete caught it.

Co-Authored-By: Claude <noreply@anthropic.com>
- cloud-home and server-supervisor node tests stub the placeSwitch that switchEnvironment and switchLocalEnvironmentTo now read (#5134).
- ChatView controls: the ⋯ menu lists Start fresh in Simple remote and Advanced headers (#5152).
- PluginsPanel navigation: the suggestions state index moves past the app-grant hooks main added (#5130 with #5315).

Co-Authored-By: Claude <noreply@anthropic.com>
- deploy/install.sh: with a code, hand the connector's installer --customer-run and this
  install's folder (MAUSBOT_INSTALL_DIR). Before, an install made with --dir was not found
  by the connector's installer, which then set up an operated server beside it. A connector
  installer that does not know --customer-run refuses it, so nothing is connected rather
  than the wrong mode.
- server/data-format-released.json: 0.1.152 was released without the record; the test holds
  the record to package.json's version.

Co-Authored-By: Claude <noreply@anthropic.com>
A smaller logo below Boat's, with light and dark versions cropped from the
file ModelGo supplied, and a row in the services table. Both links use the
README tracking address ModelGo asked for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the three browser.extensions.* pt-BR strings that #5205 left out and
records their source hashes (also the pt-BR hashes for #5197 and #5199's
new strings, and drops hashes for keys main already removed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hand-off that finished before dispatch returned no longer reports the
false "stopped before it could continue in the built-in browser" failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict resolved from main's zh-tw.json and source-hashes.json plus the
PR's 145 zh-tw entries and their hashes (all equal sha256 of main's English).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/host/cloud-lending-turns.ts
The selector bug is still in 0.1.152 and Advanced mode is back there, so
the Simple-only wording is out of date. The screenshot keeps its name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code refuses a skill named by a Skill(<name>) deny rule, as a tool
call and as a typed /name, so each native skill a bot switched off is now
passed in that turn's --disallowedTools. The helper lives in
claude-unusable-tools.ts; claude.ts stays at its pin. The Skills page hint
now says that on Codex, while any native skill is off, the bot's turns
skip the skills.config list in ~/.codex/config.toml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/host/question-routing.ts
#	server/index.ts
# Conflicts:
#	server/drivers/chat-mcp-tools.ts
Takes only the changes of 6e238ade3 onto main (a4b37645f is already on
main): a second Reload keeps both earlier drafts, the text is read-only
while saving, and three new tests. Main's doc comments are kept, and the
pt-br.json / source-hashes.json hunks are dropped because main already
has them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the desktop app the browser runs on the person's own computer, where
127.0.0.1 is that computer, and a Cloud home has no Settings → Browser →
Open sites on this server row, so the hint stays quiet when
OMB_DESKTOP_PARENT is 1 or any Cloud home key is set. Tests cover the
desktop and Cloud cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
Goldens conflict resolved from main's goldens: full.tools-list.json takes
only the PR's start_thread.message description edit, and profiles.json
keeps main's entries except the 15 profiles whose wire is a plain subset
of the full golden (bytes and sha256 recomputed from it by data hashing,
the method checked against main's own 15 entries first). The 13
non-chief, cloud-home and mausbot entries still need a regeneration run
(UPDATE_AGENTS_CATALOG_GOLDENS=1). BUDGET_BASELINE stays at main's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/PhoneDevicesSection.tsx
#	src/components/SettingsModal.search.test.ts
- The room test sent its first line without the app's origin, so the work started outside and kept the old path by
  design. It now comes from the app, as a person's line does, and the room's unanswered approval parks.
- The Chief test's retry runs Mira's RUN-TESTS step twice, so that entry repeats. The parked ask can resume Clive
  before the person answers (a race), so Clive has an optional entry for it instead of failing an unplanned turn.

Both files failed on the PR branch alone; with these they pass (the Chief test 4 of 4 runs).

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
#5117's star was hover-only and tabIndex -1, so a keyboard user could not
reach it, and touch-actions.test.ts flagged it. In the model menu the arrow
away from the start of the line now moves from a model's row to its star and
back; Up and Down from the star move between rows as from its row, and Enter
or Space on the star stars the model instead of picking it. The star shows
while it or its row has keyboard focus, and stays shown on touch screens.

Co-Authored-By: Claude <noreply@anthropic.com>
#5136 adds to the one sign-out notice the bots on that AI with no backup.
limit-reset.e2e still expected the notice without that sentence; it now
expects it. The fixture's starter bot is on the same Claude, so it names two
bots, which read "Kai, Fixture Starter"; two or three names now join with
"and". The notice is still said once for many refused turns in a row.

Co-Authored-By: Claude <noreply@anthropic.com>
Its tool-description change needs agents-catalog profiles.json regenerated,
which runs the server; that waits for its own follow-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5279 asked Wait / Stop and switch / Cancel in a native dialog before a
local place switch stopped work under way. Rework it to fit the
no-ask-first rule: the switch now waits for as long as the work goes on
(no time limit while the busy ring shows), and a second click on the same
place opens it at once, cutting the turns short as a quit does.

The dialog, its five native.places.busy* strings (en, pt-BR, hashes) and
the main.mjs wiring are gone; main.mjs is back at its pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pt-BR values for all 20 new claudeBedrock.* keys.
- Copy: claudeBedrock.hint says "Run bots"; claudeBedrock.modelHint uses
  {app} and no longer calls the model optional.
- The model is required in claudeBedrockSchema and the form (Save waits
  for it). The guessed global.anthropic.* default list is gone, since it
  produced ids Bedrock rejects. The saved model is reported back so Edit
  shows it.
- claudeBilling treats CLAUDE_CODE_USE_BEDROCK=1 as metered: Bedrock bills
  the AWS account per token, so budgets see the spend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5126 made every built-in MCP server optional except agents, including the
computer server when it is a Local VM, and let a turn carry on when a server
fails mid-turn. That broke the rule that a turn given a Local VM fails when
the VM lists no tools, can't start, or dies, instead of doing the work some
other way outside the VM (server/openai-compat-vm.e2e.test.ts).

The computer server is now optional only when it is this desktop's own
computer (scope local-computer), which is the case #5126 was fixing. A Local
VM and the agents server are must-have: failing to start or listing no tools
fails setup, and a failure during a call ends the turn's session as before.
Unit tests cover both sides of the boundary.

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	server/routes/bot-patch.ts
Owner decision: the Claude plan-usage meter is off for everyone. The
`usageMeter` instance opt-in is removed, so there is no hidden setting:
every Claude instance is listed with noUsage and its login is never read.
A refused turn still holds the account and fails over as before.

- plan-usage.ts: Claude accounts are always noUsage (net 0 lines, pin 1046).
- Tests for the opt-in are replaced by one that no Claude instance's
  login is read while other engines still are.
- engine-limits e2e: Claude now reports "unsupported" (no usage read).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5203 added a per-bot "Run code in the apps' sandbox" setting so a bot
with per-app grants could call COMPOSIO_REMOTE_WORKBENCH / BASH (needed
to stage a file for GOOGLEDRIVE_UPLOAD_FILE). Rework it to fit the
no-new-settings rule: there is no switch. A direct sandbox call passes a
bot's per-app grants and scopes only while its turn runs at Full access,
judged again at dispatch; below Full access it stays refused as before,
and a sandbox tool inside COMPOSIO_MULTI_EXECUTE_TOOL is always refused.
Its tools/list offers the sandbox tools only in a Full-access turn.

The relay logic lives in connector-verdict.ts (appSandboxRule), so
server/index.ts stays at its pin (15569). The appSandbox field, its patch
validation, the Access switch and its en/pt-BR strings are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Train: apps-ui (#5130, #5145, #5291, #5152, #5131, #5134)
- deploy/update.sh: after a rollback, .env is byte for byte what it was. Only when it named a tag that moves
  (`stable`, `latest`, or no image, which the Compose file reads as `latest`) is the old version pinned by its digest
  instead, so a later installer run or `docker compose pull` cannot bring back the version that was undone. A
  released version's own tag (`:v0.1.150`) or a digest never moves and is left alone. Before, every rollback rewrote
  OMB_IMAGE to a digest, and the real-server check of #5171 failed on it from the start.
- docs/deploy-vps.md (and the docs site copy): the installer's backup made its archive with `umask 077` only. A default
  ACL on the folder overrides the umask, as on CI's runners, where the archive came out 646. It now goes into
  `/opt/openmausbot/backups`, made 700, and is chmod 600 after tar. The path B, npm and before-update archives get the
  same chmod. deploy/e2e/run.sh runs the command as the docs now give it and also checks the folder's mode.
- scripts/testing/deploy-update.test.ts: .env comes back exactly for a version tag and a digest; a moving tag is pinned.

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
The agents catalog goldens are regenerated with UPDATE_AGENTS_CATALOG_GOLDENS=1 on the combined tree.

Co-Authored-By: Claude <noreply@anthropic.com>
README: ModelGo under Boat, as the inference provider sponsor
A Windows vitest shard ran one file at a time and took 830 s (job median,
152 PR shard jobs on Nov 10, 2026; tests alone 717 s), the last job of every
run that has Windows. Its runner has 4 vCPU, so it now runs two files at once,
as the Linux shards run four. Ports are already per worker
(server/testing/worker-port.ts) and timeouts already double on Windows.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* test(usage): hold the 2,000-call booking to its CPU time, not a shared CPU's wall clock

"records 2,000 tool calls in one turn without holding up the event loop"
failed on an Ubuntu shard with 63 ms against its 50 ms budget. The budget
timed the turn's end and booking on the wall clock, and a Linux shard runs
four files at once on four vCPU (since Nov 4), so the clock also counts
time the OS gives another file's process. On a Mac with 16 busy loops
beside it, the same booking measured 34-54 ms on the wall clock and
6-7 ms of its thread's CPU.

The 50 ms budget now holds the thread's CPU time (process.threadCpuUsage),
which still counts the booking's own garbage collection. The wall clock
keeps a bound at hostTimeout(50), the doubling every timeout already has
where the CPU is shared, so a blocking wait still fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(browser): S4 pages starts its extra Chromes in a hook, not inside a test's 40 s

"closes popups past the tab limit" timed out at 40 s on windows-latest
(run 42873583807, attempt 1; 1.9 s when it passed on the re-run). The test
started its own Chrome on a fresh profile inside its body. On Windows that
start also opens the harness's first page, which Chrome there now and then
loses and the harness opens again (dc5537149), and the launcher gives a
first start up to 120 s. The suite's own Chrome gets hostTimeout(180_000)
in beforeAll for exactly that; the three Chromes started inside tests
(limit, retina, fit) got only the test's 40 s.

They now start in their own beforeAll with the same budget as the suite's
Chrome. Each test keeps its 40 s for what it checks, and every assertion
is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Merge train C (Nov 11): native skill switch, browser tool args, Settings dialogs over the window
One launch showed one notice and only the product-updates question could follow, so What's new (or any card ahead of it)
took the launch and the sponsor's card waited for some later launch. Now the card may follow the launch's notice once it
is closed, after the question, and is still first when nothing else is due. It never goes ahead of a notice the person
has to act on (the move popup, a trial's notice, the account's card): it waits for that notice's launch and follows it
there. It never replaces a card that is still up, and its seen record and exclusions are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
server/host/mcp-servers-host.ts: main's Vault-key mounted/prepare/off/listing,
plus #5197's `given`. source-hashes.json: main's file, then --record-hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
#5141 drops a blank model effort for start_thread before the schema check, so
the minLength case for model_selection.effort no longer reaches a refusal.
That one case now asserts the blank is dropped; every other bound is still
refused, and the test pins that start_thread effort is the only one dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ModelGo's card follows the launch's first notice, so everyone sees it on their first launch
* Bot box: pass only the OMB_ variables a bot's processes read

The box's environment let every OMB_ name through except the control
plane's and the server's placement, so a setting an operator put on the
server, such as OMB_SIGNIN_SMTP_URL with its password, reached every bot's
shell. Now only the OMB_ names a bot's engine, its hooks and the MCP
proxies it starts read pass (BOX_ENV_OMB_NAMES, plus the per-server
OMB_MCP_TOKEN_, OMB_GATE_CONFIG_ and OMB_REMOTE_MCP_CONFIG_ families);
every other one stays on the server. A test lists every OMB_ name the
server's code knows and fails when one has no decision. The boot
self-check now also proves an operator setting stays out of the box.

Co-Authored-By: Claude <noreply@anthropic.com>

* Bot box: decide OMB_MODELGO_API_KEY, and keep the CLI's session token and address out

- env.test.ts: OMB_MODELGO_API_KEY (from the ModelGo provider on main) stays on the server; it was already
  refused as a workspace credential, and the "every OMB_ name has a decision" test needs it listed.
- env.ts: OPENMAUSBOT_TOKEN and OPENMAUSBOT_URL join the never-list. Only the CLI (server/headless/client.ts) and the
  stand-alone MCP server (scripts/mcp-server.ts) read them, and neither runs in a box: no spawned proxy, hook or helper
  imports them, and the harness never sets them for a bot. An operator's own CLI token in the server's environment
  passed into every box under the engines' OPENMAUSBOT_ prefix. The engines' OPENMAUSBOT_ keys still pass.
- The boot self-check now also plants OPENMAUSBOT_TOKEN, and docs/bot-box.md names both.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Merge train D (Nov 11): Amazon Bedrock engine, Claude usage meter off
server/drivers/claude.ts: keep main's Bedrock error wording and native-skill rules and the models train's expired
OAuth sign-out flag; a turn's final error goes through bedrockResultError and still sets setup when the OAuth
session expired.

Co-Authored-By: Claude <noreply@anthropic.com>
The bot box (main) now needs a decision for every OMB_ name the server knows. The model manifest's
OMB_DISABLE_MODEL_MANIFEST_FETCH and the tailnet share's OMB_TAILNET_NAME, OMB_TAILNET_ADDRESSES, OMB_TAILNET_SERVED and
OMB_TEST_TAILNET_STAND_IN are read by the server only, never by a bot's engine, hook or MCP proxy, so none passes into a box.

Co-Authored-By: Claude <noreply@anthropic.com>
Main's setup-import e2e expects DELETE of a skill from this computer to
answer 404 (one copy for all bots, nothing to delete). #5226 answered 409;
keep its explanatory messages with main's status, for imported and native
skills alike. The room-turn failure in the same file followed from it: the
earlier test stopped before switching review-pr back on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train E (Nov 11): #5279 and #5203, reworked to fit the rules
A connect request without an alias for an app that already has an
account shows its card as connected and adds no account. The bot now
gets a note saying so, with how to ask again with an alias to add
another account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After an update killed while it waited, the next run asks before it puts the old version and its data back. Its
health checks before that question run `docker compose exec`, which forwards standard input to the container, so a
`yes` piped in (as the real-server check's step 6 does, and as any automation would) was swallowed and the run
answered "Nothing was changed", leaving the server on the half-applied version. The script now keeps its standard
input on fd 4 for its questions only, and everything it starts reads /dev/null.

The fake docker in the unit tests now takes standard input on `compose exec` as the real one does; with it, the old
script fails two tests (the new killed-while-waiting one, and "keep"), and this one passes them.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Merge train Nov 11 A: 18 AdityaUmale PRs
* Control plane config: the tunnel switches as they are live

Tunnel release at 100%, the at-limit relay answer from 0.1.152, and tunnels only for desktops from 0.1.145.
These were set on the deployed Worker on Nov 10 2026; the file now matches so the next deploy keeps them.

Co-Authored-By: Claude <noreply@anthropic.com>

* Control plane: remove a released tunnel whose computer is still online

Cloudflare refuses to delete a tunnel that has active connections (API
error 1022), and the desktops the release and the version cutoff take
tunnels from are online with cloudflared connected. Marked rows stalled
in 'deleting' with cf_api_1022 and the release's backpressure stopped
marking more.

- deleteTunnel names 1022 cf_tunnel_connected; new
  cleanupTunnelConnections (DELETE .../cfd_tunnel/{id}/connections).
- A forced removal (release, owner's delete, revoked installation) that
  meets cf_tunnel_connected drops the connections and deletes again at
  once, for at most two rounds, the last with ?cascade=true (what
  `cloudflared tunnel delete --force` sends). Idle reclaim is unchanged:
  it never forces, and its next attempt cancels a connected tunnel.
- A forced removal still refused as connected backs off as before and no
  longer counts toward the release's backpressure.
- Per-row worst case 14 Cloudflare calls (was 12 for idle reclaim); the
  Workers Free guidance becomes 3 rows.
- vitest.config pins the release switches off, so the suite does not
  pick up the live values in wrangler.jsonc.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
server/index.ts: a hand-off keeps the handoffs train's fanOut and main's steer of a bot's own report-back thread.

Co-Authored-By: Claude <noreply@anthropic.com>
CodeRabbit on #5348: when no sign-in starts, the bot is told to carry on in the
same turn and the cards are marked resumed, so no contradicting connection update
follows. The note no longer claims an account exists (no-auth apps).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hand-off Inbox change gives finished handed-on work one unread news line, which the requester's summary
replaces. place-inbox.e2e's working-for test left that line unread, so the next test's badge count was 1 after it
read its own news. The working-for test now waits for the summary line, checks it is the only one for that job and
unread, reads it, and expects the count back at 0. Reading clears it; the product code is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
With the team's own Composio project key saved, an app each person
connects for themselves still went through the managed connected-apps
service. It now goes to the team's project: each member is their own
Composio user there, and their connect links, connections, tool calls
and disconnects use the team's key. Nothing of theirs is sent to the
service while the key is saved.

- A member's Composio user id is made from the team's id and the hashed
  person key (omb_member_...), so it is the same at every start and
  gives Composio no address. It never starts with openmausbot_, which a
  personal installation on the same key may adopt as its own user.
- The calls reuse the project-key paths in server/composio.ts with the
  member's user in place of the team's. A member's Session is kept in
  people-connections/project-apps.json, never in config.json, and is
  used only while Composio says it is that member's user.
- A member who leaves has their connections removed from the project.
  If Composio can't be reached then, it is tried again at the next start
  and before that person can connect again.
- After the team saves, removes or changes its key, a member's app shows
  as not connected with `reconnect: true`, and their bot says to connect
  it again. Installations made on the service before are left there and
  counted for admins (appsLeftOnService); they are not erased.
- OMB_COMPOSIO_BROKER=off with no key: connecting answers 409 with a
  plain line to ask an admin for the team's key, in place of the 503
  "try again in a minute".

Without a key nothing changes.

Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
* Control plane config: the tunnel switches as they are live

Tunnel release at 100%, the at-limit relay answer from 0.1.152, and tunnels only for desktops from 0.1.145.
These were set on the deployed Worker on Nov 10 2026; the file now matches so the next deploy keeps them.

Co-Authored-By: Claude <noreply@anthropic.com>

* Control plane config: the old-phone cutoff at 100% and a one-day release wait, as live

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Train: self-hosting (#5157, #5172, #5171, #5303, #5304, #5158, #5189, #5305)
The #5203 rework opened a direct COMPOSIO_REMOTE_WORKBENCH / BASH call
at Full access past a bot's scopes, so a bot with Gmail set to read only
could still send through sandbox code. That broke the trust-controls
e2e test on main.

Now the sandbox opens only at Full access AND only for a bot whose
scopes limit nothing: per-app grants alone keep the Drive-upload fix.
The relay runs the scope check over the full call list again, as main
did before, and a refused direct sandbox call gets the sandbox refusal,
which now says a limited app (such as read only) is why. A scoped bot's
tools/list no longer offers the sandbox tools. server/index.ts stays at
15513 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in apps/docs/content/docs/self-hosting/index.mdx: main's new
one-command server section, with #5260's BYO VPS line kept under the intro.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Control plane config: the tunnel switches as they are live

Tunnel release at 100%, the at-limit relay answer from 0.1.152, and tunnels only for desktops from 0.1.145.
These were set on the deployed Worker on Nov 10 2026; the file now matches so the next deploy keeps them.

Co-Authored-By: Claude <noreply@anthropic.com>

* Control plane config: the old-phone cutoff at 100% and a one-day release wait, as live

Co-Authored-By: Claude <noreply@anthropic.com>

* Control plane: a self-hosted server keeps its tunnel under the old-phone cutoff

With TUNNEL_LEGACY_PHONE_CUTOFF_PERCENT on, provisioning answered every
relay-capable installation without a tunnel `409 relay_capable` with
`tunnel: "retired"`. A self-hosted server (`openmausbot serve --tunnel`,
a fleet container) has no phone relay; its tunnel is its public address,
so a new or re-signed-in server could not get one.

- Optional `kind: "desktop" | "server"` on registration, provisioning
  and relay-token requests, stored in installations.kind (migration
  0016). Accepted before any client sends it.
- Provisioning never answers a server relay_capable: it gets or keeps
  its tunnel, and the capacity 503 at the limit. The minimum version
  still applies.
- An installation that has not said is a server when it sends no
  legacyDevices and has never asked for a relay token: every released
  server and fleet container, and no desktop whose companion runs or
  that has used the relay.
- The cron never marks a server's tunnel for relay_proven or
  legacy_cutoff; min_version still applies. /healthz counts leave
  servers out.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
fix(connectors): read-only scopes hold even at Full access for the apps' sandbox
A bot on the Hermes engine queued every message sent while it worked:
the shared ACP driver offered no steer, so the composer always queued.
hermes-agent takes mid-turn input through its ACP `/steer` command (sent
as a second session/prompt while the turn's own prompt is open; from
0.22.3 the gateway's session.steer) and answers it with "Steer queued
for the active turn".

The ACP core gains an optional per-engine steer support. Only Hermes
sets it, so every other ACP engine keeps no steer and no queueing:
- steer() sends `/steer <text>` only while the turn's prompt is out and
  the session advertised `steer` in available_commands_update; a picture
  is refused (/steer is text-only).
- Hermes's answer is kept out of the reply; "steered" only when it
  accepted the words while the turn still runs, "refused" for its
  failure line or an error while the turn runs, "indeterminate" when
  the turn ended first (Hermes then runs the words as its next prompt).
- A steer still out when the turn's prompt is answered holds the turn
  open until it ends, so words Hermes ran as a prompt stream into it.

The native-log redaction moves to tool-log.ts so core.ts does not grow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Team Clouds: one "Just me / Team" switch in the sidebar, and who can see it by the message box

On a Team Cloud the sidebar gets one switch at its top. Just me lists the
bots a person can chat with privately, with their own conversations; Team
lists the bots with a shared chat, their shared conversations and the group
chats. The side of a conversation is the server's answer (private on the
task), never the switch. Every conversation on a team says who can read it
by the message box, from that same answer, and the switch follows the
conversation on screen. The People list becomes a row of faces.

A click on a bot now waits for the session before making a private chat, so
a second one is no longer made when the page opens before the session is read.

Personal installs and My Cloud are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>

* Team switch: a reload keeps the chosen side, and a row carries only its side's marks

The side a person chose is now kept only when they press the switch or open
a conversation themselves (another bot or group chat, one opened by name,
one they just made). A conversation that came on screen unasked is never
kept: the first one a page shows, the shared chat the app opened as it
started before it knew this is a team's Cloud, or the bot's own pick moving
because a teammate opened another. The page goes back to the chosen side,
to the person's own conversation with that bot.

A bot's row on one side no longer shows the other side's unread mark,
working line or preview. On a team the older per-bot draft is not read, so
a draft never crosses to the other side's message box. The first-time hint
is one short line.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Train: #5143 on current main
* fix(team): refuse someone else's retry on the server; remove a deleted conversation's and bot's leftover files

Retry: on a Team Cloud the app hid Retry on a stopped request from people
who may not use it, but the server ran it for anyone. The edit route (Retry
and Edit are the same route) now holds the rule the app applies: the
request's writer, an Owner or Admin, or anyone for a request no person
wrote. Others get 403 retry_not_yours. The reply menu's Regenerate follows
the same rule. Private chats and personal installs are unchanged.

Delete: deleting a conversation now also removes its uploads (unless
another conversation, a picture or a routine still uses them), its box
uploads folder and its Claude Code, Codex and Pi session files (unless a
remaining conversation resumes the same session). Deleting a bot also
removes its checkpoints, its conversations' folders and its room and
member memory layers. Nothing is reached through a link, a failed delete
removes nothing, and a failed cleanup is logged and never fails the delete.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(delete): keep the files a bot made when it or its conversation is deleted

A conversation's own folder (task-workspaces/<bot>/<thread>) holds the
person's generated files, and stays on bot delete as it does on
conversation delete. An upload a team member's picture names also stays.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(team): a member retries or rewords their own request in a shared chat someone else started

In a Team Cloud's shared conversation the run-owner rule alone decides who
runs a request again (its writer, an Owner or Admin), not who opened the
conversation. Renaming or deleting the conversation stays with whoever
opened it; private chats and personal installs are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Hermes: steer a message into the running turn with Hermes's /steer
016535f75 (train #5335, reworking #5203) let a direct
COMPOSIO_REMOTE_WORKBENCH / COMPOSIO_REMOTE_BASH_TOOL call skip the bot's
per-app scopes as well as its tool grants whenever the turn runs at Full
access. Code in the sandbox can reach any connected app, so an app the
owner switched off or made read-only for the bot was no longer enforced
for that code. The trust-controls e2e assertion added in #5099 (workbench
run_tool send refused once Gmail is read-only) has failed on main since
#5329 and #5335 both landed.

Scopes are now checked for every call again (live and at dispatch), so a
bot with per-app scopes is refused the sandbox as it was before #5203; a
bot with grants and no scopes still runs it at Full access. Its tools/list
no longer offers the sandbox tools to a bot with scopes.

Co-authored-by: Claude <noreply@anthropic.com>
Usage told admins the name and id of a member's private routine and the ids
of private conversations. To anyone but the person, a private routine is now
the one line "Private routine", a row from a private chat names no
conversation, and a person's own MausBot is "Private bot"; the amounts still
count toward the person's and the team's totals.

An admin could rename, re-instruct, share, chat with and read the notes of a
member's own MausBot, and saw every member's in their bot list. It now exists
for its person alone: no other member and no admin sees it in any list,
stream, search or export, and on a Team Cloud a hidden bot and an id no bot
has are refused alike at the one gate, 404 "no such bot", on every route.

A routine made from a private chat was shared by default. The form now
presets the audience of the place it was opened from and always shows who
will see the routine; the server makes a new routine that names no place its
writer's alone.

Found by the same audit and closed: admin activity recorded a person's
changes to their own MausBot, team exports (manifest and package) carried
every member's MausBot, the decision log named it, and the bulk "looked after
by" route told it from a missing id.

Co-authored-by: Claude <noreply@anthropic.com>
Merge train B (Nov 11): 23 community PRs
* Self-hosted servers: phones through MausBot Relay (serve --relay)

A server on a VPS can now let the phone app pair by QR through MausBot
Relay, end-to-end encrypted, with no domain, open port, VPN or tunnel
address. Off unless asked for: `openmausbot serve --relay`, or
OMB_PHONE_RELAY=1 in Docker. `--tunnel`, own domain and `--tailscale`
are unchanged.

The server runs the desktop's own end-to-end responder and relay client
(companion/src/e2e) in process, with its sessions as the paired phones,
and hands every encrypted stream to its request handler as a remote
request: a phone signs in with its own session and never gets loopback
trust. `login --relay` signs a machine in without reserving a tunnel
address. Design and the open questions: docs/phone-relay-server.md.

Co-Authored-By: Claude <noreply@anthropic.com>

* Phone relay: keep it off where a tunnel lives, and tighten relayed streams

- Never ask for a relay token on a machine that serves --tunnel, runs on a
  fleet credential, or holds a tunnel address: until the control plane
  tells servers apart, a relay token costs that tunnel for good. The server
  says why in its log and in `pair --phone`; `start --relay` refuses a
  saved tunnel choice.
- `service install --relay` passes the flag on; `serve --relay` prints the
  pairing QR only at a terminal.
- Through the relay, /api/pair takes only the QR's credential, and the
  browser's /api/auth/pair answers 404. The pairing lockout is counted per
  paired phone and per pairing window.
- At most 4 live sessions per phone (2 per pairing window); deadlines for
  stalled request headers and bodies on relayed streams; a stream ticket
  counts only for the phone it belongs to.
- The grant reads "ok" only once it is valid, and stays "ok" through a
  passing failure while it is still held.

Co-Authored-By: Claude <noreply@anthropic.com>

* Self-hosted servers say kind "server" to the control plane

The hosted control plane now takes an optional `kind` on registration,
POST .../self/endpoint and POST .../self/relay-token, and never gives a
server's tunnel to the relay. The server sends `kind: "server"` on all
three (`login`, `serve --tunnel`, a fleet container, `serve --relay`); the
desktop sends nothing new, so its requests are unchanged.

The server still keeps the relay off where a tunnel is held or needed, in
case it points at a control plane without that rule. `serve --tunnel` now
marks itself with OMB_SERVES_TUNNEL: OMB_TUNNEL_SOCKET alone is the socket
Docker's Caddy uses and is no tunnel. OMB_PHONE_RELAY reaches the server
container in the installer's compose too.

Co-Authored-By: Claude <noreply@anthropic.com>

* Phone relay: keep long answers alive, and ask an older control plane without kind

- The body deadline on relayed streams fires only for an unfinished
  request. A GET whose handler never reads it (the event stream, a
  download) was cut at five minutes while still answering.
- An older control plane refuses `kind` (400 invalid_request): the client
  asks once more without it, for that refusal only.
- OMB_PHONE_RELAY, OMB_PHONE_RELAY_URL and OMB_SERVES_TUNNEL are server-only
  variables, never passed into a bot's box.
- The doc says what the relay-token body now carries.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
- server/index.ts: the routes keep main's seats route and the cloud train's bot moves on the desktop; shutdown closes
  main's webhook socket and phone relay and the cloud train's tailnet share.
- server/routes/instances.ts: both new GET routes, the models train's Ollama finder and main's engine health check.
- server/bot-box/env.test.ts: the server-only list has both sides' names (OMB_UPDATE_CHANNEL, OMB_WEBHOOK_SOCKET and the
  tailnet and model manifest ones).

Co-Authored-By: Claude <noreply@anthropic.com>
A routine's report took the files of every line between the person's last line and the next, so it also carried the
files of an earlier turn of the run, or of a goal that ran in the same stretch, and lost the files sent before a goal
queued while its turn worked. A line attach_file posts now records the turn that sent it (sentInTurn), and the report
carries the files of the reply's turn only: its attach_file lines, then the reply's own generated images and voice
notes, without the images its tools returned. A reply that names no turn carries only its own files.

A report held while its chat was busy kept no record of a turn that said and sent nothing, so a run resumed after a
failure re-posted the earlier turn's reply instead of saying it recovered. After a restart, a report whose last turn
only sent files was read from the earlier turn's reply. A held report now remembers that its turn said nothing, and
after a restart the last turn is found by the lines it settled on or the files it sent.
Train: combined (models-engines #5323, cloud-computers #5325, handoffs-burst #5331)
Desktop: once this computer's secure link for older phone apps has ended and a
paired phone still has an older MausBot app, a corner card says to update the
app on that phone and pair it again, with Open Phone & devices. Once per such
phone, on this computer's own page only. Phone & devices gets Pair again on the
phone's row.

Bots: main tells the local server how many paired phones are in that state, and
every bot's prompt carries a Phone link line only while it is true. A bundled
phone-connection skill explains Same Wi-Fi and Anywhere, through MausBot, and
what doesn't help.

Co-authored-by: Claude <noreply@anthropic.com>
* Announcement cards from a file on main, without a release

Sponsor offers, product news and tips can now reach people without an app update.
The cards live in announcements/announcements.json (shipped empty), with a JSON
Schema beside it generated from the app's own schema. Whoever can merge to main
publishes a card; installs on this version or later pick it up within the hour.

The server downloads the file from raw.githubusercontent.com in the shape of the
model manifest's fetch: a bundled copy, a disk cache of the last good download,
at most hourly, ten seconds and 64 KB at most, updatedAt-ordered so a stale CDN
copy cannot bring a card back, and any failure keeps the last good copy without
a word to the page. It fetches only when a page asks (GET /api/announcements, at
launch and about hourly), with no cookie, id, version or query string.
OMB_DISABLE_ANNOUNCEMENTS=1 stops the download and every card.

The page decides who sees a card from what it already knows: version, platform,
surface (desktop, Cloud, other server), plan, new or existing, language, and
three conditions (no_api_key, one_bot_only, no_routine). An unknown audience key
or value matches no one. The card is drawn with the existing NoticeCard: plain
text in up to sixteen languages, an https link opened outside the app or one of
five in-app places, and a picture only from the repository's announcements/
folder, loaded without cookies or referrer and held to 120 pixels high.

Rules the app keeps whatever the file says: once per person per id (the ModelGo
card's seen records, minus a Team Cloud's shared one), through the notice queue
after every notice someone must act on and the built-in offers, one remote card
a launch, one sponsor card a week, the ModelGo card's exclusions, nothing on a
branded build, and no sponsor card where an organization restricts providers or
for a Team Cloud's members who are not its owner or an admin. Each card counts
one announcement event per step under the existing analytics switch.

scripts/check-announcements.mjs validates the file strictly (unique ids, https
links, known actions, text limits, a label on sponsor cards, an end within 180
days, pictures present and small, updatedAt moved forward), and the static CI
job runs it on every event, so a bad edit cannot merge. Tests and previews set
OMB_DISABLE_ANNOUNCEMENTS=1 and never see the live file. docs/announcements.md
is the owner's guide and field reference.

Co-Authored-By: Claude <noreply@anthropic.com>

* Announcement cards follow the launch's first notice, as the sponsor's card does

A remote card waited for a launch no other notice claimed, so a sponsor's card
could take several launches to reach someone. It now joins FOLLOWERS: once the
launch's notice is closed it may follow in that same launch, after the
product-updates question and the built-in sponsor's card. It keeps the sponsor
card's guards: it never replaces a card still up, and never goes ahead of a
notice to act on (the move popup, a trial's notice, the account's card), even
one left for a later launch, where it follows instead. One remote card a launch
and one sponsor card a week still hold, so a second remote card never follows
the first.

Co-Authored-By: Claude <noreply@anthropic.com>

* Announcements: line-ending independent check, and the env switch kept from bots

The announcements check compared the committed JSON Schema with the one it
generates byte for byte, so a Windows checkout's CRLF failed it. It now ignores
line endings there, in the updatedAt comparison and in the size cap, and
.gitattributes pins announcements/*.json to LF so a Windows checkout matches
what installs download.

OMB_DISABLE_ANNOUNCEMENTS is the server's own switch: it joins SERVER_ONLY_OMB,
so a bot's box neither sees nor sets it.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
Unicode puts the long vowel mark ー, and the half-width ー, ゙ and ゚, in
the Common script, so the query side split コーヒー at each ー. The kana
left on their own were dropped as particles and the mark as a stray
character: recallTerms gave nothing for コーヒー, サーバー or メール, so
auto-recall missed the note and a team search returned every entry. The
marks now count as CJK, so such words make bigrams that match the index.

A stretched vowel (えーーー, うーーーん) is left out like a filler word, so
a drawn-out interjection does not recall a note that holds a ーーーー line.
deploy/install.sh made its install folder (and the caddy and box folders)
with `mkdir -p`, and update.sh wrote compose.yaml and Caddyfile with plain
redirections, so both took their modes from the caller's umask. Started
from a root shell with umask 000 the install folder came out 777 and those
files 666, writable by everyone on the server, and root later runs what is
in them.

Both now set umask 022 first. The installer makes its folders with
`install -d -m 755` and, on a re-run, takes group and world write away from
an install folder or data folder that has it, saying so. Files keep the
modes each write gives them (.env 600, data 700).

The installer and update.sh tests run under umask 000 and check every mode;
both fail on the previous scripts (777 and 666). The real-server e2e runs
the installer and update.sh under umask 000 and checks the same modes.

Co-authored-by: Claude <noreply@anthropic.com>
Conflicts: main added a per-bot switch for skills an engine loads by
itself (native-skill-choices). Kept it everywhere: native listings carry
the bot's switch, / skips switched-off natives, and the Skills page shows
the switch for native skills; project skills stay read-only behind the
projectSkills setting.

Review fixes:
- A thread's folder follows store.pinTaskCwd before its first pin: a task
  that already resumes a session gets none, so /name never runs a skill
  from a folder the turn will not work in.
- Outside a git repository, project skills come from the working folder
  alone, never from folders above it.
- The switch hint says Claude bots load .claude/skills by themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A room turn compares same-named skills against the room's folder, not the
bot's, and /name in a conversation that keeps a private folder (a Cloud
guest's, a bot API thread) resolves skills there, as store.pinTaskCwd will
pin it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DELETE /api/bots/:id/skills/:name unassigns a library skill only when the bot has no private skill of that name. A private skill removeSkill refuses (an unsafe skills root) answers 409 with its error; a protected manifest that is there but can't be read answers 409 too, instead of passing for an empty list. ownsPrivateSkill tells the two apart.

A library opt-out list that is missing means no opt-outs; one that is there but can't be read or parsed counts as every library skill, so a damaged file no longer puts every-bot skills back for that bot. Explicit assignments still win.

The native skill hint no longer says Codex turns skip the skills.config list in config.toml: on codex-cli 0.163.0 and 0.167.0 those entries stay in effect alongside the per-turn override.

Refs #5449
A switched-off native skill was passed to Codex as {name=…}, which also switched off the same-named skills OpenMausBot links into the turn's .agents/skills. Codex turns now get one {path=…,enabled=false} per SKILL.md of that name in $CODEX_HOME/skills, ~/.agents/skills and /etc/codex/skills, built from the turn's HOME and CODEX_HOME before the turn starts.

The Skills page lists Codex skills from ~/.agents/skills and /etc/codex/skills with a switch, as it already did for $CODEX_HOME/skills.

A skill from this computer the bot switched off stays off for the engine too: its name and the SKILL.md it was brought in from join the native deny list. Switching the engine's copy back on clears that switch. Imported copies under a ChatGPT plan's linked skills folder compare by real path.

A native-skills.json that is there but can't be read or parsed no longer means every native skill on: the page shows them off, /name does not expand them, switches refuse to write over the file, and Claude and Codex turns do not start until the file is fixed or deleted.

Refs #5449
- Codex 0.167 loads .agents/skills from the project by itself, like
  Claude Code and .claude/skills: it now shows as Codex's own skills, with
  the bot's own switch, and stays out of the project index.
- A skill marked user-invocable: false reaches the project index for the
  model; /name never runs it.
- A working folder or skill folder that links into the data folder brings
  no project skills.
- The trust switch stays on the Skills page while it is on, and says it
  trusts every project folder every bot works in. Bot Settings says when a
  project skill is off.
- Docs say what the switch does not govern.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Update server button: a self-hosted server updates itself from the app

Settings > Updates on a self-hosted server's page now has one row that says
what is behind (the server, the desktop app, or both) and offers the one
action that fixes it.

- Host side: deploy/update-runner.sh. The installer adds it (systemd path
  unit openmausbot-update.path); a checkout adds it with
  `sudo ./update-runner.sh --install`. The server can only leave a file in a
  folder of its own; the runner never reads it and runs `update.sh --dir DIR`
  (stable, copy first, rollback on failure), at most once every four minutes,
  never while /etc/mausbot/policy.json holds updates, and writes the outcome
  into a folder the container sees read-only. No Docker socket in the server.
- Server: GET/POST /api/updates/server, an admin's session only (never
  loopback), one request at a time, five minutes apart, logged in the admin
  activity log. Hosted Clouds and this computer's own server show no button.
- App: a confirm that the server restarts and how many chats have a bot
  answering, "Updating the server..." through the store's own reconnect, then
  the new version or the rollback in plain words. In the desktop app, once
  the server is newer than the app, the row offers the app's own update
  through a narrow bridge (appUpdate.request) whose restart the app confirms
  in its own dialog; the page never gets the updater's state.
- Tests: the runner against the fake Compose/Docker harness (a request with
  flags and another image still runs only the standard update; links are
  removed, never followed), the request/status logic and permissions, the
  row's states, the installer and electron updater; the real-server update
  e2e gains a run through systemd.

Co-Authored-By: Claude <noreply@anthropic.com>

* Update server button: treat whoever asks as hostile

Anything running as the server's user can leave the request file, bots
included while the sandbox is off on self-hosted servers, so the runner no
longer trusts the requester:

- update.sh, when the runner starts it (OMB_UPDATE_BY_RUNNER=1), judges
  older and newer by the running image's own label only, and changes nothing
  when the server's claimed version disagrees with it; it never removes an
  earlier copy of the data (a person's own run still prunes them).
- The runner's four-minute gap counts only runs that stopped the server;
  runs with nothing to do are only spaced 30 seconds apart, waiting rather
  than refusing, so a hostile requester cannot block an admin's press.
- All runner state lives in root's /var/lib/openmausbot-update: root's own
  copy of update.sh (refreshed by --install), the request and status folders.
  Files are written through mktemp there and never through a link; the
  request folder's owner comes from the data mount's owner on the host.
- The policy hold is re-read whenever systemd runs the runner (the path unit
  also watches the policy file). `%` is out of the Environment= allowlist.
- The button shows only when the update check follows the stable channel.
- The page says the server isn't back after 15 minutes, with the log and
  rollback commands.
- One click on Update app opens one dialog (shared in-flight answer and a
  cooldown), and the dialog names the asking server.

Co-Authored-By: Claude <noreply@anthropic.com>

* Update server button: one try per stable image, root decides what runs

Second review of the hostile-requester case:

- After a rollback the runner never retries that stable image on this server
  (result not-retried, with the version) until a person runs update.sh or
  another stable image is out; the app says so with the command to try by
  hand. Copies an update from the app makes are labelled as the runner's and
  capped at the newest one; a person's own copy is never removed.
- update.sh refuses to write through a link in the install folder (.update,
  .env, the Compose files, its temporary files) or into a .update that
  belongs to anyone but the caller or the folder's owner. --install refuses a
  folder whose owner is neither root nor in the docker group unless
  --trust-folder-owner is given, and says why.
- The runner compares the install's update.sh with root's copy and runs
  neither when they differ (result stale; the app shows the --install
  command). The installer refreshes the copy on every run.
- A build of main is never offered the button: the runner records whether
  the running image's label is a release (also when .env changes) and
  answers unreleased; the app shows the command that moves it to stable.
- A run with nothing to do is remembered for five minutes per running image,
  so repeated requests don't reach GitHub or the registry. One install per
  server: a second folder is refused.
- Docs: the real bound (one stop, copy and restart per stable release), the
  re-published digest case, the restart-during-a-run delay, and that a
  checkout's owner controls what root's compose runs.

Co-Authored-By: Claude <noreply@anthropic.com>

* Update server button: two runner copies, links only refused for the runner

Third review:

- An update from the app keeps the runner's two newest copies (one is
  removed only when two newer runner copies exist) and never a person's own,
  so a server that damages its data and then asks can't leave only the
  damaged copy. Docs give the real number and the peak disk use.
- update.sh refuses links in the install folder only on runs the server
  asked for; a person's own sudo ./update.sh uses them as before.
- The Windows run skips the folder-mode assertion the OS ignores.
- A build of main is pointed at plain `sudo ./update.sh`; the app never
  suggests --allow-older.
- When the server's own check knows of a newer stable than the runner's
  remembered "nothing to do", the request carries a `fresh` file (existence
  only) and the runner asks GitHub whether the stable image changed.
- Every run re-checks the install folder: owner root, docker group or
  trusted at --install; not group- or world-writable; folders above it
  closed to anyone but root and that owner (sticky ones are fine). Result
  `unsafe` with the --install command.
- --remove for a folder that is not the recorded install removes nothing.
- cmp of the install's update.sh gets a 10-second limit and the oneshot a
  4-hour one, so a pipe swapped in can't hang it.
- Docs: a compromised server can keep one stable release from being retried
  from the app; the admin is told, with the command.

Co-Authored-By: Claude <noreply@anthropic.com>

* Update server button: the folder check names the folder, accepts private groups

Fourth review:

- The folder check now prints the folder that failed, with its owner, group
  and mode, in the installer's note, in --install and in the `unsafe` result
  the app shows. A group-writable folder is accepted when its group is root's
  or the owner's own private group (Ubuntu and Fedora's umask 002 checkouts);
  shared groups and world-writable folders without the sticky bit stay
  refused.
- The e2e scripts print `/ /opt /srv` as the check sees them and, where the
  CI image leaves one open to others, make it root's and closed as a fresh
  server has it, instead of weakening the check.
- The runner test fakes `id`, `getent` and the group fields of `stat`, so it
  no longer depends on the CI user's groups or a Mac's wheel-owned folders.
- A runner run that has no room for a copy of the data exits 6 and answers
  `no-room`; the app says so with the commands to list and remove old update
  copies.

Co-Authored-By: Claude <noreply@anthropic.com>

* Installer and update.sh: fixed file and folder modes whatever the umask

deploy/install.sh made its install folder (and the caddy and box folders)
with `mkdir -p`, and update.sh wrote compose.yaml and Caddyfile with plain
redirections, so both took their modes from the caller's umask. Started
from a root shell with umask 000 the install folder came out 777 and those
files 666, writable by everyone on the server, and root later runs what is
in them.

Both now set umask 022 first. The installer makes its folders with
`install -d -m 755` and, on a re-run, takes group and world write away from
an install folder or data folder that has it, saying so. Files keep the
modes each write gives them (.env 600, data 700).

The installer and update.sh tests run under umask 000 and check every mode;
both fail on the previous scripts (777 and 666). The real-server e2e runs
the installer and update.sh under umask 000 and checks the same modes.

Co-Authored-By: Claude <noreply@anthropic.com>

* Update server button: runner umask, CI host ACLs printed and cleared

- update-runner.sh sets umask 022 like the installer and update.sh; its own
  writes already set their modes.
- The e2e host preparation also prints `getfacl -p / /opt /srv` and removes
  a default ACL from those folders where the CI image has one (a fresh
  server has none), since a default ACL gives new folders modes no umask
  decides.

Co-Authored-By: Claude <noreply@anthropic.com>

* Installer and runner: private groups checked fully, existing folders never widened

Review follow-ups:

- The private-group rule also needs the group to have an entry, nobody else
  to have it as their own group (getent passwd), and the users to be
  listable at all; a group-writable folder is refused otherwise, and two
  UNKNOWN names never count as one user's group.
- The installer makes a missing folder 755 but leaves an existing one's
  mode alone apart from taking group and world write away, so a folder its
  owner made 700 stays 700.
- Whether an install folder is open to others is judged where a link to it
  leads, so a symlinked install folder gives no false note.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
OpenCode 2.2.5 accepts a model declared under a provider it has no record of,
then refuses every prompt to it: "Unsupported package for <provider>/<model>"
(provider.no-route). The model picker offered any provider/model id typed in
its search box as an OpenCode model, and the driver declared it, so another
engine's id pasted there ran into this on every turn, and the automatic retry
resent the same turn to the same model.

- A typed OpenCode id is offered, kept listed and declared only under a
  provider OpenCode already lists a model of; otherwise the turn runs as any
  model OpenCode no longer offers (its own model, with the existing notice).
- provider.no-route / "Unsupported package for" is a final failure
  (unknown_model): no automatic retry, and the person sees one sentence naming
  the model and asking for another (chat.notice.modelNoRoute, with pt-BR).
- It counts as a prompt that never reached a model, so a bot with a backup
  fails over through automatic recovery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parseGroupGoalDecision only accepted the exact </openmaus-goal> marker, so a
coordinator reply whose JSON was complete and valid but whose close tag was
truncated at EOF, escaped as <\/openmaus-goal>, or followed by trailing prose
was rejected as a null decision and aborted the whole run with "did not
provide a valid next-step decision" (issue #5209).

Recover by extracting the first balanced JSON object after the open tag and
validating it against the goal protocol. Recovery is deliberately narrow: it
only fires for a single unambiguous open tag, so a quoted example or a second
envelope still cannot steer the run; it keeps the "last complete envelope wins"
semantics and still fails closed on truncated or field-missing JSON.

Closes #5209
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- /name looks up the thread's folder only when an engine could load a
  skill from it, so a turn that names only the bot's own skills reads
  nothing more than before.
- The settings feature list in index.test.ts includes projectSkills.
- pt-BR strings for the project-skills card, badge and off state: the
  pt-BR pack covers every English key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reject a reply whose envelope carries a second decision object or a
  control marker after the first, so a trailing correction cannot be
  silently ignored (fail closed on contradictory content).
- Strip escaped-close envelopes from the public reply too, keeping any
  visible text that follows them (previously an escaped close tag left
  the open tag dangling and cut the suffix).
- Require a lone open tag to sit at the start of its line before
  truncation recovery accepts it, so a quoted example written mid-line
  cannot steer the run. A genuine truncated envelope on its own line
  still recovers.

Adds six regression tests covering all three findings. Issue #5209.
People scanned the "Get the phone app" codes expecting them to pair their phone
with this computer. Those codes only led to the App Store and the Android APK.

- Get the phone app: one line and two links (App Store, Android) that open in
  the browser, then Connect your phone as the next step.
- This computer's pairing screen: the "No app yet? Get it" pop-up with two
  store codes becomes the same line and links.
- By this computer's pairing code: "Open MausBot on your phone and scan this
  code." and, quieter, "Scan it from inside the MausBot app, not the camera."
- By a server's or Team Cloud's code, whose link a phone camera opens in the
  browser: "Or scan it with your phone's camera to open it in the browser."
- Unused strings removed from every language; new ones translated.

Co-authored-by: Claude <noreply@anthropic.com>
* Team mode cleanup: Owner wording, fewer screens, nothing a member can't use

On a Team Cloud only; personal installs and My Cloud are unchanged.

- "Looked after by" reads "Owner" in the bot menu, the new-bot form and Bot
  access. The Share dialog's own strings are left for its restyle.
- The Team map's "Who looks after what", "See who looks after what" and
  "Set who looks after all bots…" are gone; the routes stay.
- The Cloud's setup welcome and setup list are the Owner's alone, and its
  finished list shows once. Invited admins get the team's welcome, as members do.
- An empty team starts fresh instead of saying its bots are already here.
- No Chief of Staff wording in the finished list or the Meet MausBot card on a
  team; a member never gets that card or a sponsor card.
- New bot asks for a name before the bot is made.
- A member is offered no Rename on a bot they can't edit and no admin-only
  Settings; a refusal that still reaches them is said in plain words.
- Connect apps shows a member only their own apps, from my-connections.

Co-Authored-By: Claude <noreply@anthropic.com>

* Team cleanup: review fixes

- The Owner's finished list ends when they open another screen, and its
  effect needs no lint suppression.
- A member's Settings has no "More settings": its limits are the admins'.
- The Usage menu entry reads the role the rest of Settings reads.
- Rename waits for the team's people before it is offered on a team.
- The member's Apps list keeps only its newest read and clears an old error.
- The New bot name dialog keeps focus inside and returns it on close.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
A secret typed into a bot's request_credential card in a member's private
chat was saved for that bot install-wide, so the same bot got it with no
card in another member's chat, and the member could neither see nor
delete it (the Vault was admin-only).

Now such a secret carries its person's key. It is used only in that
person's own private chats with the bot; every other chat (another
member's, a shared chat, a group chat, a routine for someone else) gets
"not saved" and asks with a card. It never becomes an MCP server's key.
The member lists and deletes their own in Settings -> Vault; admins,
exports, backups and moves never see it; leaving the team deletes it.

Members' own secrets live in member-secrets.json.enc beside
logins.json.enc, so the previous release, which would read them as the
team's, never opens them. Existing items have no owner and stay the
team's. Personal installs and My Cloud are unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
offerConnect returned shown: true for a card with nothing to sign in, so the
bot was told to end its turn and wait for a connection that never resumes it.
ConnectorCardAnswer now types nothingToSignIn, and offerConnect returns
shown: false for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/data/engine.test.ts
Drops the publish queue, the UUID partial for empty files, the extra branches
and the two test files that mock node:fs; the sender uploads one file at a time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Renames the two describe blocks that cited an issue number and a review bot,
and drops the extra blank line before the recruit guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fetchOutputs no longer throws on a case-insensitive name clash: the first path
by sort order is kept, the alias stays on My Cloud and result.problem says why.
The Windows alias tests now check that, plus that an unrelated file still arrives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner rule for this train: no new step that blocks or interrupts the person.
A damaged native-skills.json is logged once and counts as nothing switched
off, so Claude and Codex turns run and the switches keep working; the next
switch writes a good file. A damaged library opt-out list is treated the same
way: logged once, every every-bot skill stays on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train G1: 13 fixes (Nov 11)
#5416's new test opened bot query-names on a fresh engine and left it open
(engines are not closed on Windows), so the older "supplies query-ready table
names" test then opened the same data.duckdb from a second engine, which
Windows refuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train H: native skill switches, empty files to My Cloud, Files name clashes
* Publish to Netlify: a bundled skill that puts a bot's site online on the person's own account

A bot asked to deploy, host or publish a site or web app now follows a
bundled guide: it asks once for a Netlify personal access token on a secure
card, creates a site on first publish, remembers the site in the project
folder so later changes go to the same link, checks the link answers as a
web page, and replies with it.

The skill ships a small helper (deploy.mjs, plain Node, nothing to install)
that uses Netlify's file-digest deploy API through the commands' own proxy.
It never uploads dotfiles, env files, keys or installed packages, stops if
a file contains the token, and reports a new account's team-only site as
deployed but private; it opens a site to everyone only with --make-public.

No new settings, pages, buttons or server routes.

Co-Authored-By: Claude <noreply@anthropic.com>

* Publish to Netlify: wait out a slow first deploy, --check, a stable site record, narrower triggers

A new site's first deploy can take Netlify minutes. The helper now waits up
to four minutes through "processing", and when Netlify is still working it
answers "pending" with a plain message instead of success or failure;
--check picks the same deploy up later without deploying again. Once a
deploy is ready the answer always says public or private.

.netlify-site.json is now a versioned record (title, bot name and id,
created and published times, latest deploy and its state, access),
documented in site-record.md beside the helper for code that lists what
bots published.

The answer counts files Netlify already held (alreadyOnNetlify) next to
the ones it uploaded. Bare "deploy" no longer mounts the guide.

Co-Authored-By: Claude <noreply@anthropic.com>

* Publish to Netlify: delete a published site

deploy.mjs --delete reads the site record, deletes that site from the
person's Netlify account with the same token and address guards, treats a
site Netlify no longer has as already deleted, and removes
.netlify-site.json only after that. When Netlify refuses, the site and
its record stay.

The guide has a bot delete a site only when the person asks for it by
name and confirms, after saying the link will stop working for everyone.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
OpenCode: never run a typed model OpenCode can't route; a no-route failure is final and plain
Once the move is done, a later app version tops up settings and
connectors only. Workspace files the server already has, including
under .git, are not sent again from the old computer.

Fixes #5425
* Phone app: link Google Play for Android, and the App Store without a country

The Android link pointed at the 1.5.0 APK on GitHub releases, a September build
from before the encrypted connection and the relay. Android ships on Google
Play now.

- Get the phone app and the pairing screen: "On your phone, install MausBot
  from the App Store or Google Play." with App Store and Google Play links.
- The App Store link drops the Indian storefront (/in/), so Apple opens each
  person's own.
- Docs that said "APK for Android" now say Google Play.

Co-Authored-By: Claude <noreply@anthropic.com>

* Phone app: no store links in the desktop app; the menu row pairs a phone

The desktop app no longer sends anyone off to download the phone app.

- The App Store and Google Play links are gone from the pairing screens; the
  line by this computer's code reads "Install MausBot on your phone from the
  App Store or Google Play, then scan this code in the app."
- Get the phone app is gone from both menus. Simple mode's row is Connect
  your phone: it opens this computer's pairing when that is the only place,
  else the choice of places (the dialog that held the store codes).
- The store URL constants and five unused strings are removed in every
  language; docs say to install from the stores, then Connect your phone.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
The server image ships dist-server/package.json (written by
scripts/bundle-server.mjs) and no /app/package.json. server/environment.ts
reads the bundle's copy, but server/cli.ts kept its own resolver that only
looked one directory up and fell back to "0.0.0". `serve --tunnel`, `login`,
`logout`, `status` and fleet access sent that to the control plane, which
records it and answers 426 update_required below TUNNEL_MIN_APP_VERSION, so
the server lost its public address. The banner and `openmausbot version`
printed 0.0.0 too.

The CLI now uses environment.ts's serverVersion, and the tunnel identity
carries the version only when it is a release; otherwise the request omits
it and the control plane keeps the version it last recorded.
When the desktop app runs the server, a local request that is not from
the app is refused with "this change must come from the desktop app or a
paired device". `openmausbot pair` printed that raw refusal and left the
person retrying. It now explains that pairing happens in the app under
Settings → Remote access, or from the terminal after quitting the app and
starting `openmausbot serve`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Codex home signed in to a ChatGPT account loads that account's installed plugins on every turn: on codex-cli 0.167.0 their skills (plugin-management, sites, work-pets on the measured account) joined every bot's skill list and request_plugin_install joined its tools, with no per-bot switch and nothing on the Skills page. Bot turns now pass -c features.plugins=false, as background text already does.

Refs #5449
Merge train G2 (Nov 11): 15 community fixes
* Publish to Netlify: a bundled skill that puts a bot's site online on the person's own account

A bot asked to deploy, host or publish a site or web app now follows a
bundled guide: it asks once for a Netlify personal access token on a secure
card, creates a site on first publish, remembers the site in the project
folder so later changes go to the same link, checks the link answers as a
web page, and replies with it.

The skill ships a small helper (deploy.mjs, plain Node, nothing to install)
that uses Netlify's file-digest deploy API through the commands' own proxy.
It never uploads dotfiles, env files, keys or installed packages, stops if
a file contains the token, and reports a new account's team-only site as
deployed but private; it opens a site to everyone only with --make-public.

No new settings, pages, buttons or server routes.

Co-Authored-By: Claude <noreply@anthropic.com>

* Publish to Netlify: wait out a slow first deploy, --check, a stable site record, narrower triggers

A new site's first deploy can take Netlify minutes. The helper now waits up
to four minutes through "processing", and when Netlify is still working it
answers "pending" with a plain message instead of success or failure;
--check picks the same deploy up later without deploying again. Once a
deploy is ready the answer always says public or private.

.netlify-site.json is now a versioned record (title, bot name and id,
created and published times, latest deploy and its state, access),
documented in site-record.md beside the helper for code that lists what
bots published.

The answer counts files Netlify already held (alreadyOnNetlify) next to
the ones it uploaded. Bare "deploy" no longer mounts the guide.

Co-Authored-By: Claude <noreply@anthropic.com>

* Publish to Netlify: delete a published site

deploy.mjs --delete reads the site record, deletes that site from the
person's Netlify account with the same token and address guards, treats a
site Netlify no longer has as already deleted, and removes
.netlify-site.json only after that. When Netlify refuses, the site and
its record stay.

The guide has a bot delete a site only when the person asks for it by
name and confirms, after saying the link will stop working for everyone.

Co-Authored-By: Claude <noreply@anthropic.com>

* Published apps: a page of everything bots put online, a preview beside the chat, and Delete

Tools gains Published apps. It opens a page in the Automations page's chrome
(the header is now one shared component) with a card for each thing a bot
published: sites on the person's own Netlify account, found from the records
the publish helper leaves in the bots' own folders, and the pages this server
published to a MausBot link. A card shows the site live and small, its name,
its bot, when it was published and who can see it, with Preview, Open, Copy
link, Ask the bot to change it, Manage on Netlify and Delete.

Preview, and a published link in a bot's message, open the app in a sandboxed
frame beside the conversation, with Reload and Open in browser. A site that
refuses framing, asks for a login or never loads gets a plain line and Open in
browser instead.

The list answers for one viewer. A record belongs to the bot whose folder holds
it, whatever it claims. On a Team Cloud an app is shown only through a
conversation the viewer can read in which the bot published it, so an Admin
sees what shared bots published in shared chats and nobody's private project.

Delete unpublishes a page, and deletes a Netlify site with the token saved in
the Vault for that bot, then removes its record. Without a usable token it
says so and offers the site's Netlify page. On a Team Cloud no saved token is
used yet, because a secret does not record whose it is.

Co-Authored-By: Claude <noreply@anthropic.com>

* Published apps: cite the preview security test by its path

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
When the Admin turns a plan's cloud computer away by one of the Cloud's own
limits, the app now goes by the refusal's new `reason` (hours_used, at_once,
too_many_starts, usage_unavailable), `trial` and numbers when the Admin sends
them, and by its English when it doesn't, so an older Admin keeps working.

- A free trial's wordings ("Your Pro free trial's N cloud computer hours are
  used up…", "Your Pro free trial includes N cloud computers at once…") now
  get the plan's card (No hours left / In use) instead of the generic
  "didn't start" one. A trial's hours have their own line, in every locale.
- The bot is told the kind of limit in one fixed sentence ("This Cloud's
  cloud computer hours for this month are used up; they reset on 1 December.",
  "This Cloud already has as many cloud computers running as its plan
  allows.", "Cloud computers were started too often; try again in an hour.",
  "Cloud computer use can't be checked right now."), then the existing
  instruction not to retry and to tell the person.
- The limit survives end to end: boatRefusal keeps it beside the code, the
  failed-turn row reads it, and the home's error answers carry it as
  `cloudLimit` for the computer panel.

Co-authored-by: Claude <noreply@anthropic.com>
When a URL MCP server refuses a tool call because nobody signed in, the broker's answer to the bot only offered the
server's own sign-in. For a Gmail or Google Calendar server (known by its Google MCP address or its name) in a turn
that can use connected apps, it now offers that app's connect card first and keeps the server's sign-in as the second
choice; when the app is already connected, it says to use the connected app's tools instead. Turns without the
connected-apps bridge, apps a managed policy refuses, apps outside the bot's scopes or grants, and a person's own app on
a Team Cloud keep today's words.

Co-authored-by: Claude <noreply@anthropic.com>
When a person tells a bot a new instruction that changes an older one, the
remember guidance always said "memory_update append", so MEMORY.md kept both
conflicting notes. The guidance and the memory_update description now say to
supersede the old entry for a changed fact or instruction.

The Edit as text box in What it remembers gets a Full window button that
opens the same text over the whole app; Escape or Exit full window goes back,
keeping what was typed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A terminal serve would not get the keys the desktop app keeps in its own
credential store, and may open another workspace, so the refusal now only
points to Settings -> Remote access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A version with a malformed prerelease ("0.1.153-rc 1") passed the looser
check, was recorded, and then compared as below any minimum.
Pin typescript 7.0.2 across the root, relay and control-plane packages,
keep @typescript/typescript6 for tools that still need the JS compiler API,
drop baseUrl from tsconfig paths, and adjust the call sites and tests that
TS7's stricter inference flagged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The phone web client's OK button does nothing on window.confirm while the apps panel is open, so the account stays connected.
The spawn-args comment recorded how Cursor used to gate session MCP.
Keep the current flag order and which switches are tool permissions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1Password Login items without a website (for example with custom
"Client ID" / "Client Secret" fields) were dropped, and secret items
whose fields are all text (no concealed field) were dropped too.

- A Login item's own extra fields (never its username, password or
  one-time code) are offered as "<title> <field>" secrets.
- Secret items fall back to their first field as the main value.
- Logins with a website stay fill-only for the password.
- The vault row now says "{count} website logins", so the count no
  longer reads like a cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
append already cleared a matching forgotten marker when the person asked to remember something again,
but supersede (now the guidance for a changed fact) kept it, so the restored fact could still be kept
out of automatic capture and About me.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent-browser's own description of agent_browser_read ("Fetch a URL as
agent-readable text ... Omit url to read the active tab.") was kept while
the url field is hidden from its schema, so bots passed url and got only
"Tool arguments do not match the advertised input schema".

- The read tool now says it reads the open page and to open another
  address with agent_browser_open first (agent-browser engine only).
- A chat-engine call that still passes url gets that same instruction
  instead of the bare schema error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: URL-less Logins could fill MAX_ITEMS and push a website login out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent_browser_read's open-page guidance now only replaces the schema error
when url is a string and every other argument fits; in chat it names the
tools as registered (browser_agent_browser_open / _read).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
supersede cleared a matching forgotten marker before updateMemory ran, so a stale old_text
(a conflict, nothing changed) still let the forgotten fact be learned again. Clear it only
after the supersede succeeds; append is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Publish to Netlify test: load the helper on a Windows checkout

The test file failed to load on Windows with "SyntaxError: Invalid or
unexpected token". It imports skills/publish-to-netlify/deploy.mjs through
vitest, and Vite's transform fails on a file that starts with a shebang
and has CRLF line endings, which is what a Windows checkout made of it.

The helper loses its shebang (the guide always runs it as `node
deploy.mjs`), skills/** is pinned to LF, and a test imports a CRLF copy of
the helper so the fault shows on every platform. The test also makes a
folder junction instead of a file link on Windows and passes SystemRoot to
the helper's process.

Co-Authored-By: Claude <noreply@anthropic.com>

* Bot box: OMB_NETLIFY_API_URL stays on the server

server/host/netlify-sites.ts reads it (a loopback stand-in for Netlify's
API in tests), and the allow-list test wants a decision for every OMB_
name the server knows. It is not passed into a bot's box.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
The pt-br pack must stay complete (i18n.test activePackComplete), so the two
new English keys get pt-br and zh-tw text and source hashes, like the
Edit as text key from #5101.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Usage rows keep the bot name from when they were booked, so after a
rename the by-bot list, the runs list and the trace view still showed
the old name. Look up the live bot by id and fall back to the booked
name only for bots that no longer exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node's recursive rm with maxRetries retries inside the tree at every folder
level, and gives up on a failed child without stopping its siblings. One file
it may never delete (EPERM on Windows, e.g. owned by Administrators) inside a
leftover PyInstaller unpack folder was therefore tried (retries+1)^depth times
with abandoned deletes still running: millions of queued fs requests, a 9 GB
heap and repeated out-of-memory crashes.

Delete without maxRetries and retry the whole folder with the existing
retryOnWindowsFileLock (4 attempts), so the work stays linear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node's rm maxRetries covered EMFILE/ENFILE too; keep those as whole-folder
retries now that the recursive maxRetries is gone (CodeRabbit review).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The driver probed `claude --version` once per engine and read `--help` only
in snapshots. When a PATH rescan (install, update, registered dir) puts a
different copy of `claude` first, such as an older nvm copy behind
Homebrew's, turns kept passing flags chosen for the first copy
(--system-prompt-snapshot, --autocompact) and the older CLI exited with
"unknown option" before init until the next snapshot.

Remember which file the version came from, and re-probe the version (and
--help when the version changed) when the resolved copy changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds "fish" next to OpenAI and Azure OpenAI. The server starts the person's
published Fish agent (POST /v1/agent/sessions) and hands the client the LiveKit
token; the client joins with @fishaudio/agent-client and relays what it hears
to POST /api/live/relay, where FishRelay presents it to LiveCallController as
the GPT-Live sideband. The bot's answers return as the delegate tool's result
or as prefixed user messages.

Fish calls are limited to an admin or the owner, like Azure, since the harness
hears them only through the client's reports. Phones are refused until the
apps carry the SDK. The key is bound with keyFor "fish" and never falls back
to the OpenAI key.

Verified with fixtures and fakes only; no call was placed against Fish Audio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A press is recorded as the person's message, but a tap never counts as
their own @devs tag, so a widget button like "Send to @devs" could
never report a bug. show_widget and its update now refuse such a
widget (button, list row, confirm/cancel label, or a choice option)
and tell the bot to ask the person to type @devs and what went wrong.
Device-only actions (open_url and the like) and plain text are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up: a concurrent turn no longer takes the cache shortcut while
the new copy's --help read is still running, and an in-flight version probe
is shared only by callers with the same PATH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Publish to Netlify: a bundled skill that puts a bot's site online on the person's own account

A bot asked to deploy, host or publish a site or web app now follows a
bundled guide: it asks once for a Netlify personal access token on a secure
card, creates a site on first publish, remembers the site in the project
folder so later changes go to the same link, checks the link answers as a
web page, and replies with it.

The skill ships a small helper (deploy.mjs, plain Node, nothing to install)
that uses Netlify's file-digest deploy API through the commands' own proxy.
It never uploads dotfiles, env files, keys or installed packages, stops if
a file contains the token, and reports a new account's team-only site as
deployed but private; it opens a site to everyone only with --make-public.

No new settings, pages, buttons or server routes.

Co-Authored-By: Claude <noreply@anthropic.com>

* Publish to Netlify: wait out a slow first deploy, --check, a stable site record, narrower triggers

A new site's first deploy can take Netlify minutes. The helper now waits up
to four minutes through "processing", and when Netlify is still working it
answers "pending" with a plain message instead of success or failure;
--check picks the same deploy up later without deploying again. Once a
deploy is ready the answer always says public or private.

.netlify-site.json is now a versioned record (title, bot name and id,
created and published times, latest deploy and its state, access),
documented in site-record.md beside the helper for code that lists what
bots published.

The answer counts files Netlify already held (alreadyOnNetlify) next to
the ones it uploaded. Bare "deploy" no longer mounts the guide.

Co-Authored-By: Claude <noreply@anthropic.com>

* Publish to Netlify: delete a published site

deploy.mjs --delete reads the site record, deletes that site from the
person's Netlify account with the same token and address guards, treats a
site Netlify no longer has as already deleted, and removes
.netlify-site.json only after that. When Netlify refuses, the site and
its record stay.

The guide has a bot delete a site only when the person asks for it by
name and confirms, after saying the link will stop working for everyone.

Co-Authored-By: Claude <noreply@anthropic.com>

* Published apps: a page of everything bots put online, a preview beside the chat, and Delete

Tools gains Published apps. It opens a page in the Automations page's chrome
(the header is now one shared component) with a card for each thing a bot
published: sites on the person's own Netlify account, found from the records
the publish helper leaves in the bots' own folders, and the pages this server
published to a MausBot link. A card shows the site live and small, its name,
its bot, when it was published and who can see it, with Preview, Open, Copy
link, Ask the bot to change it, Manage on Netlify and Delete.

Preview, and a published link in a bot's message, open the app in a sandboxed
frame beside the conversation, with Reload and Open in browser. A site that
refuses framing, asks for a login or never loads gets a plain line and Open in
browser instead.

The list answers for one viewer. A record belongs to the bot whose folder holds
it, whatever it claims. On a Team Cloud an app is shown only through a
conversation the viewer can read in which the bot published it, so an Admin
sees what shared bots published in shared chats and nobody's private project.

Delete unpublishes a page, and deletes a Netlify site with the token saved in
the Vault for that bot, then removes its record. Without a usable token it
says so and offers the site's Netlify page. On a Team Cloud no saved token is
used yet, because a secret does not record whose it is.

Co-Authored-By: Claude <noreply@anthropic.com>

* Published apps: cite the preview security test by its path

Co-Authored-By: Claude <noreply@anthropic.com>

* Included app hosting: bots publish to the hosting a Cloud plan includes

A Cloud home whose Admin gives it the app hosting relay (OMB_CLOUD_HOSTING_URL
and OMB_CLOUD_HOSTING_TOKEN) lets its bots put a site or simple app online with
no Netlify account and no token card.

- publish_app and check_app_hosting: the bot names a folder in its own working
  folder; the server reads it, sends it through the relay, waits until it is
  live, checks the link answers as a web page and says how much of the plan is
  used. The relay token stays in the server's memory with the other included
  services' tokens and goes only to the relay.
- The folder must be inside the turn's own folders; dotfiles, env files, keys,
  node_modules and links never go; redirects, netlify.toml and functions are
  left to the person's own Netlify account.
- .netlify-site.json gains "hosting": "included" and "appKey"; the key is made
  from the bot and the project folder, so a record names only its own folder's
  app. deploy.mjs refuses such a record.
- The Published apps page lists included apps with their source, shows the
  plan's count in one line, marks an app that was taken down, and deletes
  through the relay, with the same who-sees-what and who-may-delete rules.
- The publish-to-netlify guide puts included hosting first and says when to
  offer the person's own Netlify account.
- Off a Cloud, or without the relay, nothing changes.

Co-Authored-By: Claude <noreply@anthropic.com>

* Published apps: a project lives in the bot's shared folder, so any conversation can update it

A real run put the app's project in one conversation's folder, where a later
conversation with the same bot could not find it.

- The guide says where a project goes (<sharedBotFolder>/sites/<name>), to look
  there before starting a new one, and to name that folder with --project or
  project from whatever folder the turn is in. An app meant for one person on a
  team stays in that person's conversation.
- publish_app reads a relative path in the bot's shared folder first, so the
  same path is the same app, and the same link, in every conversation.
- check_app_hosting with no path lists the projects already published from the
  turn's folders.
- A new app published from a conversation's own folder is still published, with
  a note that no other conversation will find it.

Co-Authored-By: Claude <noreply@anthropic.com>

* Included hosting: the file collector resolves its folder itself; fixtures Windows can create

collectAppFiles checked each file against the folder as the caller wrote it,
while the file's own path was resolved. On Windows a temp path written with a
short name resolves to its long one, so every file read as outside the folder
and the list came back empty. The folder is now resolved first.

The tests make a file link and a name with "?" only where the computer can,
use a folder junction on Windows, and check the name rule by itself everywhere.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
A version check that fails right after PATH starts finding another copy of
the CLI no longer reports the previous copy's version, so the driver retries
the new copy instead of caching the wrong version for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Settings: one grouped window, one outer menu, Phone & devices on every place

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: search over rows, Advanced rows from search, every locale, tests moved to the new tree

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: smaller swatches, About you always shown, a quiet search field

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: an opaque page header, and found rows land below it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: a row opened from search shows its note above it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: other places come from this computer's list when the rail keeps its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: say Same on every place only once there is another place

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings round 2: one row design everywhere, store links instead of codes, and every rail says the same

- Phone & devices: Get the app is words with App Store and Android links; the pairing
  code is the only code to scan, with "Open MausBot on your phone and scan this code."
  under it. Pair a phone asks Same Wi-Fi or Anywhere as two choices (Anywhere needs a
  sign-in, with Sign in on its card), says the local network prompt is coming, and
  has a close button. A Cloud's code dialog never shows the server's setup message.
  Paired phones have a visible Remove and "Same Wi-Fi · Connected"; More ways in opens
  inside its own card; On your other places is on every rail.
- Rows: page header, scope line and intros line up with section titles; selects are
  160 to 240 wide; a fold opens rows in its own card; an inert row keeps its control
  at 40% with "Change this from This computer." and Switch to This computer, which a
  Cloud's page asks main for (rail.openComputer, click only); no card inside a card.
- Pages rebuilt on the rows: AI providers (one card, More providers folded inside it,
  Other services as one card), Data (Export and Import open small dialogs; switches
  for event log cleanup; Move to My Cloud), Desktops & browser (Cloud, Private and
  your own desktops with their state first; the builder's panel only behind Details),
  Spending, You and your bots (labelled fields, Limits as rows), Vault, Appearance
  (borderless theme tiles), Plan & billing (one page on both rails: Plan, This week,
  Compare plans, Cancel plan last), Your account on a Cloud (email, Refresh and the
  way to This computer), This app.
- Outer menu: 272 wide, a divider before Plan & billing in both modes, the same
  "Pro · email" and weekly use on every rail, Sign out last, Simple's places at phone
  width, Help in sentence case with What's new and About MausBot.
- Narrow: the sheet starts beside the rail and below the title bar, the page title
  is centred on the sheet, Midnight uses the desktop sheet and card colours.
- Loading and unreachable states, search ranks Phone & devices first for "phone",
  and the contrast check measures the off-switch outline in every skin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: store names stay on one line; tests follow a team member's pages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings round 3: Simple shows eight entries, no store links, every block in the row design

Simple mode's nav is shorter: the place's Overview, Phone & devices, AI and Vault, Your account and
Plan & billing, This app and Appearance. You and your bots, Desktops & browser, Spending, Data and
General come back in Advanced, in place. A link, a notice or a search hit that asks for one of them
turns Advanced on and lands on the row; turning Advanced off there lands on Overview. In Simple,
language and notifications sit on This app, backups under Overview's Your data, and what the place
cost this week on Plan & billing. AI's Other services is one closed fold, the domain one link row.

Phone & devices starts with pairing: no Get the app step, no store or download link anywhere in the
desktop app, one plain sentence instead. Anywhere stays in place, inert, until you sign in.

The AI page's Backup model, Routing and extraction, Workers AI and Images, the key folds of Other
services, Desktop details, Spending, Activity and the domain card are rebuilt from the shared rows:
one title per section, cards of rows, stacked 32 px fields, 28 px pills, Save in the card's foot,
long help behind Learn more. A Card inside a card of rows is now a part of it, never a card in a
card. Section headers keep their action on the title's line; inert rows centre their control and
repeat their reason as a tooltip; quiet buttons end on the control edge; nav and row focus rings are
inset; one-line labels stay one line (the settings-wide text-wrap rule no longer undoes nowrap).

Plan & billing is one Plan card on every rail (the plan with Renews on, Compare plans, Open My Cloud,
Cancel plan last) with This week under it. Your account keeps its rows on a Cloud's page (the
organization sign-in inert, Emails from MausBot live) and Sign out is last; every Sign out now asks
"Sign out of MausBot?" and says what keeps running. One home (main's home:page) decides whether
This app's rows and your account live on the page. This app on This computer shows its version live,
and a Cloud's page lists your places through the workspaces bridge.

Outer menu: Plan & billing joins Settings' group in Advanced, the Help submenu sits level with its
row on a 32 px pitch at 240 wide, and My Cloud's rail has a Sign out row that goes to This computer.
Pair dialogs centre their close button on the title.

Every key these surfaces render now exists in all 15 languages (a new test checks it), German and
Slavic place templates no longer decline the place's name, and a settings string no longer names
other products.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings round 3 after main: hairline edges, a one-window This app in Simple, tests follow the new rows

Cards draw their 0.5 px edge as an inset hairline above their rows, and the nav's right edge and its
footer line are hairlines too, so no edge is rounded up to a whole pixel and cards read as light as
their dividers. In Simple, This app keeps Updates, Language and notifications and Help (About joins
the Help card); Your computers and Logs and diagnostics are Advanced. Other services opens when a key
is asked for from Simple. Cancel plan's button is named for its row, the Boat offer keeps "You claim
it yourself", and main's Published apps label is in every language.

Tests follow the new design: Sign out's confirm, the one Plan card, None as the first swatch with one
line per row, a phone page with no Get the app step, search landing on Simple's own homes and turning
Advanced on, and Plan & billing beside Settings in Advanced's menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings round 3: Simple's This app and Overview fit one window

In Simple, This app's Help card keeps Help Center, Send feedback and About (shortcuts and the
tour stay in the outer menu's Help), and a place's own address is Advanced only, so neither page
needs scrolling at 1280 x 900 once the 30-day grouped note is gone. Search marks the address row
Advanced, so choosing it from Simple turns Advanced on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings round 3: every row's other wording is translated too

The Settings locale test now also reads both keys of t(flag ? "one" : "other"), which found
22 more strings (Simple's short descriptions, the Advanced mode and analytics lines, the move
badges) falling back to English; they are now in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings round 3: Simple's Help card is Help Center and About

Send feedback, Keyboard shortcuts and the tour stay in the outer menu's Help submenu, so This app in
Simple fits a 1280 x 900 window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings round 4: the footer as on main, one row height, Address only on a server, every pairing door says one thing

- Sidebar footer: the Advanced avatar loses the fill the menu work added, so the footer matches main again.
- This app's scope line no longer promises "same on every place" while its settings are still kept per place.
- Rows: the text block sets the height (title-only rows are 44 whatever the control; an empty slot gives its height
  back), fields edge in the 0.5 px hairline, every select and field shows the 2 px focus ring, narrow cards drop
  selects and wide buttons under the text, rows grouped in a wrapper get their dividers.
- Phone & devices: one untitled "Your phone" row ("then pair it here"), the code dialog says "Scan it from inside the
  MausBot app, not the camera." with the QR centred, other places say what they hold and the callout's place is not
  listed twice, Advanced starts with the same closed reach row, a paired phone's button says Access.
- Address (was Connect your domain): only on a self-hosted server, one row with its form in a fold and the server
  guide behind Learn more; a managed Cloud has none.
- Account: one card on both rails (picture, email, Sign out or "from This computer" last); Simple shows Organization
  only once there is one; the menu and Help say "from This computer" in full.
- AI: Backup model saves as you go, Images' key card is the provider-fold form, no Coming soon rows, Other services
  keeps one text edge, Check again ends on the control edge.
- Search results: full-width titles, "owner › page" with the page kept whole, Advanced tag on the second line.
- Early features (renamed, tagged, every row the same anatomy); New browser moves to Desktops & browser › Browser.
- Spending, Plan & billing, Data, Desktop details, themes, the pair dialog, Your computers, the menu's width and
  groups, the narrow header and the loading states follow the round-3 notes.
- Strings: new and changed keys in all 16 locales, the most visible Simple rows translated where packs lacked them,
  stale references to "Settings → API keys" in Desktop details point to AI › Other services, no product names in the
  new descriptions. A closed-scale ratchet test keeps Settings' off-scale classes from growing.

Co-Authored-By: Claude <noreply@anthropic.com>

* Settings: the switch to This computer's settings lives in its own file

electron/main.mjs is at its size limit, so the helper moved to
electron/open-computer-settings.mjs. No behaviour change.

Co-Authored-By: Claude <noreply@anthropic.com>

* Settings round 4: Simple's Overview fits one window with the grouped note; Address's field is labelled once

Co-Authored-By: Claude <noreply@anthropic.com>

* Settings round 4: the menu's long "from This computer" rows wrap instead of being cut short

Co-Authored-By: Claude <noreply@anthropic.com>

* Settings: tests follow the new structure

- The macOS app menu's item is Settings…, the phone chip opens the phone page, and the pop-up frame may add its own style.
- The real-renderer tests open AI › Other services for a saved key, turn Advanced mode on for New bot defaults, and turn it off again after the bot panel's Usage row opens Spending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Finished automation runs whose thread outlived the run piled up as separate
rows and pushed real chats out of the default list. The default list now
keeps one row per automation (its newest run); older runs stay under
"Show all", in search, and stay visible when active or waiting on you.
Nothing is deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file picker test's second upload goes to a picker that is already
answered. The route refuses it before reading the body and closes the
connection. Node's fetch streams a FormData body after the headers, and on
Linux that late write can hit the closed socket: the fetch fails with
"write EPIPE" instead of returning the 409. The race was always there;
node:24-bookworm-slim moving to Node 24.22.3 (Nov 11, ~18:14Z) made the S4
leg inside the server image lose it on every run.

The test now sends the same form as one buffered body, which goes out in a
single write, so it still checks the 409 and nothing else.

Co-authored-by: Claude <noreply@anthropic.com>
Resolve source-hashes.json (keep both sides' keys) and refresh the
agents catalog goldens for main's new hosting profiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Team Cloud the person a private conversation belongs to can share it with
the team or with one teammate who can chat with that bot, after a confirm step
that says who will read all of it. Shared with one person it gets an audience
of its own (its own memory layer, engine home and browser), read by those two
and never an admin; each reply waits in the other's inbox as one line. Sharing
is never undone. "Save to team memory" on a message adds it to the bot's team
notes in one click, with who saved it and when, and Undo. Everything is
enforced in the routes; personal installs are unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
* Team phone pairing: say to scan the code from inside the MausBot app, not the camera

The Team Cloud's "Open on your phone" card still said "Or scan it with your phone's camera to open it in the
browser." under the pairing code. It now shows the same line as the other pairing dialogs ("Scan it from inside
the MausBot app, not the camera.", phone.code.notCamera, translated in every language), and the unused
remote.serverPairing.camera line is removed from every language pack.

Co-Authored-By: Claude <noreply@anthropic.com>

* Point stale Settings references at AI › Other services and Routing and extraction

Settings no longer has an "API keys" or a "Decision and extraction" page: keys live under AI › Other services and
the helper models under AI › Routing and extraction (Advanced).

- The "Open API keys" buttons (engine setup, research, live calls) read "Open AI › Other services", like the other
  key links; they already open that section (section "connections" → AI, ai-keys).
- The VPS SSH alias hint and error, the Boat line a phone reads for a cloud desktop without a key, and the server's
  VPS status say AI › Other services.
- The helper tools tell the bot to point at Settings › AI › Routing and extraction (the Add key card opens it,
  section "decisionModel").
- Every language pack carries the new lines; source hashes updated.

Co-Authored-By: Claude <noreply@anthropic.com>

* Docs and tests name AI › Routing and extraction and the new key link

README and the decision-model, Cloud and proactive-routines docs point at Settings › AI › Routing and extraction;
the live-call, research and keys-page tests look for "Open AI › Other services".

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
* Apply live frames once per paint, and let readers select their slice

The store's state now lives in a small external store under the provider.
Live frames are queued and applied together at the next animation frame
(a timer when the window is hidden), in arrival order and as one change,
so a burst of tool events renders once. Any action flushes the queued
frames first, and a live call is applied and drawn at once.

useStoreSelector reads one slice through useSyncExternalStore and renders
again only when that slice changes; useStoreActions and useStoreDispatch
never render for a state change. useStore() keeps working as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Reconcile one bot by reading that bot alone

GET /api/bots/:id answers one bot shaped as the list shapes it, with its
newest messages. A failed bot or thread-setting save now re-reads only
that bot instead of every bot with 200 messages each; a server without
the route still answers through the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Read the transcript viewport's two store slices by selector

It rendered its chat again on every store change only to read the focused
message and whether older messages are loading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Type the one-bot read tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let selectors read a store given as a value, and schedule frames safely

Outside the app's provider a selector reads useStore(), so previews,
bot editors and tests that give the store as a value keep working. A
paint that runs at once no longer leaves the queue unscheduled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Draw the chat, its composer, header and the sidebar from their own slices

ChatView, Composer, the chat header pill, the model picker, the sidebar
list and its room rows, and the hooks they call now read the store by
selector, and ChatView and Sidebar are memoized. A frame for one bot no
longer draws another bot's chat, composer or header again, and a store
change none of them shows draws none of them. Other bots are compared
by what is drawn of them, so their turns do not redraw mention lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give the transcript viewport test the selector hooks its mocked store backs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a selector's last value through tests that replace state and ref hooks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Send one more read when unread frames arrive while a read is in flight

A conversation's read stayed in flight while later unread frames marked it
read on screen and sent nothing, so the server could keep it unread. Now
such a frame asks for exactly one more read, sent when the first finishes,
whether it succeeded or failed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Apply the old stream's waiting frames before forgetting its turns

When the live stream restarts without resuming, frames still queued for
the next paint belonged to the abandoned stream. They were applied after
forgetLiveTurns(), so a "turn started" frame could bring back a turn and
Stop would name it. Flush them first.

Co-Authored-By: Claude <noreply@anthropic.com>

* Redraw the @-mention menu when a bot's title or chief-of-staff mark changes

The menu describes each bot by its title, or as chief of staff when it has
none, but the bot-list comparison it reads through ignored both, so a
renamed title stayed stale until something else changed.

Co-Authored-By: Claude <noreply@anthropic.com>

* Queue live screen frames without their pixels

The store reads only a screen frame's botId; the pixels already went to
the live-frame listeners before the frame was queued. Holding them until
the next paint kept large images alive for nothing.

Co-Authored-By: Claude <noreply@anthropic.com>

* Render-count test: a bot's title change redraws the composer

The @-mention menu shows each bot's title, so another bot's title change
now redraws the chat's composer (and the readers sharing the bot list).
The turn sequence no longer changes a title; a new case checks the redraw.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- The connected app is offered only when the bot's tool selection keeps the connected-apps server, and the card only
  when it may call COMPOSIO_MANAGE_CONNECTIONS; the "already connected" words end with the server's sign-in as a fallback.
- The lookup reads the apps connected as last read, with no wait, and is skipped unless a turn's server stands for an app.
- A server sent credentials never carries the app on its grant, so connecting the app doesn't restart its conversation.
- By name alone, only "gmail", "google-calendar", "gcal" and the like (with an optional "-mcp") match; the Google MCP
  addresses match whatever the name.

Co-authored-by: Claude <noreply@anthropic.com>
The Admin's resetsAt for a free trial's hours is now the earlier of its first
payment and the next UTC month's start (hours are counted per UTC month), so
the bot's sentence no longer says the date is the first payment: "This
Cloud's free trial cloud computer hours are used up; they come back on
<date>." It reads right for either date, and for an older Admin's words.

Co-authored-by: Claude <noreply@anthropic.com>
When PATH starts finding another copy of claude and its first --version
check fails, the driver kept the previous copy's version, so that turn
could still pass --system-prompt-snapshot (or --autocompact) to the new
copy. It now falls back to the unknown-version state (no version-gated
flags, help re-read) and checks the new copy again on the next turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An older run that finished after a newer one sorts first in the thread
list, so the old code kept the older run and hid the newer one. Choose
the representative run by RoutineRun.createdAt among the threads that
can be shown (not pinned, burst or archived).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chat: a bot's reply appears as it streams

The reply text already reached the renderer as content.delta runtime frames
but only fed the status line; the transcript showed nothing until the item
completed and a whole paragraph popped in.

Live reply: a small per-thread store (src/state/live-reply.ts) collects the
assistant text deltas from the live frames, outside the app reducer, so a
delta re-renders only the transcript that shows that thread. The chat and
room transcripts draw it as one more bot row, through the same Bubble and
layout as a saved reply. The streamed row stays until the transcript holds
the message it was saved as, so the saved bubble takes its place in the same
commit: same position and height, never both, never neither. A frame seen
twice (a resumed stream) changes nothing; a stream gap, Stop, a terminal
error or the turn's end drops what was never saved. The last word waits for
its space and the text is masked like the saved message, so a secret is never
shown half-typed. Runtime frames already follow the saved message's audience
(thread visibility), so a private chat's deltas reach no one else.

Cheap rendering: while streaming, ChatMarkdown splits the reply into blocks
at blank lines that close every block, keeps the parse of each finished block
and parses only the last one again, falling back to the whole text when
footnotes, definitions, raw HTML or display math tie blocks together. An open
code fence is drawn without parsing and without colouring, and a code block's
actions wait for its fence to close. KaTeX still loads only when needed.

Following: the transcript's follow is now a small explicit state (following,
released by the reader, re-armed by a send, Jump to latest or scrolling back
to the end). Content growing inside the last rows is followed smoothly while
a reply streams and at once otherwise, and never pulls a reader who scrolled
up. Each conversation remembers where it was read and opens there again,
before the first paint, or at its end if the reader was there. Jump to latest
shows a moment after the reader leaves the end.

No fade or typewriter animation: a streamed reply does not play in again when
it is saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat: keep streamed messages apart for engines that name no items

Codex, OpenCode, Hermes and the other ACP agents send their words with no
item id, so a turn of text, a tool and more text is told apart only by the
events around it. Two cases could leave a wrong row behind:

- words that were only whitespace when a tool started are never saved, and
  the words after the tool would have been added to them;
- a finished message the server chose not to save (a hidden harness note)
  stayed drawn until the turn ended.

The server saves a finished message before anything later reaches the
client, so a tool starting, or the next message's first words, now drop
whatever is still unsaved. Saved ones stay until the transcript draws them.

The Codex and ACP fakes gain a slow stream of several messages with a command
between them (FAKE_CODEX_STREAM, FAKE_ACP_STREAM), the UI fixture can add a
fake ACP agent (--engine acp), and the chat-ui recipe says how to watch a
reply stream with each engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat: stream reply text under the id of the message it belongs to

Every assistant text delta and its item.completed now leave the server
carrying the same item id, so the client keys streamed words by message and
never guesses where one ends.

server/harness/text-items.ts stamps them as the bus publishes, in one place
for every engine. An engine's own message id is kept, scoped to its turn
(Codex reuses ids such as "m1" from turn to turn; its driver now passes its
agentMessage ids through). Engines that name no message (Claude, the ACP
engines including OpenCode and Hermes, pi, OpenAI-compatible) get an id
minted at the message's first visible word, closed when a tool starts, the
message completes or the turn ends; whitespace before a first word opens
nothing. The bus's 50 ms delta merge is now keyed per message.

The saved reply message records the id its words streamed under (wire
`itemId`), and the client swaps a live bubble for the transcript message with
the same id, even when the message frame itself was missed. The tool-start and
next-message guesses are gone; frames with no id, from a server older than
this, keep a minimal fallback that builds the last open item until it
completes.

Driver tests check that each engine's deltas and completion share an id
across text, a tool and more text (ACP, pi, Codex), with unit tests for the
stamping and the bus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat: check a streamed reply on every engine with one repeatable suite

scripts/verify-live-reply.ts streams each scripted case through the real
renderer in an isolated fixture, once per engine, and checks every frame: no
message's words twice, none glued to another message, none vanishing once
shown, no thinking shown as reply text, no streamed row left after the turn,
the transcript's words equal to the saved messages, and no console errors. It
prints a pass/fail table and keeps each case's screenshot and evidence.

The cases (server/testing/live-reply-cases.ts) cover short and long replies,
Markdown, code fences, math, emoji and right-to-left text, links and images,
text and tools interleaved, two messages in a row, a blank message, thinking,
Stop, a steer, an error, a reconnect, a chat switch and a room with two bots.
The Claude, Codex, ACP and pi fakes play them from FAKE_STREAM_SCRIPT at
FAKE_STREAM_CADENCE, chosen by the newest marker in the prompt (the ACP and
Codex fakes inline the player, since tests copy them out of the repo). The UI
fixture can add a fake Cline or Copilot, and a real OpenCode the recipe
downloaded and checked against the pinned release.

The same cases run without a browser against every engine's adapter: each ACP
engine (OpenCode, Hermes, Gemini, Kimi, Qwen, Grok, DeepSeek, Droid, Command
Code, Kiro, Cursor, Cline, Copilot, custom ACP), Claude, Codex, pi and each
OpenAI-compatible provider (OpenAI-compatible, xAI, MiniMax, Cerebras,
Greenference, Groq, Meta, Mistral, ModelGo), checking that each message's
words and completion share one id with nothing doubled, lost or glued.

Fixed along the way: Stop no longer clears what streamed at once. The words
stay as they were and grow no more, so an engine that keeps them (the ACP
engines save the words a Stop cut short) swaps in its saved message without
the text vanishing for a frame; otherwise the turn's end removes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat: a reply streamed in a chat nobody had open is not drawn again later

A turn's start now drops the saved live items of the thread's earlier turns,
and each thread keeps a bounded number of items. The chat and room
transcripts match live items against the whole conversation rather than the
rows their window shows, and draw a live row only when the window reaches the
newest message, so a reply never appears under an older message after
scrolling back or opening at a found or pinned one.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: streamed reply text gets the same masking as the saved message

Streamed text now gets the same masking as the saved message. The server
cleans each message's streamed words before any listener sees them and sends
only the part that can no longer change, so the event log, the status line,
voice and every client get the same cleaned stream; a finished reply's text
goes to clients as its saved message holds it. The app keeps its own masking
as a second layer.

Co-Authored-By: Claude <noreply@anthropic.com>

* Rooms: a streaming reply is labelled with the member who speaks it

The server names the speaking member on a room reply's streamed words, and
the app labels the live row from that name rather than from whoever the room
shows as busy, which can be no one yet or the next speaker already. A server
that names no one falls back to the busy member as before.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: drop TextItems.forget, which nothing called

A thread's open message is already let go when a tool starts, the message
completes or the turn ends.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: streamed text masking covers held values with spaces, long messages, and thinking

Streamed text now gets the same masking as the saved message in more cases:
- Held secrets: each scrubber also says where text still being written may
  have begun one of its values (only an index leaves it), and the stream
  sends nothing from there until the value is whole and masked or the text
  goes another way.
- A long message is settled at a break only when cleaning the two sides apart
  gives exactly what was sent, with more than whitespace after the break.
- Each message keeps its own stream, so moving between messages loses nothing
  that is held back.
- Text written without spaces (Chinese, Japanese, Thai) streams all but its
  last few characters; a run of printable ASCII is still never split, here or
  in the app.
- Thinking text goes through the same cleaning.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: streamed text holds back a fixed tail while secrets are held

Streamed text gets the same masking as the saved message, and what a stream
sends no longer depends on how much of a held value the text has begun.
- Held-secret scrubbers now report only the length of their longest value
  (required); the per-text query is gone. While any value is held, a stream
  holds back that length, rounded up to a multiple of 32, whatever the text,
  and moves the cut only to the start of a whole value that crosses it. The
  cut never splits a run of printable ASCII. A scrubber that cannot say holds
  everything back.
- A message closed or let go mid-turn sends nothing more until its
  completion.
- A long message also settles at line and sentence ends (or a space), with
  real words after the break, so its window stays small.
- Thinking text sends its cleaned remainder when it ends.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: streamed text masking covers overlapping held values and thinking across tools

Streamed text gets the same masking as the saved message in two more cases:
the cut that keeps a whole held value out of view now checks against the
text from its start, so overlapping values move it to the right place; and
thinking stays one stream for the whole turn, sending only what is safe as
it goes and the rest when the turn ends.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: no held-back tail for held values a stream never cuts partway

A stream never cuts inside a run of printable ASCII, so a held value made
only of such characters (most passwords, tokens, keys and codes) is always
whole, and masked, when any of it is sent. Only held values with whitespace
or other characters now count toward the tail a stream holds back; a cut
before something still open also steps back to the start of its ASCII run.
Ordinary replies on a server holding only such values stream as they did
before any value was held.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: bounded work when streamed text steps back over a held value

Streamed text gets the same masking as the saved message, with bounded work:
the step back before a whole held value tries only word-safe places and stops
streaming the message after a few, so its completion carries it. The final
remainder of thinking text takes the same care with something still open, and
a late word for a message of a turn that has ended is not sent.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: multi-line held secrets no longer turn streaming off

Streamed text gets the same masking as the saved message, now without a tail
as long as a whole multi-line secret. The long random pieces of a held value
that spans lines or has structure (each line of a key's body, a key id) are
masked wherever they appear, including the body re-wrapped or in part, so the
saved message masks at least what it did. A stream holds back only up to the
end of such a value's first piece, and stops for good once any piece appears,
so it never shows the rest of a value its saved message hides whole.

Co-Authored-By: Claude <noreply@anthropic.com>

* Revert "Chat: multi-line held secrets no longer turn streaming off"

This reverts commit 5e23754207192f665a0177d503fd05d25fb28419. Scrubbing of
saved messages, tool output and logs is as it was before that commit; a
multi-line or structured held secret again sets a tail of its full length.

Co-Authored-By: Claude <noreply@anthropic.com>

* Chat: streamed reply text goes out as the engine writes it

Removes the server-side cleaning of streamed text and its held-back tail: the
stream cleaner, the scrubbers' length reporting, and the app's extra cuts. The
saved message is masked as before, and a finished reply's text still reaches
clients as its saved message holds it (now in server/harness/public-reply.ts),
together with the speaking member's id on a room reply's words.

Co-Authored-By: Claude <noreply@anthropic.com>

* Wire: keep shared/wire.ts within 1,000 lines

The reply's itemId field shares a line with the field before it, so the file
stays under the size ratchet after the merge with main.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A --help read still running when PATH switches to another claude copy now
only lands if it is still the current read; the reset after a failed
re-probe also drops the running read. Tests pin the race and assert the
retry, the new copy's help read and that --autocompact is withheld.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Team Clouds: a bot is its maker's until they share it

A bot made on a team was Everyone · Can chat from its first moment: New bot
made a bot the whole team could use while its chat said "Private · only you",
and an import was shared with everyone at once. A bot now works like a
document: it starts as Only people added with nobody added, so whoever looks
after it and the admins reach it and nobody else is told it exists.

- One rule on the server (server/new-bot-sharing.ts), set on the store for a
  Team Cloud: New bot, a preset, a copy, a package or template, a backup and a
  bot moved in from My Cloud all start private. An import records the member
  who ran it as the one who made its bots. A request that says who sees the
  bot (visibility on POST /api/bots, ?visibility= on an import) still wins. A
  bot a Chief makes is shared exactly as the Chief is, because bots reach each
  other only with the same audience. The team's first bot, which nobody made,
  stays everyone's. Bots that exist are untouched, and nothing changes off a
  team.
- Share sits at the top right of a team bot's chat, with who it is shared with
  to its left: the faces of the people added, one "Everyone in Acme" mark, or
  nothing. Someone who cannot edit the bot sees only that it is shared, never
  with whom.
- The Team side of the sidebar lists only bots shared with someone; a bot only
  its owner uses is under Just me whole.
- Sharing a bot with a person puts one line in their inbox; sharing with
  everyone tells nobody.
- The Templates form states General access, Just me or Everyone in Acme.
- /?connect=bots opens Settings → Bot access for a team's admin.
- The move confirm and the team welcome no longer say every bot is shared
  with everyone.

Co-Authored-By: Claude <noreply@anthropic.com>

* Team Clouds: a User makes bots of their own

A User on a team could use the bots shared with them and nothing else: making
a bot needed the admin scope, and the app offered them no New bot. A User now
makes a bot of their own. It is private to them and they look after it,
exactly as any new team bot.

- POST /api/bots opens to a Team Cloud member and to no other session without
  the admin scope. Their request takes only what someone who can edit a bot
  may change (the edit rule's own fields): name, picture, instructions,
  profile, model, and which of the team's apps and MCP servers it uses.
  Anything an admin alone sets is refused by name, at creation as on edit:
  what it may do on its computer, where it runs, its department, whom it
  answers to or directs, a crown, a tool selection, a preset, its sharing at
  creation. The admin's saved New bot defaults are not applied to it.
- A User deletes a bot they look after while nobody else can use it. Once it
  is shared, or for any other bot, deleting stays with the admins: the route
  answers 403 in plain words and the menu shows Delete with the reason.
- The app offers Users New bot, Duplicate for a bot they can edit, and Delete
  for their own. Templates, packages, backups and the Grok Bot import stay an
  admin's: they carry skills, notes, routines and approval levels.
- The team's bot limit counts every bot alike, and the team's rules apply to
  a User's bot as to any other.

Co-Authored-By: Claude <noreply@anthropic.com>

* Team member secrets test: its bot is shared with the team, and says so

The test makes a bot as the Owner and uses it as two Users. A new team bot is
private now, so the test shares it when it makes it.

Co-Authored-By: Claude <noreply@anthropic.com>

* Published apps team test: its bot is shared with the team, and says so

The test makes a bot as the Owner and uses it as Users. A new team bot is
private now, so the test shares it when it makes it.

Co-Authored-By: Claude <noreply@anthropic.com>

* Private-until-shared on-screen test: say what the page reported when a step times out

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
While a read was in flight, any bot frame showing the shown conversation
unread asked for one more read. Frames announced before the server handled
the read (for example the one a thread switch sends) re-announce the same
message, so following a notification sent a second read for the thread it
landed on. Each read now remembers the newest message it covers (the
task's updatedAt); only a frame with a newer one asks for a follow-up,
which then covers that newer message.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
A closed or snoozed newest run that needs nothing is hidden, so picking it hid the
whole routine. Skip those runs the same way archived ones are skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A late --version answer for the copy PATH used to find could start that copy's
--help read after a turn had already re-checked the new copy; the new copy's
version matched the help version, so the old read was kept and its
--autocompact result was applied to the new copy. Any running help read is now
replaced when a version check is applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn could wait on its copy's --help read while another copy's late
--version check overwrote the shared version, then launch the old copy
with the new copy's flags. Re-check when the probed copy differs from
the launch copy, and drop version-picked flags if it still differs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Key search matches the Live key row as shown, by the provider Live calls use.
- The Live key draft is kept per provider, so a key typed for one is never saved for another.
- A failed relay post is retried with the same events, numbered so the server applies none twice.
- An unreachable harness ends the call on Fish after repeated poll failures.
- A session Fish drops also ends the harness's call.
- The connect timeout starts after Fish's SDK has started, not during the microphone prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When both re-checks still leave another copy's version in the shared state, the
turn's replay, MCP/setting flags and guest/tool-scope checks no longer use that
other copy's version. The restricted tool-scope check fails closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main tightened the file-size ratchet for Sidebar.tsx to 1687 lines; the
routineRuns prop added 2 lines. Fold them onto the neighbouring
pendingQueued lines so the file stays at the cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server binds a Live key to the provider set when the key arrives, so a provider change that landed first could bind a key to the wrong provider. The provider select is now disabled while a key save is pending, and the key form waits while a provider change is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn checks the copy its PATH resolves, then built a fresh environment
for the spawn. If PATH changed while the check waited, the turn launched
another copy with the checked copy's flags. Pin the checked PATH for the
launch; new test changes PATH while the version check waits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
spawnCli resolves the command through the app's PATH on Windows, not the
turn's, so a PATH change while the turn waited for its version check could
still launch another copy. Launch the copy found on the turn's PATH by its
full path there; POSIX spawn already looks up the turn's PATH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
execCli on Windows resolves a bare command with the app's PATH, so the version
and --help reads could read another copy than the one the turn launches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server side of a live view of the bots' USB Android phone starts here: a
parser for the scrcpy 5.0.1 video socket, and the server file, downloaded once
into the data directory and checked against a pinned SHA-256. Nothing calls
them yet.
A session pushes the scrcpy server into a directory of its own on the phone,
starts it through adb, reads its video through a forwarded port, and removes
everything when it ends. scripts/phone-screen-probe.ts runs one against a real
phone and checks that nothing is left behind.
type_text only ever appended, and no phone tool could empty a field:
press delete removes one character per call. With clear: true the tool
now asks ADBKeyBoard to clear the focused field (ADB_CLEAR_TEXT, from
ADBKeyBoard 2.0) and then sends the text the same way, ASCII included,
so the two arrive in order. Clearing needs ADBKeyBoard as the phone's
keyboard; with another keyboard the call changes nothing and says so.
Without clear nothing changes.
The two keyboard errors share a sentence, so the old assertion passed with
either. The tests now pin the opening of the plain error, the fallback the
clear error teaches, that clear stays optional in the schema, and that the
1-to-256 rule holds when clear is set.
ADBKeyBoard 2.0 and 2.1, the stable releases, crash on ADB_CLEAR_TEXT
when the app in front has no text field taking input: the receiver
dereferences a null extracted text. On a Huawei Mate 9 (Android 9) a
clear sent from the home screen killed the keyboard's process. The fix
exists only in the 2.4-dev and 2.5-dev prereleases.

With clear set, the tool now reads the input method dump first. When the
app in front serves no input connection, it sends nothing and tells the
bot to tap the field. A phone whose dump has no such line is not refused.
A key-only save binds to the endpoint and agent current at write time, so
those fields must not change underneath it either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dump fixtures are now the lines a Mate 9 prints around the served
input connection, with other null values beside it. New rows cover the
name Android 13 and later print, a dump that lists two apps (the first
decides), and a dumpsys that fails (nothing is cleared or typed).
Signed-off-by: kevin9327 <5299031+kevin9327@users.noreply.github.com>
Resolves conflicts with the settings redesign: key search now passes the
config from settings/SettingsWindow.tsx (its new home), and the Fish agent
form takes the new field and button styles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Local VM starts its driver in standard mode with no grant, so every
browser_prepare with strategy existing_profile is refused with
browser_consent_required ("requires --grant existing-profile or an embedding
authorization host"). The driver's hint then tells the bot to "ask the user to
authorize it", which the person cannot do. Start the VM's driver with
--grant existing-profile: the Chromium it attaches to runs inside the bot's
own container, which is already the isolation boundary. Bump
IMAGE_LAYER_VERSION to 9 so existing images rebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Point stays on after a pick; Escape or the Point button ends it, and the
  composer takes focus then.
- One message carries up to 30 parts (was 5). A pick past that is refused and
  Point ends, so earlier picks are never dropped.
- The page outlines each part waiting in the composer with its chip's number.
- Each chip can carry a short note; the server lists the notes by number
  after the page's records block, as the person's own words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ADBKeyBoard reads a field's text through getExtractedText before it
clears. A connection built on BaseInputConnection returns null there.
The tags v2.0 and v2.1 do not check for null, so the keyboard's process
stops; the builds from v2.2-dev on check and fall back to select-all,
which such a connection does not support either. Every build reports
version 2.0, so the tool cannot tell them apart.
signInFamily() folded every claudeAgent instance into the "Claude" sign-in
family, including Anthropic-compatible endpoints and Bedrock (access
"custom"). The picker then showed them only as an "Account" entry under the
single Claude button. Treat access "custom" like "api": such an instance is
its own provider. Official Claude accounts (no access field) stay grouped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a self-hosted server without email sign-in every paired device got its
own person key, so a turn started from the paired phone could never see or
use the computer the person's desktop lends to the same server.

On a server only one person signs in to (own-home.ts oneOwner), every
full-access paired device (admin scope, no email, not a team member, script
token or guest pairing) now lends and uses shared computers as one person.
Nothing else changes who is who; Cloud homes, team Clouds, hosted workspaces
and servers with sign-in members keep per-device keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- server: records and notes use the message-wide chip number, so mixed pages match the composer
- page script: hide an outline whose part has no box; redraw on page layout changes (MutationObserver, one per frame)
- marks are resent when the active frame changes or loads (full screen, reload)
- note input: no maxLength (the setter limits code points); Enter/Escape return focus to the chip
- drop two narrating comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lender key follows whether the server is one person's own, which can change while it runs. Re-registering
now replaces an entry whose person changed, and a poll from a session that is now someone else drops the
computer so the desktop connects again under its current key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codex-cli lists a Fast service tier (`priority`) on most models. Each such
model now gets a second row, "<model> · Fast" (id `<model>+priority`), right
after its own row; models that already run on Fast by default get none.
The driver runs a Fast row on its base model and sends
`serviceTierForTurn` on turn/start, so only that turn is Fast and the
thread's own tier stays as it was: plain rows behave exactly as before.
Effort still works on Fast rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a Cloud's or server's page in the desktop window, the Updates row,
the App nav line, the update card and This computer's overview showed
the version the page was built with, next to the desktop updater's
"You're on the latest version". A Cloud on 0.1.151 made an app on
0.1.154 look stuck. These rows now read the app's version from the
preload bridge; the place's own lines keep the page's version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new frame starts with Point off, so after its load event it now gets
the Point state first and then the numbered outlines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When re-registering replaces an entry because its session's lender key changed, the former person's lent record is
marked stopped, so it no longer reads as lent but away (known, away, lentAndExpected) for that person.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each such run spends the bot's AI for minutes before it fails; one report
had about 126 of them over two days. The third failure in a row with the
same "cloud desktop didn't start" error now turns the routine off and
tells the owner. Turning it on again or editing it starts the count afresh.
A busy or unavailable Cloud service is not counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Codex Fast row books its usage under the full id (gpt-5.5+priority),
which has no list price, so the turn was booked as unpriced. Price it as
its base model; an operator price for the full id still wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simple mode's Bot settings page leaves out "Sending on your behalf" and
per-app Access with no hint that they exist. Add one row, "More in
Advanced mode", that switches to Advanced and opens the bot's
Permissions section. Hidden in Simple-only builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pt-br pack must hold every English key (activePackComplete test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot made with create_bot has no cloud computer of its own, and work
handed to it only uses a computer it already has, so the Chief's first
job for it ran without one and nothing said why. The create-bot result
now carries noCloudComputerYet (cloud computers configured, box backend,
no team computer), and create_bot tells the Chief to say so in one line
when the job needs a computer. Nothing is provisioned on create.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot could only be given a whole 1Password vault. Settings > Vault now has
Change on each 1Password login and secret: pick the bots for that one item.
The choice wins over the vault's, stays when the vault's choice changes, and
"Use the vault's choice" hands it back. It is applied as the item's bots, so
form filling, linked secrets and site lists all use the existing check.

PATCH /api/logins/1password/items/:vault/:item (admin, JSON) sets or clears
it; Move to My Cloud carries it and fails out loud on a Cloud too old for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run queued before an edit could fail after two post-edit no-start runs and
turn the routine off early. Reject the current run too when it predates the edit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A provider-qualified custom model such as local::foo+priority keeps its +,
so pricing no longer books it at another model's operator price.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When creating a bot needed the person's approval, the Chief's resumed
turn got only the setup result, so it never learned the new bot had no
cloud computer yet. teamSetupDecisionText now appends the same note for
each newly created bot without one; denied, cancelled and update results
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Chief asked to replace a bot had to retype its SOUL.md by hand, since
create_bot only took fresh instructions. copy_from_bot_id now starts the new
bot from a bot the Chief looks after: its soul, role and model, with any
instructions appended as a handover note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot whose computer setting is cloud (its own or the saved new-bot
defaults) starts its cloud computer on its first turn, so telling the
Chief it has none until the person writes was wrong for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Cloud send now puts all of this computer's item choices on My Cloud at
  once (PUT /api/logins/1password/items), so an item handed back to its
  vault here is handed back there too.
- If a vault or item choice does not take, the token this send connected
  is removed again (DELETE), so nothing stays open wider than here.
- Granting one item looks in 1Password again before answering "no such
  item", and answers 503 "try again" while 1Password cannot be read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- After model discovery yields, re-run the copy check so a source that left
  the Chief's care (hidden, moved section) is not copied.
- A copied model the account can't run (org turned it off, CLI too old)
  falls back to the workspace default instead of failing the team setup.
  New e2e case: copying a bot on a too-new model failed with 400 before,
  now gets the default model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The setup dialog's Details rendered the whole LocalComputerSection, so Cloud
desktops, VPS computers and Mac control appeared above the private desktop
cards. LocalComputerSection takes privateOnly, which skips those cards and
their fetches; the full settings page is unchanged.

Docs: fix the stale "App Settings -> Bot desktops" path and say that the
published server image has no container runtime inside, so private desktops
can't run there; use Cloud desktops or your own VPS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cloud's update row asks This computer for its "app" Settings page, its
sign-out row for "account", and every Switch to This computer link for the
page it sits on. The preload let only the organization and Cloud actions
through, so main's request reached the page without its page name: Settings
opened on Overview, and "phone" lost the pairing it opens from a link. The
preload now lets every Settings page name through, App opens that page, and
"phone" opens the pairing as the phone link does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It set This computer active and loaded this computer's address at once. With
a local profile or another local workspace running there, the window showed
that workspace's Settings as This computer's, and it did so even when This
computer could not come back. It now takes the same switch as a click on
This computer in the rail, waits for that page to load, and asks it for the
Settings page only when the window shows this computer's page. A switch that
can't happen leaves the Cloud on screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Call mode ended the person's turn after 850 ms of quiet, so a short
thinking pause mid-sentence cut them off. Both call views now share one
CALL_ENDPOINT_MS of 1.7 s, used by the Mac speech helper and by the
Fish Audio listener on Windows and Linux. Composer dictation is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The phone controller's act caught a failed call and resolved anyway, so
Remove reported "Removed <name>." while the phone stayed paired. act now
returns the state the call left, or null when it failed, and Remove waits
for a state before it says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Turn on and show code moved on to pairing even when turning on the chosen
way in failed, and the pairing attempt then replaced that error with an
unrelated one. The dialog now stays on the choice and shows the error there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The name a paired phone calls this computer could only be edited while
nothing was paired: the editor sat inside the empty-list branch, so it
disappeared once a device was listed. It now shows in both, with the same
Simple, portal and Cloud conditions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Shared / Per bot control looked operable before the status arrived and
while a policy change was saving, but its handler dropped the click. The
settings segmented control now takes a disabled state (native disabled
buttons, dimmed), and the isolation card uses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With skill authoring off, or while a change saved, the Share learned skills
control only blocked the pointer: its buttons still took focus and Enter or
Space sent the change. The control now uses the segmented control's disabled
state, so the buttons are natively disabled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The field was marked invalid but no longer named the message under it, so a
screen reader announced "invalid" without saying the allowed range.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The skin choices in Settings are radios and already report the selection
with aria-checked. aria-pressed is not allowed on a radio, and screen
readers could announce them as toggle buttons or say the state twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every message, including an invalid retention and a failed retention save,
appeared under the event log limit row, so people corrected the wrong field.
Each row now shows its own saving status and error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When 1Password refused the token the dialog stayed open, but the reason was
drawn in the section behind the modal, so people saw the Connect button come
back with no explanation. The error now shows in the dialog while it is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The export's errors were caught inside it, so the dialog closed on a failure
as well as a success; people had to reopen it and type both passwords again
to retry. The dialog now closes once the download has started.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The confirm dropped a failed sign-out and closed, so from the outer menu a
person could believe they had signed out while the credential stayed. It now
closes only once the sign-out went through, and otherwise stays open with
an error so it can be tried again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A ready Cloud became a single link row, and the Files link stayed only in
the other branch, so it showed only while bots moved to My Cloud. The link
row now carries it. The Open button left in that other branch could never
render and is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5503 added a phone-width rule scoped by skin (the settings sheet's
:root[data-skin="midnight"] [data-settings-look]). The phone block was found
as the first 767.98px block that mentions [data-skin=, so that rule's block was
taken and the skins' own phone tokens were no longer measured: "midnight
(phone)" and "meadow (phone)" dropped out, and with them the AA pairs and the
frame check at phone widths. The block is now the one holding a skin's own
token block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When `claude --resume` was refused, the driver quietly started a new
session with the "could not be resumed" preamble and logged nothing, so a
person could not tell why their saved session was dropped. It now writes
one line with the session id, the thread and the CLI's own reason (its
"No conversation found" error result, or its exit code and stderr tail).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The resume log line pushed claude.ts past its size ratchet; the retry and
resume-recovery paths repeated the same 13 lines of session cleanup, so they
now call one helper and the ratchet goes down to 2087.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The body picker changes one bot at a time, so a person who prefers a
round body over the cursor had to open every bot. The avatar editor now
offers "Give this body to the other bots (n)" while a bot shows its
mascot, and sends one body patch per bot that wears another body. A bot
showing an uploaded picture keeps it; only its mascot body changes.

BotUpdatePatch now names mascotBody, which the body picker already sent.
The first item PUT now carries `keep: true`, so My Cloud takes this
computer's item choices without handing any other item back to its
vault yet. The whole map is sent only after the token and the vault
choices took, so a refused token or vault update can no longer leave an
item open under its vault's old, wider choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server refuses a look change to a bot a Team Cloud member cannot
edit, unless it is their own MausBot, so the button counted and patched
bots it could not change. It now keeps the bots mayRename allows, the
same rule the server applies to a bot's look.
`codex login status` reports an API-key login as signed in ("API key configured" on 0.165,
"Logged in using an API key" on 0.160). The Codex snapshot did not say it was a key, so
Settings showed the ChatGPT account as "Signed in" with a Sign out item, and Sign out then
failed with "did not confirm a ChatGPT sign-in" because the device sign-in only signs out
ChatGPT logins.

The snapshot now sets account.method "api-key" for an API-key login (and skips the ChatGPT
email lookup it cannot use). Settings already shows such an account as "Uses an API key"
with no Sign out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`plainPreviewText` builds the one line a sidebar row or an OS notification shows. Two
markdown constructs still leaked their markers into it:

- A Setext heading keeps its underline: `Report` over `======` reads "Report ====== this
  week", and `Q3 plan` over `--` reads "Q3 plan --". The ATX form (`## Report`) was already
  stripped, and so was a `---` rule, which is the same construct with the other character.
- `- - -` is a thematic break, but the list pass runs first and removes the opening `- `,
  leaving `- -` for the rule pass that then no longer matches.

The rule pass now runs before the list pass, and a line that is only `=` or `-` runs (a
Setext underline) is dropped with it. Markers of a list item's text are untouched: `- -5
degrees` still reads "-5 degrees".
CodeRabbit: the CLI's refusal text goes to the server log, so scrub
credential-shaped content first. Leave claude.ts's line pin at 2090; the
release job lowers pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At Full access the Just do it prompt told bots never to stop and ask, and
the widget prompt said to ask one thing at a time. A person who wrote
"ask me clarifying questions first" in chat got one question per turn, and
one who put "always ask me first" in a bot's instructions got no questions
at all: the bot took defaults and did the work.

Both prompts now hand the call back to the person when they ask to be
checked with first, in the chat or in the bot's instructions: ask
everything needed in one message, then wait. Plain requests still run
without questions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An imported skill that was on but not in the bot's list (found when a task
needs it) showed its switch off. Clicking it only added the skill to the
list, so there was no one-click way to turn it off and the bot kept using it.
The switch now follows the skill's on/off state; the 'found when needed'
line still tells the two cases apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a server of one person's own whose sign-in list names one admin, that admin's
email sign-ins with full access now count as the same lender as their full-access
paired devices, for shared computers only. A desktop signed in by email and a phone
connected with a pairing code see each other's lent PCs. Other addresses, guests,
limited pairings, team members and servers several people use keep their own keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a short line under the Self-hosted VPS alias field and a docs section
(docs/byo-vps.md and the docs site page) explaining that the server can be
any x86_64 Linux machine with Docker reachable over SSH, including a computer
on a Tailscale network, and how to point the alias's HostName at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One table of settings keyed by id, where the tier (safe, confirm, secret,
owner-only) is the whole policy. The host applies a safe change at once
with an Undo card, holds a confirm change on a Change/Cancel card the
owner answers, posts the secret card for a key and never takes its value,
and refuses an owner-only change with where to find it. Writes need the
owner's own turn, at most ten per turn, and every one logs a decision.

callRoute runs the Settings UI's own route handlers for config, bot order
and sidebar groups, so a change from chat has the same checks, side
effects and broadcasts as the Settings window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
find, get and set over MausBot's own settings, with the setting's details
looked up by id instead of listed in the schema. About 1.1 KB per profile
on the wire; BUDGET_BASELINE reset to the measured bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A setting card is reviewed on screen, never answered by voice. An applied
change shows as a one-line receipt with Undo; a waiting one shows its
server-written title with Change and Cancel.

Skin, Simple or Advanced, font, chat width, send key and notification
sounds live in the window. Every setter reports the window's values to
the server, and a window-pref frame applies a change the server pushes.
configStatusFromFrame moves to src/lib so store.tsx stays under its pin;
shared/wire.ts is pinned at 1004 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a bot's Boat cloud computer hangs while starting (or fails to start),
the Computer panel only showed a spinner and had no way out. The box
"remove" route returned 409 for cloud computers.

The route now deletes the bot's own Boat computer the same way Settings ->
Cloud computers does (deleteManagedBoat: refused while the bot is working,
under the bot's lifecycle claim). The panel shows a "Reset cloud desktop"
button only while the bot's own cloud desktop is stuck starting or failed
to start, asks for confirmation, and a fresh one starts with the bot's
next message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The internal route dispatches inside the capability gate beside
mcp_server; the Change/Cancel card's answer needs ownerReview in both
respond routes; Undo on an applied card restores the earlier value. The
registry runs over the Settings window's own config, bot order and
sidebar routes. resolveAndSendTrust moves to host/trust-answers.ts
unchanged so server/index.ts stays under its pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/lib/phone-pairing.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reset route answers { ok: true, pending: true } when Boat accepted the
deletion but has not finished it; the button dropped that result, so the
panel could show the same starting computer with no word of the pending
deletion. It now shows a short note in that case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a fresh install the room turn timeout, MCP call timeout and threads per
bot are not in config.json, so their entries read "not set" and kept
undefined as the value to undo to. Undo of the first change then refused
with "The earlier value is not one that can be set back." Each now reads
the value the server actually uses (roomTurnTimeoutMinutes,
mcpCallTimeoutMinutes, defaultBotThreads), so the card shows the real
before value and Undo sets it back. Found by server/app-settings.e2e.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Turns on the person's own Codex sign-in now run in MausBot's own Codex home
per instance, with the person's login and setup linked in. Every MausBot Codex
home (ChatGPT plan included) keeps its sessions, chat databases and history
files to itself, so the Codex and ChatGPT apps no longer list bot chats as the
person's history. Team Cloud homes, keyring logins and logins that cannot be
linked keep the person's home as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A temporary server with the scripted engine and the real agents proxy. On
Full access an owner turn applies a safe setting with Undo; a provider
address waits on a Change/Cancel card that a local Allow cannot answer
while the bot works, Cancel changes nothing and Change from the owner's
paired device applies it; a key passed as a value is refused and set
without one posts the secure card, with the key in no result, message,
decision or config; an owner-only setting is refused with where to change
it; a webhook's run can read a setting but not change it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's long command (a big render, export or transcription) was cut by
Claude's Bash limit at ten minutes, even while it kept working. Raise that
limit to two hours, the turn watchdog's own limit for a silent running tool,
and when the watchdog stops a turn while a shell command is still running,
name the command and how long it ran instead of "no activity".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person's own BASH_MAX_TIMEOUT_MS still wins, so the prompt and the
timed-out hint now say the 2-hour cap applies unless a lower limit is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The image preview had Download and Close but no way to put the image on
the clipboard. Add a Copy button next to Download. It writes the image as
PNG (other types are redrawn as PNG, the one type every browser clipboard
takes), shows a check when done or a short error, and is hidden where the
clipboard cannot take images.

useCopyFeedback now takes an optional writer so the button reuses the
same copied/failed feedback as the text copy buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Old chat/database links in MausBot's Codex home are removed before any
  early return, so no new chat is written through a stale link.
- A turn keeps the person's own Codex home when it has no auth.json, or a
  system-wide Codex setting chooses the login store (keyring possible).
- If MausBot's Codex home can't be made, the error is noted and the turn
  runs in the person's home instead of failing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The helper-key suggestion showed as an unattributed bubble offering to sort
mail for a Jev or Cloudflare Workers AI key. People asked the bot about it and
it called the message suspicious and said Jev is not a provider it knows.

- The card now starts with "Tip from OpenMausBot" and one line on what a
  helper key does and who offers one (Jev at typesafe.ai, Cloudflare Workers AI).
- The records note the bot sees for this card now says it is the app's own
  genuine tip and what Jev and Cloudflare Workers AI are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The renderer's live event stream says it is the app window (?window=1), and
a window-pref set is refused with "Open MausBot on this computer first"
when no such admin stream is connected, instead of saying done after the
window closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The internal route hands the tool the turn's call signal, which aborts when
the turn is stopped, interrupted or revoked, or the call goes away. A
waiting confirm hold then settles at once: the card is marked
answered "unavailable" and dismissed, as other cards are on stop, the bot
hears that nothing changed, and the bot's one open card slot is freed.
Before, a Change tapped after Stop still applied the setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn whose shell command has been silent for the turn limit now has that
command's processes' CPU time read once a sweep; a change since the last
read counts as activity, so a command that keeps working is never stopped,
and one that does nothing for the tool limit (2 h) is stopped and named as
before. Claude's Bash cap goes from 2 h to 24 h so the engine does not cut
a working command either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some OpenAI-compatible gateways accept only size "auto" and reject every
exact size. For the Custom provider only, a failed exact-size request
(not 401/402/403/429) is retried once with size "auto"; if that also
fails the original error is reported. Other providers are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The watchdog's stuck-command notice put the raw shell command into the
transcript (as the notice params and its English), so a held secret in
that command survived there. stuckCommand now scrubs the command, and
failedNoticeTool redacts its params like noticeLine/noticeTool do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's message_person from a room was marked done as soon as the person
typed anything in that room, so in a busy room the Inbox line closed before
they ever saw it. Room lines now carry untilReply: only a reply to that line
(or Done in the Inbox) settles them. Lines saved before this change keep the
old rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pausing or deleting a routine now also cancels its runs that were waiting for
  the person, and ends their turn, so their open cards stop and the bot no
  longer shows "Waiting for me" (close_thread works again).
- When an app account connects (through a connect card, or Settings), older
  connect cards still open for that same app and account show it connected,
  and work parked on them carries on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/host/skills-library.ts
#	server/imported-skills.ts
#	src/locales/en.json
#	src/locales/pt-br.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Load video" read the whole file into a Blob before the player could start, so a
20 MB clip on a slow link showed "Loading video..." for ~20 s and clips over the
25 MB preview cap could never play inline.

The message-file POST now answers { path, media: true } with a short-lived link
(in memory, bound to the thread, message and viewer; 15 min idle, 4 h max). The
player streams GET ...?media=<id> with Range support, and every message, root,
folder and MIME check runs again on each request. Older servers still answer
with the bytes, and the client keeps the old Blob path for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pausing or deleting a routine no longer interrupts a turn the person
  started by typing in the waiting run's conversation (personTurn, from
  the turn's recorded origin); a routine's own or resumed turn still stops.
- Reconnecting an app settles only cards posted in the last week, also
  when the same conversation has a newer card.

Review: CodeRabbit r4549774321, r4549774336.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the person types a new line in a bot's one-on-one conversation instead of
tapping an answer, older question cards that no turn and no parked work wait on
any more now settle as "Answered in the chat". Before, they stayed open and kept
the conversation "Waiting" on the person for up to a week.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new agents tool, reset_cloud_computer, shows a permission card in the
chat ("Reset X's cloud desktop?"). On Allow the computer is deleted the
same way Settings > Reset does, once its bot is no longer working (a
computer in use is retried every 5 s for up to 3 minutes). A Chief of
Staff can also ask for a bot in a department it manages (for_bot_id).

Mounted only where cloud meetings are (the hosted cloud), card text comes
from the language packs (en, de), and leftover cards are closed at start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Allow resets only the cloud computer there was when the card was
  shown: a newer one made since is refused, never deleted.
- A blank or missing reason is refused before any card is shown.
- Settings switching the cloud computer provider holds a reset back,
  as the Settings reset does.
- Live-call and reaction answers to harness cards go through the same
  path as the card buttons.
- The "still being deleted" note stays after the panel goes back to
  checking.
- German and Portuguese (Brazil) strings for the new keys (fixes the
  i18n shard failure).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An optional sameConversation setting on webhook and app-event automations
(off by default). When on, each run continues the previous run's
conversation so the bot sees its earlier runs; runs of that automation take
turns, like schedule runs. A deleted or missing conversation falls back to a
new one, which the next run continues.

Set from the webhook and app-event editors (checkbox, 16 languages) and the
bot trigger tool (same_conversation for app_event and webhook; refused for
schedules and limit resets). Stored on the trigger and carried through bot
requests, undo, cloud send fields and the host API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Linux Local VM made before cua took the host's ids (uid 1000) leaves
.browser-profiles and .desktop-apps owned by that uid. The automatic
desktop update then fails with EACCES, because the Firefox and app
rescues staged their copy inside those folders.

- Stage both rescues in the workspace root, which the server made, so a
  desktop whose ~/.mozilla and ~/.local already link into the workspace
  updates without writing in the old folders.
- A permission error that still blocks the update now names the one
  chown command that hands the folders back.
- The desktop's start-up script also hands workspace files of the old
  cua ids to the new ones (the bind mount is skipped by find / -xdev),
  best effort so a share that refuses chown cannot stop the desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chown or chgrp to an unchanged id still clears set-id bits and file
capabilities, so the uid and gid moves now each sit behind their own
check. The recovery command quotes the workspace path with shellQuote,
so a path with an apostrophe still gives a runnable command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ChatGPT accounts card for Codex now says that bots using these
accounts also follow the person's Codex setup (AGENTS.md instructions,
config.toml, skills and plugins). No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
onReset re-resolves the panel, so the button's view stops being resettable
and the 'still being deleted' note never showed. Render the button only
when offered, and keep the component while a note is up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/mcp-http.test.ts
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
Settings search could still offer the Live calls row, which the Keys page
hides for those providers, so choosing it focused nothing. Both now use a
shared keyHidden check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tip label used a hardcoded OpenMausBot; renderer copy names the app
through {app} (MausBot). en/pt-br/zh-tw use {app}, the pt-br and zh-tw
hashes are re-recorded, and the setup records block says MausBot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A model dsh won't switch to (or an error reply) now keeps no thinking
choices instead of failing the whole refresh, and the per-model survey
only runs when dsh lists at most 128 models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	src/locales/source-hashes.json
No new settings in the editors (owner rule, Nov 11-12). Remove
SameConversationOption and its use in the webhook and app-event editors
(including sameConversation in their save payloads) and the
automations.sameConversationLabel/Help keys from all 16 locales. The
server side and the bot tool's same_conversation stay, so a bot turns it
on when the person asks; editor saves keep the stored value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a turn replays the conversation history (new session, rewind, or an
update from outside the provider session), earlier images are attached to
the current turn and their tags were removed from the replayed text with
nothing left behind. The model then saw an old screenshot as part of the
latest message, on every later text-only turn.

Leave a short note where each replayed image was, saying it belongs to that
earlier message and is attached again only for context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot or the bot that asked deleted before Allow now gets a localized
"Not reset" line instead of a hard-coded English one. A bot on Auto
(no computer setting) may ask to reset its own cloud computer unless it
runs on its department's team computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both PRs move every profile's tools/list wire; the merge resolved the manifest
to #5555's side. These are the exact bytes/sha256 the agents-catalog-wire test
expected on this train's CI (each profile +1 byte over #5555, from #5492's
memory_update text). No budget baseline moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train J4: 25 Nov 12 PRs (Afloat16 fixes, IME rename, stop-and-send labels, GLM docs, DeepSeek variants)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5593 settles a bot's open question cards (requestType question) as
answered when a new person line starts a turn in its 1:1 chat. Main keeps
exactly those persistent questions open and answerable after their turn
ends: a later typed turn leaves them open (index.test.ts, restart test),
and a late answer or a spoken answer on a call wakes the bot. With #5593
the late-answer and call answer lines themselves settled the card first,
so it lost its answeredText or refused the answer. Narrowing it to typed
lines still breaks the restart test, so it comes out of this train.

This reverts merge commit e6c8a99e5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A phone paired with a self-hosted server can chat and approve, but it can
never enter a secret there: only the desktop app hands a server the phone
key, so the server answered every phone secret with "Reopen OpenMausBot
and try again", which cannot help.

- The pairing reply says whether this server can take phone secrets
  (phoneSecrets), and the web "Pair a phone" dialog adds one line when it
  cannot: "This phone can chat and approve here, but secrets must be
  entered on the web or computer."
- On a server with no desktop app, a phone secret is refused with "This
  server cannot take secrets from a phone. Enter it on the web or on your
  computer instead." The desktop wording and the 409 re-pair message for a
  real key mismatch are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fish Audio calls now use the existing Fish Audio key (tts.fishKey) instead of
a second Fish key in the Live key slot. A Fish key already saved as the Live
key (keyFor "fish") is read as the Fish Audio key while none is saved.

The Fish agent id setting and the manual agent setup are gone: on the first
call the harness sets up a Live 3 agent with the delegate client tool and an
overridable system prompt on the key's account, publishes it and saves it with
a print of the key. A removed agent is set up again once; an operator's
OMB_FISH_LIVE_AGENT_ID is used as is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/index.ts is back at its 15516-line pin (net 0 against main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train J2 (Nov 12): 19 AdityaUmale PRs
The hard-turn-limit test gave a looping team a fixed 15 s for 13 fake-CLI
turns; on a loaded Ubuntu shard it was at turn 10 and still moving. It now
waits while turns keep landing and fails only when none lands for
hostTimeout(10 s).

cloud-team-bot-access's beforeAll died on a bare "fetch failed: read
ECONNRESET" with no stack. The cloud-send fixture's Team Cloud requests now
say which request failed, whether the server is still running or how it
exited, and the servers' latest output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve src/locales/source-hashes.json: keep both the 1Password item keys and main's botPanel.advanced keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/claude.ts
#	src/locales/source-hashes.json
Main (J2) grew the Chief profiles by 134 bytes, so #5601's +175 bytes on
every profile now takes ten Chief entries past their 2% band. Raise just
those BUDGET_BASELINE entries to the new sizes (main's bytes + 175).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
The agent the server sets up on a person's Fish Audio account is
"MausBot Live calls", or a white-label brand's own name, through a new
server-side productName() in server/brand.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main CI: wait for a moving goal run, and name the Team Cloud request that got no answer
On a Team Cloud the app opened the selected bot's shared chat for a moment
each time it started, then went back to the person's own chat. Since #5485
each store change is drawn at once, so the start step ran before the config
said this is a team's Cloud. On a phone-width window the bot list closed by
itself when it was opened during that moment, because it closed on every
conversation change of the selected chat.

The start step now waits for the config. The bot list closes when the
person goes to another chat or page, or when a conversation they picked
while it was open comes on screen; a conversation that changes by itself
leaves it open.

Co-authored-by: Claude <noreply@anthropic.com>
The site documented every built-in engine and OpenAI-compatible providers, but
nothing about running an agent CLI of your own over ACP, which docs/custom-engines.md
covers in-repo. Add apps/docs page providers/custom-acp.mdx (config entry, CLI
sign-in, model picker, environment, approvals, several instances), link it from
the providers index and model-providers, and register it in meta.json.

Also correct the picker button the in-repo doc names: it is Refresh models
(model.refreshTitle), not Re-detect.
One confirm setting, engines. A key never passes through the bot: a key-like
field is refused, and keyFrom names a key saved through the secure card, read
by the server only when the owner taps Change. Removal is refused before any
card for sign-in accounts, built-in engines and engines in use. Writes go
through the Settings window's own instance routes.

A Change tap now settles the hold before the write runs, so a Stop landing
mid-write no longer tells the bot nothing changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its working folder is where it starts, not a limit on what it reads, and
only MausBot's own provider key names are stripped from its environment.
Two instances of one CLI that signs in through the home folder share that
sign-in unless the second sets its own HOME.
getAll can answer one item with an internal error without failing the batch.
The adapter dropped it, so the item grant said "no such item" (404) instead
of "1Password can't be read just now" (503). Items a batch with an internal
error did not return are now kept as unreadable, and readsItem answers null
for them; a confirmed itemNotFound still answers false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train K1 (Nov 12): OMP engine (#5399), USB phone takeover (#5476), Fish Audio Live 3 calls (#5512)
Settings: Import & export page with Move from Grok Bot, in Simple and Advanced
# Conflicts:
#	server/drivers/phone-proxy.ts
#	src/App.tsx
Main's goldens plus #5601's same_conversation field: byte counts already
matched; these are the sha256 values the goldens test reported in CI run
43270436807 (windows shard 8/8).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a bot acts on a lent Mac or PC, the server now tells the desktop
which bot the action is for (only its name and mascot colour). The tray /
menu bar line says "IT Support on My Cloud is using this Mac" with the
bot's colour dot, and keeps naming it for 30 seconds after its last step
so it doesn't flicker between steps. Older Clouds send no bot, and the
menu says only which Cloud, as before.

The PNG dot drawing moves from cloud-buy.mjs to color-dot.mjs so the
Cloud switcher and the lending menu share it.

Closes #5622

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One row in HOSTED_MCP_APPS: BubblaV's official hosted MCP endpoint
(https://www.bubblav.com/mcp) with browser sign-in. BubblaV registers
OpenMausBot dynamically and accepts its 127.0.0.1 loopback callback, so no
key or pre-registered client is needed. Logo supplied by BubblaV.
- A running action keeps its bot named; the 30 s expiry starts when it ends.
- A stopped or replaced run no longer names its bot again after stop().
- Accept bot names up to the server's 80-character limit.
- Three or more bot names in the menu-bar title read "3 bots", not "3 Clouds".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train J1 (Nov 12): 17 AdityaUmale PRs
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	src/locales/source-hashes.json
The pt-br pack must hold every English key (activePackComplete test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner rule (Nov 11): no new permission cards. After the existing checks the
bot's call posts one plain line ("Resetting {name}'s cloud desktop: {why}"),
starts the reset at once (still retrying 5 s x 36 while the calling turn holds
the computer), and patches that line with how it went. One reset in flight per
computer, and the Chief rule, stay.

Removes the card path: answer, the ownCards hook into createQuotaSwitchHost,
the harnessCardOutcome line in respondToCard, dismissStale,
approval.tool.resetCloudComputer and server.cloudReset.title/what (en, pt-BR,
de and hashes). Tool description and tests follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Markdown preview only read UTF-8, so notes saved by Windows apps
(Windows-1252, common for Portuguese and other Latin languages) failed
with "Could not open this file. Check your connection and try again",
which also blamed the connection for a file the server had already sent.

- readTableResponse takes an optional single-byte fallback encoding;
  the Markdown preview reads non-UTF-8 text as Windows-1252. A file
  with NUL bytes (UTF-16, binary) is still refused.
- When the server refuses the file, the preview shows its reason;
  the connection hint stays only for requests that got no answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/LocalComputerSection.test.ts
#	src/locales/source-hashes.json
A file with NUL bytes (UTF-16 with or without a byte order mark) is
refused before the UTF-8 check, since NUL is valid UTF-8, and the
preview now says the file is not plain text instead of asking the
person to check their connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HighLevel MCP tools name the resource before the verb
(HIGHLEVEL_MCP_CONTACTS_GET_CONTACTS), so the read-only check took
CONTACTS as the verb and refused every HighLevel read as a write.
For highlevel_mcp the verb is now the second word; anything else
there still counts as a write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The signal bars beside the model name, the rows at the top of the model
menu and the phone header's Model row are drawn from /api/limit-resets.
Since 0.1.153 the server listed every Claude instance as noUsage, so it
never asked for Claude's plan usage and the bars stayed empty for Claude
in Simple and Advanced alike. The renderer was unchanged.

- plan-usage.ts: a Claude instance's sign-in is read for its plan usage
  again with no setting, as in 0.1.152. An instance whose config sets
  "usageMeter": false keeps its login unread (no UI for it).
- Tests: the accounts list and fetcher read every Claude instance and
  skip one set to false, the cache never crosses that change, the limit
  clock reports Claude beside Codex, the engine-limits e2e expects Claude
  as "unknown" (no sign-in in the fixture) rather than "unsupported".
- Renderer tests: the picker follows the bot's own engine when two
  engines report usage (Simple and Advanced), and the phone header's
  Model row shows the bars, or none for an engine with no usage.

Co-authored-by: Claude <noreply@anthropic.com>
Merge train J3: 17 community and team fixes (Nov 12)
# Conflicts:
#	src/locales/source-hashes.json
Main's change added 2 lines to the file after #5553 was reviewed, which took it past the size limit. This folds the 4-line comment on item choices into 2 lines. No code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a room, the label above a bot's message was 11px and did not say who
the bot was talking to. Now the name is 13px semibold in the bot's own
identity colour (avatar 20px), and when known the label shows who the
message is for: the author of the message it replies to ("You" for the
person) and the room bots it @mentions, each in their colour. The 1:1
teammate label (PeerLabel) gets the same bigger, coloured name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A webhook trigger can now carry payloadFilter: up to 10 dotted field
paths, each with the text it must have. A call whose JSON does not match
every field is recorded as ignored (202) and starts no run, so a bot no
longer spends a whole run deciding "if it is not X, stop". Matching is
case-insensitive; a list along the path matches when any item does.
The person's own Run now test is not filtered.

The trigger tool takes it as webhook_payload_filter on when=webhook
(create and update, {} removes it) and refuses it elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train K2: #5553 per-item 1Password access, #5596 automatic cloud computer reset, #5550 shared Local VM hold
Upgrade TypeScript to 7.0.2 (head c56a9d253).

pnpm-lock.yaml conflicted with main (main added @fishaudio/agent-client
since the PR's base). Took main's lockfile and regenerated it with
`pnpm install --lockfile-only --ignore-scripts`; the resulting delta is
byte-identical to the PR's own lockfile change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The addressee label only knew the room bots, so @Bob was shown as the bot Bob
even when a teammate Bob owns that tag (a tie is the person's, as the server
and mentionRanges read it). Pass the teammate peers and skip person tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A self-hosted VPS on a box that pauses after idle time refuses SSH until
resumed, so the computer check failed until the person resumed it by hand.
When the host can't be reached, run the person's executable ssh/wake script
from the data folder once with the alias, then try the connection once more.
Without the script nothing changes; its failure is shown next to the SSH error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A null filter on a webhook update now clears it, as the store and the
tool description already say; on another kind's update it is read as
nothing to change instead of an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new trigger field adds 380 bytes to every catalog profile; refresh
the tools/list goldens and move each BUDGET_BASELINE by exactly that,
as was done for same_conversation. Shorter field description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The wake script now gets at most 120 s, and never the time the connection retry needs.
- ensureVpsSshMaster resolves with the time the wake script took; defaultRunner adds it to its own deadline, so a slow wake no longer times out the Docker command before it starts.
- Tests: wake time reported; a wake script past its limit is stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The trigger schema types webhook_payload_filter as an object (the catalog
never uses nullable types; provider-safe conversion strips null from type
arrays), so the description no longer offers null. The handler still
accepts null from clients that send it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A long request from another bot now folds to a single line in the chat.
Clicking it opens the full request in place, with Show less and View
exchange. View exchange opens a side panel with that bot's requests and
this bot's written answers, in order. Short requests and search hits
stay open as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- peerExchange files a reply under the request it names (requestMessageId),
  falling back to position, and leaves out other room members' replies.
- The exchange side view reads the whole transcript, not the scrolled window.
- The compact row previews the filtered body; "Show less" stays folded while
  a search hit focuses the request.
- The side panel uses useModalDialog: Tab stays inside, focus returns to
  "View exchange" on close.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No fixed sleep decides whether the second caller joins a wake under way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The composer refused every archive with "Archives can't be attached:
unzip ... and attach the files inside", and the server had no archive
mimes. Archives now upload like any other document: typed by their
filename (browsers declare them inconsistently), kept within the normal
file size limit, stored as sent and never unpacked. Downloads stay
non-inline with nosniff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot can leave a message in one of its own threads or a teammate's thread it
can reach, without opening a new one. It is always a bot row marked
information only, read on that thread's next run (or wake starts a run now),
and a delivery id stops a retry from posting twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FILE_MIMES now accepts application/zip, so the old rejection case got 201.
Assert payload.zip returns 201 with a .zip path, and use
application/x-msdownload for the 400 case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add the "Post to thread" activity label (fixes the activity label test).
- Tell the model to reuse delivery_id on retry.
- Say a wake was requested instead of claiming a run started.
- Refuse a delivery_id reused for a different thread (409), not a false duplicate.
- Refuse calls made from a room turn (use coordinate_bots there).
- Include unread posts in the recovery prompt too.
- Regenerate the agents catalog goldens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restart turn and a queued message's Stop and send end the running turn and
everything that turn handed to other bots. That is by design, but the hints
only said they stop "the running turn", so people were surprised when a
teammate's work showed "Stopped with the request it was for".

The send-menu Restart turn hint and the three interrupt hints on queued
messages now say so. Behaviour is unchanged. Existing translations are
refreshed and their source hashes recorded, so pnpm i18n:check stays clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the system ends a teammate's running turn (a waiting message going
first, a restart, a deleted conversation), the host's abort handler stops
that teammate's thread with stopAwaitingDirect(threadId) and no reason.
That defaulted to "Stopped by user", so the coordinator remembered the
person's stop for the still-queued follow-up, and a later coordinate_bots
rework was refused with "The person stopped this teammate's work".

Stops now carry their cause through the cascade: a no-reason
stopAwaitingDirect inside a stop already under way takes that stop's
cause. The person's own stop is unchanged and still remembered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a paired client (desktop app in client mode), the computer panel always
previewed and opened the host's cloud computer. For a bot the host runs on
its Local VM this showed "Cloud desktop" and failed with "Choose Cloud
computer...". When the bot's computer is "vm", the panel now previews via
local-computer/screenshot, takes control the way a phone does (no target,
so the host holds its Local VM key), and joins via
local-computer/join?controlLeaseId=<lease>, which the companion relays.
openProviderDesktop now passes the take's lease to join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A concurrent call with the same sender and delivery_id could pass the
duplicate check while the first post was still awaiting delivery, so
the thread got two posts (or another thread got one). The key is now
held while delivery runs and released on every failure path; a call
that arrives meanwhile gets 409 asking to retry with the same id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When another view already holds the host's Local VM, the take returns
held but not owned. The join was still sent the lease, so the host
bound a viewer to a lease this view does not own. Pass the join only
the lease the take owns, and show "already controlling this desktop in
another view" instead of joining.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A client whose host's Local VM is held in another view gets a clear held
error, and no longer posts viewer-close, which would close that view's
viewer on the same session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The `in` operator also matches inherited names, so a server literally named `constructor` was mishandled: additions were missed and removals were misreported as changed. Use Object.hasOwn for both membership checks, and add a unit test covering a server named constructor. Addresses CodeRabbit review on #5653.
A bot marked defaultBot was undeletable and unarchivable with no UI way
out. The bot menu now offers 'Make this a regular bot', which clears the
mark server-side; the bot can then be archived or deleted like any other.
Setting the mark by PATCH stays refused.

Fixes #5660

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- The demoted notice now fires in the botPatched reducer only when the
  authoritative bot confirms the defaultBot mark is gone, not optimistically.
- 'Make this a regular bot' is hidden from team members; the server's
  member PATCH allowlist refuses defaultBot, so only admins can demote.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Copilot names each MCP server's function namespace after its config key and
refuses functions in the reserved `browser` and `computer` namespaces with an
HTTP 400 on every turn. Give only those two keys a `maus_` prefix (numbered if
taken) in the --additional-mcp-config file; every other server keeps its name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Go model meeting the Go subscription's weekly or monthly allowance was read as a limit on the whole OpenCode account,
so the free OpenCode models on the same sign-in (with their own allowance) were skipped as backups too. The limit now
holds the Go models the app knows of; a limit met on any other model still holds the whole account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Another subscription sign-in to the main AI (Claude, Codex/ChatGPT, Grok)
never takes over at the main one's usage limit (limitBackupAllowed: account
rotation breaks provider terms); it is used only while the main one is
signed out. The backup pickers in the bot panel and bot settings now say so
next to such a backup. The rule moves to shared/limit-backup.ts so the
server and the picker use one definition; behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Picking a Composio event type that needs the project's own webhook endpoint
(for example SLACK_CHANNEL_MESSAGE_RECEIVED) was refused with "is not an
event OpenMausBot can watch", which reads as if the event did not exist.
The broker now tells such a type apart from an unknown one and answers 422
with a clear message; the app passes it through unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Codex or Claude backup whose CLI stored an API key (account method
"api-key") is not pay-per-use to the server's limitBackupAllowed rule, so
it still never takes over at the main AI's usage limit. The picker hid the
note for it; it now shows the note, matching the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train L: TypeScript 7.0.2 (#5500)
The check dumped apt's whole 100 KB output and then threw an error that
carried it again, so the log was cut before dpkg said why it failed. On
failure, print the tails of /var/log/dpkg.log and apt's term.log (which
holds the maintainer scripts' output) and only the last lines of the
container's output, written synchronously.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Docker or Podman container reads the host kernel's
apparmor_restrict_unprivileged_userns=1 but cannot reach the host's
AppArmor, so the postinst failed closed with "restrictions are active but
AppArmor is unavailable" and dpkg left the package half-configured. That
breaks the clean ubuntu:24.04 install check on GitHub's runners, and any
docker/distrobox install on a stock Ubuntu 24.04 host.

Inside such a container the host owns that policy: stage the profile, say
it was not loaded, and finish the install. Outside a container, and in a
container with its own AppArmor (LXD), behaviour is unchanged; a missing
apparmor_parser still fails closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The broker can't read the white-label name (productName), so the message
says "our side" instead of naming the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- server/index.ts: the new /api/internal/post-to-thread route shares the line that
  closes the coordinate-bots route, so the file stays at 15,515 lines.
- BUDGET_BASELINE: back to main's numbers, then +845 (the tool's bytes on the wire,
  the same in every golden profile) only where that takes a profile past its +2% band:
  catalog: skills+shared, skills+shared+voice, skills+shared+voice+cloud-home,
  skills+shared+voice+mausbot, default+room, non-chief+room, default+hosting;
  bridged: every profile (post_to_thread is listed hot on every bridged turn).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
The trigger tools' new webhook_payload_filter field adds 372 bytes to every full
catalog profile (bridged lists don't carry it). On top of #5652's +845, +372 is added
only where it takes a profile past its +2% band: skills+shared, skills+shared+voice,
the eight non-chief profiles, both cloud-home profiles, skills+shared+voice+mausbot,
skills+shared+voice+x, +x+team, +x+team+images, +hosting, and default+no-computer-pick.
The goldens' bytes are main's + 845 + 372; their sha256 values come from CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rooms could only be listed in creation order. Owners and admins can now
drag a room up or down inside the sidebar list it is in, or move it with
Alt+Up/Down. The order is stored on the server (PUT /api/groups/order,
admin scope) with the same stable partial reorder bots use, and every
client gets it through a groups.order frame narrowed to the rooms each
member sees.

Feature requested in email 1a1d0e9c (bug inbox), approved by the maintainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train M1 (Nov 13): AdityaUmale fixes and wording
After #5652 + #5643 every profile in profiles.json has the expected bytes (main + 845 + 372)
and only its sha256 differed. The 30 values are the ones the agents-catalog-wire test printed
when run in a throwaway no-network container; CI confirms them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a Chief of Staff tried to change, move or delete a bot in a department
it is not in charge of, it got "outside this Chief's authorized team" with no
hint of which department or what to do, so it could not tell the person how
to fix it. The refusal now names the bot and its department and says the one
step: the person adds the department in the Chief's bot settings,
Permissions, "Also in charge of". A bot without the Chief role is told only a
Chief can be put in charge of more departments. list_team_setup says the same.
Permission checks are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train M2 (Nov 13): Aditya's feature PRs #5642 #5623 #5648 #5652 #5643 #5645
On a Team Cloud nobody's view is everything, an admin's included, so the
visibility gate read PUT /api/groups/order as a room named "order" and
answered 404 before the new route ran. pathSubject now skips "order" for
rooms the same way it already does for /api/bots/order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
list_team_setup put "Only the person can add a department, in <Chief>'s bot
settings..." in its scope line on every call, outside any refusal. That primes
a Chief to send the person to settings in the middle of normal work. The
refusals keep the one line that names the department and the setting; the
listing goes back to main's text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Server: write the new room order before changing the live list, so a failed
  save leaves the rooms as they were.
- Sidebar: room-order saves run one at a time in the order asked. When the last
  one settles after a failure, the rooms go back to the order the server
  confirmed, not an older one.
- The room's drop wrapper is always there, so rows are not remounted when
  moving turns on or off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train M3: room drag order (#5677), Chief department refusals (#5678)
The Chief's "Also in charge of" setting only listed today's departments, so a
department added later stayed outside the Chief's authority until the owner
ticked it too. Add an "Every department, including new ones" choice
(managesAllSections) that gives the Chief team authority in every department.

It stays as strict as the per-department grant: Chief only, owner/admin only,
needs acknowledgePeerScope when newly granted, refused from a local script while
a bot is busy, and revoked when the bot stops being Chief. Invalid values fail
closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lists the queued saves did not touch keep any order another client set
meanwhile (CodeRabbit r4559915454).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train M4: #5677 room-order follow-up
Train M5: #5677 room-order follow-up 2
One propose_team_setup plan may now update up to 40 bots (new bots still
at most 8), so "switch every bot in Work to model X" fits on one card with
one Undo. A new update-only field, soulAppend, adds text after a bot's
current instructions without the Chief restating them; the card shows it
as a SOUL.md diff, the before-value stays pinned, and Undo restores it.
Bots the Chief may not change are never read, and a bot whose existing
instructions would be rewritten by redaction is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bots.pinned is a safe setting with Undo. It takes the full list of bot ids to
pin and writes each change through the sidebar's own PATCH /api/bots/:id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On glass skins the Settings sheet is the menu colour at 62% with a blur,
but the sticky page header painted the menu colour at 100%, so every
page's title sat on a whiter rectangle. The header now has no fill and
scrolls with the page; the scroll shadow, its state and the
--settings-sheet token it used are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An added rule could complete a pattern that starts in the bot's existing
instructions (an unclosed private-key header), so re-saving would redact
part of the old text. Check the joined text and refuse when its existing
prefix would change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The phone app's Data screen reads three routes: the sheet and tables,
a page of rows, and a chart card's picture. List exactly those for
client-scoped sessions (Team members' phones, pair --phone) and for
phones paired to the desktop app. Paging is a catalog lookup with a
validated sort column and a quoted filter, never SQL; running, changing,
cancelling and exporting stay an admin's. A view-level member may page,
like the sheet read. A bot the member can't see answers 404 through the
existing request gate, as on its other routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its Team Cloud fixture reads the translations, so CI's scope check wants it in that subset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner, Nov 13: no new settings; "make it automatic". A Chief the owner has put in
charge of every department (its own, General and every other one ticked under
"Also in charge of") now gets each new department added to its managedSections
as the department is made, through store.patchBot as the owner's tick is: the
same bot update every client sees, and a bot.update row in the admin activity
log for the request that made the department. A Chief in charge of only some
departments gets nothing, the owner can untick any department afterwards, and
Chiefs someone owns on a Team Cloud are never counted.

- server/peer-roster.ts inChargeOfEvery; server/department-grants.ts runs the
  grant once the store's current write is done (Store.rememberSections, which
  every department-making path goes through; ensureSections now returns the
  names it added).
- Removed: the "Every department, including new ones" choice, the
  managesAllSections field and its wire/store/audit/incidents/team-setup
  plumbing, hasTeamAuthority's shortcut, and the botAccess.teams.all string.
- Kept: the Chief prompt and overview wording, now from the automatic rule;
  botOverview.line.allDepartments with its pt-BR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(linux): let the DEB install in a container on a restricted Ubuntu host
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot made Chief by the same write (or right after, before the grant ran) is not
one the owner put in charge of every department beforehand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Replace a cloud computer that is dead at the provider or stops answering

A cloud computer whose machine is gone kept looking usable: the provider still
reported it ready while every command through the relay answered 502, and once
it reported `error` the app ignored the computer, tried to create another and
was refused because the dead one still held one of the plan's computers.

- Commands record whether the computer answered. A command that gets no answer
  (502/504/520-524, or no reply before its own timeout) only starts one short
  probe (`true`, at most one every 20 s); three probes in a row with no answer,
  the first and last at least a minute apart, mark it not responding.
- A computer the provider reports in `error` is never shown or used as ready
  (it already was not found; now it is also never woken, and the turn's
  lifecycle treats it like no computer). The next start deletes it through the
  existing deletion journal, which frees its place at the Admin, and the lazy
  claim creates a fresh one.
- A computer not responding while the provider says ready is restarted once
  (stop, wait for it to sleep, wake, probe). If it still does not answer, it
  is replaced 10 minutes after it stopped answering, but only while the
  provider's list works and another computer of this installation answered in
  the last 10 minutes; otherwise nothing is deleted and the person is told
  cloud computers can't be reached right now. A computer that answered any
  command in the last 5 minutes is never deleted, and each bot gets at most one
  automatic replacement an hour; after that it stops and says so.
- A replacement is written to boat-replacements.json before its delete is
  sent, so a crash still counts it and still owes its notices.
- The bot gets fixed sentences instead of empty failed results; the person
  gets one recovery line in the chat and the Inbox, in their language.
- The computer panel shows what is happening and gains Restart computer and
  Replace computer (confirmed: files only on that computer are lost), which run
  the same restart and deletion as the automatic path.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep automatic replacement of a dead cloud computer off by default

Deleting a computer whose host is unreachable may not be safe for the rest of
the provider account, so the app no longer deletes one by itself unless
OMB_CLOUD_COMPUTER_AUTO_REPLACE=1 or config.json sets
features.cloudComputerAutoReplace (the environment, "1" or "0", wins).

With it off, detection, the not-responding state, the one automatic restart,
the panel and the manual Restart computer and Replace computer all still
work. Where the computer would have been replaced, the bot hears that the
person can replace it from the computer panel, and the person gets one chat
and Inbox line saying so, in all 16 languages.

Every delete this installation sends now waits for the previous one to be
answered, whichever path asked for it, and the DELETE request has a 60 s
limit so one stuck request cannot hold the others.

Co-Authored-By: Claude <noreply@anthropic.com>

* Review fixes: team computers, restart guards, what counts as an answer

- A team's shared computer is never restarted or deleted by itself: its
  admins see the problem on the Team map, the bot hears that a team admin can
  recreate it, and the panel offers no Restart or Replace for it.
- Before any automatic stop: a fresh probe must fail, the provider's list
  must work and another computer of this installation must have answered in
  the last 10 minutes (an installation with one computer waits for the
  person); never while the desktop is open or was used in the last 10
  minutes; at most one automatic restart per installation in 10 minutes.
- Only a 2xx with an exit code counts as an answer; refusals count neither way.
- The desktop link opens while a computer is only marked not responding; it
  is blocked only while its delete is under way.
- The provider's `error` must be read twice at least 30 minutes apart, with
  the list working, before a computer is deleted by itself, and the
  installation deletes at most one computer by itself an hour.
- A recorded replacement skips the guards only when the delete journal fences
  that computer; the fence is written before a delete waits its turn, and
  only the DELETE request is queued.
- Replace is offered during a turn only for a computer that is stuck; the
  replacement record is read from memory; the restart line is told at most
  once a computer a day.

Co-Authored-By: Claude <noreply@anthropic.com>

* Pass the cloud computer owner to the recovery routes after main dropped it from the computer routes' deps

Co-Authored-By: Claude <noreply@anthropic.com>

* Tests: the new cloud computer settings stay on the server; no stale fixture sockets

- OMB_CLOUD_COMPUTER_AUTO_REPLACE and OMB_CLOUD_COMPUTER_DEAD_CONFIRM_MS are
  server-only: listed in SERVER_ONLY_OMB, so a bot's box never carries them.
- The cloud computer tools fixture closes each connection: two tests close
  the server's sockets while a command hangs, and a pooled keep-alive socket
  reused after that failed the next request with "other side closed".

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
The window reports and applies the rest of its own preferences (bubbles, run card, threads, tools layout, pins,
pinned pages, follow-up, notifications, analytics) and the desktop-only ones through the preload bridge (open at
login, talk shortcut, window frame, rail, sidebar colour, product emails, Wi-Fi, relay, Tailscale, HTTPS off, keep
awake). A preference the window never reported is refused, so a browser can't take a desktop-only change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Per-bot approval mode, name, colour, model, archive and the bot panel's other fields go through PATCH /api/bots/:id;
server values through PUT /api/config or the page's own route (custom domain, Starter awake bots, skills library);
window and desktop preferences through a confirm variant of windowPref. Approval modes, remote access and computer
sharing move from owner-only to confirm: the card's Change needs the owner's review and Full access never skips it.
Every card names the bot and the exact effect, and a value carrying a key field is refused. The custom domain route
moves out of server/index.ts so the registry can call it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test waited only for the run to have a thread, then minted a test
bearer for that thread while the run's own turn could still be live. A
bearer minted then is bound to the run's turn and is revoked when the run
ends, so if the run ended between the mint and the request-credential
call the call got 401. Wait for the run to settle and require it to have
completed; every ask then gets a turn of its own on the routine's thread.

Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps main's group order routes beside the bot order and bot patch handles the
app settings registry writes through. The app-setting card field joins
OptionCardData as a mixin and the app_settings tool definition moves to its own
file, so shared/wire.ts and agents-catalog.ts stay under the 1,000-line cap
without a new pin. Budget baselines move to the catalog's size with the one new
tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Milind Soni <46266943+milind-soni@users.noreply.github.com>
- Warnings from the safety scan are advice, not a block: say so.
- Editing an approved library skill keeps it approved and still delivered.
- Name the features.skillsLibrary config key that turns the library on.
- A pasted import keeps only SKILL.md, so references/ needs a folder import.
Train M6: a Chief in charge of every department gets new ones automatically (#5681, reworked)
Ported from #5681's later commits (AdityaUmale): on a Team Cloud a person's Chief supervises that person's bots, so the no-authority line names bots outside its team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chief prompt: a person's Chief has no authority only over bots outside its team
Let phones without admin rights read a bot's Data
A Chief that covers General and every department counts as in charge of all of them even before the owner has ticked one, so on a fresh install the first new department is added to it too. A department's own Chief and a Chief someone owns on a Team Cloud still don't qualify.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The trigger tool's schedule schema described timeZone as "Required for
cron", which reads as allowed for other types. A model that sent
timeZone with a once schedule got "Unsupported once schedule field
timeZone. Weekly and daily times use the computer's timezone", a hint
about other schedule types. Say timeZone is only for cron, and tell a
once schedule that its zone is the offset inside at.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed import rolled its new department back before the grant's
microtask ran, and the main Chief was still given it. A backup import
that makes two departments in one run gave the Chief only the first,
because the second was checked before the first grant landed.

Tests now expect the main Chief to get imported departments and to hear
of failed and stalled runs in departments it was given.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(settings): drop the white block behind each page's header
The main Chief gets every new department from the start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test of the four-minute gap timed out at 20 s twice on the macOS shard of
the 0.1.155 release run. Nothing in it waits on the clock: its time is
processes (every `docker` call starts Node for the stand-in, 24 per run with
nothing to do, 57 per update), and the macOS runner took up to 3.4 times a
laptop's time for the same runs.

- The gap is now shown at its real length: the update's `ran` is dated 230 s
  back (still too soon) and then 250 s back (goes ahead), instead of turning
  the gap off with OMB_RUNNER_GAP_S=0. A gap of 200 s or 300 s now fails it.
- Two whole runs with nothing to do instead of three.
- The file's tests get hostTimeout(60_000): each drives several whole runs of
  update.sh; every run still has its own 60 s limit.

Co-authored-by: Claude <noreply@anthropic.com>
A bot asked for a claude.ai Artifact (as Claude Code makes in the terminal) had no
guidance: Artifacts need Claude's own claude.ai sign-in, which bots here don't have.
The show_html description now says so in one sentence and points the bot at
show_html (page in chat) or publish_page (public link).

Goldens refreshed (+194 bytes per full profile); catalog budgets raised by those
194 bytes only on the 17 profiles it takes past their +2% band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The web pairing dialog showed a plain http link on the home network
(for example http://192.168.1.20:8799/pair) with no hint that a phone
away from that Wi-Fi cannot open it. The dialog now says so and points
to the MausBot phone app's Anywhere (with Relay on) or an HTTPS address
such as Tailscale. Tailscale and https links get no note. The phone web
app doc says the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Where dictation runs through the server (Windows and Linux), listening needed a
Fish Audio key. A person with only their own ElevenLabs key now gets
ElevenLabs Scribe speech-to-text instead; Fish Audio stays first when both are
saved, and the plan's included voice is never used for listening.

ElevenLabs speech used Flash v2.5 for every line, which has no Thai (or
Bengali, Hebrew, Georgian, Armenian, Gujarati, Punjabi, Telugu, Kannada,
Malayalam). Lines in those scripts now go to Eleven v3; everything else stays
on Flash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages in a room had no Point button, and a room message had no way to
carry a pick, so the bot that made the page never saw what the person
pointed at. Show Point on room pages (Share and Pin stay hidden), send
the chips with a room line, and give each page's bot the records of its
own pages on its turn. A pointed line goes to that bot even when the
room has another default responder, drains on its own from the queue,
and waits its turn instead of steering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"steer": true in a Custom ACP engine's config gives it the /steer path Hermes uses.
Off by default; a session that never advertises the command is refused before anything is sent.

Co-Authored-By: Adrian <adrianchanuk@gmail.com>
Every bot whose page the person pointed at must still be a room member and
free to answer; otherwise its part of the pick would reach no one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The call screen now accepts an ElevenLabs key for Take turns, so its
hint and button text name both keys. Two call tests still expected the
Fish-only text and failed in CI shards 6/8 and 8/8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Page-bot membership and hold checks now run after the sendId receipt lookup,
  so a retry of an accepted pointed send gets its receipt, not 409.
- When a queued pick's page bot is held (or gone) by the time the queue drains,
  the room gets a line saying the pointed part was not sent, instead of losing it.
- e2e covers both sequences; unit test for undeliveredPickBots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preflight's source guard needs every server line in de.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a round stops before a page bot's turn (Stop, a stalled or parked
turn), that bot's part stays in the pick and reached no one silently.
After the round, post the existing pickNotSent notice once for each
bot whose part is left, skipping bots already reported up front.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in src/locales/zh.json resolved by key: main's file kept whole
(every value and order), the PR's translations added for the 2,140 keys
main lacks. Skipped 108 keys English no longer has and 96 whose English
text changed after the PR's base, so they fall back to English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts resolved by keeping both sides: main's widened live-call type
export beside the PR's task-provenance export in shared/wire.ts, and
main's PeerOpenedActions beside the PR's ForkLinks in ChatView.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Cloud voice relay refuses any model outside eleven_flash_v2_5 and
eleven_turbo_v2_5, so Thai through the included voice would fail with
"That voice model is not available". Eleven v3 is used only with the
person's own ElevenLabs key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hooks file now marks a held pull with a .pull signal file, as it does
for a held runtime check; the take-during-update case waits for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/acp/opencode-go.ts
They are open PRs of their own and unrelated to the price holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/index.ts
#	server/system-prompt.ts
# Conflicts:
#	src/components/UsageSection.tsx
Same condition: (protocol error and not a truncation) or (not transient and not a truncation)
is written as not a truncation and (protocol error or not transient).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI's ci-scope guard requires every test that reads a non-English catalog to be
in the locale-tests subset; server/routine-cron-text-zh.test.ts was missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train N4 (Nov 13b): zh pack completion and forking a conversation from a message
#5699, #5705 and #5683 together change tool text. profiles.json now has
the sha256 values CI computed (bytes were already right). Every non-chief
profile grew by 210 bytes (#5705's show_html line and #5699's timeZone
line); together they put non-chief 1 byte past its 2% band (53841 >
53840), so each non-chief baseline goes up by exactly 210.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/state/store.tsx
Main replaced SettingsSimplePages with the Settings window, so the SOCKS5
proxy row now sits with the other built-in browser rows on the Bot desktops
page, and "proxy" and "socks5" find that page in search. The keys test mock
gains BrowserProxyRow. pt-BR gets the six new proxy strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train N1 (Nov 13b): rooms pointing, ElevenLabs listening, bulk team setup, and small fixes
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
The owner decided on Nov 13 to make it always on. The skills a project ships
in agents/skills, .agents/skills or .claude/skills are found by themselves,
the way Claude Code loads .claude/skills:

- features.projectSkills is gone from the config schema, the config status,
  the feature flags and the turn settings, so no setting is added.
- The Skills page keeps the "In this project" card and the project badge, but
  loses the switch, its save call, its error and the "off" line. Four strings
  go in en and pt-BR; the badge hint no longer mentions a switch.
- The discovery logic and its limits stay: SKILL.md must be a plain file under
  the skill size cap, the index keeps its count and byte budget, and nothing
  comes from the app's data folder. A skill folder linked to a place outside
  the project is now skipped too.
- Tests and docs follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tsconfig.server.json failed on Buffer.concat with a string | Buffer chunk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Now that project skills are always on, skillsIndex ran the project lookup for a
bot record without a thread, and joined an undefined thread id into a path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The confirm tier put a Change/Cancel card in front of 62 settings even at
Full access. Those settings now apply directly with Undo, like the safe
tier: Undo writes back the value read just before the change (per bot, the
fields that changed; for an added engine, its removal).

What can't be undone or could lock the person out is owner-only, and the
bot says in one line where in Settings the person changes it: who may sign
in, the custom domain, the HTTPS address, the profile photo, removing an AI
engine, and turning off Same Wi-Fi, Reach from anywhere or Tailscale.

The card-answer path (resolveAndSend, holds, Stop handling, the Change
button label) is gone; secrets stay on the existing key card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
app_settings adds 1,092 bytes to every one of the 30 catalog profiles.
Each BUDGET_BASELINE entry rises by exactly that (on top of N1's numbers);
the profile goldens take the new bytes and sha256 with app_settings after
mcp_server, and the full golden takes the tool's reworked description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The quote chip in the composer used a see-through accent tint. The composer
floats over the transcript, so chat text scrolling under it showed through
the chip and made the quote unreadable. The composer chip now paints its
tint on the thread colour (bg-app), like the composer's own backdrop; quotes
on sent messages keep the see-through tint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preference setters imported window-prefs to report a change, and
window-prefs imports every preference module, so a test that mocks one of
them (interface-mode without readAdvancedMode) or boots new-look fresh hit
the cycle. The setters now call an import-free notifier that window-prefs
listens to, and window-prefs reads each setter only when it runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train nov13b-n2: shared Local VM parking and tests, phone batch tool, routine report files, driver fixes
Train N7: let the owner make MausBot a regular bot (#5662)
In simple mode the + menu shows "New conversation with {bot name}". The
menu is w-max and anchored right-0 with no max width, so a long bot name
made it grow left past the window edge and cut off every item.

Cap the right-anchored menu at the sidebar width and truncate the bot
name (full name on hover).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a side panel open the sidebar is capped at 280/320px while
--sidebar-width keeps the saved width, so the menu cap could still let
it run past the sidebar. The cap now lives in one --sidebar-max variable
used by both the sidebar and the menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Below md the sidebar fills the window and the md: cap does not apply,
so a long bot name could still push the right-anchored menu past the
left edge. Cap it at the window width minus the same 48px there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train N5 (Nov 13b): browser SOCKS5 proxy and locale (#5191), project skills always on (#5146)
The proxy row merged from main joins the catalogue beside the other
browser settings. It applies at once with Undo, takes only an
unauthenticated socks5://host:port, and reads as set or not set, so its
address is never shown on a card or in a reply. On a Team Cloud no bot
writes settings at all, so it stays with the owner there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train N3 (Nov 13 b): docs, DESIGN.md, fences, BubblaV, Windows tray, Cursor MCP, inbox read-all, OpenCode holds, hand-off wait, usage colours
Connect to a server moved the cursor to the pairing-code box whenever the
address box held a valid address with no code. A single typed letter is
already a valid host, so after the first key the rest of the address
landed in the code box. The cursor now moves on only for a pasted address.

Fixes #5447
Train N6: bots manage app settings from chat, direct with Undo (#5690 reworked)
The scripted fixture runs the first unused entry whose markers are in the turn's
text. A thread Books opens on itself names its source thread, and that thread is
titled from "J2-JOB: open one thread per ledger". So the J2-SELF turn also matches
"J2". The J2 entry only counts as used once the J2 turn ends and writes its
evidence. When the opened thread's fixture started first, it ran "J2" again. Its
start_thread was refused, as it should be, and the scripted step threw, so
"J2-SELF" never ran and the poll timed out (main 6a9f8b9e2, ubuntu shard 3/8).

Follow-up entries now come before their parents. The J2 poll also waits for J2's
own evidence before reading it. Holding J2 back by 2 s failed on main every time
and passes now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thread's agents bearer was keyed on the turn's depth, its hand-off and
whether it may author skills, and the agents server's launch env carried
the depth. All three flip between a person's message and a teammate's
report, and between one hand-off job and the next, so Claude replaced the
warm process (spawn contract changed: mcpServers:~agents) and ACP engines
reloaded their session at every flip, and a room member started a fresh
session after every hand-off.

The harness already reads all three from the turn's own record on every
call, so they no longer rotate the bearer, the engine is no longer told its
depth, and the start_thread depth assertion and its route check go.

Part of #5295
test(self-threads): fix the scripted-plan race that turned main red
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gated fake in thread-aware-bots chose its gate and prompt log once per
process, and the scripted hand-off agent folded only a launch note into the
system prompt it records. Both assumed a new process for every hand-off;
a warm process now takes the next job, so each user message picks its own
key (from its own words, not the instructions that quote outstanding
briefs), the agent keeps the volatile note a changed-note replaced, and a
slow turn checks the gate it started on.

direct-coordination's test is as before.
Ollama v0.40.16 answers /api/show for a :cloud or :*-cloud name from
ollama.com, without remote_host or remote_model, so the remote check
never fired and a 1M-token cloud model got a 64k copy. Such a name now
counts as remote, and a remote model reports the window Ollama says it
was trained on.

Fixes #5702
app-settings test: retry the temp-folder cleanup
Additive. A phone can then tell a computer too old for a feature from a
missing route. The version is a release version (x.y.z with an
optional suffix) or absent:

- the server's authenticated GET /api/health gains version; the answer
  to a stranger stays {app: "openmausbot"};
- the companion's GET /api/health adds it only for a request with a
  paired device's token, and its GET /api/companion/endpoints (and so
  the companion.endpoints frame) always does;
- Electron passes app.getVersion() to the companion as OMB_APP_VERSION,
  as it already does to the server;
- the relay's GET /api/companion/endpoints on a server or Cloud adds it.

Co-authored-by: Claude <noreply@anthropic.com>
Conflicts resolved against main's redesigned Routing and extraction page:
the custom endpoint rows (base URL, model ID, protocol) sit in main's
SettingsGroup/SettingsRows layout and use main's Select, so the PR's new
MenuSelect component is not taken. Key slot, copy and failure texts come
from the PR unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The other 14 packs were machine-drafted; they fall back to English for
the custom decision endpoint's strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
app_settings' ai.routing takes provider "custom", customModel and
customApi, applied with Undo like the rest. The endpoint's address and key
stay Settings-only: the address is where the key is sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Their English changed (Fish Audio or ElevenLabs keys; the app's tray name)
and main's release bump recorded the new source hashes, so preflight's
locale check failed on every branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Move the phone's wire, card, widget, mascot and pairing modules to packages/phone-protocol

Pure renames: shared/wire.ts and everything it imports, plus the pairing
code and link, the live-approval, sign-in and options cards, the chart
spec builders, reactions and activity. The next commit puts a re-export
at each old path.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep every desktop import working through re-exports, and hold the package to ES2022

Each moved module's old path in shared/ re-exports it, so no import in
src/, server/ or the tests changes. The package gets its own tsconfig
(lib ES2022, no DOM or Node types; only the web globals it already used
are declared), run by pnpm typecheck, and an oxlint override that
refuses node:* imports and window or document there.

The guards that read source files by path now also read the package:
the size ratchet, comment history, first-use imports, the box's
environment names, the ModelGo link check, the hardcoded-words and
server-lines scans (which now follow export * to the code), the mascot
and carved-body generators and their drift checks, and the limit-clock
seam. CI maps the package to the server area.

Co-Authored-By: Claude <noreply@anthropic.com>

* Type the hello and companion.endpoints frames and the phone's pair and fleet answers

ServerFrame gains the two frames phones fold that it lacked: hello, as
server/index.ts writes it, and companion.endpoints, as the companion's
sendEndpoints writes it. New types for what the phone reads in
packages/phone-protocol/src/responses.ts: PairResponse (POST /api/pair),
AuthPairResponse (POST /api/auth/pair), CompanionEndpointsSnapshot
(GET /api/companion/endpoints, with the optional version a computer,
server or Cloud now sends) and BotsResponse (GET /api/bots).
EnvironmentDescriptor moves into the package; server/environment.ts
re-exports it.

Types only. The server's literals for hello, both pair answers and
GET /api/bots now end in satisfies, and a companion test holds the
companion's own types to the same shapes; nothing they send changes.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
node scripts/sync-phone-protocol.mjs --out <dir> [--ref <commit>] writes
the package's sources (no tests) and package.json, the E2E vectors
(vectors/v1.json) and the chat-app host page (app-host.html), read from
git at that commit, plus SOURCE with the commit SHA. The same commit
always gives the same bytes, so the phone repository's CI can re-run it
at SOURCE and fail on any difference. It replaces only what it wrote
and refuses a non-empty directory without SOURCE.

Co-authored-by: Claude <noreply@anthropic.com>
The 0.1.156 release bump (9887f6b4c, #5775) recorded source hashes for the
Simplified Chinese pack against the English each string was translated
from. Six of those strings had been translated before their English
changed, so pnpm i18n:check marked them stale and failed preflight:

- b2a1b0761 spelled the tray items "Open/Quit OpenMausBot" (was
  "OpenMaus Bot"): native.tray.open, native.tray.quit
- a0a20bc4b added ElevenLabs as a listening option:
  serverError.voice.fishKeyRequired, call.mode.turnsHintFish,
  call.capability.turnsNeedFishKey, call.capability.turnsNeedFishKeyReason

This retranslates the six against today's English and refreshes their
hashes with `generate-locale.mjs zh --accept`, keeping the hash file's key
order so only those six hashes change.

Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Match asterisk and underscore emphasis separately in plainPreviewText.
Keep underscore word boundaries Unicode-aware and preserve emphasis
containing internal underscores. Add regression cases for adjacent
Chinese and English text, digits, escapes, code and underscore boundaries.
A hand-off job whose turn its AI's usage limit (or sign-out) refused
failed to its Chief, while the person was told the bot carried on with
another AI meanwhile. The refusal is now held as one at a turn's start is,
and while another AI can carry it on the job runs again: its next turn's
start moves the job's conversation alone there, as for any turn of that
AI, and the failover is recorded so it moves back once the limit resets.
The Chief gets the job's result, and the report names the AI that did the
work when it is not the bot's own.

Part of #5657
command-code acknowledges session/load in a live process but keeps the MCP
connections it opened first. When the app rotates a thread's bearer (for
example after a sign-in pause changes the turn's grants), every agents tool
then answers "unauthorized" until the process happens to be reaped. Set
restartOnMcpChange, as Cursor, Qwen, Hermes, Cline, DeepSeek and Copilot
already do, and cover it with a launch-count regression test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	shared/wire.ts
#	src/locales/zh.json
Runs the official Vibe Code CLI in its ACP mode (vibe-acp) as a new
mistralVibeAgent driver: browser sign-in to Mistral AI Studio or the
workspace MISTRAL_API_KEY, live model discovery from session/new's
config options in a throwaway session, model selection via the model
config option, approval cards for session/request_permission, and
native session resume. Registers the engine across the fleet (below
Mistral's own API instance, sharing its mark), engine process kinds,
version pin (target 3.1.2, minimum 3.1.1), tool-scope support,
analytics allowlist, built-in instances, injected env, routing
ownership, and docs.

Install follows the other harnesses: the vendor's one-liner per
platform (mistral.ai/vibe/install.sh) plus the pinned standalone
build in mistral-vibe-release.ts, so Settings installs vibe-acp
itself with the release's measured SHA-256s.
A turn on a cloud computer, Local VM or this computer now also mounts the
built-in browser when it is on, in every thread (before: only threads a bot
opened). A task can do its web part in the built-in browser and its desktop
or file part on the computer without switching places. A browser pin still
mounts no computer.

Beside a computer the browser is extra: if it fails to open, the turn goes on
with the computer alone (openBrowserBeside) instead of failing.

Requested in a bug-inbox email; approved by the maintainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mistral Vibe's PyInstaller bundle ships a handful of dylib links inside
the macOS archives, and the installer treated every link as hostile, so
the button kept saying the download held an unexpected or unsafe file.

extractTarGz now admits a link when it stays inside the unpacked folder:
relative, safe characters, never past the folder root. normaliseModes
skips kept links instead of refusing them. install failure copy names
the engine instead of a bare path.

The Windows zip joins the pinned assets and activates through the
launcher path, so the engine works on win32, darwin and linux alike.
Room turns now open the built-in browser through openBrowserBeside, as direct
turns do, so a browser that cannot open no longer stops the room's computer
from mounting. A browser-only room turn still fails with the original error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/sync-phone-protocol.test.mjs imports the script through vitest.
A Windows checkout (core.autocrlf) gives the script CRLF line endings, and
vitest fails to load a file that starts with a shebang and has CRLF line
endings ("SyntaxError: Invalid or unexpected token", 0 tests), which
failed vitest (windows-latest, shard 5/8). Pin the script to LF, as was
done for scripts/tighten-ratchets.mjs and skills/**.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Unknown file types are stored as inert downloads (.bin unless the
original extension is a safe [a-z0-9]{1,10}) and served as
application/octet-stream with Content-Disposition: attachment and
nosniff, never rendered in the app. The browser, phone and My Cloud
composer no longer rejects files by type.

Closes #5772

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Feature requested in email 1a1d7052 (bug inbox), approved by the maintainer.
Threads kept the cut first message as their title and a bot had no way to
give its own conversation a useful name. rename_thread renames only the
thread the turn speaks in; rooms' threads and automation result chats keep
their names. Catalog goldens and budgets move by the new tool's bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An Approve click on an outside page that reaches the acting bot through
another bot or a webhook is information only by design. Document why, and
the supported ways to have a bot act on the person's approval.

Closes #5715

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Join the room browser call onto one line so the file stays at its
15,448-line ratchet. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A desktop that signs in on a new session left the old entry in place, and requests kept landing on that offline one.

Co-authored-by: Cursor <cursoragent@cursor.com>
A reused ACP session was sending session/set_model again with the same id, and Cursor could reject that repeat.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add Google's Gemini Decision 1 to the curated Recommended list, and list
Gemini Flash chat models from OpenRouter's text catalog under a separate
"Gemini chat models (not calibrated)" group. Picking one saves
openrouterApi "chat", the existing chat path. Only Flash models whose
catalog entry supports every parameter the chat request sends are shown.
The text catalog is cached like the decisions one and fails soft: the
decisions list still loads when it cannot be read.

Refs #5712

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fallback sentence describes the conversation, so a later turn still says it when the model id is already selected.

Co-authored-by: Cursor <cursoragent@cursor.com>
A caller with the webhook address can send a call that matches the
filter, so the note now says the address must stay secret and that the
filter only narrows which calls start a run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comment-history guard keeps issue and PR numbers out of code comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine run used to mark its chat unread at every end, so a bot with a
recurring automation always sat under To review on the phone, even when the
run only reported something. Now a run marks its chat only when it failed or
was missed, waits on the person (not on teammates), or ends on a NEEDS INPUT
question. Copied cards, person-started turns, room goals and notifications are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A poll left over from the old sign-in was marking that registration just seen, so the next request could queue on it after the desktop had paired again.

Co-authored-by: Cursor <cursoragent@cursor.com>
A bot's URL MCP server keeps its native connection, so the result gate
never trims it, and Claude Code puts each result of up to 25k tokens in
the thread. A few big document reads refill the 200k compaction window
right after each compact, and the turn stops with "Autocompact is
thrashing".

When such an untrimmed bot server is mounted, set MAX_MCP_OUTPUT_TOKENS
to 10k (unless the person set it, or asked for whole payloads with a
limit of 0). Claude Code then saves a bigger result whole to a file the
bot reads in parts: nothing is cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run stores only the first 2,000 characters of its last reply, and the
To review check on the sync path reads that stored output. A long reply
that ended on NEEDS INPUT lost its question, so the chat was not marked
To review while the run waited on the person.

clipRunOutput keeps a closing NEEDS INPUT question (and its default
line) whole at the end of the clipped output; anything else is cut as
before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train N8: custom decision endpoint (#5150), rebased
npm can leave out Codex's platform package when its download fails and
still succeed; on My Cloud /usr/local is read-only, so nobody can repair it.
The Cloud home image now runs each engine's --version after installing,
installs once more if one does not start, and fails the build if it still
does not. On My Cloud the Codex update card no longer offers a command that
can only fail there; it says Codex updates with the next Cloud release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 👍 on a plain update or result was sent to the bot as "yes, go ahead",
so bots sometimes started new work when the person only meant "got it".
Now 👍 means go ahead only when the reacted message asked something or
offered to do something; on a plain statement it is an acknowledgement
and the bot replies briefly without starting work. Same rule in the room
prompt and the reactions doc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bare NEEDS INPUT: line asks through the default: line that follows it, so
when the closing block is too long to keep whole, the clip now keeps the cut
block from the NEEDS INPUT line instead of dropping it and its question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A gate wrapper with OMB_GATE_BUDGET 0 trims nothing, so like an untrimmed
server asking for whole payloads it keeps the process-wide
MAX_MCP_OUTPUT_TOKENS unset instead of being skipped as a trimming gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A file copied in Finder or Explorer and pasted into the composer reached
the paste as clipboardData.files, which only pictures were read from, so
a pasted .zip (or any document) was dropped and only its name landed in
the text. Pasted files that are not all pictures now go through the same
intake as the file picker and a drop.

/api/files typed archives by the canonical type only, so a client that
sends what its system declares (application/x-zip-compressed on Windows,
application/x-gzip, application/x-rar-compressed) was refused with
"content-type must be a supported document or audio type". Those three
now map to the same stored extensions; the stored name still comes from
the type, never the filename.

Co-authored-by: Claude <noreply@anthropic.com>
A teammate's hand-off or relayed ask whose AI met its usage limit before any
tool call, reply or file now goes once to the bot's backup AI, with the same
sender, provenance and hand-off. If anything ran, the failure is reported as
before. The person's own requests, routines and guests are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The status row added when a bot-to-bot resend to the backup AI could not run
was an English literal; it now comes from the language packs (en, de, pt-br)
through serverLine, so the server-lines check passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the closing block of a long run report is too long to fit, the cut now
drops the blank lines between a bare NEEDS INPUT: line and its default: line
first, so the default line (and the review flag) survives the clip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a turn runs in the bot's own folder, Claude Code reads that folder's
.claude settings itself, so the carried bot settings are empty and the
automatic limit for an ungated URL server was set anyway. The folder's own
MAX_MCP_OUTPUT_TOKENS (settings.json, then settings.local.json) now counts
as configured, so a set limit such as 40000 wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A collapsed bot lists its pinned threads marked as pinned (pin icon),
  not as "Unread".
- A collapsed folder still shows its pinned threads.
- "Show all N threads" is remembered per bot (survives collapsing the
  bot and reloading the app); "Show fewer threads" turns it off.

Feature requested in email 1a1d6486 (bug inbox), approved by the maintainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bare NEEDS INPUT: line whose default: line starts with a long run of spaces
lost that default line when the stored output was clipped, so the run no
longer read as waiting on the person. The cut now trims each kept line, so
the default line (and the review flag) survives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The notarize step ran `out=$(xcrun notarytool submit ...)` under bash -e, so
a non-zero exit from notarytool (an agreement to accept, a bad API key) ended
the step at once with nothing printed. Capture the exit code instead, print
the tool's full output and an ::error:: line naming the artifact and the
code, and when a submission id is present fetch `notarytool log <id>` (a
failed log call is reported, not fatal). The key file is removed by an EXIT
trap, so it also goes on failure. Success output is unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
A bot-to-bot turn whose turn.completed arrived before the dispatch was bound
was never judged, so it fell back to reporting the failure. Its end is now
kept until the dispatch binds the turn id, then judged as before (and resent
at once when the thread already settled). The resend also re-checks the
thread right before it starts, so a file the turn made after its end was
judged still stops it; the turn's digest row does not count as work.

Also moves the resend helper's setup out of the stall-handler slice the
turn-watchdog tests load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An isolated launch passes --setting-sources project, so Claude Code never
reads the folder's .claude/settings.local.json. Its MAX_MCP_OUTPUT_TOKENS no
longer stops the automatic limit for an ungated URL server on those launches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A desktop window connected to the person's own server at a private-network
http address (the default own-server address, e.g. http://192.168.1.20:8799)
is not a secure context in Chromium, so navigator.mediaDevices is undefined
and a Live call stops with call.live.unsupported before the existing mic
permission ask runs. At launch, vouch for saved servers at private-network
http addresses with --unsafely-treat-insecure-origin-as-secure (merged with
any value already given). Loopback is already secure; https and open-internet
http addresses are never added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bot pictures and the person's photo already existed in Settings (pick a
file, crop, remove, generate), shown through BotAvatar, InitialsAvatar and
PersonFace with the mascot face as the fallback. This adds:

- app_settings: bots.picture and profile.photo take {path} to a picture file
  in the bot's workspace, its working folder or this conversation's files.
  The file opens through the message-file resolver (real path inside those
  folders, no link at the end, 5 MB cap), an attachment-store file only when
  this conversation carries it, and its bytes must be PNG, JPEG, GIF or WebP.
  It is copied into the attachment store and applied through the same routes
  Settings uses, with Undo. An empty path takes the picture off. profile.photo
  was owner-only before.
- data-avatar ("picture" | "mascot" | "initials") and data-avatar-kind
  ("bot" | "person") on every bot and person face, for themes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Chromium splits --unsafely-treat-insecure-origin-as-secure on commas, so a saved
origin like http://example.com,.local would also vouch for the public
http://example.com. Skip such hosts; regression case added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
attach_file refused every archive with a 415, although a person can attach
the same types since 0.1.155. mimeFor now types .zip, .rar, .7z, .tar, .gz,
.tgz, .bz2 and .xz by the file's extension (case-insensitive; build.tar.gz
is a .gz), with the same mimes the person's upload path stores. A bot's
archive is copied into the attachment store as sent, never unpacked, under
the normal file size limit and the same path checks as any other file, and
is served with Content-Disposition: attachment and nosniff. The chat shows
it as a plain file chip with no preview.

attach_file's description and the 415 message list the archive types. The
catalog goldens were regenerated with UPDATE_AGENTS_CATALOG_GOLDENS=1; the
description adds 48 bytes to every profile, and BUDGET_BASELINE is raised
by those 48 bytes only for the profiles it takes past their 2% band.

Co-authored-by: Claude <noreply@anthropic.com>
Selecting text in a page the bot shows in chat now offers the same Cite
button as chat text: the quote and an optional comment go to the message
box. The page helper reports the selection; the desktop host passes it on
only for pages that may message (never in a room) and only after the person
engaged with the page. Works in the inline page and the opened page pane.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each selectionchange now restarts the 100 ms wait, so Cite is not offered
for a selection the person is still dragging out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a bot calls fill_login while it is working on a computer screen
(this computer, the Local VM or the cloud computer), the answer now says
that saved logins are filled only in the bot's own browser, and why: on a
screen OpenMausBot cannot prove which site a box belongs to. The block
itself is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 20 server cap counted every server in the install, so per-bot
servers added for one bot used up room for every other bot. Now a bot
can use at most 20 servers (the shared ones plus its own) and the
install holds at most 100. Adding, importing a setup and importing a
package all use the same check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner is worked out from the bot's own folders before the check,
never from the request body, so a bot's own server is no longer refused
because another bot already has 20 of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code shows the model structuredContent instead of the text block,
so a trimmed result read as a complete list with no shaping note. Record
which tools declare an outputSchema from tools/list, and drop
structuredContent from a trimmed result when the tool has none, so the
client falls back to the text copy that carries the note.

Fixes #5773
The Edit profile search only matched English section keywords, so in other
languages (and for app names like "GitHub") it found nothing. It now also
matches the headings shown inside each section in the person's language, and
the bot's connected app names find the Access section. Apps load only once a
search starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first search for an app name showed "Nothing matches" until the
app list arrived. While it loads, the empty state now says it is looking
through connected apps; "Nothing matches" shows only once it has loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Learned skills could not keep a SKILL.md larger than 32 KB, so long
procedures had to be split into references even when they read better
as one file. SKILL.md may now be up to 64 KB; each references/<topic>.md
file keeps its own 32 KB limit, and imported skills are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit r4573359017: the connector inventory could arrive before /api/email,
so a search for "email" said "Nothing matches" until Email came in. useBotApps
now reports emailSettled (true once /api/email answers or fails) and the search
empty state stays on "Looking through connected apps…" until it is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A department could share at most 60 skills. Raise the package cap to 120.
Packages with more than 60 skills are written as format version 3, so apps
that only read version 2 refuse them with "This file was made by a newer
OpenMausBot. Update the app" instead of a schema error. Every other package
is still written as version 2, so older apps keep opening them. The per-bot
limit of 30 skills is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A call through Gemini Live runs in the desktop app or a browser: the harness keeps the Gemini key and gives the
client a one-use ephemeral token whose setup (instructions, voice, delegate tool) it locks; the client holds
Gemini's WebSocket and relays what was heard to the harness, as on a Fish Audio call. The call goes on over a new
connection with Gemini's resumption handle when Gemini ends one, and the bot's updates and tool answers wait for
the agent to finish speaking and for a connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The search stayed "ready" while app display names were still loading
(a search for "google calendar" said nothing matches until the catalog
answered), and after a failed Email lookup a new lookup was not counted
as pending. Track catalog settlement too and reset both flags when a
lookup starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenAI answers a Live session request with 429 and error.code
"insufficient_quota" when the account has no credit. That fails every
time, but the call bar said OpenAI was "limiting Live sessions right
now ... Try again in a moment". Read the code and point to billing
instead; other 429s keep the rate-limit message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new search after the inventory cache expired could say "Nothing matches" for a newly
connected app while its inventory request was still running, because the inventory from the
earlier search still counted as ready. Track inventory settlement per lookup like the app
catalog and Email.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- env.test: OMB_GEMINI_LIVE_MODEL and OMB_GEMINI_LIVE_URL are read only
  by the server, so they join SERVER_ONLY_OMB.
- pt-br.json: the 12 new Gemini Live strings, so the Portuguese pack
  stays complete (i18n.test activePackComplete).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a resumed connection the mic kept streaming between open and
setupComplete, and mute could send audioStreamEnd there too. send() now
waits for setupComplete, as flush() already did. Test: mic audio after
the reopened socket opens and before setupComplete sends nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#4560 asks for Gemini voices (Aoede, Charon, Fenrir, Kore, Puck) in the Live
settings. Calls now speak in the saved `live.geminiVoice` (Puck by default),
set in the locked setup's speechConfig, so the token's field mask covers it.
The call settings show Gemini's voices for Gemini calls, kept apart from the
GPT-Live voice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Electron's app.getPath("documents") throws when Windows can't resolve
the Documents known folder (e.g. redirected to an unplugged drive), and
Files read it while main.mjs loaded, so the app died before any window.
Fall back to Documents in the home folder, the folder's default place.

Signed-off-by: Zhaowei Gu <83746079+zw-g@users.noreply.github.com>
Devin runs the official Devin CLI in its ACP mode (`devin acp`) and bills the
Devin account `devin auth login` signed in, or WINDSURF_API_KEY. The picker
lists the account's models plus Devin default. Full access runs Devin's
Bypass Permissions mode; every other level runs its Code mode, the strictest
mode Devin accepts over ACP that can still edit, and the turn fails if Devin
does not confirm the mode.

Devin offers grants that outlive the session (always in this project, in all
projects, switch to bypass); a new optional permissionRequest hook in the ACP
core lets the driver drop them, so approving for the session is the longest
grant the app gives. The same hook puts the command Devin asks to run on the
approval card. A signed-out prompt reads as a missing login.

Model discovery gives Devin no exit grace: it exits on EOF and orphans the MCP
servers it starts from its own config, which held the discovery folder on
Windows.

The trace names a turn's model from its own engine, since several engines
share the `agent-default` id.

Verified against devin 3000.12.57 and 3000.12.59: model discovery, a reply,
an approval card denied and allowed for the session at Ask, and Full access
running without a card.

Fixes #5866
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A tool call that arrives before Gemini's input transcription waits for it
  (400 ms after the last words, 2 s at most), so the harness relays the
  spoken request before the delegation.
- Tool calls made after the last resumption handle are unknown to a session
  resumed with it; their answers go to Gemini as the bot's words instead of
  a tool response for an id it never saw.
- Microphone samples buffered while muted are dropped on unmute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tool call that arrives while the person's words are still coming now waits
until they stop (400 ms quiet, 2 s at most), so the harness gets the whole
request. Words heard go with one batch of calls only; a later call in the
same turn waits for its own words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model audio, its transcript or turnComplete no longer release a tool call that
is waiting for the person's words: Gemini sends the two in no fixed order, so
the call goes on the quiet/limit timers with all the words. A call that comes
after words made final also waits the short quiet time for more.

toolCallCancellation is read: a cancelled held call never runs, and the answer
of a cancelled running call is not sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live calls can now go through ElevenLabs Agents with the person's own
ElevenLabs key, the one ElevenLabs voices already use. Same relay pattern
as Fish Audio and Gemini: the harness sets up one agent with the client
tool `delegate` on the person's account, asks ElevenLabs for a signed
URL per call, and the browser holds the conversation WebSocket and
relays what was said. The key never leaves the harness.

- server/live-elevenlabs.ts: agent setup (tool + agent with prompt
  override allowed; the tool is removed again if the agent is not
  created), signed URL per call, errors in plain words. API root is
  OMB_ELEVENLABS_API, as for ElevenLabs voices.
- live-settings: only the person's own key; Cloud's included voice token
  is never used (voiceCredential).
- Controller, wiring, routes, access: "elevenlabs" joins the relayed
  providers (relayedProvider), admin-only like Fish/Gemini, desktop and
  web only; a removed agent is set up again on 404.
- src/lib/live-call-elevenlabs.ts: WebSocket session, 16 kHz PCM mic and
  playback, ping/pong, client_tool_call -> client_tool_result, bot words
  as user_message held while the agent speaks (300 ms pause ends a turn),
  progress as contextual_update, audio of an interrupted answer dropped.
- Settings UI, key catalog, locale strings.

Closes #5845. Builds on #5865.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 12 new ElevenLabs Live strings in Portuguese, so the pt-br pack stays
complete (i18n.test activePackComplete).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The agent needs a signed URL (platform_settings.auth.enable_auth), so an agent id alone cannot start conversations on the person's credits.
- The agent sends client_tool_call (and the events the client reads), so delegate reaches the client.
- The Live key row clears a typed key when the Live calls service changes, so it is never saved for the other service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- KeyRow: a service change invalidates a pending check or save, so its result
  never shows on the new service's row.
- ElevenLabs session: a socket close before the call is ready rejects at once,
  also while the microphone prompt is still open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Ask ElevenLabs for agent_response_complete and hold the bot's words until
  that event and local playback are both done; a pause in the audio only ends
  the turn for agents without the event (300 ms), or after 3 s as a fallback.
- Allow calls up to an hour (max_duration_seconds 3600), as with Gemini;
  ElevenLabs' default ends them after 10 minutes.
- The ElevenLabs Live key row never shows Cloud's included voices: Live
  calls need the person's own key.
- Drop what the microphone held while muted when it is turned on again.
- KeyRow: invalidate a running check or save in a layout effect cleanup, so
  it runs as the new service commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent_response_correction now updates the answer's own caption to what the
person heard of it after an interruption.

Every agent this feature creates sends agent_response_complete, so the 300 ms
audio-gap rule for agents without it is gone: a pause in the first answer no
longer releases a queued user_message. The 3 s fallback stays so a lost event
cannot hold the bot's words back for the rest of the call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The taskbar overlay was the app icon resized to 16 px, so on Windows the
unread chip looked like a duplicate of the icon it sits on. Draw a red
dot (16 px with a 2x representation) instead; macOS and Linux keep
app.setBadgeCount.

Closes #5885

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Mistral engine signs in by opening the person's browser itself: the
sign-in session speaks its own ACP `authenticate` through a one-shot CLI
spawn (AcpBrowserAuth, mirroring DeviceAuthController), the card locks
while the browser step is open, and sign-out removes the engine's own
stored sign-in (its cache, its keychain entry). The engine's own refusal
words never travel — the stage decides the sentence the person reads.

Also refreshes the stale ENOENT wording expectation in probe-errors.
Right after the browser sign-in the token lives only in the login
keychain; whoami_cache.json reappears later, when a session validates
it. Reading only the file made the card fall back to needs-login and
skipped the model refresh, even though the sign-in had completed.
propose_profile takes browserProfile (an existing profile's name or id, "" for
the bot's own browser) for another bot, through the same guards and browser
cleanup as the bot PATCH route, now shared in server/bot-browser-profile.ts.
A bot cannot switch its own profile mid-turn; the refusal names its current
profile, and select_computer reports it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The HTTPS hostname mapping is granted to the peer that terminates TLS. Name
that peer in OMB_TRUSTED_PROXY_CIDRS and Caddy only treats the requests from
the named ranges as HTTPS; every other caller stays plain HTTP even when it
sends that hostname. A bind address others can reach now requires the list,
and the default loopback bind keeps the current behaviour.
propose_profile now also refuses a teammate that runs a room turn, a routine
run, or a turn just handed to it, at proposal, at confirm and at Undo; the bot
PATCH route keeps checking only the busy flag. The catalog budget baseline is
set to the bytes the goldens record, and select_computer's browserProfile is
covered by a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each conversation paid the vibe-acp spawn and initialize (~1.5s warm,
~6s after a fresh install) on its own process. With shareProcess, threads
on the same spawn contract join one host, so opening a new conversation
only pays session/new; the engine's own per-turn prefill stays as is.

Generated by JoaoPec.
config.ts and the ACP core grew by the engine's own registration rows and
the browserSignIn extension points, which mirror deviceSignIn one for one.

Generated by JoaoPec.
The slash menu showed /burst's description in English for Chinese users while
/goal, /learn and /setup were translated: zh and zh-tw never got the burst
strings (composer.command.burstDesc, burst.*, server.burst.*). Add them, plus
composer.command.burstDesc for the 12 other languages that translate the other
command descriptions, with their source hashes. A locale test pins both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5827 added bot pictures and the person's photo to app_settings, which
lengthened its description by 75 bytes. That left the tool-list goldens
stale and put eight profiles a few dozen bytes over their 2% budget, so
every PR's catalog wire test failed.

Regenerated the goldens with UPDATE_AGENTS_CATALOG_GOLDENS=1 and moved
BUDGET_BASELINE to each profile's measured size.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Pure renames: shared/mention-boundary, upload-limits, markdown-plain-paths,
bot-limit, codex-usage-limit, cloud-hints, failed-turn and waits, and the
mascot face tables (src/components/cursor-face-data). The next commit puts
a re-export at each old path.

Co-Authored-By: Claude <noreply@anthropic.com>
Each moved module's old path re-exports it, so no import in src/, server/,
scripts/ or the tests changes. JsonRpcId, JsonRpcError, JsonRpcMessage,
APP_RPC_METHODS and the RPC error codes move from shared/app-frame/bridge.ts
to packages/phone-protocol/src/app-rpc.ts; the bridge imports and
re-exports them. shared/app-frame/app-host.html is rebuilt: the bundle now
names its minified variables differently and nothing else changes, so its
sha256 is new. The sync test checks the new files are copied.

Co-Authored-By: Claude <noreply@anthropic.com>
browser-auth.ts:
- await chromium.launch() (major: promise treated as sync object)
- console message + pageerror + crash handlers -> reject pending login wait
- bound inactivity timer; page/timeout cleanup once (no double timeout)
- debug log captured under sanitizedData, no protocol URL in logs

mistral-vibe.ts:
- browser download path stays inside the cache root with the same
  traversal guard as app extraction (2 tries -> ENOTEMPTY)
- normalized absolute command path via realpath, matching CCR guard

engine-standalone.ts:
- follow() re-anchored on '@model/' prefix; break/false for ending
  segments resolving to a file
- symlinks: only delete inside engine root, no children follows
- agents-cache reset: strip export {, stdio pull, and dotenv entries
- OSC 9;4 validation: ctrlParam exclusive; theatre sequences skipped
- fused path traversal guard, ran once, covering '..'/'.'/'' and
  symlink follows with MAX_LINK_HOPS
- verifyBrowserDownload no longer throws before writeCandidate map
- steed profiles wd path is the sanitized relative root (was absolute)

tests: chain guard matrix, symlink no-op outside root, OSC validation,
follow()/steeds fixtures, browser failure rejects pending login

Generated by Mistral Vibe.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The companion's allowlist gains GET /api/bots/:id/skills (read-only) and
DELETE /api/attachments/:name for a bare generated file name. The harness
now records a paired phone's upload under that phone (the device id the
companion forwards with its mutation token) instead of "local", so the
existing rule, only the uploader and only while no message uses it, lets
a phone discard its own file and nobody else's: not another phone's, and
not the desktop's.

Co-Authored-By: Claude <noreply@anthropic.com>
The security(1) exit code reaches execFile's error.code as a number at
runtime, but the declared ErrnoException type is string | undefined, so
tsc -b rejected the === 44 comparison. Widen the cast instead of
narrowing, keeping the "already gone" resolution intact.
- removeMistralVibeSignIn: strip bare MISTRAL_API_KEY assignments too
  (Vibe 3.1.2's fallback store writes the key unexported, per
  api_key_persistence.py), and stop swallowing read/rewrite failures —
  only an absent .env counts as already removed
- linkChainsEscape: start each symlink chain from the link's own
  directory, as the kernel resolves it; from the link's full path a
  d/ -> ../../outside chain looks like it stays inside
- tests for both, plus the .env-less sign-out path
removeMistralVibeSignIn's tests drove `security delete-generic-password`
for ai.mistral.vibe and the legacy vibe service, which could remove a
developer's stored Vibe credentials. The deletion now goes through an
indirection the tests stub out, so the filesystem cleanup stays real
and the services targeted stay asserted.
mistralVibeAgent draws the Mistral preset logo, which carries its own
colours, so the faded-mark tone set has to list it next to "mistral" —
the parametrised mark test exposed the missing entry on CI.
Rooms and shared bot chats labelled another person's message only on a
Team Cloud. A self-hosted server with members on its sign-in list gives
each signed-in person their own reactor key too, so the label now follows
that key instead of the Team Cloud flag. A solo server still answers
"user", so nothing changes there.

Closes #5910
On narrow windows a long sender name (a full email) wrapped from the
left edge, away from its bubble, and a name with no break point ran
past the row. Right-align the label and let it wrap anywhere.
Audio interfaces like a Universal Audio Apollo present many input channels
(16 here) with the mic on one. The helper appended those buffers as-is and
SFSpeechRecognizer failed with a generic error, so composer dictation and
call mode never heard anything. Above two channels the helper now passes
the recognizer a mono buffer of the channel carrying the most signal.
Mono and stereo devices are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/groups/:id/interrupt takes an optional stopId (a client-generated
id, the same form as a sendId). The server keeps each room Stop's answer
for ten minutes, at most a thousand, and a resend of the same stopId gets
that answer instead of stopping the turn that started since. A Stop that
throws keeps no answer. Without stopId nothing changes.

Co-Authored-By: Claude <noreply@anthropic.com>
PairingErrorCode in packages/phone-protocol names each refusal of
POST /api/pair (a computer's companion, a server or a Cloud) and
POST /api/auth/pair. error, errorKey and errorParams are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
* Bots can restyle the whole app with themes

A person can ask a bot to make the app look like anything: colours derived
from a background and an accent onto the app's own tokens, a stylesheet
applied after the app's styles, and pictures or fonts the theme carries.
The change reaches every window of that person live, and nobody else's.

- shared/theme.ts: the theme file, the stable data-look hooks, the guide a
  bot reads, and the checks that keep a theme from loading anything but its
  own files, data: addresses or #ids.
- The window parses the CSS, then walks the CSSOM and drops every
  declaration or rule that could load from elsewhere, unknown at-rules too.
- server/themes: each person's themes and files in the data dir, served
  same origin behind sign-in; app_settings gains theme, set_theme (with
  Undo on the card) and add_theme_asset from the bot's own folders.
- Settings → Appearance: Your themes (use, edit, duplicate, export, import,
  delete with Undo) and Reset look.
- Ways back: Cmd/Ctrl+Alt+Shift+R anywhere, and ?safe-look at start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the theme UI test's page code out of the server's type check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep theme hooks after the attributes the sidebar tests read

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pin the tool catalog with the theme actions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The engine updates with the Cloud's image, so a card the person cannot act on
is only noise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/GroupView.tsx
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
The Ubuntu 24.04 runner pin and its docs/ci.md note are CI policy, not part of the
automation-instructions fix. Main's Linux failures are being fixed separately; the
pin is reported to the coordinator as a lead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/full.tools-list.json
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
deploy/local/Caddyfile now has two reverse_proxy blocks for the API socket (trusted
TLS terminator and everyone else), so compare the distinct paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub moved ubuntu-latest from Ubuntu 24.04 to 26.04 on Nov 14 (runs at
10:19Z still got 24.04; from 19:07Z every Linux shard got 26.04). On 26.04
an unprivileged bubblewrap works, so:

- every Cloud-role e2e fixture (OMB_CLOUD_ROLE home/team without
  OMB_BOT_BOX=0) now starts with the bot box on, and its fake engines
  answer nothing from inside the box: 409 no_ai, turns that never start;
- the real-box *.linux suites run for the first time instead of skipping.

No commit on main caused it: #5863 and #5832 only happened to be the
first merges tested on the new image. The Linux shards go back to 24.04,
under the same `ubuntu-latest` matrix name, so job names, release-ci and
the duration sequencer are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bot-box change in #5723 let every named read-only path override a
writable mount, which also caught the implicit SOUL.md line. Keep the
override to the caller's own ro list, which is what Antigravity's staged
skills need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5793's extra line put server/drivers/openai-chat.ts at 1,001, over the
unlisted-file cap. Read an empty argument string as {} in the same line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI: keep the Linux vitest shards on Ubuntu 24.04 (main red since ubuntu-latest became 26.04)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pairing card under Settings > Phone & devices > Your other computers
reused the phone card as is: its button said "Pair a phone", and its dialog
offered a QR code and told the person to install the phone app. The code is
for another computer, typed in Connect to a server.

ServerPairingCard gets a forComputer prop, used only by TailnetComputers:
button "Pair a computer", dialog "Pair another computer", one line saying to
type the code in Connect to a server, and no QR or phone-only notes. Phone
pairing is unchanged. New keys in all 16 locales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train P5: seven small fixes from the Nov 15 batch (email, Data, team representative, engine updates)
Byte counts were already right (main + 15 for trigger_info, + 202 on Chief profiles);
the sha256 values are the ones CI's agents-catalog-wire test reported on run 43652696923.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The description keeps its length, so every byte count is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows fs.realpathSync keeps 8.3 names (C:\Users\RUNNER~1) while the
ACP read check uses the native form, so every staged-skill read was
refused as "not at its expected location". Stage under realpathSync.native
and compare the same form in the tests (windows shards 3 and 6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rename_thread is listed in find_tool's text when the bridge is on: +15 bytes on
each non-room bridged profile (for example voice+non-chief 18995 -> 19010).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Phones: pair through the relay instead of waiting on a removed HTTPS address

A desktop kept the managed tunnel address it stored before the control
plane removed that tunnel. Opening the pairing screen started the
connector on the stored address without asking the control plane, so it
never got the 409 relay_capable answer that makes it forget the address.
The pairing screen then waited for a hosted endpoint that could never
verify and gave up after 30 s, although the relay could carry the phone.

Desktop (account service and main process):
- Before the connector dials a stored address, ask the control plane
  whether it still exists (checkStoredAddress, at most once per half
  check interval). A gone address is provisioned again; on relay_capable
  it is stopped and forgotten.
- prepare() asks too while the connector is starting or stopped, not
  only once it is already failing.
- A stored address with no usable installation credential is provisioned
  again with the account instead of being skipped by every check.
- Connector verify failures are reported to the service: the first one
  checks the address, two in a row provision it again even when the
  control plane still lists it (at most once per 10 minutes). An address
  that is gone or does not answer is forgotten when nothing needs a
  tunnel.
- A new installation credential asks for a relay token at once.
- With Anywhere on, starting the phone link no longer waits 15 s for the
  HTTPS address to verify.

Pairing screen: when the account is signed in and Anywhere is on, the
automatic pairing opens the code on the direct route at once (its QR
carries the relay) instead of waiting for an HTTPS address; any address
repair runs in the background. With Anywhere off it waits as before.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep the pairing fix inside the file-size ratchet

The fix grew electron/main.mjs past its listed 3160 lines,
src/components/PhoneSetupFlow.tsx past 1089, and took
electron/companion-account-service.mjs over 1,000 lines. Behaviour is
unchanged; code moves out instead:

- electron/managed-companion-start.mjs: the phone link's start of the
  managed connection (check the stored address first, wait for it to
  verify only with Anywhere off), with its own tests.
- electron/companion-account-documents.mjs: the account's credential
  document fields and pure helpers (stored account, provisioned and
  signed-in documents, public state), moved verbatim from the account
  service, which re-exports what it exported before.
- src/lib/phone-setup.ts: pairThroughRelayWithoutAddress, the decision
  the pairing screen takes when no HTTPS address is ready, with tests.

Co-Authored-By: Claude <noreply@anthropic.com>

* Pairing fix: review round (throttle, keep listed addresses, gate on e2e)

- A stored address with no installation credential counts as a check
  before it is provisioned again, and connector events do nothing while
  signed out (or wherever the watchdog skips), so a provisioning that
  keeps failing is tried once per interval, not on every retry.
- Verify failures no longer re-provision or forget an address: after two
  in a row the address is checked with the control plane, and only its
  "gone" (none, deleted, another one, or a 401) forgets or replaces it.
  A server-listed address that does not answer is kept. These checks
  back off 10 min, 30 min, then 2 h with jitter, reset by a verified
  connection, and honour the health cache.
- Automatic pairing goes through the relay only with the encrypted
  connection on and a Wi-Fi address to open on; otherwise it waits for
  the HTTPS address as before. A person pairing, and a new installation
  credential, ask for the relay token at once, and the screen opens the
  code as soon as the encrypted connection comes on, without a second
  click.
- Starting the phone link waits at most 3 s for the stored-address check
  and never waits on the HTTPS address for a Wi-Fi, Tailscale or
  Anywhere start.
- Tests for each, and for the main-process wiring.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Train P4 (Nov 15): 15 contributor PRs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
profiles.json: main's (P4) values plus rename_thread's 506 bytes on each
non-room profile; sha256 from CI. agents-call.ts: the two thread-tool imports
share a line, so the file stays at 1,000 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Byte counts are main's: the description keeps its length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train P1 (Nov 15): 12 AdityaUmale PRs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
server/quota-switch.ts: main's turnLimitScope (#P1) and #5785's
takeoverRefusal are the same rule; turnLimitScope now calls
takeoverRefusal so one place decides a limit or sign-out refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Byte counts are main's: the description keeps its length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
P1 brought server/host/peer-limit-resend.ts: a teammate's turn refused by
its AI's limit is resent once to the backup AI. #5785 carries the same job
on a second way, and with both in, each one's e2e test fails
(peer-limit-resend.e2e, quota-switch.e2e). Revert the #5785 merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With tool search on, the agents server stays alwaysLoad (so Claude Code still
connects it before the first request) and lists every tool outside a small set
with _meta anthropic/alwaysLoad false, which Claude Code 2.1.285+ keeps behind
ToolSearch. Up front per turn: 65,042 -> 5,700 bytes (default profile),
77,587 -> 6,802 (fullest). Tool search off keeps today's mount. Turns also set
CLAUDE_CODE_DISABLE_CRON so a deferred trigger does not lose to CronCreate.

Adds pinned budgets for the up-front bytes and for our own prompt text on
Claude and Codex turns, and deferral cases plus a --context mode to the
tool-choice eval.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train P2 (Nov 15): 13 AdityaUmale PRs incl. Gemini Live and ElevenLabs Agents Live calls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bot names in rooms went to 13px semibold, but a person's name above
their line, in rooms and in shared bot chats, was still 12px medium, so
the two read as different kinds of label. Use 13px semibold for people
too, in the same neutral colour a bot without a palette colour gets, and
note speaker names as a 600-weight row in DESIGN.md.
Train P3 (Nov 15): 11 contributor fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pause bot (the bot's menu, under More) and Pause department (the department's
menu) stop everything those bots are doing and refuse new work until Resume:
person messages and the bot API (409 bot_held), routine and webhook runs,
hand-offs from other bots, and their turns in rooms. Pausing stops each busy
conversation as Stop does, ending delegated work and cancelling a routine run.

Kept in <data>/paused-bots.json; a department's pause follows a rename and is
forgotten when it is deleted. Owner or admin only, and recorded in the admin
activity log. Paused bots show Paused in the sidebar, and their routines say
so. The checks join the Starter plan's own pause where each way work starts
already asks, with their own wording and error code.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An LM Studio or Ollama server added by address had no Remove in
Settings -> AI -> Manage, so a duplicate row could not be cleaned up there.
The settings tool could also add the same local server again at an
address that was already an engine, which made the duplicate.

- Manage on an added server now has Remove, with the same confirm and
  in-use guard as removing an added account.
- The settings tool refuses to add an Ollama/LM Studio server whose
  address is already an added engine and names the existing one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ADBKeyBoard shows no keys, so a person who also types on the phone keeps
their own keyboard as the default. type_text then refused clear, and any
text beyond the basic characters. It now needs ADBKeyBoard only switched
on in the phone's keyboard list: it switches to it, waits until it shows,
types, and puts the person's keyboard back.

Putting the keyboard back is the one command that does not ask for the
phone claim, so a person who takes the phone in the middle of a call is
not left on a keyboard without keys.
The Memory tab's "Show in File Manager" started explorer.exe with
windowsHide: true. On Windows that sets SW_HIDE for the new process, which
GUI programs use for their first window too, so the folder opened hidden and
nothing appeared. explorer.exe's exit code counts as success, so no error
showed either. The openers are all GUI programs, so they no longer start
hidden; the flag is ignored on macOS and Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two quick settings changes for the same local address could both pass the
describe-time check before either one was saved. The add route now repeats
the lookup after taking providerConfigBusy, so the check and the write run
together. Shared helper localServerAlreadyAdded keeps one message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The readiness check searched everything after ADBKeyBoard's header in
`dumpsys input_method`, so a later section of another keyboard that says
mIsInputViewShown=true counted as ADBKeyBoard being ready. It now stops at
the next section header. No dump seen has such a later section; the test's
dump is made up and says so.

The tests also pin behaviour the code already had: every command but the
one that puts the keyboard back asks for the phone, a keyboard id is
refused for a `$` on either side of the slash, ADBKeyBoard may show as late
as the tenth read, and adb failing from the switch on reports the phone as
still on ADBKeyBoard. The three refusal tests now read a keyboard list that
holds the other keyboard and not ADBKeyBoard, instead of an empty one.
The first login-shell probe appended rc-only dirs after the known install
dirs, while every rescan put them before. A browser launched between the
two then refused to reconnect because its launch key no longer matched.
Build the cache the same way in both places.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Defer all but a few agents tools on Claude turns
Move the mention, upload, path, limit, wait, app RPC and mascot face modules into packages/phone-protocol
askedOfBen took Reporter's permission socket from whichever engine wrote the
shared dump last, on the assumption that every other turn had ended. Since warm
engines stay up across replies, another bot's carry-on (Scout's, after its
assistant answer in the test before) can still be running then. The socket now
comes from the dump whose prompt carries this ask's own message, the free/busy
test waits for Scout's last carry-on, and a missing card or turn fails with
Reporter's latest rows and the servers' output instead of a bare timeout.

card-answerers picked its port from 28800-38800, partly inside Linux's
ephemeral range (32768-60999), and failed once with EADDRINUSE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Let a paired phone read a bot's skills and discard a file it uploaded
Stop a room's turn once per stopId, and give every refused pairing a code
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
# Conflicts:
#	docs/analytics.md
#	server/engine-memory.ts
#	shared/tool-scope-support.ts
#	src/components/EngineLibrary.tsx
#	src/lib/analytics-allowlist.ts
- file-size pins back to main's (core.ts 1703, config.ts 1244); config.ts fits by
  sharing the DeepSeek/Vibe routing case and the Mistral key line.
- pickAuthMethod skips Vibe's browser-auth when it is already signed in (key, whoami
  cache or keychain), so a turn no longer sends authenticate; tests cover both sides.
- core.ts's ENOENT message for every ACP engine is main's again.
- productName() / {app} instead of "OpenMausBot" in the server hint, the install
  failure, the 403 on a remote sign-in and the card description (en + pt-BR).
- EngineSetup keeps the ChatGPT browser-pkce check beside the new engine-browser one
  in the app-copy branch; three lines joined by the PR are split again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Work one bot handed another no longer files an Inbox line when it finishes: that is
the asking bot's news, and its own answer to the person still lands. Failures
(with whose work it was), approvals, questions, routine reports and the asking
bot's summary file as before. A hand-off line saved before this is dropped when the
inbox file loads.

From #5872, without its switch or Settings row: the owner wants this for
everyone, with no setting. handedResult and its two pass-throughs go; its tests
are rewritten around what still files.

Co-authored-by: wayne <38241846+way568@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Type the search, model list, session, and bot, room and task create and update answers a phone reads

New types in packages/phone-protocol/src/responses.ts: SearchResponse
(GET /api/search), InstancesResponse and WireInstance (GET /api/instances,
the fields a phone reads), AuthSessionResponse (GET /api/auth/session,
loopback or signed in), BotCreateResponse, BotUpdateResponse,
RoomCreateResponse, RoomUpdateResponse, TaskResponse,
RoomTaskCreateResponse and RoomTaskUpdateResponse.

Types only. Each of those handlers' literals now ends in satisfies; nothing
they send changes. The model list is built as unknown on the server, so a
type test holds the desktop's own InstanceInfo to WireInstance instead.

Co-Authored-By: Claude <noreply@anthropic.com>

* Check the sync copies every module the phone reads, the response types and pairing codes included

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Each person's last 30 look changes are kept beside their themes, so "undo
that", "go back two changes" or "the purple one from earlier" works in chat.

- server/themes/history.ts: history.json per person, oldest first, with what
  was worn before and after each change and each rewritten theme file as it
  was (theme JSON and its file names; pictures and fonts stay in the folder).
- The store records every look change as one entry: a theme saved or worn
  by a bot or in Settings, a built-in skin, the default look, deleting the
  worn theme. Going back is itself a change, so undoing it is a redo.
- app_settings gains theme_history and undo_theme (steps, or an index from
  the history); both keep the person's-own-turn rule, and an undo posts the
  applied card with its own Undo, which goes through the history as well.
- The guide and tool description map "undo / go back" to undo_theme and
  "reset to default" to set_theme none.
- Settings → Appearance: Recent changes with Restore.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	shared/bot-limit.ts
* Relay connection: stable-only backoff reset, hello watchdog, liveness check

The computer's relay control socket (companion/src/e2e/relay-client.ts,
used by the desktop sidecar and the headless server):

- The backoff count resets only after a socket has stayed connected
  30 s. Before, every `hello` reset it, so a relay that accepted and then
  dropped the socket was redialled at once, in a loop.
- A dialled socket with no `hello` within 15 s is dropped and the next
  node dialled with backoff, instead of waiting for TCP to give up.
- While connected, every 2 min (and when the sidecar sees the network
  change) the socket is asked to answer: an `auth` with the current
  token, which the relay already acknowledges with `hello`. No answer
  within 10 s: dropped and dialled again once, with backoff.
- A network change while waiting out a backoff dials now, keeping the
  count. 4429 waits at least 30 s, as the spec says.
- The client reports why it is not connected (no_answer, token_refused,
  busy, unreachable, replaced); the sidecar's state carries it as
  `e2e.relayProblem`.

The desktop's relay token service (electron/relay-token.mjs):

- With `wakeAfterSignInFailure` (the desktop sets it), a signed-out or
  401 answer waits for a sign-in, a new installation credential or a
  wake from sleep instead of asking again every 30 min. The headless
  server keeps the 30 min retry: a `login` in another process sends it
  no event.
- `status` reports the token's state and one fixed failure word, never
  the token or a server's message.

The fake relay answers a refresh with `hello`, as the real relay does,
and can play a relay that never answers. README sections 9 and 10 note
the acknowledgement and the new timers.

Co-Authored-By: Claude <noreply@anthropic.com>

* Phone & devices: a step-by-step connection check with Copy diagnostics

A failure used to read as one sentence ("Secure access needs
attention"). src/lib/remote-access-diagnosis.ts turns the state the
desktop already has into four steps (This computer, MausBot account,
MausBot Relay, your phone's way in), each ok, failed or not checked
with a plain reason, a headline, what to try, and a text to copy.

- Shown under the pairing screen's existing failure message, and in
  Settings > Phone & devices as a closed "Connection check" row whose
  value is the headline. Nothing new opens or interrupts.
- The relay step is ok only once the relay acknowledged this computer
  (`hello`); its failures come from the relay client's new
  `relayProblem` and the token service's `status`.
- The account's public state gains `problem`: one of seven fixed words
  mapped in the main process, so control-plane codes still stay out of
  the renderer.
- The copied text holds the localised lines, codes, counts and yes/no
  facts only: no email, address, hostname, IP, pairing code, token, key
  or device name. Tests assert that across failure shapes.
- English strings added; other locales fall back until translated.

The model's shape adapts an MIT-licensed connection diagnosis; the file
carries its copyright line and NOTICE names the source file.

Co-Authored-By: Claude <noreply@anthropic.com>

* Connection check review round: bounded sign-in wait, quieter diagnosis

Relay token (electron/relay-token.mjs):
- After a sign-in failure the desktop still waits for a wake-up, but no
  longer forever: a fallback asks again after an hour (±20 %), the
  healthy refresh cadence, so a 401 from a control-plane fault heals on
  its own and a dead credential asks no more often than a working one.
- A wake-up that arrives while a request is in flight (one that may
  carry the old credential) asks again once that request settles.

Relay client (companion/src/e2e/relay-client.ts):
- The redial after a failed liveness check waits a random 0-5 s at
  least, so the hosts a stalled node drops do not all redial at once.
- A network change dials early only after a failed or silent dial; a
  wait the relay asked for (4429, 4503, `restarting`) is kept. README
  section 10 says so.

Diagnosis:
- The account step reads "Not needed for Same Wi-Fi or Tailscale" when
  neither Anywhere nor the HTTPS address is on (the pairing screen still
  asks for it), and "Not set up in this build" when the build has no
  control plane (a new `unconfigured` problem word).
- A relay idle by design (no phone needs it) reads "Starts when a phone
  needs it", and a connected relay stays ok while the service is down.
- A refused relay sign-in says what happens next by itself instead of
  "Sign in again", which had no control in that state.

Tests for each, plus a liveness check answered with 4401 and
`restarting` showing "connecting".

Co-Authored-By: Claude <noreply@anthropic.com>

* Relay client tests: no wall-clock upper bounds that a slow runner breaks

The network-change test asserted the early dial came within 1 s, which a
slow CI runner missed. The relay client's backoff ladder is now a timing
option, so the tests set it instead of racing the built-in one:

- network change: a 30 s backoff, and the second dial must come while
  it is pending, so it can only be the shortcut;
- no redial loop: a ladder of 0 then 60 s, so exactly two dials;
- backoff reset: a ladder of 0 then 60 s, so a fourth dial needs resets.

Other waits get a 15 s bound, a liveness check is acknowledged by its
`hello` instead of a fixed pause, the 4401 test uses a fake relay that
refuses refreshes instead of a token expiring on the clock, and the
hello watchdog allows 1 s. The remaining fixed pauses only bound a count
from above, which a slower runner cannot break.

Co-Authored-By: Claude <noreply@anthropic.com>

* Connection check: Brazilian Portuguese for the new strings

pt-br is the one pack held complete (src/lib/i18n.test.ts,
activePackComplete), so the 62 strings this branch added to en.json need
it too. Wording follows docs/localization-pt-br.md and the pack's own
terms for the same things: "Mesmo Wi-Fi", "De qualquer lugar, pelo
{app}", "MausBot Relay", "parear", "celular", "Sem login",
"diagnóstico". No hash edit: the release's --record-hashes records new
keys from git history.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
While an engine was held by its usage limit, or a limit-reset automation
waited, the clock read plan usage every five minutes from a minute after
start, whether or not anything ran. A weekly hold or an "every reset"
automation kept that going for days on an idle Cloud home or a closed
laptop.

Now it reads every five minutes only while turns run (any runtime event in
the last 15 minutes). Otherwise it reads once just after each reset it
knows of (two minutes after: a minute after the waiting automation starts,
so the new window re-times an automation that repeats, never one still due)
and at most hourly, which still ends a hold whose limit reset early.
Someone opening the limits still gets a fresh read (ensureFresh), holds
still end at their own time, and a waiting automation still starts a
minute after the reset. Policy in server/limit-poll.ts.

Co-authored-by: Claude <noreply@anthropic.com>
0.1.159 tightened the core.ts pin to 1678. The browser sign-in wiring now adds no lines:
one doc comment covers both app sign-ins, each controller is built on one line, and the
surface spread and dispose share the device sign-in's lines. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot-to-bot turn that met a usage limit goes once to the backup AI. A bot the person
paused takes no new work, so that resend now gives up like it does for a Stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run that comes due for a bot the person paused was failed with the pause line, so every
occurrence posted a failure and put the chat under To review, which is only for runs that
need the person. It is now cancelled with that line in its run log. A run started by hand
still fails with it, and a Starter pause is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pausing stopped only the bot's own conversations, so a turn it was taking in a room ran on.
It is now interrupted the way a room hold does it, and an orchestrated room hears the pause
line rather than the room-hold one, whose advice to mention the bot would not resume it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Room routing and other decisions fall back on the Gemini key saved for
speech or images, through Google's Decisions API (Gemini Decision 1).
No new setting: the helpers switch stays off until the person turns it on.

Refs #5712
A Tools card in a bot's Access settings switches each built-in tool group the
workspace has. The bot's toolsOff list reaches the agents server as
OMB_TOOLS_OFF, which drops those tools from tools/list; Data and Email are not
mounted at all. Off groups are no longer described in the prompt, and one line
names them so the bot can say where to turn them back on. app_settings gains
bots.tools so a person can switch them by chat, with Undo.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Runs list by scheduled time, and the hand-started run ties with the scheduled one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
retimeLimitResets moved every enabled limit-reset automation to the newest
reset time on each usage read, also when the run it owed the reset that
just passed was due within the minute. A read in that minute (another
window's, someone opening the limits, the first read after a laptop wakes)
already shows the next window, or for Claude a window that has not started
again reports no reset and the weekly one is taken: the automation moved
hours or days away and its run never started. It now stays where it is
while its reset has passed and that run was not made (limit-reset-owed.ts);
the next window times it after the run.

Limit clock, also: a clock set back past the last read reads at once
instead of waiting the jump plus an hour, and a read that fails (it threw,
or no account answered, e.g. just after a wake) is tried again after 5,
10, 20, 40 minutes, then hourly, instead of after an hour.

Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team inbox e2e: read the asking turn's own dump; card-answerers port out of the ephemeral range
Train P7 (Nov 15): pause a bot or a department (#5947), with fixes
On Windows Node reports 0o666 for any writable file, so the mode assertion
failed there on main since #5960 (run 43691904382). The pause itself is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
grokExportDocument() is the form a carried export is kept in: parsed, redacted, and without any field parseGrokExport does not read.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Grok Bot runs a custom connector from its own cloud computer, so the link has to be a public HTTPS address. POST /api/setup-import/grok/connector opens a second loopback listener that answers only POST /mcp/move/<key> and starts the bundled cloudflared as a quick tunnel to it. The MCP has the two tools the published MausBot bot calls, move_status and send_export { document }.

A sent document goes through parseGrokExport and is kept in memory as grokExportDocument() writes it. A link holds at most 100 documents and 16 MB, and a request body at most 4 MB. The link ends on DELETE, after an hour, when the server exits or when cloudflared exits; the last two leave what arrived readable and report stopped.

cloudflared gets a config file of its own and a PATH-only environment, so a ~/.cloudflared/config.yml is never read. The routes keep the GROK_LOOK_PATH guard: the desktop app's own loopback only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Get the link shows the address to paste into Grok Bot as a custom connector. The dialog polls every 3 s, and arrivals go through the same preview as a dropped file. A clean import ends the link. When the link stops the dialog says so, keeps the Bots that had arrived and offers a new link.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Adds evals/dream: four cases and an offline scorer that grades a dream's
answer the way runDream keeps it (parseDream, then the fact checks) before
anything is written. A case passes when the answer is JSON, every expected
line is saved and no forbidden word is. No model is called; a live runner
comes next.
Train P6 (Nov 15): Mistral Vibe engine (#5787) + automatic Inbox hand-off rule (#5872)
team-phone-data.e2e: the test linked @duckdb into the Team Cloud's native
tree after the server started. The server's first config broadcast (after
the new-bot default's test message, server/tested-ai.ts) calls
dataEngine.unavailable(), which loads DuckDB once and keeps a failed load
for the server's life. When that broadcast won the race, every Data call
answered 503 "Cannot find module '@duckdb/node-api'". The fixture now takes
team.native and links those scopes before the Team Cloud starts.

frame-batching: the batch also flushes after a 100 ms fallback timer (a
hidden window gets no animation frames). Ten setTimeout(0) tasks take about
156 ms on Windows' 15.6 ms clock tick, so the fallback drew mid-burst
("nothing renders before the paint: expected 4 to be 3"). The burst now runs
on fake setTimeout, 1 ms per frame, each frame still in its own real task
(setImmediate), and the paint is called explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix two flaky tests: Team Cloud DuckDB link and the frame-batching burst
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Move cron-label and plain-time-zone to packages/phone-protocol

Pure renames; the next commit puts a re-export at each old path.

Co-Authored-By: Claude <noreply@anthropic.com>

* Move the phone's job, registration and sealed-credential schemas and the portable Live call code into the package

packages/phone-protocol gains phone-jobs.ts (the registration a phone sends
to PUT /api/phones/self, the job codes and outcome schema, and a job as the
phone receives it), phone-secret-envelope.ts (the sealed credential a phone
sends to .../secret-cards/:id/provide, with its version, HPKE info string
and size cap) and live-call.ts (the transcript, voices, call duration and
row text). server/phones/jobs.ts, server/phones/registry.ts,
server/host/secret-cards.ts, server/phone-secret.ts and shared/live-call.ts
import and re-export them; commentaryChunks and clampAppend stay in shared
because they need TextDecoder. shared/cron-label.ts and
shared/plain-time-zone.ts re-export the moved files. No behaviour change.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
A server in a container (often run as root) can't give Chrome its own
sandbox. Chrome printed why, but the launch diagnosis only knew
"No usable sandbox", and even a recognised failure was dropped on its way
to the viewer, so the Browser tab stayed on "Connecting" forever.

Chrome's sandbox stays on. Its root and namespace failures are now
recognised, and inside a container the person is told that the operator
can set OMB_BROWSER_SANDBOX=0 and rely on the container's isolation. The
diagnosis rides on each wrapping error's cause, so the stream closes with
the host-setup code and the panel shows the setting to copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: design for phone push when the app is closed

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: phone push, time-sensitive entitlement as the phone app now has it

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
The push relay routes take a platform (apns, the default, or fcm) and an FCM
registration token, and a send takes an optional collapse id that becomes the
APNs collapse id and the Android notification's tag. FCM HTTP v1 is signed with
an RS256 service-account assertion in WebCrypto, its access token cached per
isolate. UNREGISTERED and SENDER_ID_MISMATCH drop the token for every
installation. The APNs payload gains the app's category and a body copy of omb
for the phone's notification library. Migration 0017 rebuilds
installation_push_devices with a platform column and a longer token check,
keeping every row as apns. No secrets set means 503 push_unavailable, as before.

Co-authored-by: Claude <noreply@anthropic.com>
# Conflicts:
#	src/locales/de.json
#	src/locales/es.json
#	src/locales/fr.json
#	src/locales/hi.json
#	src/locales/it.json
#	src/locales/ja.json
#	src/locales/ko.json
#	src/locales/pl.json
#	src/locales/ru.json
#	src/locales/source-hashes.json
#	src/locales/tr.json
#	src/locales/uk.json
#	src/locales/vi.json
#	src/locales/zh-tw.json
#	src/locales/zh.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rows carry briefs and results of any length and each update leaves the old text in the memo, so 8,192 entries alone
did not bound its memory. It now also holds at most 8 M characters of row text, skips a row over 125 k characters,
and a hit moves the row to the newest end so live rows stay while history reads pass through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tool descriptions, replies, server name and instructions now say productName() instead of a fixed MausBot, and no
longer name the product the Bots come from; a reply points at Settings → Import, where the move lives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The link stayed open for up to an hour after the person left the dialog without importing. Leaving it now ends the
link, including one whose POST was still opening when the dialog closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
trigger, coordinate_bots, propose_team_setup, show_html, show_widget,
mcp_server, skill_manage and propose_profile now say what they do and
when to use them; guidance a model needs only after a wrong call moves
into the refusals, which name the arguments a tool takes. Safety rules
stay. The default list drops from 65855 to 56634 bytes and the fullest
from 78452 to 68241; both wire budgets are lowered to match.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Settings → AI: bring hidden providers back, sign a CLI out without hiding it, Cursor's real mark

A provider hidden with Hide on its card left /api/instances and every model
list, and the only list that could unhide it was rendered on the old full
engines page, which nothing opens any more: Settings → AI shows the Simple
provider list. A connected Kimi card offers Hide next to its CLI version and no
sign-out, so hiding it to reconnect made it vanish with no way back.

- Hidden providers are now the last rows under More providers, each with its
  mark, "Hidden from every model list" and Unhide; the fold's count includes
  them and the fold stays while every provider left in it is hidden.
- A connected engine whose sign-in the server can sign out (Kimi, and other
  device sign-ins) gets Sign out on its card; it never hides the provider.
- Settings search finds AI → Providers for kimi, cursor, hidden providers
  and unhide.
- Cursor's row and pickers draw Cursor's cube mark instead of a generic
  pointer arrow, in the ink colour like the other monochrome marks; NOTICE
  names the adapted file.

Tests: a provider-list test against a small model of the server reproduces
the hidden Kimi and checks that every built-in provider is reachable when
never set up, connected, signed out, sign-in unknown and hidden.

Co-Authored-By: Claude <noreply@anthropic.com>

* Settings closed scale: EnginesSettings debt down to 14, HiddenProviders checked and clean

Moving the hidden-provider list out of EnginesSettings took two off-scale
classes with it. The debt entry drops to the new count, and the new
HiddenProviders module joins the checked files with none: its full-page list
uses bg-control instead of a hairline border on an inset surface.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Three of #5978's changes, taken on their own on top of main (the window-frame default, the dev server port and the
floating composer stay out):
- The simple-mode bot badge hides its chevron until hover or keyboard focus.
- An agent card's last line fades over its final 28px when cut off, mirrored for right-to-left text, instead of
  ending in an ellipsis (FadeLine and .fade-end); a line that fits is unchanged. FadeLine skips the observer where
  ResizeObserver is missing, as main's other components do.
- The unread/waiting dot and the hover actions on a simple-mode row line up with the engine badge column.

Sidebar.tsx stays at its 1687-line pin.

Co-authored-by: wielenmaker <129127533+huypham37@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/EnginesSettings.tsx
An ACP engine signed in while one of its credentialEnv variables holds a key now
reports account.method "api-key", and the provider card offers Sign out only
without one, as the grouped account cards do. Browser sign-out refuses when the
spec says an API key signs the engine in (Mistral Vibe: MISTRAL_API_KEY) and
checks signedIn again after removing, so it never reports a sign-out the engine
contradicts or removes the CLI's own sign-in to no effect.

The confirmation for a CLI sign-out (Kimi, Grok, Mistral Vibe) adds that it
signs the provider's own command-line app out on this computer. The hidden
providers' Unhide buttons and Sign out carry the provider's name for screen
readers. New strings in en, pt-br and zh.

Co-authored-by: Claude <noreply@anthropic.com>
Clear wrote an empty Jev key and left the Gemini key in use.
# Conflicts:
#	src/components/EnginesSettings.tsx
The chevron is aria-hidden and the whole badge is the tap target, like the Simple bot pill's chevron in ChatView.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the person picked TypeSafe Jev under Settings > Decision and extraction
but had no Jev key yet, describeDecider reported the provider in use
(OpenRouter, via the shared key from Settings > API keys). The dropdown
snapped back to OpenRouter and the key field saved into the OpenRouter slot,
so a pasted Jev key was sent to OpenRouter and rejected.

describeDecider now adds `chosen: "jev"` only in that case (explicit Jev
choice, shared OpenRouter key in use). `provider` is unchanged, so status
and usage keep saying OpenRouter. Settings shows Jev and its key field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: phone push compared with the reference app; the control plane stays the sender

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: phone push, the migration for Live Activity tokens

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
A new route, /v1/installations/self/push/activity, starts, updates or ends a
bot's Live Activity through APNs (push type liveactivity, topic
<bundle>.push-type.liveactivity, content state BotActivity with names, kind
and a headline only: no line of text, no answer links) or sends an FCM token a
data message (omb_kind activity) for the Android app's ongoing notification.
APNs tokens now carry a purpose (alert, activity, activity-start; migration
0018) and a send reaches only a token registered for it. The send path is
shared with /push/send, so limits and dead-token handling are the same.

Co-authored-by: Claude <noreply@anthropic.com>
* Server: phone push, off by default

A paired phone registers its APNs or FCM token with PUT /api/push/device (keyed
by its session or companion device, listed in the companion allowlist and the
client scope). When a notify frame for an approval, question, sign-in or
finished reply would reach a registered phone that holds no live event stream,
by the event stream's own audience rule, the server asks the control plane's
push relay to wake it: content-free, titled from names, with the stream
notification's identifier as collapse id. An outbox coalesces per kind and
conversation, caps each phone, retries transient failures and drops stale
pushes. Revoking a session or a companion phone unregisters its token. The
desktop app hands the installation credential over the private parent port;
servers read OMB_PUSH_CREDENTIAL, OMB_INSTALLATION_CREDENTIAL or
tunnel-account.json. Off unless features.phonePush or OMB_PHONE_PUSH=1.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep OMB_PHONE_PUSH and OMB_PUSH_CREDENTIAL on the server, out of every bot's box

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Train Q1 (Nov 15 b): 13 contributor fixes
Browser tab: say when Chrome's sandbox can't start in a container
A Mac app opened from Finder or the Dock gets launchd's environment, so on a
network that reaches the internet only through a proxy set in System Settings
the server's HTTPS calls (ChatGPT sign-in, model APIs) fail. On macOS, when no
HTTPS_PROXY/HTTP_PROXY (any case) is set, read `scutil --proxy` and give the
server child HTTPS_PROXY, NO_PROXY (system exceptions + any existing NO_PROXY +
loopback) and NODE_USE_ENV_PROXY=1. HTTPS only (Node 24 hangs on plain http://
through an env proxy); no PAC or SOCKS; any failure changes nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Server: a closed phone's Live Activities and Android ongoing notification by push

A paired phone registers its Live Activity tokens, its own headline words and
how it draws each bot (PUT /api/push/activity, companion allowlist and client
scope). When a bot it would see starts needing the person, starts or stops
working, and the phone holds no live stream, the server reads the bot's state
from the store and asks the relay to update or end that bot's activity, to
start one for a bot that newly needs the person (push-to-start), or to send
the Android phone's FCM token the ongoing notification's data message. Names,
kind and the phone's headline only. Rides phone push's switch: off, nothing is
kept or sent.

Co-Authored-By: Claude <noreply@anthropic.com>

* End what the phone's app left drawn for a bot that went quiet after its stream closed

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Train Q2 (Nov 15 b): perf fixes, move connector, small MCP and trace fixes
- An inherited NO_PROXY/no_proxy containing "*" now leaves the server env
  untouched (fetch only honours "*" as the whole value).
- macOS CIDR exceptions such as 169.254/16 become an IPv4 range, the form
  Node's proxy matcher honours; a child-process test checks the routing.
- startServerOn checks for shutdown again after the proxy lookup, so a quit
  during it never forks an unowned child.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A custom endpoint could only speak System One or OpenAI Decisions, so
providers that serve only /chat/completions (Gemini's OpenAI-compatible
API, local servers) failed every call with 404. customApi "chat" posts
the same strict-JSON chat request the OpenRouter backend sends, without
OpenRouter's provider option, and reads the reply with the shared parser.

Refs #5983

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A question card the person has written after no longer counts as waiting:
the conversation stops resting on them and the Inbox drops it from Needs
you, unless a running turn still waits on its answer. The card itself stays
open to answer. In a room only a reply to the question passes it, and lines
from another bot, a relay, the API or an automation never do; automated
turn lines now carry `automated` so they can be told apart.

Fixes #5964
A Live call could only go to OpenAI, Azure OpenAI, Fish Audio, Gemini or
ElevenLabs. Add "custom": any server that speaks OpenAI's GPT-Live API, at
an https address (or http on loopback), with its own key and model name.
The key is bound to the endpoint's host, sent as a bearer token with
redirects refused, and never falls back to the OpenAI key. Calls are
limited to an admin or the owner, like Azure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thinking model behind the gateway (Gemini 2.5 and later) counts its
thinking against max_tokens, so the cap sized for the answer could leave
an empty reply and fail a valid key check. OpenRouter keeps its cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At start the server read every row of messages.db three more times than it
needed: each option-card sweep (your-computer cards, peer cards, computer asks)
scanned the whole table because `kind = 'options'` alone matches no partial
index, and the thread-list repair read every row of every thread to find each
thread's newest ordering stamp.

- optionCardsForTools repeats the work-kinds predicate and reads
  messages_work_at, as the Today and attention reads already do.
- latestMessageAts asks SQLite for one MAX per thread, which it answers with a
  single index seek; the ordering variant gets a partial index on
  (thread_id, ordering time) so that seek needs no row reads.
- captureCliTree follows /proc/<pid>/task/<tid>/children from the engine's own
  tree instead of reading /proc/<pid>/stat for every process on the machine,
  and keeps the full read where the kernel has no children files.

scripts/bench-start-scans.ts measures each read at a baseline ref and at this
checkout on the same synthetic data and fails when their answers differ.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Live key form was keyed by provider only, so a key typed for one
custom or Azure endpoint stayed in the input after the address changed
and could be saved for the new host. Key the form by provider and
endpoint in both the key prompt and the call settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/data/tools.ts
# Conflicts:
#	server/room-pages-point.e2e.test.ts
An await of the scutil lookup inside startServerOn let a recovery restart
and an environment switch both fork a server child. The lookup now runs
before the first launch and after each launch is ready; startServerOn
reads the last result without waiting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A secret card that is never filled keeps the chat "needs you" (by design, up to 7 days),
and the card is meant to stay in view with its answer and Not now. But the transcript
only draws its last 120 rows, so once enough rows follow the card it is not drawn at
all: the chat says it needs you and shows no button to answer or dismiss.

The window now puts the newest still-open key or connect card back on top when it has
left it behind (ChatView and GroupView).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A routine's pre-run mail check asked the connected-apps service for 50
emails per page. That answer is past the service's size limit, so it comes
back as a short data_preview with no data; the read then failed with
"the answer had no data" and the routine said "Couldn't read Gmail. I'll
try again soon." on every run, while chat (10 results) kept working.

Pages are now 20 emails. A page that still comes back shortened is asked
again at half the size, down to 5; a shortened answer at 5 is an error
that says the answer was too large, never an empty list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without Google Chrome installed, the Intel Mac, Windows and Linux desktop apps run
agent-browser's bundled headless shell, which many sites (Akamai and the like) answer
with 403. The bot only saw "1 failed request: GET / -> 403" and could not tell the
person why or what helps.

When a page document answers 403 and the browser is that shell because no Google
Chrome is installed (not the person's own Chrome), the step result now adds one line:
the bot should not try to get around the block, and should tell the person that
installing Google Chrome makes the built-in browser use it, or that they can sign in
themselves in their own browser or on their Local VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
progress() ran on every runtime event but only touched in-memory stall
state, so a running assignment's stored lastActivityAt stayed at its
dispatch stamp for the whole turn — issue #5962 saw supervision tooling
read live lanes as stalled. The row now catches up on a 10s cadence
(node and its root, one transaction, no event rows), which bounds the
write rate while making the durable field honest.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
A shortened answer asked again at a smaller size no longer uses up one
of the pages a read may take, so a read that hits shortening can still
reach the emails it is asked for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The key check reads the saved decider base URL, so sending the key and
the URL in one PATCH checked the fixture key against the real Jev API.
With network (CI) that answered 401 and the setup failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train R1 (Nov 15c): 4 of Afloat16's #5740–#5822
* Cloud computers: a command can run past the provider's 40 s limit, and ready means it answered

The provider's synchronous command call answers 502 once a command has run
about 40 s, while the command keeps running. Every command was sent that way
with a 120 s timeout it could never reach, so a build or test run failed as
"the computer did not answer" and a bot that repeated it ran it twice.

- A command given more than 30 s is started detached and followed by its
  process id to its end; quick calls stay synchronous in one round trip.
- A command still running when its call's time is up is left running and
  handed back with its process id, at most five per computer.
- After a create, wake or restart the computer has to answer a short probe
  before work is sent; a reported disk restore is waited out.
- A call that got no answer when sent is sent again inside the call, claimed
  on the computer so that it never runs twice.
- A silent computer is restarted once without needing another computer as a
  witness; deleting still needs one.
- An unattended run is held until its computer answers, or ends with the
  reason; a run whose computer went silent part-way is started once more.
- The computer panel shows whether it answers; the bug report carries
  per-computer counts.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Cloud computers: review fixes for commands past the 40 s limit and unattended runs

- Only scheduled and webhook runs are held for their computer; a run started
  by hand opens its conversation at once. Cancelling a held run stops the wait.
- The recovery's verdict is dated and read again before a run ends without a
  reason, and one from an earlier silence is ignored.
- The limit on commands left running applies only when one more would be
  handed back: that one is stopped. A command is never refused before it is
  sent; entries age out and an unreadable status does not count.
- Before an automatic restart: none when the installation's other computers
  are silent too, five minutes of silence with nothing to compare against,
  and the provider's read of the computer must succeed and say ready.
- Screenshots stay on the one-round-trip path.
- Status reads ask for 12 KB while a command runs and the whole tail once.
- Stopping the turn stops the command it was following and frees the computer
  to sleep.
- A run that ended well is left completed, with a note, when its last
  computer call got no answer; it is not run again.
- A start request with no reply reaches the bot as the usual late result.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Cloud computers: the provider stops a synchronous command at 30 s; steady the auto-sleep test

A check on a real computer showed the provider ends a synchronous command
after 30 seconds and answers 200 with timedOut, exit code 143 and SIGTERM; the
502 at about 40 seconds is its gateway giving up on a computer too slow to
answer.

- A command is sent synchronously only when its caller gives it 25 s or less,
  so the caller gives up before the provider would stop it.
- A synchronous result the provider stopped at its limit is marked as that,
  and exec says so instead of reporting the command's own failure.
- A status read that answers `known: false` is taken as a lost process.
- The fake provider models the 30 s stop and the 40 s gateway answer.
- boat-auto-sleep.test.ts: a test that ended as soon as the stop was sent left
  that sleep's log line to land in the next test's log, which then never
  matched; each such test now waits until the sleep has finished.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A file request for a secret saved with delivery ref posts a new card, but
only the bot heard why. The card now tells the person the key is saved
for OpenMausBot's own tools and must be entered again for commands.

Fixes #6027
Keep room-thread waits and failed-state checks alongside the upstream Notes-turn evidence check. Retain disabled manual-recovery routines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "Regenerate title" in the thread menu now works whether or not automatic
  generated titles are switched on; automatic titles (first message, rooms,
  calls) still follow features.llmThreadTitles.
- Select threads now has "Name by content": it asks for a fresh title for
  each selected thread in turn, keeps going past one that fails, and says
  how many were named.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit on #6030: a failed progress write could reject joinAnswer and
fail a turn that was only waiting on a sibling — the write is now
try/catch + log inside progress(), which also covers the per-event
coordinator path and future callers. And each child's first stamp in a
window rewrote the root, so the root row now keeps its own
PROGRESS_WRITE_MS cadence; a staggered two-child test covers both.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
store.get(id) sat outside the catch added in the review round, so a row
that fails to read would still propagate into joinAnswer and the
per-event bus path. The stall-window updates (turn.activeAt,
rootActivity from the turns map) now run first — they cannot throw —
and every store access sits inside the guard.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The live status line now adds "nothing new for N min" once a turn has sent no
frame for two minutes, so a stuck turn no longer reads as steady progress until
the watchdog stops it. A step that reports its own quiet state keeps that instead.
A schedule automation could only start a new conversation for each run, so a
recurring job that builds on its own earlier work spread over many threads.
App-event and webhook automations already had same_conversation; schedules
now accept it too (off by default, nothing changes for existing routines).

- trigger create/update and the routine proposal card carry sameConversation
  through to the routine; the card says each run continues the previous
  run's conversation (language packs).
- runs of a schedule with it set continue the conversation of the routine's
  previous run (previousEventThread now keys on the routine id, which equals
  the webhook id for event runs).
- refused for room goals and limit_reset routines (those already continue
  their conversation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test saves a team secret and a person's own secret of the same name
in the same millisecond; vault-store usableSecret breaks ties by
updatedAt, so the order is left to timing. Passes locally on this head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train R2 (Nov 15c): Afloat16's MCP SSE, data truncation, pause frames, Codex pin, quoted room replies
* Teammates: pass files with a hand-off, and get a teammate's files back with its result

coordinate_bots takes an optional files list (at most 5 paths and 100 MB a
message, each under attach_file's own path, type and size rules). Each file is
stored once in the attachment store under a name made from its bytes, kept on
the assignment, shown as chips on the hand-off line, and copied into the
receiving conversation's own folder under inbox/<sender>/<assignment>/ before
its turn starts, with a note that says the files are data from another bot.
Files a teammate attaches with attach_file while it works on an assignment are
returned the same way when its requester is resumed, unless the result itself
is withheld.

One assignment carries at most 20 files and 200 MB; one bot passes at most 100
files and 500 MB a day.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Teammates: read a blank or null files value as left out, and cover a computer-to-computer hand-off

Strict tool-calling engines fill every optional field, so coordinate_bots may
arrive with files as "", null or [""]: none of them names a file.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Teammates: read a bot's inbox without following links, key stored names, copy off the event loop, clean inbox copies up

Review fixes for passing files between bots.

- The conversation's inbox is no longer a read root. A file there is opened
  by its literal path under the real task-workspaces folder: every folder
  down to it must be a real folder, the file is opened without following a
  link, and the opened file must be the one at that path. A bot that swaps
  its inbox, or anything in it, for a link reads nothing through it.
- Stored names made from a file's bytes are keyed to this install and to the
  stored extension: the same bytes under another type are another file, and a
  name cannot be worked out from the bytes. Two saves of the same bytes are
  serialised, and a stored file a message shows is never removed.
- Delivery copies with fs.promises.copyFile; a copy a swapped folder carried
  elsewhere is removed. Sent and returned files land in separate folders,
  names are capped in bytes and avoid Windows device names.
- Returned files count against the returning bot's day; the day is reserved
  before files are stored. Inbox copies go when their record ages out and when
  the conversation or bot is deleted.
- The delivery note names copies as inbox/... where the receiver works in its
  conversation's own folder.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Teammates: start a turn that has no files to be told of without an added wait

Delivery became asynchronous; a turn with nothing to deliver now starts in the
same tick it did before, so other hand-off timing is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Teammates: compare inbox paths in the form the operating system reports, so delivery and inbox reads work on Windows

On Windows nothing landed in an inbox: the folder was resolved with the
JavaScript realpath, which keeps an 8.3 short name, and the written file with
the native one, which expands it, so the check that the copy landed where it
was meant to always failed and removed it. Every comparison now uses the
native form, and on Windows ignores case, as file names there do. A junction
or link is still refused: lstat reports it as a link, and the reported path of
what was opened or written cannot equal the literal one through it.

The note names a copy with the platform's own separators. Tests derive their
expected paths in the same form and make folder links as junctions.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Only command servers could carry `bot`, so a per-bot web connection
(a bot's own Linear key, say) counted against every bot's 20 and was
reachable by every bot. Remote entries now take the same optional
`bot`: it is kept through edits, listed, starts only for that bot,
counts as that bot's own, and reads as another bot's when a bot
changes servers from chat, including sign_in. When the bot is
deleted, its own connections go with it, sign-in included.
# Conflicts:
#	server/room-quoted-replies.e2e.test.ts
The restart test killed the server once the member's turn was running, but
the scripted sender writes its turn record only as its own turn ends, which
can be just after the member's turn starts. On a loaded runner the kill came
first and the sender's record was lost (main run 43736203043: expected 3
turns, got 2). The test now also waits for that record, so only the member's
turn is cut, as the test intends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Team Cloud: Slack for Team Clouds, the Cloud's side (phase 2)

The Admin hands each Slack message to the team's Cloud with a session it
opened for the member who wrote it. Three routes take it, on a Team Cloud
only (404 anywhere else):

- GET /api/slack/team/bots: the bots that member can chat with.
- POST /api/slack/team/messages: starts or continues a conversation, once
  per id. The line is sent as the member's own, the way their composer
  sends it, never the relayed, information-only kind. A channel thread is a
  conversation the member opens and shares with the team at once; a direct
  message is their private chat. The audience named in the request is
  checked against the conversation's own. A bot the member can't chat with
  answers as one that doesn't exist; a bot private to its owner is refused
  for a channel.
- POST /api/slack/team/messages/<id>/stop: the app's own stop rule.

The run's state is read from the conversation's records as they change and
reported to the Admin, signed with the bootstrap secret in its own context
(omb-team-slack-v1): running, waiting, completed with the final reply,
failed, stopped. A final report is sent again until the Admin has it.

A conversation from Slack is titled for where it came from; a channel's is
also recorded as from Slack beside its sharing and never becomes the chat
its bot opens to. What the Cloud keeps of Slack's messages is ids and
state, left out of exports and deleted when their member leaves.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Team Slack: an id in flight is its sender's, the final reply is kept for retries

- A second member presenting an id while the first send is still being
  taken got the first member's answer; now it is refused like any id that
  is someone else's.
- A completed report sent again after the Admin did not answer read the
  reply from the conversation as it was by then; the reply settled with
  is now kept in memory until the Admin has it.
- Past its cap the record of Slack messages drops what is over before a
  run it still tracks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
OpenRouter caches an Anthropic prompt only when the request carries
cache_control. When the engine's address is openrouter.ai and the model
is anthropic/*, send top-level cache_control (ephemeral) and session_id
= the thread id, OpenRouter's sticky-routing key, so a thread stays on
the provider holding its cache. Every other model and address sends the
same request as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server/cloud-computer-once.test.ts (#6001) runs the claim and stop
scripts with the test machine's own /bin/sh. Windows runners have none,
so 12 tests failed there (spawn /bin/sh ENOENT) and main's Windows
vitest shard went red. The scripts only ever run on the Linux cloud
computer, so these tests now skip on Windows; Linux and macOS still
run them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right-clicking a bot or user bubble in a chat or room opens the message
actions menu at the cursor, with Reply and Copy first. A text selection,
a link and a still-arriving reply keep the browser's own menu.

Refs #6039
POST /api/pair on a computer accepts an optional replacesToken: the
device token the phone already holds there. After the pairing
credential checks, a matching device is removed in the same save as
the new one is added, then its sessions, streams and Live call end as
on removal. The new device gets a fresh pairing's grants and keeps only
a Wi-Fi-and-Tailscale-only restriction. An unknown token is ignored and
the reply is the same either way. The device-limit refusal now says to
remove an old phone on the computer.

PairRequest joins the phone protocol.

Co-authored-by: Claude <noreply@anthropic.com>
Setting the Live call voice for one bot changed it for every bot: there
was only the app-wide config.live.voice. A bot now has an optional
liveVoice (a GPT-Live or Gemini Live voice id). The call settings show
"Voice for <bot>" (first option "Same as the default") beside the
app-wide "Default voice"; the controller uses the bot's voice when it is
the call provider's kind, else the app's. Bots without one are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oMLX ends a streaming completion with an error frame coded
invalid_tool_call or incomplete_tool_call when it cannot parse the
model's tool call. The chat runtime only recognised Groq's
tool_use_failed, so these frames became a plain protocol error and the
turn failed outright. Treat them like tool_use_failed: nothing has run
yet, so the request goes again (up to the existing attempt limit) unless
answer text already streamed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #6049
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the agents-catalog profiles.json snapshot conflict by regenerating it,
and move the one-time same-conversation card line into the language packs
(main's new server-lines check rejects English written into the code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On My Cloud, Google's sign-in for Antigravity ends on a 127.0.0.1 page the person's browser can't reach. The card
already opened the paste-the-redirect step there, but it was labelled "Signing in from another computer?", so people
read the dead page as a failed sign-in. On a Cloud the card now says before sign-in that this page won't load and that
its address goes below, and names the box "Google's page didn't load? Paste its address here". Cloud bots are told the
same, so they point at that box instead of calling the sign-in broken. Desktop and paired-desktop wording is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The registry labelled Antigravity's link-and-callback sign-in "browser",
the same label Mistral Vibe's engine-opened browser sign-in now uses, so
the setup card showed "Sign in to Mistral" and never opened Google's page.
The fallback gets its own "callback-url" label, which routes Antigravity
back to its Google sign-in card.

Fixes #6020
# Conflicts:
#	src/components/EngineSetup.antigravity.test.ts
- A routine whose cloud desktop does not start three runs in a row stays on:
  its scheduled runs are spaced out (1 hour, then 4 hours), the occurrences
  held back share one Missed row, and its reported next due time is after
  the spacing. Routines an earlier version switched off come back once per
  install when they can be told apart from ones a person turned off (not
  while frozen by a move, only within 30 days), with one quiet line per bot;
  a workspace restore stamps restored routines as changed.
- A scheduled run queued behind a busy bot ends as Missed after an hour of
  that wait; an event's or a person's run waits as before.
- Every skipped occurrence leaves a Missed row; skips for one cause share a
  row that counts them. Such a row is history, not a result: it is not the
  latest run, a failure in health, or part of the weekly count.
- The health report counts failures in a row from the saved run rows.
- Stopping a turn is given 10 seconds; after a stop that did not finish, its
  routine starts no new run until the stop is confirmed or 5 minutes pass.
- An unreadable routines.json is kept with a copy beside it, flagged in the
  app and the health report, and read again every minute; once readable,
  start's steps run again, and a Cloud home restarts instead.
- A run with no limit of its own stops after 3 hours of work (12 for a room
  goal's run); work and the busy wait are added up per scheduler pass, so a
  sleeping computer or a clock change is in neither. A routine's own limit
  may be up to 1,440 minutes.
- A run held until its cloud computer is ready adds nothing to the busy
  wait, and its "not ready" reasons never space a routine out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The one look for routines an earlier version switched off is noted with the
next save, instead of a save of its own at every first load.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A Fish Audio Live agent was always set up with speaking_language "en", so
calls answered (and listened) in English whatever the app's language was.
New agents now get the app's language when Fish speaks it (else English),
and an agent the harness set up earlier is moved to it before the next
call (draft config + publish). If Fish refuses the change the call still
starts. An agent the operator chose (OMB_FISH_LIVE_AGENT_ID) is never
changed. English users see no new requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
noVNC sent the paste shortcut on as raw keys and blocked the browser's
paste, so ⌘V on a Mac reached the VM as Alt+V and pasted nothing. The
screen now takes the shortcut first, lets the browser's paste event
bring the text (no clipboard permission prompt), puts it on the
desktop's clipboard and presses Ctrl+V there. View-only desktops get
nothing; other shortcuts still reach the desktop as keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a room is working but no bot is marked busy (the head waiting on
work it handed out), the queued message's button fell back to Stop and
send and cancelled the whole delegation tree.

Now a room's queued message asks the room to steer whenever no bot is
marked busy or the busy bot can steer; the server steers the current
speaker or keeps the message queued, and the composer says it stayed
queued and that nothing was stopped. When the busy bot cannot steer,
there is no button and the queue says it sends when the current turn
finishes. Stop stays its own button.

Refs #5937
- A connection that is another bot's own is theirs even when it is also a person's own.
- An edit that gives a connection to a bot counts it against that bot's limit.
- Removing a bot forgets its sign-ins even when forgetting Vault items fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Cloud computer tests: run the real-shell cases only where a POSIX sh is the target

The claim and stop scripts only ever run on the cloud computer, which is
Linux. Their tests ran them with this machine's own sh against real processes,
which fails on Windows runners, and a few tests held real time to bounds a
slow runner misses.

- cloud-computer-once.test.ts: the real-shell cases are skipped on Windows,
  and say why in their names. The app's side is tested on every platform: the
  script text, who may run by the claim (a model the real shell is checked
  against where there is one), and the resend rule.
- Fixed sleeps become waits on the condition; time bounds are generous or
  replaced by counts that no machine's speed changes.
- cloud-computer-tools.test.ts: the call-budget test gives the request room
  to leave on a slow runner.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* codex-update test: expect the update command for the platform it runs on

On Windows the command for a quoted executable path starts with PowerShell's
call operator, which is what the builder writes; the test expected the POSIX
form on every platform. It now asserts both forms through the builder's
platform argument, and the offered command against the host's own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's #6047 makes the same Windows test fixes as #6052 and #6014's
codex-update test change; both files take main's version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed "Always allow" save was shown as an error but the request was still
approved, and the 201st grant was silently cut off the 200-key list, so the
tool asked again next time. The save failure now leaves the request waiting,
and both save routes refuse a full list with a clear error.

Closes #6064

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On someone's My Cloud, a chat started by another person always asks before
each tool call, whatever the bot's access level, and only the Cloud's owner
can answer the card. The guest saw only Allow once / Deny and, on pressing
it, an English-only refusal.

- A waiting card in a guest's view now says the owner has to approve it and
  why. The owner's view is unchanged.
- The refusal a guest gets on pressing the card is now a language-pack line
  (serverError.card.cloudOwnerOnly) that also says why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tools/call to an MCP server that runs on a lent computer now carries
_meta["openmausbot/caller"] = { botId, threadId, verified: false }, so the
server can tell which bot and conversation called it.

Handshake so nothing older breaks: the server advertises mcpCaller, the
desktop registers mcpCaller only for a server that advertised it, and the
server puts caller on an mcp_call job only for a desktop that registered it
(older desktops refuse unknown job keys; older servers refuse unknown
registration fields). A bot's own shared_computer operation can't set it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Record turn phase timings, process CPU buckets and event-loop lag for diagnostics

One shared recorder (server/perf) splits each bot turn into queue, handshake,
time to first output, model, tool, resource, person and retry time from the
runtime events the server already has, keeps the last 200 turns and a 24 h
hourly histogram in a small file, and samples CPU and memory by process bucket
(server, engine kind, browser, cloud computer, MCP, builds, commands, other)
from /proc on Linux or one ps on macOS, plus event-loop utilization and timer
lateness.

It surfaces as a versioned `perf` field in the signed health read (at most
8 KB), a Performance section in @devs report diagnostics and in the desktop's
diagnostics export (GET /api/diagnostics/performance, admin scope), and
rate-limited [perf] log lines for slow turns, slow tool calls, usage-limit
refusals and holds, and event-loop stalls. Content-free: opaque ids, engine
kinds, fixed codes and numbers only.

Co-Authored-By: Claude <noreply@anthropic.com>

* Perf diagnostics: never fail the health read, count refused starts, fix slow and queue timing

- The signed health read, @devs reports, the diagnostics export and every bus or
  store event survive a recorder that throws: perf reads null or a one-line
  "unavailable", with one warning a minute.
- A turn refused at start (a usage limit or a sign-out, from the engine or the
  server's own hold) is finished as refused with its limit, or counted as a
  refusal when no turn ran; a move to a backup AI marks the next turn; a turn
  replaced in its thread is finished as stopped, not dropped.
- A message whose turn never starts no longer times a later turn: its wait ends
  on a refusal, a reply or failure row with no turn running, or after 2 h.
- Slow counts and slow-turn log lines leave out time waiting on a person.
- Lookups keyed by outside strings use own-property checks and null-prototype
  counters; retry reasons are an allowlist.
- Durations never go negative after a clock change.
- The graceful shutdown saves the last turns.
- Finer histogram edges below 5 s (x1.28 steps), x1.5 elsewhere.
- Engine pids the server tracks are filed under their engine, whatever their
  executable; a turn past the live limit leaves the running list, and one
  waiting on a person is finished as such.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Perf host test: inject the failure where every platform reads it

The recorder-throws case broke the process sampler, which Windows never reads,
so there the health read was a real object. It now fails the view builder
itself (an unreadable limits report), which every platform reads; the sampler
case is its own test: left out where it runs, a clean no-op on Windows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A refused typed answer and the cloud guest PATCH now return the
language-pack key with the error, like a pressed card's refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: server/index.ts (createCloudSignedHost line: main's perf: perf.health plus this branch's routines and schedule readers) and server/cloud-health.ts (both type imports kept).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Devin: find the terminal sign-in where the CLI stores it

The app looked for Devin's sign-in at ~/.config/devin/credentials.toml on
macOS and Linux. `devin auth login` writes it to the XDG data folder instead:
$XDG_DATA_HOME/devin/credentials.toml, or ~/.local/share/devin/credentials.toml
when that variable is unset. ~/.config/devin holds Devin's config.json, not the
credentials. So Devin stayed "not signed in" after a sign-in in a terminal,
and Check again never changed it.

The Windows path (%APPDATA%\devin\credentials.toml) was already right and is
unchanged. WINDSURF_API_KEY still counts as signed in.

Paths are from Devin's own documentation
(docs.devin.ai/cli/enterprise/devin-auth).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Devin: accept the sign-in in the data folder or the config folder

On macOS and Linux, Devin now counts as signed in when credentials.toml
exists in either place: the XDG data folder Devin's documentation names
($XDG_DATA_HOME/devin, else ~/.local/share/devin) or the XDG config folder
this driver read before ($XDG_CONFIG_HOME/devin, else ~/.config/devin).

The documentation and the earlier check against a real devin 3000.12.57 and
3000.12.59 disagree on the folder, and no real sign-in was available to
settle it, so the earlier folder stays accepted rather than being replaced.

Windows is unchanged: %APPDATA%\devin\credentials.toml only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Train R3: Afloat16's follow-ups to #5830, #6014, #6015, and a room restart test that waits for the sender
A guest pressing a burst card's buttons now gets the owner-only refusal
with its language-pack key, like the other card-answer routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Schedules: failures never turn a routine off; every skipped or held-up run leaves a row; a 3-hour default run limit
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
An update or an end of a pushed Live Activity no longer carries an alert,
which lit the screen and expanded the Dynamic Island; the control plane now
refuses one there. A push-to-start start keeps the alert ActivityKit needs,
with names and kind only. A phone that registers its status words
(statuses) gets the activity in its content state version 1 (version, ask,
status, waiting); a phone that does not gets the earlier shape, which the
phone app still draws. The Android data message drops its unused alert flag.

Co-authored-by: Claude <noreply@anthropic.com>
Resolves the src/locales/source-hashes.json conflict by keeping both
sides' new keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode's usage meter is the Go subscription's. At 100% it marked the
whole OpenCode engine blocked, so limit takeover started every turn on
another AI, Zen's free models included, though their allowance is their
own (as openCodeLimitFacts already says for refusals).

blockedUntil now takes the model: a full OpenCode meter holds only
opencode-go/ models (typed ones too); a refusal still holds them all,
and other engines are unchanged. Takeover and failover pass the model.

Closes #6077

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve src/locales/source-hashes.json: keep main's routines.* hashes and this PR's engineSetup.cloudPaste* hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BurstCard showed its general try-again line for every failed press, so a guest whose Run was refused never learned only the Cloud's owner can answer it. It now shows the refusal's serverError text and keeps the general line when the server names no reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/routes/bot-patch.test.ts
#	src/locales/source-hashes.json
# Conflicts:
#	server/routes/bot-settings.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/source-hashes.json
On a Team Cloud an admin session sees everyone's shared bots but not another
person's private one. The address route already answered 404 for a webhook on
a bot the caller cannot see; test, rotate, update, delete and create did not.
They now answer the same 404. Everyone who sees everything is unchanged.

Co-authored-by: Prit Patel <pritptl2412@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/de.json
#	src/locales/en.json
#	src/locales/pt-br.json
#	src/locales/source-hashes.json
#	src/locales/zh.json
* Schedules: a ledger of every scheduled occurrence; catch-up with a rule; a watchdog for lost turns; the health report's schedule section

Each scheduled occurrence of a routine gets one record, keyed by the routine's id and the scheduled-for time, in
routines.ledger.jsonl beside routines.json: queued, running, then ran, failed, missed or skipped, with a fixed reason
word, the number of starts, the first start's time and the run rows it produced. The run rows stay in routines.json,
so a row and its routine's next time still commit in one write and an earlier version reads the file as before; the
ledger is worked out from the rows at every save. A start is appended and flushed before its turn begins, and the
scheduler asks the ledger before it makes a row for an occurrence and before it starts one, so an occurrence starts
once across a restart, a clock change, a file put back from a copy, and a second process on the same files.

After downtime the newest occurrence of each routine runs late when it is within 12 hours of its time, and the older
ones close on one missed row that counts them and says why; late starts found in one pass begin 15 seconds apart. A
run whose conversation has had no turn for five minutes of scheduler passes is started again once or failed. A running
record carries a lease, so a copy of the disk on another machine waits before it starts that run again. A ledger older
than the mark beside it came from a backup: what had its turn before the restore is not run again.

The signed health report's schedule section is now the versioned one (v, seq, unreadable, nextDueAt,
oldestUnconfirmed, lastConfirmed, due.boot, due.day, and slowStops), computed from the ledger at each read.
GET /api/routines?history=<id> adds that routine's occurrences.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Schedules: the unwritable-ledger tests say they hold on Windows too

They put a folder where the ledger file should be, which fails an append and a read on every system; naming Windows
in them also runs this change on the Windows shards.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Schedules: the missed-run chat test uses a daily schedule, where nothing runs late in its place

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Schedules: a start that finds nothing changed writes nothing to the ledger

A record read back from the file lists its fields in another order than one worked out from its row, so every start
wrote each record again. Records are now compared field by field, and a test pins that an unchanged start leaves
routines.json, the ledger and its mark as they were.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Schedules: the catch-up test no longer bounds its run by the wall clock

On a loaded machine the bound failed with the answer right; the test's own time limit still stops a walk of the whole month.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Schedules: review fixes for the ledger, the catch-up reason, the health report and the watchdog

A ledger that cannot be written never stops a schedule: no write of it fails a save or a start any more. A scheduled
start waits at most three passes for it, then runs without a record, as every later one does until it can be written
again, with routines.json alone keeping a run from starting twice; the health report says unreadable meanwhile.

A record closed without starting, written while the clock was ahead, is cut back to now, and again to just before an
occurrence that comes due inside it, so nothing after the clock is put right is taken for decided; a record's age is
never negative. An empty ledger beside its mark is made again from the rows and is no restore. The health report is
still answered when the scheduler's part of it throws. A pass that got to a routine late because it was waiting on
another run's start says so, and what it passed over is not counted as missed. A turn parked for a computer, which
resumes by itself, counts as a live turn, so its run is not started again beside it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Schedules: the ledger's writability check looks at what it opened

Windows opens a folder of the ledger's name for appending without an error, so a start was not held back there. The
check now asks whether what it opened is a file, and a start whose own record could not be written marks the ledger
as unwritable for the report.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The takeover notice took the engine-wide reset, so a Zen free model held by
a refusal showed the Go meter's later reset. resetAt now takes the model the
same way blockedUntil does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three Slack routes and the signed reports now work on a My Cloud,
called with the owner's own session. Both audiences land as the owner's
ordinary conversation through acceptDirectSend: no audience check, no
bot_private, nothing shared. A conversation a channel opened stays out of
the bot's main-thread choice, by an id list in team-slack-messages.json.
A Team Cloud is unchanged, and an install that is no Cloud answers 404.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The complete Portuguese pack must keep every English key (i18n.test.ts activePackComplete).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the source-hashes.json conflict by keeping both sides' new keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Your other computers: findable in Simple mode, correct wording, address in the pairing dialog

- Phone & devices shows a "Your other computers" row in both modes, as its own
  card. Its switch turns Tailscale on first when it is off; a Tailscale that is
  not installed, not running or signed out leaves it off with the Tailscale
  check's own message. Settings search finds the row without Advanced mode.
- The Pair a computer dialog shows the address with the code, and Copy link is
  its main button. The row above it no longer reads "Your phone".
- Connect to a server says where another computer's link comes from, and the
  two errors that said one desktop app can't connect to another now point to
  Your other computers first and My Cloud second.
- The HTTPS address row shows only where an address is held or on, or on a
  build without the encrypted connection.
- Keep this computer awake holds while Your other computers is the only way in.
- Phone-only wording no longer says "or another computer"; the wrong-code line
  names a real button.
- docs/desktop-companion.md is rewritten around the Tailscale share.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Your other computers: review fixes

- pt-br is a complete pack again: the nine keys this change touched or added
  are translated, with their source hashes refreshed.
- The share's switch is handled in the main process. Turning it on with the
  Tailscale route off turns that route on marked as the share's, without
  waking the phone link; turning it off turns a route so marked off again
  unless a device is paired. A route the person turned on is never turned off.
- A computer waiting for its tailnet's approval is told apart from one signed
  out, with its own line.
- With the share on and nothing answering, the row shows Tailscale's reason
  (MagicDNS, sign-in) in place of "isn't connected yet".
- The HTTPS address row is decided from the route, the account's held address
  and the build (the bridge's renewPairing), not from the running phone link.
- serverError.pair.oldCode is worded for every kind of server.
- The keep-awake condition is a tested helper (electron/keep-awake.mjs).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
boat.dev replaced its old logo with the sailboat and "boat" wordmark
(boat.dev/brand/primary-logo-wash.svg). The README's sponsor block now
uses it: the white version in dark mode, and the same mark in #111111
for light mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/locales/source-hashes.json
Train S4 (Nov 16): 14 contributor fixes — CLI, data, rooms, Mistral/MiniMax/oMLX, right-click menu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- routes/webhooks.ts: creating a webhook into a bot the caller cannot see now gets
  the same answer as a bot that does not exist (cloud-team-privacy-holes e2e
  compares the two), instead of a 404 that told them apart.
- ChatView.live-status.test.ts: after ten silent minutes the status line now ends
  with "nothing new for 10 min" (#6043's passive note).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hovering a Simple bot row opens a small sheet beside it with New thread
and the bot's three most recent open conversations; a bot with nothing
else open shows a + beside its menu button instead. The sheet floats, so
the list never shifts under the pointer, and the same control opens it
from the keyboard. Phone-width windows are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Leaving the row for the sheet scheduled the close after the sheet had already cancelled it, so the sheet shut under the pointer. The row and the sheet now ignore a pointer that only moved to the other one. A scroll outside the list that holds the row no longer closes the sheet, and the disclosure drops its tooltip while the sheet is open.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A reply with a table grew to the message's width for the table while its
paragraphs, headings, lists and rules stopped at the reading width, leaving
an empty band beside them. Prose now widens the reply only up to the reading
width and then fills whatever width the tables gave it, in Simple and
Advanced mode, in a bot chat and in a group. A reply whose table is narrow,
and a reply with no table, keep the widths they had.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
In a bot chat the compact page card now shows only the page preview and a
footer with the page icon, its title and "Page". The whole card is one button
that opens the page beside the chat (Enter and Space too, with a focus ring);
pressing it again closes the page. About this app and Reload stay on the card,
shown on hover, focus and touch. The version stepper, Point, Share, Save and
Open in new tab are in the opened page's toolbar, as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each conversation in the sheet shows Archive and Delete in place of its time on hover, focus and touch. They dispatch what the thread row's menu does, with the same confirmation before deleting and the same lock while the conversation is working. Arrow left and right move between a row and its actions.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Simple-mode section line showed how many rows it holds at rest and
crossfaded to the chevron on hover. The number said nothing a glance at
the list does not, so the line now shows only the chevron on hover,
focus and touch. Attention marks on a collapsed section are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
POST /api/bots/:id/context answers { threadId, breakdown }. The breakdown is the
engine's own count (ProviderAdapter.contextBreakdown), read from the live Claude
Code process with a get_context_usage control request in summary detail, which
makes no model or token-count call. It is null when the thread has no live
process, after Start fresh, and on every engine that does not count its window
by category. Nothing is stored.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The composer gets one button that shows how full the conversation's context
is and opens a small panel: the share used with a bar, tokens of the window,
Compact context and Start fresh. Both actions are the ones the chat already
had (the 80% warning's compact and the menu's Start fresh), on the same
routes. In a room every bot keeps its own context, so the panel lists each
bot measured there with its own compact.

A reading taken before the conversation was summarized is not shown. What
fills the context by kind is listed in Advanced when the reading carries it.

The Usage line of the chat menu keeps the cost and no longer repeats the
context share; its tooltip still has the full detail.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The panel asks POST /api/bots/:id/context when it opens and maps the engine's
categories to the rows people read. With no count it keeps the total alone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The control-frame writer and the live-session check move from claude.ts to
claude-context-usage.ts, so claude.ts is back at its listed 2085 lines with the
same behavior. POST /api/bots/:id/context needs the chat level, as /compact
does: a member who can only view the bot is refused.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The driver logged every CLI frame before the context reader consumed its own
answer, so each read left a control_response in native/<thread>.ndjson. The
reader now takes every answer to its own requests first, including one that
arrives after the caller stopped waiting, and the driver neither reads nor
logs it. The request itself was never logged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The meter read the last turn's snapshot while the rows came from the count just asked for, so the two could disagree.
With the panel open the meter, the bar, the token line and the button's ring now all use that count, and fall back to
the snapshot only without one. A count from before the conversation was summarized or started fresh is not shown.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
After a compaction the engine process kept for the conversation still holds
the full history until the next turn starts a session on the summary, so
POST /context answered with the count the summary had just replaced. The
route now treats that window like Start fresh: a summary newer than the one
the session was started on gives no breakdown.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The clean card ended its preview on a hard rule. The foot of the preview
now blurs and fades into the card surface, the rule is gone while a
preview is shown, and the card carries the float shadow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The pinned strip sat as a translucent band over the top of the
conversation. A pin button beside the computer button now opens a menu
with the pinned message; picking it jumps to the message, and it can be
unpinned from there. Bot chats and rooms share the menu.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The chip was a 10% accent wash, so the page showed through it. Its fill
and border are now the same tint mixed into the composer surface, and the
note field under it is filled too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A summary only reaches the engine's session with the next turn, so a count
asked for in between still describes the conversation as it was before. The
panel now neither asks for nor shows one until that turn has ended.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The page pane stopped at the top of the whole composer dock, so two
attachments or a pointed part squeezed the page and left a band where the
conversation showed through beside them. The pane now ends at the message
box itself; chips and attachments sit over the page.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The glaze and the ring already set the card apart; a card in the page takes no shadow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
README: Boat's new logo
* fix(antigravity): harden the Google sign-in, sign-out and session setup

- The welcome screen's button opens the Connect an AI dialog for this
  sign-in instead of waiting on a status the engine never gave.
- The sign-in has a readable state (waiting, verifying, succeeded, failed,
  expired, cancelled) with fixed reasons; the setup card says when it
  expired and offers to start again.
- One redirect per sign-in: a second one is refused, and a redirect that
  cannot be delivered ends the sign-in.
- The paste-the-redirect field stays visible while the card waits, and the
  button reopens the same Google link.
- When the runtime asks for a sign-in during a turn or a model lookup, the
  turn fails at once with the sign-in message, its process is closed and
  the account reads signed out until a new sign-in is stored.
- Sign-out stops the account's running runtime, asks the runtime to log
  out, then removes the stored sign-in.
- Runtime 1.4.2 to 1.4.5 gets run_workflow turned off in the session
  setup, so it no longer writes a skill file into the bot's folder.
- The launch environment drops an inherited crash-reporter pipe, names a
  certificate bundle on Linux, and a sign-in checks the browser helper.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(antigravity): review fixes for the sign-in hardening

- A sign-in that succeeds without rewriting the stored token clears the
  signed-out mark, so the engine reads signed in again.
- A redirect that cannot be delivered no longer ends the sign-in: the
  browser may already have delivered it, and the runtime's own outcome
  decides. The redirect can be sent again.
- The sign-in-required error is read only where its code and its words
  agree, as other engines' drivers do.
- The sign-in helper check accepts the marked link among other lines and
  names the reason when it fails.
- Sign-out returns at once: the stored sign-in is removed first, the
  account's runtime is stopped, and the removal is repeated once those
  processes are gone. It no longer starts a runtime to log out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(antigravity): a sign-in helper that cannot be started gives the same message on Windows

Windows refuses to start a script without a shell with a synchronous spawn
error. The helper check now turns any start failure into the "Google
sign-in cannot start" message with its reason. Its tests run on every
platform with the app's own program as the helper.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Unpinning the last message closes the menu and moves focus to the next header button, so a later pin
starts with the menu shut. Type-ahead jumps to a row and Tab closes the menu back onto its button.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/components/EngineSetup.tsx
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Bots can show a setting's own control in chat: app_settings show_card, first card Your other computers

- app_settings gains show_card with a card id from a fixed list. The server
  posts a text row that names the setting only; the window draws the same row
  the Phone & devices page draws and talks to the app itself.
- The bot hears one fixed status (shown, and on or off). The code, link and
  address the control shows never reach the tool result, the stored row or
  the transcript an engine reads.
- Only in the owner's own turn, and within the turn's change budget.
- On a Cloud or a headless server no card is posted and the bot is told where
  the setting lives. A window that is not on that computer draws one line.
- Adding a card is one id, one server entry and one window entry.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Tool catalog goldens: app_settings with show_card

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Settings card: review fixes

- In a room, where no control is drawn, no row is posted and the bot is told
  where the person finds the setting.
- The bot's guide no longer assumes a switch: if the card shows one, turn it
  on there; otherwise open MausBot on that computer.
- The bot is never told the setting is off: the server knows on, or cannot
  tell (off, or on with nothing answering yet).
- The guard test's title says what the guard checks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The answer of a superseded request was written to the per-conversation cache
before it was checked, so a panel mounted afterwards showed the older count
while its own request was pending. Each request now takes a number per
conversation, and only the newest one may write.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Simple mode shows the share used and the two actions, and asks the engine
for nothing. Advanced adds the tokens, the list by category and the
provider's own compacting note, as DESIGN.md section 13 asks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The chevron sat at a physical right offset, so in a right-to-left layout it would not follow the row. It, the row's "…" button in Simple mode and the room they reserve beside the name now use logical offsets.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Section 13 says Advanced adds and does not rearrange. The hover list on a bot row exists only in Simple mode, because Advanced shows the same threads as a tree under the row; the rule now says so.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The pinned messages button is one: without a pin the header is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Train S3 (Nov 16): 9 contributor PRs + a minimal webhook visibility fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main grew wire.ts to 999 lines; #6057's liveVoice field and its comment now share one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The staging copy warm-up never reached the copy electron-builder writes,
so the first version check inside a fresh bundle could hit its 10 s limit.
One discarded long-timeout run against the packaged copy absorbs that
first-launch assessment; the real check is unchanged.

Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit 8d6c2d2745d1522ed7c454b3b717a48aed9b683c)
Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit ff218f73a70f06c879bb257668388d5c10f94199)
(cherry picked from commit d3775fe245ce2ebfd4947b68cb7eb67382f0c2e7)
Name each pinned page in the frame bar while every name fits in its free
half, and fold them into one button that lists them when they do not. Nothing
is drawn before a page is pinned.

Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit 48b895f73cb4d4a6e72fb1757a64ca0ce0ac019e)
Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit e6041ef0b7e48f662b3c2cbc85420649fcb5080c)
(cherry picked from commit 9b3243c1c6996ab888bc41716bd880f30d53a998)
The place arrives after this bar draws; until it does the fit rule sees no
place name and may name pages the bar cannot hold. Re-run the rule when it
comes, with a test for that first paint.

Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit 0c52d0eb6b0ea9b0100207df763fa7dfdeb2eaee)
The room pill divided tokens by a window the app can only guess for a
custom model, so a 152k reading showed as 119%. The engine's own token
count needs no window, so show it in the room pill and the avatar hint.

Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit 1ac5f971b1003ef0c18ef1ee6493481eff59b57c)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	shared/person-wait.test.ts
The selected bot or room row only tinted bg-raised, which vanished against
the panel. The avatar now gets an accent ring with a panel gap.

Co-Authored-By: Claude Code <noreply@anthropic.com>
(cherry picked from commit 24d244a4a2c2455316e3728dafe318cc0a19bca6)
Wayne found the selected bot and room rows too close to the panel to spot.
They now wear the same mark the Inbox uses for the conversation the chat
window has open: a tint, a left accent bar and an inset outline, from one
shared class so the two lists cannot drift apart.

Co-Authored-By: Claude Code <noreply@anthropic.com>
* Sidebar: this computer's bots and My Cloud's in one list, behind an early switch

Settings → MausBot Cloud gets one switch, "This computer and My Cloud together", marked Early and off by default.
With it on, the sidebar of this computer's page and of My Cloud's page also lists the other place's bots in a group of
their own ("On My Cloud" / "On this computer"); bots that live on My Cloud carry a small cloud beside their name. A
click on one opens that place at that bot.

A page can only talk to its own place, so the main process joins them: it reads the other place's bots as the
signed-in person (background work, never asking a sleeping Cloud), keeps the rows, and hands them only to this
computer's own page and My Cloud's own page. With the switch off it reads, keeps and sends nothing.

Rows are keyed by home and id, since ids are unique only within a place; every row carries its home.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Together: lists belong to one Cloud and account; a sleeping Cloud is never asked; review fixes

- Rows are kept for the Cloud address and account they came from. A change of either, or a sign-out, drops the rows,
  any read still under way and any waiting click at once, so another account never sees or opens the last one's bots.
- My Cloud is read only right after the Admin said it is awake (the session is refreshed just before each read), at
  most once a minute, and only while the window is focused and the screen is not locked. A home that agreed to sleep
  now answers a background-marked GET /api/bots with the "asleep" answer, as it does for Files and lending.
- A click's wait ends on a timer, when main's switch ends with the window still on the page it left, and when the
  person goes back to that page, so "waking" never stays and a later open of My Cloud opens it as it is.
- A Cloud this window is not signed in to (401/403) says "Open My Cloud once to sign in." and is not asked again until
  it has been opened.
- A bot hidden from the sidebar has no row in the other place either.
- Only this computer's page turns the switch on; either page may turn it off.
- The list helpers nothing used are gone; rows carry `home` and are keyed by home and id.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Test: the background-command sleep test waits for its second look instead of counting after a fixed 3.5 s

On a slow Windows runner only one look at the running command had happened by then. The test still waits the 3.5 s,
then waits for the second look before checking the computer stayed on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The sheet's top was computed for 30px rows, so on a touch screen, where rows are 40px, a bot near the bottom of the
window opened a sheet that ran past the edge. The delete confirmation kept the conversation as it was when the dialog
opened, so one that started working meanwhile was still deleted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The row that was focused leaves with the closing menu and the jump only scrolls and highlights, so focus fell to the page.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The MiniMax driver carried MiniMax's models but not its thinking controls, so
the picker could only send what OpenAI's shape allows. MiniMax takes its own:
reasoning_effort for the depth on MiniMax-M3.1-Flash, and thinking: { type:
"disabled" } to answer straight on MiniMax-M3.

The driver now offers both as variants of the model they belong to, and the
OpenAI chat runtime takes a reasoningOffBody so a provider whose API has no
reasoning_effort: "none" can answer the reasoning-off route with its own
switch. MiniMax's API answers 400 to reasoning_effort: "none" and to a
disabled thinking on MiniMax-M3.1-Flash, which always thinks, so neither is
ever sent.

The rest of the driver is unchanged, and the key still comes from the same
place: MINIMAX_API_KEY, mmx auth, or the instance URL.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Picking a branch while idle changed neither the number of summaries nor the busy state, so the panel kept the count
taken on the branch that was left and never asked again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- The save no longer waits for the bot's turns to end. Added access applies
  from the next turn; removed access may stop sooner where tools recheck it.
- Settings keep the switches open while the bot works and say so.
- A local script with no paired session still cannot widen access while any
  bot works.
* fix(antigravity): a turn that hit a quota or upstream error fails with the usage-limit notice

Antigravity reports an upstream failure as an ordinary chat message and
ends the turn normally, so the turn looked like a reply. Its own session
log ends that turn with an error step.

- The driver starts a watch before session/prompt and reads, read-only,
  only the steps that prompt added to the session's own unlinked log.
- A quota or rate limit fails the turn with the usage-limit notice and its
  reset time (limitResetsAt); any other upstream error fails it in the
  usual plain words. A typed refusal fails the turn without the log.
- The shared ACP runtime gains one optional per-driver hook
  (promptOutcome); engines that set none are unchanged and core.ts keeps
  its line count.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(antigravity): review fixes for the turn-outcome reader

- A quota holds the models that share the allowance that ran out, not
  the whole account: Gemini keeps running when the allowance other models
  share is used up, and the other way round.
- A reset time is taken only when it lies in the coming eight days;
  otherwise the delay beside it is used, under the same bound, or none.
- The log read is bounded: a step that is no error is not loaded, an
  error step over 1 MiB and a log over 256 MiB are not read, and the turn
  then ends as the runtime reported it.
- A turn that adds no step is not failed by an earlier turn's error step
  (now tested).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The compact card covers its preview with one button that opens the page,
but the preview's frame stayed in the tab order, so Tab could land on a
control the page draws and Enter would press it without opening the page.
The preview is now inert while that button is there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Cloud computers: a disk that is running out is noticed and its caches cleared

A cloud computer's disk is read with df from inside it: on the ready probe
or beside a turn's computer call, at most once in ten minutes, and at once
after a call whose text reports a no-space error. A reading that fails or
takes over three seconds means unknown and holds nothing up.

At 85% used a fixed cleanup runs detached under a five-minute limit, at
most once an hour: apt's download cache, journal logs down to 50 MB,
dangling docker images, docker build cache, pulled docker images no
container uses, the npm, pip, yarn and pnpm cache folders, and the user's
own /tmp files older than a day. No volumes, containers, locally built
images or files under the home folder outside those cache folders.

The bot reads one line at the end of a computer call's result after a
cleanup, the largest folders when the disk is still at 90%, and that
writes may fail at 95%. The computer panel's state line gains the figure
from 85% and the time of the last cleanup. An unattended run whose
computer was last seen at 85% waits, bounded, for the cleanup first.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Cloud computer disk: caches only at 85%, a second tier at capacity, and a reading before every scheduled run

The cache tier no longer touches docker images or /tmp. It clears apt's
downloads, journal logs, docker's build cache and the four package cache
folders, only for the filesystem that is full, skips a cache while an
installer runs or pgrep is missing, never starts beside a computer call
or a command a bot left running, backs off for a day when it freed next
to nothing, and keeps its stamp on the computer so a restart or another
app on a shared computer does not clean again.

At capacity (95% after the caches, or a write that still fails) a second
tier frees space until the root filesystem is under 80%: the caches,
then docker images no container uses and old stopped containers, then
whole top-level /tmp entries, stalest first, never one that is in use or
was modified in the last six hours. The bot is told what was removed,
with names quoted as data.

Before every scheduled run the gate holds, the disk is read afresh and
the tier it calls for is awaited for up to five minutes, with the run's
stop signal. The run starts in every case and gets a note when the disk
was still full.

Folder names reach the bot only as quoted basenames from inside the home
folder, without control or formatting characters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Cloud computer disk: the capacity tier deletes less, and scheduled runs wait for it properly

The /tmp stage now keeps any entry with a mount point at or below it,
does nothing when /tmp is a link, checks every process's folder, root,
program, open files and mapped files, and counts an unreadable process
list as in use. It is left out unless every process can be read, and
does nothing when docker is installed but did not answer or a running
container mounts /tmp or a folder above it. An entry is made writable
before it is deleted and reported only once gone; a leftover holding
folder is cleared; the stage stops when its first removals freed
nothing, and reports everything it removed.

Containers are removed one by one by when they ended, not by when they
were created, and images are pruned only after that, so a container that
has just stopped keeps its image. Their names are in the bot's note.

The tier starts on a reading taken just before it, the script checks the
level itself, and a failed write counts only with a reading at that
moment and only once.

A scheduled run waits up to five minutes for a busy computer to go
quiet before freeing space, then waits for the freeing to end, so it
never starts while a script is still deleting. Which routines use a
cloud computer is kept in a small file, so the first run after a
restart is held and checked too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Each profile is main's bytes + 10 (the schedule wording in same_conversation's description); the sha256 values are
the ones CI computed for this train (run 43782320284).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	electron/main.mjs
#	src/locales/source-hashes.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/locales/source-hashes.json
The settings backup keeps dated copies of config.json beside it, and config.json holds every
credential of the install, so a copy of it holds nothing the settings file does not. The
secret scan now skips those copies, so the assertions keep their meaning: the key is in
the settings file and nowhere else, and nothing keeps it once it is removed.
The sidebar had no error state, so a failed turn showed only the mascot's
alert face and nothing told it apart from orange "waiting on you". A bot
whose shown conversation ends on the failed-turn row now gets a red
"Ran into a problem" dot on full rows, Simple rows and tiles. Orange stays
for waiting on you; a question for you or a new turn wins over red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a voice is ready (this device's voice, or a voice service with a
voice picked), bot replies in chats and rooms get a speaker button next
to copy, and the "..." menu no longer lists Read this aloud. While no
voice is set up, the menu keeps the disabled item with its setup hint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a move to a server of the person's own, this computer's copy is frozen and the
window goes back to that server. Meanwhile the screen said "Opening My Cloud…" (and
"Can't reach My Cloud right now." when it didn't answer), naming a place the bots are
not on. The screen now names the server, as it does for a team's Cloud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Together: the + asks where a new bot lives

With "This computer and My Cloud together" on, the + menu's New bot names the place on screen and a second item makes
the bot in the other place. The other place opens and makes the bot itself, with its own defaults, models and plan
limits; main never posts a bot. One quiet line under the other place's item says what differs: which AIs are signed in
on one side only, that no AI is ready there, or that My Cloud is asleep and will be woken.

With the switch off the menu is as it was.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Together: a new bot is made only as the direct result of the click; review fixes

- A waiting click (a new bot, or a bot's open) ends when the window goes anywhere but the place asked for or the
  screen shown while My Cloud wakes, when main's switch fails or ends on another page, and when its time runs out. A
  new bot waits only as long as a wake takes (45 s).
- A place says in its bots answer that its page makes a new bot when asked. A Cloud from before this shows the item
  disabled with "My Cloud needs its next update for this.", and main refuses the request for it.
- The page told to make a bot says it heard; the preload forgets a request nobody listened for after ten seconds, and
  main tells it to after the same time, so a sign-in document or an older page never makes one later.
- The line that says what differs uses one rule on both sides: installed and signed in, never an AI that only works
  through free no-login models. A name that holds an email address is shown as its engine's name.
- The other place's AIs are read with its list's own read, only once the + asked, at most once a minute, under the
  list's sleep and sign-in rules. Opening the + again asks nothing more.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
CodeRabbit review: the row's aria-label overrides the red dot's own
label, so screen readers never heard the failure in icon-only rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
API-key chat engines (DeepSeek, Gemini...) waited for every MCP server to
start before the first model request, so one slow server delayed every
turn by seconds. With the agents server mounted, the chat runtime now
waits only for the agents server, the computer and the built-in browser;
other servers keep starting and their tools are added from the next
round, with tool names kept stable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train S1 (Nov 16): AdityaUmale #5991–#6045
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/live-config.ts
#	src/components/LiveCallSettings.tsx
#	src/locales/source-hashes.json
Addresses CodeRabbit review on #6142.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Antigravity runtimes before 1.5.1 offer their non-Gemini models only to
ACP clients on an allowlist of editors, so those models were missing from
the picker.

- The Antigravity driver, and only it, names an allowlisted editor in
  initialize for a runtime before 1.5.1 or of unknown version, for turns,
  the model lookup and sign-in alike. From 1.5.1 on it sends our own name.
- One switch, ANTIGRAVITY_EDITOR_CLIENT_NAME, on by default; off, every
  runtime gets our own name again.
- The shared ACP runtime gains one optional per-driver hook (clientInfo);
  engines that set none are unchanged and core.ts keeps its line count.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The failed dot already outranked the queued state, but the row's preview
line still said Queued. Apply the same failed-first order there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot with no backup model chosen was still moved to another AI at a usage
limit: limit-takeover backups() added the AI a new bot would get among the
other plan AIs. Now only the bot's own backups (and the Automatic recovery
backup) carry on; with none usable, the bot waits for the reset and the
notice says no backup it chose can take over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The blurred band over the foot of the preview read as broken rendering:
where the mask is not blended into the backdrop blur, the band starts on
a hard line and smears the page for 80px. The preview is shown as it is
to its edge again, and the footer keeps its hairline rule.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- A searched tool and a tool-search tool keep the name they were first
  listed under when servers join later, so earlier calls still reach the
  same tool.
- When servers joined this round and the provider refuses the larger
  list, the tools are listed again within its limit even after a call.
- Tests wait for the servers they depend on instead of fixed delays, and
  pin the stable names and the refit after a join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Work sent from a room to several of its members now runs in parallel
lanes unless features.parallelRoomJobs is set to false. No new setting:
the existing flag flips its default, and false keeps the old
one-at-a-time behavior. Lane jobs get the room bulletin, and work sent
into another room stays in that room's thread.

Refs #5936, #5937.
A collapsed department line drew up to three 9px pills side by side. It now shows one dot, the most urgent of waiting, unread and working, in a fixed column; the counts stay in the screen-reader label and the dot's title. The name moves to the 13/18 row size and the ⋯ button to a 24px target.

Refs #5941
After opening another conversation from the sheet, it showed neither the
main conversation nor which one was open, so Simple had no way back. The
main conversation now leads the list, outside the limit and without
archive or delete, and the conversation on screen carries the menu check
and stays listed when newer ones fill the limit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Train S2 (Nov 16): Aditya #6046–#6083
botPreview reads bot.waitingForTeammates itself, so a bot whose last turn
failed while a teammate wait was set showed the red dot beside
'Waiting on a teammate…'. Failed rows now use lastLine, like the dot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn on an OpenAI-compatible or other chat-family engine stopped after
64 model rounds even while it was still making progress. Drop the round
limit; a runaway turn is still stopped by the 200 tool-call cap, the
announcement-nudge limit, the corrective-round limit and the repeat guard.
Remove the now-unused stepCap engine capability.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/host/limit-takeover.test.ts
Since main's new test was written, a limited AI only hands its turns to a backup the person chose, so the
Go subscription's limit holds the model only when one is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mountChatTools takes an optional onSettled, called with a server's name once its tools (or failure) are
recorded and join would take them in. The tests gate the agents server and the model's replies on it,
instead of a file the fixture server wrote after answering tools/list, and start the built-in after the
first assertion. A tool-limit refit resends only when it listed fewer tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed ordinary tool step counted as a plain step, so Simple mode's
preview replaced it with an earlier bot message while the dot showed the
failed turn. plainStep now skips steps with tool.ok === false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Bots on this computer and on My Cloud hand each other work over one standing link

Behind the "This computer and My Cloud together" switch. The computer's
server asks My Cloud and both directions travel over that exchange; each
side learns the other's bots; a message or an assignment crosses with
its result, once, and waits for a computer that is off.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* The bot link's hook in the sign-in change is guarded as its neighbours are; work held for a place that was away is not expired by the look that finds the place back

electron/main.mjs: the account-state change told the bot link with a bare
`botLink?.look()`. electron/updater.test.mjs runs that part of main.mjs
in a sandbox, where the name did not exist (ReferenceError on every
run). The call is guarded like the hooks beside it, the sandbox is given
a bot link, and the test now checks that a change of the sign-in is told
to it. main.mjs keeps its line count.

server/runtime/runtime.ts: a queued assignment for a place that was away
had its queue window measured from the last look that saw the place
away. When the look that first saw the place back came later than the
window (a slow write as the place returned), the work failed as "never
started". Seen on the Windows shards in server/bot-link/link.test.ts
("the computer is off ..."). The windows now start when the place is
first seen back. server/runtime/runtime.test.ts holds it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
A direction that names an inherited key, such as "constructor" or "__proto__", passed the lookup: the phone was sent `input swipe NaN NaN NaN NaN 260` and the call answered "Swiped constructor".
connectorScopes gains accounts: { <toolkit>: [connected-account ids] }.
In an app with a limit, connectorAccessDecision refuses (reason "account")
any call that does not name an allowed id in its account field, so the
relay, the dispatch re-check and the other scope checks all apply it.
Apps with no limit behave as before.

- connectorCallsIn keeps the multi-execute item's account
- prompt names the allowed account ids per limited app
- PATCH treats dropping a limit or adding an account as loosening
  (widensConnectorScopes)
- Access settings: per-account checkboxes when an app has 2+ accounts

Feature requested in email 1a1dfbea (bug inbox).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While only a saved Gemini key decides, Settings snapped a picked OpenRouter
back to Jev (the status's provider is "gemini", which the picker reads as
Jev), so OpenRouter's key field could not be reached. `chosen` now carries
OpenRouter in that case, as it already carries Jev for the shared OpenRouter
key. Test with no draft said "Jev answered" or "Jev rejected this key" when
Gemini had answered; it now names Gemini (en + pt-BR).

Tests: a set-up custom endpoint, with each of its three protocols, still
wins over the Gemini fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(antigravity): show the Google account's 5-hour and weekly limits with the other engines' usage

- An Antigravity instance signed in with Google gets a row in the usage
  report: Gemini's own 5-hour and weekly windows lead it, and every other
  allowance the account has is listed by family beneath.
- It reads only the instance's own stored sign-in. The access token stays
  in memory and request headers; it is never logged, written or returned.
- When nobody is signed in, Google refuses, or nothing usable comes back,
  there is no row and no message.
- One switch, ANTIGRAVITY_USAGE_LIMITS, on by default.
- The row does not hold the engine or route turns away from it; a refused
  turn still does that.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(antigravity): review fixes for the usage limits row

- The whole read (refresh, summary and fallback) shares one deadline of
  eight seconds, and a host that never answers no longer holds the other
  host's answer.
- A sign-in Google refused is not posted again for a quarter of an hour,
  or a minute after a failed attempt, unless the sign-in changed.
- A bot's usage_limits tool names Antigravity's two leading windows as
  Gemini's, and says the limits could not be checked just now when the
  account has no row, instead of saying it reports none.
- The limit clock no longer asks for the usage of an engine it cannot
  hold; a report of more accounts serves a caller that asks for some of
  them, so the clock and Settings still share one read.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The specialist's limited AI now hands a hand-off only to a backup the person
chose, so the test sets Codex as that backup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An originless local-API request could widen a bot's account list while a
bot was working in a room, because the recheck looked only at each bot's
busy flag. It now also counts active room turns, like the per-bot checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Files travel with hand-offs between this computer and My Cloud, both ways

A file passed with coordinate_bots reaches the receiving conversation's
inbox on the other place, and a file the teammate attaches comes back
with its result. Bytes cross by requests the computer makes, apart from
the frames, under attach_file's own type and size rules.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* The link's waiting test shortens only the clocks of the place that holds the waiting work

The computer in this test starts its work only after it is back. With its queue
window at 80 ms, a host that took longer than that between taking the hand-off
and its next tick (a slow disk in CI) expired the work as never started.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every peer result, wait_until completion, or routine report landing on
an ACP task cleared its resume cursor because the adapter never declared
strictResume; the next turn rebuilt the session from scratch and long
conversations lost their earlier turns. Rebuilt transcripts were also
capped at 40 messages regardless of configuration because the
selectReplay call in beginTurn never received context.maxMessages.

- Declare strictResume in the ACP driver's capabilities — extracted to
  acp/capabilities.ts to keep core.ts under the file-size ratchet — so
  external context updates keep the native resume cursor and arrive as
  unseen delta.
- Add context.maxMessages (1..10000) to replaySettings and pass it to
  selectReplay alongside the byte budget; the compaction call site
  intentionally keeps its unbounded measurement.
- comms.test: a gated handoff plus a rules change forces an external
  update and asserts the rebuilt prompt keeps only the newest entry.
- acp-recovery.e2e: a prompt rejected before the agent acts is offered
  once as unseen; an acted-on prompt is not, matching the delta-context
  e2e receipt contract.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server image ran node as PID 1, which never collects orphaned processes.
On a host with no --init switch (Railway), the bots' browser helpers piled up
as zombies until the container hit its process limit and every spawn failed
with EAGAIN. The image now starts under tini -s.

A spawn that fails with EAGAIN now says the machine reached its limit of
running processes, and the CLI test no longer offers to reinstall a CLI that
only failed for that reason.

Refs #6143

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A resumed turn whose session/load fails with no recoveryText fell
through to session/new on turn.text alone: a blank rebuild reporting no
rebuilt marker, which strictResume promises never happens (the Codex
driver already fails this way). Throw before session/new so the turn
fails instead of silently dropping prior context.

The pre-existing acp test "falls through to session/new when
session/load returns null" encoded that fallback; it now asserts the
turn fails and that neither session/new nor session/prompt is
attempted. The comms test cleanup now releases the gated helper and
removes gateFile in finally, matching the sibling test, and the
context-compaction doc clarifies that maxMessages caps retained
entries while the omission notice is added on top.
Train nov16-s5: decide with a saved Gemini key when nothing else is set up (#5959)
view_only now lives in the query string, so switching a pane between watching and driving is a real page load. A loadURL that changes only the fragment is a same-document navigation in Chromium (Electron 43.7.9), and noVNC reads view_only only when the page loads, so a pane that said "You have control" still ignored the mouse and keyboard.
A bot limited to some connected accounts (#6165) had its built-in app
shortcuts, briefing/routine reads and login-mail code reads refused,
because none of them named an account.

- connector-scopes: accountLimit(scopes, toolkit) helper.
- connector-app-tools: optional `account` input on every shortcut, put on
  the multi-execute item.
- connected-reads: session(botId) passes the bot to accounts().
- proactive/routine-checks/brief: a limited bot reads an active allowed
  account, always named; never another account.
- login-mail-codes: a limited bot reads only its allowed active accounts.

Bots without an account limit keep the old behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(approvals): stop five causes of "Always allow" asking again

- The quiet button on an approval card read "Always allow" even when the
  grant lasts only for the AI's session. It now reads "Allow for this
  session" there, and "Always allow" only when a grant is saved.
- A saved MCP tool grant was tied to the server as started, so the restart
  count (Restart, on/off, an edit, a changed Vault key; reset when the app
  restarts) and the value of a Vault key were in its fingerprint. It is now
  tied to the server as config.json holds it: a Vault key by its reference,
  never its value, and no restart count. A changed command, argument,
  variable, address or header still ends the grant.
- Grants saved by earlier versions move to the new key when the bot's next
  turn starts, only where the saved key is exactly the one that version
  gave the same tool on the same server as it is set up now.
- The startup recovery of thread grants cut the list at 200 without a
  word. It keeps every grant the bot already has and logs one line when
  some did not fit.
- Switching every thread to Full access no longer clears the saved grants.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(approvals): review round: skip unchanged turn starts, make removals stick

- A turn start goes over a bot's grants only when its servers changed since
  that bot's last pass (in-memory mark of the servers); the pass works out
  each distinct key once and saves the bot and all its threads in one write.
- Removing a grant in Settings takes it from every thread of the bot and any
  running turn in one save; a removal stays in force even if the save fails.
- Startup recovery of thread grants runs once per data folder, so it cannot
  bring back a removed grant; over the limit it logs once and trims the
  threads' overflow too.
- Earlier fingerprints are also tried with sorted names (#6141's form).
- Drop the unused approval.action.alwaysAllowSession string.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
settleTrackedRequest, the quota switch and the lending check read every
assignment through coordinator.all() on the event loop. They now look the
request's roots up by id (newestRoot) or read one thread's rows through a new
index (inThread). Room jobs name the live read they already got.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* Groundwork: one classifier for failures that are the server's own, and the self-hosting section for unattended limits

server/host-fault.ts names a failure whose cause is this server, a tool
server or a sign-in (process start, full disk, MCP server down, signed out)
from the failure's words, for every place that decides whether to start the
same work again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Pause every bot: one call and one menu item on the existing pause

POST /api/paused {kind: "all", paused} holds every bot through the same
store that pauses a bot or a department, so each routine or webhook run that
comes due is let go with one line on its row, messages and hand-offs are
refused, and work in progress stops. Ending it leaves a bot or department
that was paused by itself paused. The control is Pause every bot / Resume
every bot under More in a bot's sidebar menu.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
- Access settings: ticking every listed account keeps them as a limit, so an
  account connected later stays off until it is ticked too.
- Proactive reads: a bot limited to some accounts still names an allowed
  account when the connected-accounts lookup fails, instead of reading as the
  app's default account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* perf: a turn's bot frames carry only its thread, and its bookkeeping reaches bots.json in one coalesced save

With 34 bots of 200 threads each, every bot frame carried all of a bot's threads (about nine frames per turn,
~940 KB per turn on the stream) and every turn rewrote the whole bots.json (with fsync) about twice.

- A stream opened with `?frames=thread` gets a bot frame with only the changed thread and `tasksPartial: true`;
  the desktop app asks for it and merges the thread into what it knows. Any other stream (phones, the headless
  client, members of a Team Cloud, older apps) gets the whole bot as before; when no such stream is open the
  whole frame is not built, and a whole-frame stream that reconnects across that gap reloads instead of resuming.
- A turn's own bookkeeping (engine session, usage, unread, asked-at, dispatched engine, handed messages) is
  written together a bounded moment later (50 ms to 1 s, scaled to what a save costs), flushed at shutdown,
  on process exit and before a backup. Anything a person or bot asked for is still saved before the call returns.
- `pnpm bench:persistence --bots` measures whole-file saves per round of 34 turns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(saves): only harmless end-of-turn changes wait; engine sessions, handed messages, read marks and askedAt save at once; no flush after a fatal exit

Review of #6169: a cleared engine session (a result posted into the chat, a context reset), the boot recovery's
"already handed" mark, read marks and askedAt were deferred, so a crash in the window could resume a session that never
saw a result or hand words to a model twice. The deferred set is now an allow-list (server/registry-save.ts): usage,
lastContextModel and a turn's own end-of-turn unread mark. A process ending with a fatal code (1, 70) or killed writes
nothing waiting; a graceful shutdown, 0 and 75 do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A strict tool-calling engine fills every optional field, so append and prefer
arrived with old_text "" and the schema check refused them ("old_text must not
be empty"), even though neither action uses old_text and the advertised schema
hides minLength 1. A blank or null old_text on append or prefer is now dropped as
"not given"; replace, supersede, remove and forget still require one.

A non-blank old_text on append now gets a clear error naming the field instead
of the generic "Use append with text, ..." message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The proactive reads swallowed a failed connected-accounts lookup for a bot
limited to some accounts and returned the allowed-account fallback as a normal
answer, so the session kept it: a later Calendar read could not rediscover the
app's several accounts after Composio recovered. The lookup now fails as
before, connected-reads drops it from the session, and the allowed-account
fallback comes from a separate fallbackAccounts dep for that one read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop frame guard cancels every subframe navigation whose frame reads
origin "null", to keep sandboxed chat apps (srcdoc, opaque origin) in place.
A new iframe that has not loaded anything yet reads "null" too, so the
published-site preview beside the chat (SiteFrame, #5477) was cancelled on
its first load: blank, then "This app can't be shown here" after 10 s.

Let that first navigation through only when the frame's parent started it
and the parent's origin is not opaque. A chat app moving itself, or a frame
inside a chat app, is still cancelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every new thread, room task and call is named by its engine's one-shot, with no switch. The features.llmThreadTitles key is still accepted, and ignored, so older config files load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The other place's bot is in no room here, so it gets the work directly,
as any bot outside a room does, and its result comes back to the room
and resumes the member.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* WIP: change an added OpenAI-compatible server's base URL in place

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings: change an OpenAI-compatible provider's base URL in place

PATCH /api/instances/:id now takes {url, apiKey} for an added
OpenAI-compatible server. The address changes in place: the instance id,
model IDs, bot bindings and saved key stay. A new address on another host
(hostname or port) needs the API key again, since a saved key is only sent
to the host it was entered for. Detected model lists are read again after
the address or key changes. Owner/admin only, JSON-only, 409 while provider
settings are changing or a bot using it is mid-turn, read-only on hosted.

Settings -> AI: the edit button on an added server opens Base URL
(prefilled), API key (empty keeps the current key) and model IDs; Save
stays off with a one-line hint while a new host has no key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Base URL edit: compare origins, read models after the busy guard, warn on an unreadable list

- A saved key moves only within the same origin (scheme, host, port), so
  https -> http on the same host needs the key again; the Settings editor
  keeps Save off with the hint in that case too.
- Ollama's placeholder key moves to any address without asking; the
  instance list marks such servers placeholderKey.
- The model list is read again after the busy guard, so bots on the server
  are not refused while it answers.
- When the new address does not list its models with the key, the change is
  still saved (200) with a short warning, which the editor shows as one line
  and stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/openai-chat.ts
# Conflicts:
#	server/drivers/openai-chat.ts
#6124's reasoningOffBody option took openai-chat.ts to 1,004 lines once
merged over main's threadId change. Its doc comment now sits on the same
line as the field, as other options in this interface already do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/phone-proxy.test.ts
#	server/drivers/phone-proxy.ts
# Conflicts:
#	src/components/SidebarSectionHeader.test.ts
The owner's rule is no new settings or hidden flags, and #6171 added
context.maxMessages to config.json. The strictResume half of #6171 (the fix
for #6147: ACP sessions kept across peer results, timers and routines) stays.
This drops the maxMessages key, its schema bound, its docs line, its
beginTurn pass-through and its comms e2e test. server/index.ts is back to
main's line, unchanged in count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AttentionThreadRows gained current/unreadDot props, isOpenThread and
openThreadRow, but no caller passes them, so the Inbox rows never changed.
Keep the sidebar and tile selection mark, drop the dead code and the
LOCAL: comment markers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A read with several requests (calendar list plus each calendar, or several
Gmail pages) now keeps the account lookup it started with, so a lookup that
recovers part-way can't mix two accounts in one read. The fake connected-apps
service can now name accounts and fail its account list after N answers; an
e2e check covers a MausBot limited to some Gmail accounts while the lookup fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#6116's context button in the message box now shows a reading for every
thread, so an always-on pill in the chat header would show it twice (and
DESIGN.md keeps the header to the bot, its model and its screen). The pill
again appears from 80% of a known window and not after a compaction, and
#6116 still needs compactedSinceReading. It keeps #6109's reading: tokens
with the share of the window. Room members still read in tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pt-BR for the 20 new contextMenu strings. The button's label used
contextWarning.short with a percent, which #6109 turns into a token
reading; it now has its own key, contextMenu.button ("Context {percent}%").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#6093 (on main since) passes count to SidebarSectionHeader for this
computer's or My Cloud's bots in one list; #6120 removes the prop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Tests read and write bots, rooms and their threads through one registry helper

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Golden test pins what bots.json and groups.json hold today

Two bots with extra threads and a turn's bookkeeping, a room with two threads and a direct chat, saved by the real
Store; ids normalized, everything else as written. Also checks each file is one line of JSON the test helper reads back
unchanged, and that loading a folder saved today rewrites neither file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Registry save bench: bots x threads matrix, opt-in via pnpm bench:registry

Each cell runs in its own process on a throwaway data folder and HOME: bots and rooms cloned from records the Store
wrote, then load time, one durable save (thread rename), one bookkeeping save (engine session id), serialize-only time
and a room save. Default cells 1x5, 5x50, 34x200, 100x200, 200x200. Not part of any test run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* More tests read and seed threads through the registry helper; fix the cloud-credit import

The helper import in cloud-credit.e2e had landed inside a fake CLI's source text, so the test could not compile.
Converted: server-writes.e2e, computer-engine-removal.e2e, trust-controls.e2e, hosted-models-api, outside-lineage.e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Registry bench table shows the heap the loaded registry takes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Settings > Bots > About you gains "Your name on this server" for a signed-in
person on a self-hosted server. Their lines, cards, reactions and room sender
labels use it, and a turn names each of their lines by it. Kept in
<data>/person-names.json (0600) by the hashed person key, so every device of
one sign-in shares it; the owner keeps the server profile's name and Team
Cloud keeps its own profiles. GET/PUT /api/me answer it there.
Two end-to-end cases for bot-to-bot hand-offs of real work, not only
consultations: when a lead hands a job to an employee, the person gets one
"done", from the lead, and nothing from the employee; when the employee is
stopped by its account's usage cap, the failure is reported in the lead's own
conversation and the lead resumes to review it, while the person still hears
of the cap.
The room panel's Who responds page gains Turns per member (1-5, default 1,
today's behaviour). With more than one, the members who answer a person's
message go round that many times in order before the room waits again, and
on its last turn each member is told it is final and to wrap up the way the
room's instructions or the request ask. Stop ends every remaining round;
direct-message channels have no such setting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/Sidebar.tsx
The owner's call: no hover open. The menu opens from the small chevron on
the row (click, Enter or Space) and closes on a second click, Escape, a
click away, a scroll of its list or a resize; moving the pointer away no
longer closes it. The open/close delays, the pointer listeners and the
hover tests are gone, and DESIGN.md section 13 says click-only. The
conflict with main (retitleThreadsInBulk) was an import line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
self-hosting.md and routine-schedules.md still described #3789's automatic pick of
another set-up AI; quota-switch.ts and quiet-status.ts comments said the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7e013a842 dropped the thread-titles flag from threadRowActions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake claude CLI fails a title call no test answers (by FAKE_CLAUDE_TEXT_FILE or a FAKE_CLAUDE_TEXT_ROUTES marker), without writing a dump or log, so turn dumps and first-message titles stay as they were. Fake OpenAI-compatible providers that count, hold or script model calls answer the title call with a failure first (server/testing/title-call.ts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Bots of the person's other places are records this place finds by their address

Each linked place's bots are kept as stand-in records: found by id with
their name, look and where they live, never listed, counted, saved,
moved or backed up, and never run here. The app on this computer can
list them from one route.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* A stand-in is read-only on this place; a hello carries only ids a bot can have and only what the other version reads

Review fixes for the stand-in records.

- One rule: a record with `home` is read-only here. Every store method that changes a bot looks only among this
  place's own bots (`own`), never among the stand-ins, so naming a stand-in can no longer demote the Chief
  (setChiefOfStaff), strip rooms and remove folders (deleteBot), or give it a thread (createTask). The same rule at the
  door: a request that changes something and names a stand-in in its path or query is answered 409 with where the bot
  lives (server/host/stand-in-guard.ts), before any route runs.
- Named in a body: a stand-in is refused as a room member and as a routine's bot with the same reason, and counts as
  missing for webhooks, app events and scheduled runs. The rooms and automations PRs lift these together with real
  forwarding.
- Deleting one is refused before any side effect.
- `home` stays off the wire: the bot projection strips it, as its private-key list said.
- A bot's id in a hello must be in the characters places give their bots ([A-Za-z0-9_-], at most 128); a hello with
  any other id is dropped whole, and such a bot of this place is not told to others.
- Version skew: each side says what its version reads in a header on every exchange (older versions ignore it and say
  nothing, which reads as the first version). A place on the first version is sent a hello with only the fields that
  version's strict schema takes; work crosses a mixed pair as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(docker): the server image brings its own init, and Chrome copes with a small /dev/shm

A container platform runs the image's command as process 1, with no --init. Node waits only for the children it
started, so every process whose parent exited first (a browser's helpers, a command a bot left in the background)
stayed in the process table as a zombie, counted against the container's pids limit, until spawn failed with EAGAIN.

- Dockerfile: tini (Debian's package) is the server image's ENTRYPOINT, with -s so an init on top of it
  (docker run --init, compose's init: true) is harmless. The Cloud home image is unchanged: Fly's init is PID 1 there.
- server-launcher: when it finds itself process 1 (the entrypoint was replaced) it says so in one line and runs the
  server under the image's tini as a subreaper; without tini it only says what will happen.
- Browser: Chrome gets --disable-dev-shm-usage wherever /dev/shm is under 512 MB or missing, not only where
  /.dockerenv exists, on both launch paths.
- docs/self-hosting.md: "Running on a container platform (Railway, Render, Kubernetes, Cloud Run)".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(docker): a launcher that is process 1 hands that place to tini for good

Review of the fallback: the launcher, as process 1, wrapped each server start in its own tini. That tini exited
with the server, so whatever the server left running when it restarted (exit 75) or crashed went to the node
launcher at process 1, which never collects it; and a server killed by SIGTERM before its handler was installed
came back through tini as exit 143, so `docker stop` ended the container with 143 instead of 0.

- container-init: as process 1 with the image's tini, the launcher replaces itself (process.execve) with tini
  running the same node, flags, arguments and environment, plus OMB_UNDER_IMAGE_INIT=1 so a launcher still
  process 1 there never does it again. tini then stays process 1 for the life of the container. tini is checked
  first to be a regular file this user may execute, because Node 24 aborts the process when execve fails. Without
  a tini it can run, or without execve, one line says nothing collects exited processes and the launcher carries on.
- server-launcher: does that first, before the lease check, and spawns the server plainly again.
- docs/self-hosting.md: commands given to the container start with `openmausbot` or `node`; Chrome's /tmp
  fallback is slower and counts against memory where /tmp is in memory; a platform's proxy cannot reach
  127.0.0.1 in the container, so the ways in that work (OMB_LAN=1, a sidecar on OMB_TUNNEL_SOCKET, a tunnel).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: OMB_UNDER_IMAGE_INIT stays on the server, and canRun's exec-bit check is Linux and macOS only

Only server/container-init.ts reads OMB_UNDER_IMAGE_INIT (the launcher run again under tini), so it is kept out of
a bot's box. Windows has no execute bit, so a 0644 file passes X_OK there; the server only execs tini on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train U4 (Nov 16 b): 10 contributor PRs: config copies, MiniMax thinking, phone gestures, ACP strict resume, evals
Each chat-runtime turn cold-starts this computer's tools: the gate proxy as
Electron, then cua-driver.exe behind it, beside every other built-in, all
within 8 seconds. On an ordinary Windows PC that start often runs longer, the
computer server was skipped, and the model, with no computer tools and no word
why, told the person the computer was not linked.

- Windows gives each built-in 20 seconds to start (8 elsewhere, 30 on a Cloud).
- This desktop's computer gets 45 seconds on Windows (20 elsewhere). Once its
  driver has listed its tools in this server, a slow start no longer holds the
  turn: the last list is shown and the first computer call waits for the start.
- When it did not start, or is still starting with nothing listed before, the
  model gets a computer_tools_status tool that says so with the cause and that
  the computer is already linked; while starting, calling it waits and then
  lists the real tools for the next step. The person sees a notice (en, pt-br).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The 20-second Windows start is for the app's own servers; a server the
  person configured keeps 8 seconds.
- A remembered tool list is served after 1.5 seconds; the first computer call
  waits for the start.
- A first start waits the app's usual budget (8 seconds, 20 on Windows), then
  goes on with the stand-in while the start carries on in the background.
- The model is never told the computer is linked, only that this is a start-up
  problem and not a missing link, and mentions a failed start only when the
  request needs this computer.
- The person hears a failed start in full once per conversation, then a short
  line while it keeps failing, also when a start fails after a remembered list
  was served. The cause is a translated piece, so pt-br carries no English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	Dockerfile
#	docs/browser-packaging.md
Windows: the computer tools start reliably instead of being skipped
* Routines and incidents back off and are bounded when unattended work keeps failing

A routine stays on however often it fails; what changes is how much a failure
can spend, and each limit leaves one line where the person looks.

Failing routines
- After OMB_ROUTINE_FAILURES_BEFORE_SPACING (3) failed runs in a row, the
  routine's scheduled runs are spaced out: OMB_ROUTINE_FAILURE_SPACING_MS (1 h)
  after that failure, OMB_ROUTINE_FAILURE_SPACING_MAX_MS (4 h) after each later
  one. The skipped occurrences share one counted `missed` row ("Skipped 12
  scheduled runs because its last runs failed, so its next tries are spaced
  out"), as the cloud-desktop spacing does. A completed run, an edit or turning
  it on again ends it; runs only the owner's AI account blocked are not
  counted. A cron of `* * * * *` is still accepted and spaced the same way.
- The automatic second start is kept only for failures a retry can pass (rate
  limit, overloaded or temporary provider error, a crash, an engine stopped
  for memory). A dead tool server, a sign-in, a full disk or an engine that
  could not be started fail the run at once.
- The second start continues the same conversation with one short note when
  the conversation already holds the routine's instructions, and replays them
  only when the crashed start left nothing.
- host-fault.ts also names out-of-room failures (the no-room notice, memory
  stops, SIGKILL/137 exits, an engine that never sent its first frame) as the
  server's own; retryCannotFix leaves those to the admission.

Incidents
- The same-error damper compares failures without ids, paths, numbers and
  times, so one failure is told once however its words vary.
- A Chief is started for at most OMB_CHIEF_INCIDENT_TURNS_PER_HOUR (6) problems
  an hour across threads; the rest are counted on one line in its "Problems to
  look at" chat, naming the newest.
- A Chief told of a failure a retry cannot fix is told not to retry it.

Restarts on a headless server
- Startup routines run at most once in OMB_STARTUP_ROUTINE_GAP_MS (30 min) when
  no desktop launch id is set; skipped starts are counted on one row per
  routine.
- Runs a restart cut off start again OMB_ROUTINE_RESTART_STAGGER_MS (30 s)
  apart instead of all at once.
- A burst part, or its merge, starts again after a restart at most
  OMB_BURST_PART_MAX_RESTARTS (2) times; then the part fails with one line and
  the parts are posted as they came.

Turns started, before -> after (tests count them):
- 5-minute routine, dead tool server, 24 h: 575 routine + 287 Chief -> 9 + 2
- 5-minute routine, engines cannot start, 24 h: 575 + 1 -> 9 + 2
- 20 failing routines under one Chief, first hour: 220 Chief turns -> 6
- headless crash loop every minute, 1 h: 60 startup turns -> 2
- burst of 2 parts, 10 restarts: 22 part starts -> 6 (+3 merge starts, then
  the parts are posted)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Review fixes: classify only failure words, end streaks on account stops, tell the person of folded problems

- host-fault.ts reads only the system's failure words and stop reason: a
  routine's name ("Rebalance my 401(k)") or a tool's 403 never reads as a
  sign-in. signed_out is anchored to the engine's own shapes (Not logged in,
  API Error/HTTP/(status/unexpected status 401, authentication_error, invalid
  api key, OAuth token expired). ENOMEM and "cannot allocate memory" are
  out_of_room, as is "exited null"; "MCP request timed out" is no longer a
  tool-server fault; an engine exit's stderr tail never makes it one.
- Incidents carry the failure apart from the routine's name.
- A run only the owner's AI account stopped ends a failure streak and any
  spacing it began.
- Past a Chief's hourly share, each folded problem not already announced is
  notified to the person, and the one line lists the chats (first five) and
  links the newest.
- failureShape keeps exit codes, HTTP statuses and model ids apart; it strips
  times, paths, ids and standalone numbers of four digits or more.
- The short-note second start is used only when the engine resumes a session
  on the same engine, or a replay within its budget still holds the prompt;
  a backup AI, a usage-limit wait or a /command routine resend it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run the incident spend test without the other languages' server lines

It checks only English lines, so it no longer loads server/server-line-packs.ts
and stays out of the locale tests (scripts/ci-scope.test.ts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Brazilian Portuguese for the folded-problems and routine start-skip lines

The pt-br pack must hold every English key (src/lib/i18n.test.ts,
activePackComplete). Adds the five new lines and records their source hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give the spaced-out routine e2e room for each run's automatic second start

Every run in this test fails twice, and its second start comes 15 s after
the first (ROUTINE_RETRY_MS), so a run takes over 15 s on main and on this
branch alike. A 30 s poll left too little room on a busy machine; it now
waits up to 45 s per run, and the test up to 240 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Bot API: a key the owner marks "acts as me" runs its threads at the bot's own level

Off by default, per key, owner only, and never on a team's Cloud or a shared or hosted workspace without
the operator's dedicated policy. A thread such a key opens runs at the bot's own access level with its
saved allowances, unconfined, as the owner's request; the never-list, outbound holds and computer rules
still apply. The mark is read on every call; a new key starts without it, and a thread opened with it
can't be continued through the API once the key no longer acts as the owner. Keys without the mark keep
every existing Bot API rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bot API acts-as-me: one person's server checked live, teammates said plainly, Activity rows

- The mark holds only where own-home.ts's oneOwner holds (no members, at most one admin and by
  address, no whole-domain admin), read on every call, so a second admin switches it off at once.
- The card and docs/bot-api.md say a marked key can also hand work to the bot's teammates, which
  act at their own access level. No new restriction.
- docs: taking the mark off doesn't stop a turn already running.
- A new key or switching the API off that clears the mark also writes bot-api.acts-as-owner.off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bot API acts-as-me: pt-BR strings for the six new keys

i18n.test.ts holds pt-br complete (activePackComplete), and the PR's six new
botApi/activity keys had no pt-br entries. New keys need no source-hashes.json
edit: the release records their hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(procs): stop process trees when their owner goes, and browsers when processes run out

Browsers: closing one first asked `agent-browser session list`, which cannot start once the
box is out of processes, so neither a close nor the sweep ever reclaimed anything then. When the
list cannot be read, the daemon the pid file names (checked to be that session's own) is stopped
directly, and the sweep works from the pid files.

Shutdown: Claude and ACP dispose ended stdin and armed an unreferenced 5 s timer, so engines
(which lead sessions of their own) and what they started outlived the server. Dispose now waits
for every engine's tree to be gone (0.5 s after end of input, 1.5 s after SIGTERM); the shutdown
deadline is 8 s (was 6 s) and the desktop app waits 9.5 s (was 6.5 s). Each server run tags what
spawnCli starts (OMB_ENGINE_TAG) and records it under <data>/engine-runs; the next server of the
same data folder stops what a dead earlier run left: processes carrying that run's tag, or a
recorded leader with the same start time. agent-browser daemons are left to the browser sweep.

Tree kills: dsh and Hermes catalog probes, ACP closes and Claude's replaced process now stop the
whole tree, and a replacement starts only once the old process is gone. git (checkpoints, lent
clones), ffmpeg, the docker CLI and the VPS ssh tunnel run in a process group of their own, so a
timeout or stop reaches their children. mcp-gate stops every process below it (a launcher passes
no signal on) and leaves 5 s after its input ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(procs): boot sweep spares daemons in their own session, skips clean runs and other boots; ACP keeps its EOF grace

- A graceful exit marks its run clean once no recorded engine group runs; the next start sweeps nothing of it.
- After an unclean death, only a recorded leader (same start) and tagged processes still in a recorded leader's
  process group or session are stopped; a daemon an engine moved to a session of its own is never touched.
- Runs record the boot id and pid namespace: a run from another boot or container is forgotten, nothing signalled.
- Nothing that started after this server, or carries its own tag, is taken; a run that cannot be judged is left alone.
- ACP agents other than Qwen get their 5 s after end of input again, and no turn waits for them; dispose still does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(procs): register OMB_ENGINE_TAG as server-only; the clean-restart test's daemon detaches as daemons do

OMB_ENGINE_TAG stays off the box allow-list (SERVER_ONLY_OMB). spawnCli adds it to the spawned process's own
environment after the box filter, and bwrap passes its environment on (no --clearenv), so a boxed engine and its
children carry the tag without it; nothing inside a box reads it. Allowing it would only let a tag already in
the server's own environment (a server started from another server's engine) through boxed spawns that are
not spawnCli's, tying them to another run's sweep.

Linux CI: killCliTree there stops every live process below the engine whatever its session (captureCliTree,
1d1559fb1: sandbox helpers leave the group). The test's "daemon" was a direct child of the engine in a new
session, so the clean shutdown stopped it before the sweep ran; the sweep itself (the unclean case, run on
Linux too) already spared it. The daemon now detaches as real ones do: a starter puts it in a new session and
exits. Reproduced and verified in node:24 under Docker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(browser): cap the default engine's browsers, close idle ones under a held turn, list tools once

The opt-in engine's rule now holds for agent-browser too: past the cap, a browser starts once
the least recently used idle one is closed; with none idle, the call waits up to 30 s and is
then told why it cannot start. The cap is OMB_BROWSER_MAX_RUNNING, else what fits in 40 % of
the container's task limit (cgroup pids.max, about 160 threads per browser) and of its memory
(about 400 MB each), at most 16.

A turn no longer keeps a browser it has left unused for the idle time, when the browser saves
its sign-ins: it is closed, and the turn's next browser call reopens it with a note. Open pages,
tabs, in-page state and @eN refs are lost; saved sign-ins are kept. A temporary browser (no
saved sign-ins) is still kept until the turn ends.

agent-browser's tool list follows from its binary and arguments, so it is read once and shared:
an engine's start no longer starts an `agent-browser mcp` process of its own to list tools.
A session whose launch settings changed is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(browser): keep a running turn's browser out of the idle sweep, try every spare browser for a slot

- A call refused a slot no longer takes the "sat unused and was closed" note; the call that reopens the browser gets it.
- The refusal says "1 browser is" / "N browsers are".
- A bot waiting for a slot tries the spare browsers least recently used first until one closes.
- The regular idle sweep never closes a browser a running turn holds again; only a bot waiting on a full limit may
  close one, after the idle time and only when it reopens with its sign-ins.
- A browser a person's view started counts toward the limit.
- pids.max is read from cgroup v1 and v2 on a hybrid host; OMB_BROWSER_MAX_RUNNING that is not 1 or more (0 included)
  is ignored with a log line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* perf(mcp): engines reach OpenMausBot's own MCP servers by URL instead of a proxy process each

Every engine process started a stdio Node proxy (about 7 threads) for each of OpenMausBot's own
servers. Where the setting is on, Claude, Codex and ACP agents that take MCP servers by URL get the
agents, browser, computer, data, email and device servers as the existing HTTP endpoint those
proxies forward to (routes/own-mcp-http.ts), with the same capability token: Claude as `type:
"http"` entries in --mcp-config (alwaysLoad kept), Codex as `url` + `bearer_token_env_var` (the
token stays in its environment) + `http_headers`, an ACP agent once its `initialize` answer says
`mcpCapabilities.http`. The permission prompt server, the Android phone tools, servers behind a
tool-selection gate and the person's own servers stay stdio.

OMB_OWN_MCP_HTTP=1/0; unset it is on for a self-hosted Linux server and off on the desktop app, a
Cloud home, macOS and Windows; never while the bot box is on. Claude's deferred catalog setting
now rides the agents server's settings header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(mcp): own MCP servers by URL only with OMB_OWN_MCP_HTTP=1; stream long calls; loopback past a proxy; stdio's limits

- Off unless OMB_OWN_MCP_HTTP=1, on every kind of server; still never in the bot box.
- A tools/call from a client that takes server-sent events gets headers at once, a keepalive comment every 15 s and
  then its result event, so an HTTP client that gives up on 300 s of silence still gets a long call's answer. Other
  requests stay one JSON body.
- 16 requests in flight per server and capability, batches included, and the stdio proxy's output cap over the whole
  answer.
- Claude, Codex and ACP engines that reach these servers by URL get 127.0.0.1,localhost,::1 merged into NO_PROXY and
  no_proxy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(mcp): exercise Codex's own servers by URL end to end; flag-aware Claude and Codex agents tests

- The fake Codex app-server reads TOML inline tables (http_headers) in -c values, sends a URL mount's http_headers, and
  reports startup for URL mounts as codex-cli does, so OMB_OWN_MCP_HTTP=1 no longer stalls its turns.
- A Codex turn with the flag on starts the agents server through the real route, with the bot's settings header and
  capability, and NO_PROXY carrying the loopback names.
- The Claude and Codex agents-mount tests run with the flag off and on; the ACP URL-form test checks NO_PROXY.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(bot-box): OMB_OWN_MCP_HTTP is server-only: the server picks each mount's form, nothing in a box reads it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Bots offer the switch to This computer instead of inventing settings

A bot on an API model working on its Private desktop, asked to write into a
folder on the person's PC, could not reach it and sent the person to a
"Settings → Computers" screen that does not exist.

- Place rules: on a desktop where This computer can be picked, a bot not on
  it is told that a host path, Desktop, Documents, OneDrive or "my PC" is on
  this computer; it offers the switch in one line, calls select_computer
  with surface local (one-tap allow, none with Full access), and when the
  person asks or agrees keeps it via app_settings bots.settings.
- vm_exec refuses a command naming a path only this computer has, saying
  where the bot works and the exact switch, with the real control names
  (Bot's screen, "Where {name} works", This computer).
- list_shared_computers says this computer is never in its list; a local
  choice select_computer cannot use names the real control.
- New bots on the desktop app (Mac, Windows, model that can use it) work on
  This computer; Clouds, hosted workspaces, servers and Linux keep Auto.
- Place wording: This computer "Your files and apps", Private desktop
  "Can't see your files", Browser "Only websites", in the panel, the chip
  and the allow card (en + pt-br; other packs fall back to English).
- Settings paths that do not exist ("App Settings → Computers",
  "Settings → Computers") now name Settings → Desktops & browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep This computer only on a person's own request; hint vm_exec only on failure

- The keep-on-This-computer step (app_settings bots.settings computer local)
  is offered only on a turn that may switch places, the person's own typed
  line, and only when they ask to keep using this computer: an allow-once
  tap is for one request.
- app_settings refuses computer "local" for a bot when the turn answers a
  routine or other automation, the owner's own included.
- vm_exec runs every command as written; only a failed command that names a
  path on this computer gets the switch as a note. The Linux check no longer
  takes /home/cua followed by && ; ) or :, or /home/*, for a host path.
- Route-level test for the new-bot default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Connected apps: upload a local file a tool takes, so Google Drive uploads work

Composio runs app tools on its own servers and reads a tool's file
(GOOGLEDRIVE_UPLOAD_FILE's file_to_upload, a Gmail attachment) from its
own storage by s3key. Nothing in the app or the managed service ever put
a file there, so a bot that named a file on this computer got a storage
error from Composio on every upload and could not recover.

- server/connector-files.ts: before a connected-app call goes out, a
  local path in a file field (or given as an s3key) is read through the
  chat file-link resolver, only from the bot's working folder, its Local
  VM folder or the conversation's attachments; uploaded to the link
  Composio hands out; and the call carries { name, mimetype, s3key }.
  A file that cannot be read, or an upload that fails, is refused with
  the reason and "nothing was written", and the call never goes out.
- server/composio-files.ts: the upload link comes from Composio with
  the project key, or from the managed service.
- cloudflare/composio-broker: POST /v1/files/upload asks Composio for
  the link with the service's key; the bytes never pass through it.
- A failed call whose file Composio could not fetch tells the bot to
  give a local path instead of an invented key; the app prompt says a
  file argument takes a full path.
- Scope note: for apps with no known special permission it now says to
  Disconnect and Connect the app again in Connected apps with every
  permission allowed (Google's consent screen lets a person untick one),
  instead of saying reconnecting cannot help. The signed-out note names
  Connected apps > Connected > Reconnect for when no card can be shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Connected-app files: own folders and this thread's attachments only, listed on the card, uploaded after the last check

Review follow-ups:
- The attachment store is no longer a root: only this conversation's own
  attachments, by exact path (connectorFileScope).
- Hidden folders below the bot's folder or the home folder, and the app's
  own data (DATA_DIR, the desktop app's data folder), are refused unless the
  bot's own folder is inside it, as its workspace is.
- A value is a file only when it is an existing file in those folders and
  has no line break; anything else (/Apps/report.pdf, /images/logo.png)
  goes to the app unchanged, with no refusal.
- Files are read before the checks and listed in full (name, path, size)
  on the "Send on your behalf?" card ahead of the 400-character cut; they
  are uploaded from relayMcp's beforeSend, after every pre-send check and
  before the Gmail draft reservation is kept, so a revoked scope or ended
  turn uploads nothing.
- Upload links: HTTPS on Composio's storage only (*.composio.dev, AWS S3,
  or an explicit OMB_COMPOSIO_API origin), in the app and in the broker;
  the PUT never follows a redirect.
- The broker hands out a link only for a toolkit the installation has an
  ACTIVE connection to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A host that starts a Cloud home with a plain `docker run` gives it no init, so the root supervisor
(cloud-home-start.js) was process 1. Node waits only for the children it started: every process whose parent exited
first (the bot box's bwrap, a browser's helpers, git, a command a bot left running) stayed a zombie for the life of
the container.

- Dockerfile: the cloud-home image gets the server image's entrypoint, tini -s. The supervisor still starts as root,
  hands the volume and the server to maus and passes secrets over its pipe; tini forwards signals and exits with the
  supervisor's code. Under Fly's init or --init, tini collects as a subreaper.
- oom-score: the supervisor gives the tini it runs under its own OOM score, since the container ends with process 1.
- cloud-home-start: one line when the supervisor finds itself process 1 anyway (the entrypoint was replaced).

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The sidebar keeps its own read of the other place's bots for what it draws (name, look, working, waiting, unread),
under its sleep rules and bound to the Cloud address and account, and lists them with the link down or the Cloud asleep.
The link's directory stays the one source for behaviour (stand-in records, hand-offs). The two now agree:

- A row carries `address`, the link's own id for that bot (link-<place key>-<id>), which is the id of this place's
  stand-in record for it. Main works it out as rows are handed to the page, from what this computer's server last said
  of its link, and only while that link is this Cloud's and this account's. No place is asked anything for it.
- A stand-in's `home` and the route GET /api/bot-link/bots say what the other place is (`kind`: computer or cloud),
  the word the rows already use, and the route gives the place key.
- electron/bot-link-address.mjs is main's copy of the address rule; server/bot-link/address.test.ts holds it and the
  server's to the same answer.
- With the switch off, nothing linked and nothing left to tell a Cloud, main's link module looks at this computer's
  server once and then stays idle until the switch, the account or the Cloud changes (it used to ask every minute).

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Main's #6208 reworked mountChatTools (an options argument, this computer's tools that start late and a stand-in),
and #6144 restructured the same mount loop. Folding them together means rewriting #6144, so it leaves the train
to be rebased on main. The #6150 step-cap removal stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Desktop: a stale data-folder lease from this computer no longer locks it out after a restart

The lease judged "same machine" only by hostname or boot session. macOS changes
its hostname per network and a restart changes the boot session, so a lease this
Mac left before a restart read as another machine's and the folder stayed locked
until the file was deleted by hand.

New leases record a hashed machine id (macOS IOPlatformUUID, Windows MachineGuid,
Linux machine-id where systemd runs outside a container), read once, cached, with
timeouts. When both records have one, it decides same machine; a different id is
refused even under the same hostname. Records without one keep the old rules,
plus on macOS: an older build's lease from an earlier boot of a folder on a local
volume is this Mac's and is retired as stale. Containers and clearing a Cloud
volume are unchanged; a live owner on this machine still blocks a second server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Desktop lease: a machine id overrules the hostname only on macOS; stricter local-volume check

- Another machine id is still another machine everywhere, but the same id
  overrules a different hostname only on macOS. On Linux and Windows a VM cloned
  from a template keeps its id, so there the host or boot rules still decide.
- Linux also skips the machine id when /run/systemd/container exists.
- The older-build rule asks df -P for the folder's mount point and reads only
  the mount line that names exactly that mount point, so a mount point holding
  " on " can no longer pass as local. Any doubt counts as not local.
- Folders under ~/Library/Mobile Documents and ~/Library/CloudStorage count as
  synced, never local.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Desktop lease: every probe goes through one subprocess helper

The boot-session read, the machine-id reads, the Mac volume check and the
Windows process-start probes now share commandOutput(), so the module keeps
within the Electron runtime's allowance of blocking subprocess calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/testing/fake-connected-apps.ts
* fix: one server survives a bad callback and many bots: crash guard, crash restarts, staggered reruns, honest stall numbers

- server/crash-guard.ts: process-level uncaughtException/unhandledRejection handlers. An error from a turn's own
  work (known through AsyncLocalStorage) stops that turn through the watchdog; a rejection or a peer gone keeps the
  server up; anything else, or more than 10 in a minute, closes the server gracefully with exit code 70.
- server/restart.ts: every launcher (container, `serve`, Cloud home) starts a crashed server again after 1, 2, 5, 15
  and 30 s, then gives up; a stable minute forgives earlier crashes.
- Turns a restart cut start again 4 at once, then one per 500 ms; a fall during the reruns cuts only those started.
- server/perf/loop-stalls.ts: event-loop delay measured all the time (p50/p95/p99/max, stalls over 100 ms and 1 s)
  and the time spent in whole-file saves and runtime-store reads, per minute and hour, in the health report's perf
  budget and the diagnostics text. A message's queue time starts when its request arrived; 1,000 turns are kept.
- The transcript cache has a 256 MiB cap (least recently used first; never a busy, just-read or recently read
  thread); per-thread maps are cleared when a thread is deleted, archived or gone; event logs are trimmed past a
  256 MiB default ceiling where no limit is set.
- The 100-bot refusal says what to do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(crash-guard): fatal when no turn could be stopped, turn scope on driver code only, fatal close flushes nothing; cache counts pruned frames; superseded reruns dropped

Review of #6175:
- An error filed under a turn that is no longer running (a warm process or timer that outlived it) now closes the
  server. Only a driver's sendTurn runs in a turn's scope (withTurnScope in the registry); its events reach the
  server's listeners outside it, so shared-code errors are never filed as a turn's.
- The fatal close no longer runs the graceful shutdown: it marks running turns cut, stops engines, releases the data
  lease and exits 70, flushing no ledger, journal, session, bus or registry.
- Pruned screen frames are taken off the transcript cache's byte count.
- A held rerun keeps its conversation busy for queued work; a cut turn whose conversation got newer work first is
  not run again and fails with a line saying so.
- A Cloud home stopped during the crash pause clears its restart timer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(env): OMB_THREAD_CACHE_MB is read by the server's thread cache only, so it is server-only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* A room can have members from both of the person's places: a far member's turn runs where it lives and its answer is its own line in the room

A bot of the person's other place can be a member of a room here, through its stand-in record. It is mentioned,
picked and routed to as any member is. When its turn comes the turn is handed over the link as an ordinary assignment
in this place's runtime (server/host/bot-link-rooms.ts), so it is sent once, waits without a clock while the member's
place is off or asleep, and stops when the room is stopped. The answer is posted in the room as the member's own line,
under the assignment's id, so a report made twice leaves one line. The members that answer names take their turns.

- What is written while the member's place is away waits as ONE turn: it is composed when it is sent, with everything
  said up to then, and the room says once that the member answers when its place is back.
- The room's record and words stay where the room was made. What crosses is the room's name, its members' names and
  what was said since that member last spoke.
- A stand-in may be a room member again (the refusal the stand-in PR added is lifted here, with the forwarding). At
  load the store keeps linked members; when a place is unlinked or the link is turned off its bots leave the rooms.
- A far member does not lead a team run here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Rooms with far members, after review: what a member was sent is kept, the room's node ends with its turn, the person's line crosses as the person's, and a member out of reach stays a member

- What a far member was sent is recorded for each turn and each seat
  (bot-link-rooms.json), not worked out from its own last line: a line
  written while its turn runs is in its next turn; the same turn asked
  for again covers the same lines; a turn that ended without an answer
  gives its lines to the next one.
- A node that only stands for who asked (a room, the other place's
  requester) is never held as busy, so it ends when the turn under it
  ends instead of waiting out the stall window. pace() is idle after a
  far answer, and after the link is turned off with a turn waiting.
- The room's node is begun with the origin a member's turn here gets,
  and the lines sent are the room's transcript as a member here reads
  it, each with its note, narration left out.
- A far member that cannot be reached (the link is off, its place is
  unlinked, or its place no longer has it) stays a member: a read-only
  record named as it was last known, picked by nobody but the person,
  shown with its state in the member list. Saving members drops an
  address no record answers to. Turning the link off removes nobody; a
  place whose link ends after 30 days leaves the rooms with one line.
- Lines left out of a turn are counted for the member; a line the
  person adds to a waiting turn resets its hop; failure lines name the
  bot and its place.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* The room's waiting test shortens only the clocks of the place that holds the waiting turn

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
electron/data-dir-lease.node-test.mjs (1024 lines, #6202) is listed: the
data-folder lease's own tests, many platform cases. server/index.ts was
15445 lines against a listed 15444; its once-only lease release moves into
server/data-dir-lease.ts as releaseOnceAtExit, with a test, leaving 15436.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Hand-offs and unattended turns: failed work stops renewing budgets, and a turn nobody watches has ceilings

Hand-offs (server/runtime):
- Only handed-off work that completes renews a request's limits. A failed or
  cancelled child, and a requester's turn that ends waiting, no longer do.
- Five hand-offs failing in a row under one request, with none completing
  between, stop the request with one line naming the last failure
  (OMB_HANDOFF_MAX_FAILURES).
- One request starts at most 300 turns in all, which nothing renews
  (OMB_HANDOFF_MAX_TURNS).
- A budget stop's result is its reason, so the line in the thread says why.
- When settled work failed for a reason host-fault.ts names (process start,
  full disk, tool server, signed out), the resume text says so and does not
  suggest rework=true.

Turns nobody is watching (a routine's, a webhook's, work handed on from one;
server/host/unattended-turns.ts):
- Stopped after 4 hours of work, 400 requests to the AI, or 5 permission
  requests denied or unanswered (OMB_UNATTENDED_TURN_MAX_MS, _MAX_REQUESTS,
  _MAX_DENIALS; each takes off).
- The loop guard is on for them with a stop at 20 identical failures in a row
  (loopGuard.unattendedStopAt, OMB_LOOP_GUARD_UNATTENDED_STOP_AT,
  loopGuard.unattended: false to opt out).
- Each stop writes one failed-turn line in the thread and fails a routine's
  run with the same words. Turns a person started keep today's behaviour.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Review fixes: hand-off caps for unattended work only, a wrap-up turn at the limit, faults from the system's own words

- OMB_HANDOFF_MAX_FAILURES, OMB_HANDOFF_MAX_TURNS and "failures don't renew
  the budget" apply to requests nobody is waiting on (origin not a person). A
  person's request renews as before and its requester is resumed after each
  failure.
- At the absolute limit the root's own resume is let through: one wrap-up turn
  over what came back, which can hand out nothing more.
- A hand-off's fault is read from the system's failure words and stop reason
  (HostTurnResult.failure, kept on the assignment as `fault`), never from the
  bot's reply, and only when retryCannotFix. The resume note says a server-wide
  fault fails wherever it is sent, and names the teammate whose own tool server
  or sign-in failed, leaving another teammate open.
- A turn a person's own message started, or a continuation of one, is attended
  whatever routine run or wait is open in the chat (personDriven).
- Model requests: a usage report with a call id counts that call once; reports
  without one count one call per step between tool calls.
- host-fault.ts and its test are byte-identical to #6173's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Brazilian Portuguese for the unattended-turn limit notices

The pt-br pack must hold every English key (src/lib/i18n.test.ts,
activePackComplete). Adds the three new notices and records their source hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(procs): adding a bot restarts no engine; queue side jobs and checkpoint git; DuckDB and browser gates sized to their use

The team roster sat in the stable half of the system prompt, which each warm engine process is
keyed on, so adding, renaming or removing a bot closed every warm engine ("spawn contract
changed"). The rules stay stable; the roster rides the volatile half, delivered with the turn
that follows a change.

Background engine calls nobody waits on (setup suggestions for a new bot, memory upkeep, skill
review, thread titles, warm summaries) run 3 at a time across bots (OMB_BACKGROUND_TEXT_MAX);
a warm summary a turn starts waiting on, compaction, the representative and status replies start
at once. Checkpoint git runs 4 at a time across bots (OMB_CHECKPOINT_GIT_MAX).

DuckDB threads and memory follow the container's CPUs and memory (availableParallelism, which
counts a cgroup cpu.max quota), not the host's.

A browser session's egress gate (a loopback listener per session) is closed once its browser has
ended and nothing uses it, and opens again on the same port where that port is still free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(procs): roster stays out of the per-turn half and reaches warm engines as a note; interactive side jobs first

- The team roster is back in the stable half, so availability changes no longer re-send it. A per-thread Claude
  process is keyed on the stable half without the roster (SendTurnInput.systemRoster), and a warm one gets a changed
  roster once as a note: adding, renaming or removing a bot relaunches no engine.
- Background slots: thread titles and setup suggestions wait ahead of memory upkeep and skill review; setup
  suggestions' 6 s deadline does not count the wait for a slot; a thread title keeps its slot until its engine call
  has really ended; a warm summary that waited for a slot checks the cache and holds again and skips when stale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(procs): register the slot limits as server-only; team setup e2e finds a turn by its prompt

OMB_BACKGROUND_TEXT_MAX and OMB_CHECKPOINT_GIT_MAX size the server's own job slots (job-slots.ts); nothing in a
bot's box reads them, so they join SERVER_ONLY_OMB.

team-setup.e2e waited for each turn by a new fake-Claude pid. Since adding, moving or removing a bot no longer
relaunches the engine (the roster reaches a warm one as a note), the "Delete Patch" turn runs in the same
process as the one before, with the changed roster as a note, and the wait timed out on every platform. It now
waits for the dump of the turn whose prompt carries the text it sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Usage caps: optional day and month caps for the server and each bot, open to every edition

A server running many unattended bots can now cap a day's and a month's usage, for the whole
server and for each bot, in estimated dollars and/or tokens. None is set by default. A reached cap
stops new unattended work (or everything, if the owner chooses), cuts nothing off mid-turn, leaves
one line per refused piece of work and one notice per cap per period, and lifts by itself at the
UTC rollover or when the cap is raised. The licensed monthly spend limit reads its totals from the
same engine and is otherwise unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Usage caps: per-routine skip rows, once-only runs wait, started work carries on, cheaper totals

- A capped routine's skipped row is keyed by its routine, cap and period, so two routines under
  one cap each keep their own row.
- A once-only routine that comes due while capped stays on; its time moves to the cap's reset.
- The cap is checked only before new work starts: a run resumed after a hand-off's result, after
  its owner answers a card, or picked up after a restart carries on.
- A person's Run now test of a webhook counts as started by hand, at delivery and at turn start.
- Settings shows the environment's values in the greyed fields, and a save keeps config.json's own
  values (and saved stops) instead of writing the environment's.
- cap-notices.json is validated entry by entry on read.
- Totals are running sums: the month file is read once, then only appended bytes, and only when
  its size or time changed. The licensed monthly limit's refusal carries resetsAt, so a Bot API
  caller gets Retry-After.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Usage caps: register the cap env names, keep UsageSection on the closed scale, add pt-br strings

The five OMB_USAGE_CAP_* names are read only by the server (server/usage-caps.ts, passed to the child by
control-omb), so they join SERVER_ONLY_OMB. The cost caveats line uses leading-5 in place of leading-relaxed.
pt-br gets the 40 new strings with their source hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Usage caps: keep server/index.ts at main's size

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/index.ts
#	src/state/store.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	server/drivers/claude.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* This computer: file tools for bots on API models

A bot on the chat runtime working on this desktop's own computer could reach
the person's files only by driving the screen. The local-computer bridge now
lists list_files, read_file, write_file and make_folder beside the driver's
tools and answers them itself, after the same per-call gate as a screen call.

Only the person's own folders: home and its subfolders, plus the real Desktop,
Documents, Downloads (and Pictures, Music, Videos) that Windows reports through
[Environment]::GetFolderPath, which OneDrive may have moved; iCloud Drive and
~/Library/CloudStorage on macOS; XDG user dirs inside home on Linux. Never
hidden top-level entries, Library, AppData, the app's data folder or
PowerShell profiles, and never through a link or junction. Reads up to 10 MB,
writes up to 25 MB through a temp file and a rename, replacing a file only
with overwrite: true. Claude Code and Codex bots are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* This computer: the remembered tool list carries the file tools

The host computer's remembered list is keyed on the file-tool switch too, so a
list remembered with the file tools is never offered by a bridge without them.
An e2e mounts the real bridge through mountChatTools twice and sees the file
tools in the remembered list while the driver is still starting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* This computer files: closed at any depth, nothing that runs, a file card

- Reads and writes refuse a hidden name at any depth (.git, .env, .vscode,
  node_modules/.bin), a folder named PowerShell or WindowsPowerShell at any
  depth, and ~/snap on Linux.
- Writes refuse the file types the system runs (Windows scripts, programs,
  shortcuts, desktop.ini; macOS .command/.app/.tool/.workflow/.terminal;
  Linux .desktop), anything inside a macOS .app bundle, any file directly in
  a folder on PATH, and replacing a file with an execute bit.
- A new file is put in place by a hard link (or an exclusive copy where links
  are not supported), so a file that appears meanwhile is never overwritten
  without overwrite: true.
- A file call's one-time card asks to read and save files in the person's
  folders (approval.yourComputer.files, en + pt-br), not to use the screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Self-hosted Linux servers hold turns for room instead of running out of processes or memory

In a container with a memory or pids limit, a turn now waits in the existing "waiting" state while its engine would
not fit, and starts by itself when there is room.

- Limits are the container's own: cgroup v2/v1 memory.max and pids.max (process-limits.ts), never /proc/meminfo's or
  os.totalmem()'s host totals. The memory gate (engine-memory.ts) runs on such a server too, reading the cgroup.
- OMB_TURNS_MAX_RUNNING: a number, "auto", or "off"/0. Unset, in a limited container: the smaller of
  (memory limit - max(320 MB, 10%)) / 700 MB and (pids limit - max(32, 10%) - 40) / 60. Live checks on memory and
  pids.current still apply; a pids limit learned from a refused spawn where none is readable (a pod's).
- Threads count: an engine is held at 60 against pids.max, a session in a running engine at 40, and one browser (170)
  while any pending start may open one (two run at once in a container).
- Idle engines: the 30 s close for threads nobody watches applies wherever turns wait for room, and the
  least-recently-used cap keeps no more idle engines than fit beside the working ones.
- bot-thread-limits.ts and the Codex launch slots read the container's memory and os.availableParallelism().
- The server's own shortages (a spawn refused with EAGAIN/EMFILE/ENFILE/ENOMEM, a new session engine that writes
  nothing to stdout for 90 s, a self-hosted engine stopped for memory) fail the turn with one plain line, are not
  resent by the driver into the same shortage, are never handed to a backup AI or a Chief, and start again by
  themselves once, 30 s later, behind the same wait; a routine's run waits as for a busy bot.
- The stop check treats a process group whose members are all zombies as stopped (Linux /proc), so a server with no
  init no longer reports "Claude could not be confirmed stopped" at every engine close.

Desktop: unchanged (never gated). Cloud homes: the same gate as before, plus the first-frame deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Process room in the performance record, and the self-hosting docs for it

server/perf/process-health.ts adds a content-free "Process room" part to the signed health report's perf field, the
@devs report and GET /api/diagnostics/performance: what process 1 is, the pids/memory/ulimit -u//dev/shm limits, now
and most-since-start counts of processes by kind, threads, zombies and open files, the kernel's own pids.peak and
memory.peak, turns running and waiting and the longest wait, and counts since start of waits, refused spawns by code,
engines that never came up, force-stopped and late-reaped children. Numbers and fixed words only; trimmed, then
dropped, under the perf field's size budget. One line at start with the limits found, and one each the first time
the server passes 80% of its pids or memory limit or sees more than 20 zombies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Review fixes: a silent start is stopped only under a shortage, refusals pin only the turn they end, browsers count against the pids limit

- A first-frame stop no longer counts as a refused spawn or teaches a pids limit.
- The 90 s first-frame stop applies only while the server shows a shortage (pids
  near the limit, a refusal since the engine began, memory short or stalled) and
  only once the engine's process tree is idle with no child running; otherwise
  each driver's own start timeout decides.
- A refused spawn fails a turn only for a bot engine's own spawn in a running
  turn; turnStarted clears what an earlier turn left; a failure that names its
  own cause (usage limit, sign-in) is never relabelled, nor a person's stop; the
  Claude driver skips a resend only for the process this gate stopped.
- Browsers ask the pids budget before opening (wait 20 s, then a clear refusal)
  and each running browser counts at full size while it runs.
- outOfProcesses reads only a failure's head; a synchronous spawn ENOMEM is
  counted; a checked-items routine run waiting for room is held to the hour.
- host-fault.ts and its test are #6173's copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* CI fixes: the usage-limit wait lives with the failure words, and OMB_TURNS_MAX_RUNNING is the server's own

engine-memory.ts now reads failures through process-shortage.ts and engine-errors.ts, which loaded
drivers/acp/quiet-status.ts only for usageLimitWait, so the prompt builder pulled in an ACP driver
(agents-bridge-switch.test.ts). limitQuietMs and usageLimitWait move to engine-errors.ts unchanged,
and quiet-status.ts imports them from there. OMB_TURNS_MAX_RUNNING joins SERVER_ONLY_OMB: only the
server reads it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Browsers wait for the server's room through #6182's BrowserRoom

On main, agent-browser's browsers pass BrowserRoom (browser-room.ts), which counts them. The process room for a
self-hosted server's pids limit is now asked there, once the count allows a new browser, and a spare browser is
closed for it before a call is refused; before, both rooms were asked one after the other and a call the count
refused could hold room for processes it never started. The router's own room hook now covers only the opt-in
engine's browsers, which BrowserRoom does not count. The docs and a comment no longer say a container runs two
browsers at once: main sizes that by the server's limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/acp/quiet-status.ts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A bot asked how to configure OpenMausBot answers from guesswork today: the
pages that explain each area live in docs/, which the installer does not ship,
and the values live in files under ~/.openmausbot/ that no prompt mentions.

This adds a bundled skill that routes a question to the page covering it and
to the file holding its current value, states the rules that are easy to get
wrong (approval is per bot, routines are calendar rules, built-in skills are
mounted by keyword, memory is local markdown, config.json is hand-editable
while bots.json and routines.json are not), and says to read a setting back
instead of describing it from memory.

Its test mounts the skill on the right turns, keeps it out of ordinary work,
and fails when the guide names a docs page that no longer exists, so the
routing table cannot drift.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every non-keep message, including role=="user", competed newest-first
for UNSEEN_MAX_MESSAGES / UNSEEN_MAX_BYTES, so a person's instruction
could be absent from the model's context for multiple turns. User lines
now bypass the optional budget like keep-marked teammate results do.
The preamble's not-your-approval note is scoped to teammate lines so an
explicit user approval no longer sits under a sentence disclaiming it.
Owner decision: no restrictions or safeguards from the app's side; the models
have them built in, and the person's approval level decides what is asked.

list_files, read_file, write_file and make_folder now work on any full path the
person's OS account can open, with the OS's own error text when it says no.
host-files.ts (allowed roots, known-folder lookup, hidden-name, Library/AppData,
data-folder, PowerShell-folder, executable, .app, PATH-folder, file-type, snap,
link and UNC rules) is deleted; links are followed. list_files with no path
lists the home folder. The bridge switch is a plain OMB_HOST_FILES=1.

Kept: the per-call approval gate (files=1), the overwrite flag, writes through a
temp file and a rename, the real path in results, and the 10 MB read / 25 MB
write caps. Still only for chat-runtime bots on this desktop's own computer.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Settings map: bots name only real places in the app

A generated list of every page and row Settings has (shared/settings-places.ts, from Settings' own index and the
English catalog) backs the app_settings registry's where, a new places action, and find's fallback. Stale menu
paths in server, shared, phone-protocol and electron text now name real places, and a guard keeps them real.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Settings map: the phone row test reads the real desktops place

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat fixes what blocks a bot: AI sign-in card, model switch on failed turns, one-time nudges

app_settings show_card ai-sign-in draws the real Providers control in the chat. A failed turn that another model
fixes carries the bot's model picker, and a spend-limit refusal opens Spending. When a conversation repeats a
cause one setting fixes, the bot's next turn gets a note to offer that fix in one line, once per conversation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat fixes, review: account-only sign-in card, nudges only for a current cause

The AI sign-in card shows Simple Providers with only the accounts a person signs in to (Claude, ChatGPT or Codex,
Antigravity), behind the admin gate. Nudges are for another model only: failures since the bot last answered, on
the model this turn runs, told to ask the owner where set bots.model is refused. Sign-outs and spend limits refuse
the turn itself, so their row offers the fix; the spend limit is read from our own refusal, and anyone who cannot
open Spending reads the way in words. The row's model picker stays out of rooms and the phone layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Drop "bot settings" from triggerTerms: it matched a bot authoring a
  settings form by substring. A test case covers that phrase now.
- Say in the guide that the environment wins over config.json
  (OPENAI_COMPAT_URL, OMB_JEV_API_KEY, OMB_<PROVIDER>_API_KEY), and that a
  file read is not proof of the value the process loaded.
- Replace the "nothing leaves the computer" promise: memory is local
  markdown, but a turn's text reaches the bot's model provider and the
  helper's provider, and a Cloud moves the data folder.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The guide promised that nothing else uploads the data folder. Anything on
the computer that copies it, such as a backup service or a synced home
directory, takes it along without the app being involved.

Co-Authored-By: Claude Code <noreply@anthropic.com>
A direct turn's and a room task's first-message title now ask threadTitleGate, as Regenerate title and a call's title do: the hosted-model allowance, the organisation's policy and the spend cap decide all of them. The direct turn already checked all three before its title call and the room route checks the spend cap on entry; the room's title call skipped only the hosted allowance. The new spend-cap test holds that no title call goes out once the workspace is at its cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- meetings prompt: back under its pinned budget (#6203's longer Settings path);
  the sandbox prompts' baselines move by the +130 bytes #6203 added on purpose
- shared-computers gate: the list now carries #6203's thisComputer note
- host-lazy-claim: the allow card's detail line is #6203's new wording
- host-files e2e: the first start gets the whole start budget, so a slow runner
  lists the real tools, not #6208's stand-in
- use-my-mac e2e: the fixture browser keeps a daemon pid file, so #6184's
  sweep of ended browsers leaves its gate open
- claude driver tests: Windows keeps one NO_PROXY spelling (#6183); on Linux an
  uncollected zombie counts as stopped, as stopCliTree counts it (#6181)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Routines (#6173 x #6179): a run whose engine the server had no room to
  start (EAGAIN/EMFILE/ENFILE/ENOMEM) waited as for a busy bot, rechecking with
  a real spawn every 30 s for up to an hour, and only then counted towards the
  failure spacing: 427 spawn attempts a day for a 5-minute routine on a full
  server instead of 9. It now waits once (30 s, no retry used) and a second
  refusal fails the run with the refusal, so the spacing counts it: 18 tries
  in 9 runs a day. The spacing and incident-spend tests say so.
- New bots (#6203) start on This computer only while the desktop app has
  handed this server its computer's driver, as Auto already required; without
  it every turn of a new bot failed with "Only the OpenMausBot app on this
  computer can let a bot use it" (setup-import and cloud-send-kinds e2e on
  Windows and macOS).
- browser-room: cgroup paths are joined with path.posix, so the pids-limit
  tests pass on Windows.
- connector agent test: waits for the fake Admin's own live connection after
  the drop, counted from the drop, instead of a fixed connection total.
- bot-link test: waits for the answer line itself; the 400 ms stall clock can
  add a line first on a slow runner.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The comment-history guard (AGENTS.md, Comments) failed preflight on main.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Simple mode called the levels "Ask me first", "Just do it" and "Decide
for me" while Advanced called the same levels "Ask for approval", "Full
access" and "Approve for me". Simple mode now reads the Advanced labels
(Custom stays short), the unused Simple keys are removed from every
locale, and the skipped-question line, bot prompt, comments and docs use
the same names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The menu was measured when it opened and when its row count changed, so a
height change from anything else, such as touch sizing taking effect without
a window resize, left it where it was. It now watches its own height while
open, as the thread row menu does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A snooze ends by the clock, with no change to the bot's conversations, so
the cached list kept leaving the conversation out and a row whose only other
conversation was snoozed kept offering a new one. The row now wakes at the
nearest deadline, the way the thread list does, and recomputes the list.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A page that asked to be closed while Point was on left Point on: the card
then had no way to open the page again and the preview stayed reachable
by keyboard until Escape. Closing from the page now ends Point first, as
the card's own button does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Agencies with many sub-accounts of one app hit "already has the maximum of 5
accounts". Both the project-key path and the managed broker now ask Composio
for 10, its maximum. A Session made under the old cap keeps it, so before a
sign-in link one with a lower echoed cap is raised in place with PATCH
/tool_router/session/{id}, keeping its id and MCP endpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A teammate handed work in one room while it runs in another room (or one of
its own threads) showed only "Queued (1 of 1)" or "waiting for <lead>", so it
looked like it ignored the hand-off. Each queued entry in a room's line now
carries where that member is busy outside the room, and the room's queue
list and member chip read "Busy in <room or thread> · queued (N of M),
starts when it finishes". A place the viewer can't see is not named. The
lead's hand-off receipt says the same.

Closes #6178

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
trigger_info answered "No trigger with that id belongs to this bot" as a failed
tool call, and a failed call still pending when the bot answers ends the turn
as tool_error: the person's chat showed "Stopped because the tool call
"trigger_info" failed" next to a correct summary. The same tool answers "This
bot has no triggers." as a plain answer, so a miss on one id was the odd one out.

The listing now says which case it is (missing: true) and the driver passes a
miss on as an answer. A refusal stays a failure: another bot's automations, a
conversation that does not belong to the sender, a request that did not apply.

The message lives in one place (NO_SUCH_TRIGGER), so server/host/team-routines.ts
and server/trigger-tools.ts stop carrying two copies of it.

Refs #6240
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A room bot's meter puts its name where the chat meter puts the share, so the
tokens had no place and Advanced mode showed only the percent. They now sit on
their own line under the bar; Simple mode and the chat meter are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The context route checked that the engine still held the conversation only
before asking it. A Start fresh, rewind or summary that landed while the
engine was counting let the old conversation's count through. The route now
checks again once the engine has answered.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
DeepSeek joins the voice providers and uses the saved DeepSeek key for both
directions. Choosing it defaults to Stella, keeps a saved Tide, and sends
dictation and call turns to DeepSeek ASR only, with no fallback to another
paid provider. Recordings cap at 115 seconds under ASR's 120-second limit,
and the server checks size and length itself.
The card in a chat was wide and short, so a page looked squashed. It is
now at most 560px wide with a preview up to 296px tall. When the page
does not open with a heading of its own, the card puts the page title
above the preview; a page that does keeps its own heading only. A
clipped preview ends in a short plain gradient instead of a hard cut,
and the footer carries the page icon in a tile. Brazilian Portuguese
gets its word for "Page".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A network error or timeout on the PATCH threw out of raiseAccountCap and
stopped the link. Now it is logged, the Session is not marked as raised so
the next link tries again, and this link goes ahead (server and broker).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a queued member was busy in another room or thread and also waited
behind someone in this room, the lead's receipt and the queue label dropped
the "after <name>" part. Both now say it (new en keys busyInAfter /
busyElsewhereAfter).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pt-br is a complete pack, so activePackComplete (src/lib/i18n.test.ts)
failed with the four new English keys missing there. Hashes recorded with
generate-locale.mjs --record-hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Desktop lease (real bug): the Windows process-list probes still called a helper
  that the machine-id change had removed, so the call threw, was swallowed, and an
  exited owner that still answers EPERM held the data folder: the desktop app could
  refuse to start with "already using this data directory". They use the shared
  probe helper again. The iCloud folder check joins Mac paths with "/" on any host.
- kill-tree test: an orphan killed but not yet collected (state Z) counts as gone,
  as killCliTree already counts it.
- Text that moved with the Settings map: the loopback hint and the Cloud owner's
  review line name Desktops & browser and Phone & devices.
- host-files test: the temp root is resolved natively, as the tools resolve it, so a
  Windows short name (RUNNER~1) matches the long path the person sees.
- shared/settings-places.ts is pinned to LF, so the Windows checkout matches the
  generator byte for byte.
- automation-reports e2e: the automatic second start is scripted too; the run's
  error no longer carries the turn's minute stamp, so two runs a minute apart match.
- loop-stalls: the median's bound allows a busy runner's timer slop.
- bot-link: the clocks are proven before the restart; after it the place restarts
  with its usual clocks, and the computer-goes-off test's Cloud clock has room for
  a slow Windows runner.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The card decided from the page's markup, so a heading hidden with CSS kept
the title off, hidden text before a heading added one, and a page drawn by
a script or as jsx got its title twice. The page helper now reports, from
the rendered page, whether the first text it shows sits in a heading near
the top, and again whenever that changes. The preview stays covered until
the page has said, so the card is laid out once. The footer icon is bare,
as DESIGN.md asks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A card whose page was unloaded to make room, or is loading again, dropped
its title and 44px of height until the page came back.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The host holds a room hand-off while the member runs (bot.busy), not while
it is only due later in another room's round, so busyIn now follows that.
A busy-elsewhere entry that also waits behind a member the viewer can't
name now says "queued after a teammate" instead of dropping the room wait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The heading report skips text under an element at opacity 0, and looks
again when an animation or transition ends, since a fade changes no
attribute the observer could see.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
When the wait ran out the card only kept the fallback in its own state,
so a page saying it was still drawing covered the preview again, as
often as it liked. The fallback is now kept with the page's answers, by
message and version, and "still drawing" is ignored once there is one;
a later yes or no still moves the title. The frame host passes an
answer on only when it differs from the last, and the remembered
answers are capped at 200.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The heading and the size were two messages a frame could fall between,
so now and then a short page's card was seen for one frame at the
loading height, title on, before it shrank. The helper puts its first
answer on the size report and the frame host hands the card the size
and then the heading in one turn.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A room turn without a round line can still be queued. Count it as the
busy place only when the member is its speaker or the round's current turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bot color also colours the chat, but Bot settings > Identity drew the
color swatches only for the Mascot shape. After a photo upload (Circle,
Rounded, Square) the row vanished, so the chat color could not be changed.
Show the Color row for every shape; face color, expression and bodies stay
mascot-only.

Closes #6257

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the lease owner's identity check compared the pid's creation time, as
Windows reports it, strictly against the createdAt the owner's own Date.now() wrote.
The two clocks are read differently and can disagree by a timer tick or an NTP
step, so an owner that wrote its lease moments after starting could read as a
reused pid and its lease was taken over. A creation time within 5 s of the lease
now still counts as its owner; a later one is still a reused pid.

tasklist output with no line at all now proves nothing (null), so the CIM probe
answers instead of the pid reading as gone. Neither signalled nor listed still
fails closed.

The Windows probe tests move to electron/data-dir-lease-windows.node-test.mjs,
with parser and decision tests and POSIX-shim cases for a creation time just
after and long after the lease.

The no-spacing routine test runs six hours instead of a day: a day of 288 runs
took a Windows runner past its 40 s.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A member speaking in one room gets a job from another room; the queued
entry names the first room (busyIn). Fails on main (no busyIn), passes now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Hosted Team is now one plan priced by seats, bought and managed on the
team's People page on MausBot Cloud. Every place the app invites people
now opens that page's invite box (one constant, TEAM_PEOPLE_PAGES), the
Owner also gets the seat stepper link, Admins invite, and anyone else is
told to ask a team admin. The plan card no longer says "up to N people",
and the new Team Cloud's last welcome step says a 2-person team includes
one more person.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Work sent from a room to several of its members now runs in parallel
lanes unless features.parallelRoomJobs is set to false. No new setting:
the existing flag flips its default, and false keeps the old
one-at-a-time behavior. Lane jobs get the room bulletin, and work sent
into another room stays in that room's thread.

Refs #5936, #5937.
* Share, export and import as one template folder, one card and one tool

A bot shares itself when asked (the header Share or the chat ⋯ sends the ask); a department's … → Share makes its card
at once; + → Import… adds one from a GitHub link or a folder. The template is a folder (bot.md or team.md as BotMRR v2,
skills/<name>/SKILL.md, avatars/), read and written by shared/share-folder.ts through the package parser, with no chats,
memory, keys or connection addresses. Publish sends it to the Admin's community submissions; without a MausBot sign-in
the card offers Save folder… and GitHub's upload page. The share tool sits in the Pages and apps group. The old share
dialogs, the share-defaults preset, the Templates tabs, the package and library exports and the folder scout are gone;
/api/teams/export keeps backups only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Drop the deleted tests from the shard weights

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Drop the folder scout's analytics event from the docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Count share among the Pages and apps tools in the tool groups e2e

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Expect Share as template in the bot panel's Share menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Publish to Netlify: sites are public by default

deploy.mjs now turns the site's team login off (PATCH sso_login: false) on
every publish, new site or redeploy, and waits for the link to answer as
public. --keep-private skips that. --make-public still works on its own.
When the team refuses the change, the deploy still succeeds and reports
access "private" with where the Visitor access setting is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Publish to Netlify: open only a ready production deploy, remember a private choice

The PATCH now runs once a production deploy is ready, before the link
check, so a draft or a failed or unfinished deploy never changes who can
open the site; --check opens it when it finds the deploy ready.
--keep-private is saved as keepPrivate in the site record and honoured
until --make-public. A private site records why: person, team (403/422),
protected (opened but still 401, e.g. a password) or unknown. Any other
PATCH failure after a live deploy is reported, not a failed publish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Store: save bots, rooms and their threads through a registry interface

server/registry-store.ts names what the Store asks of its persistence:
load, a whole-list write, a thread upsert with how soon it must be on
disk (now / at the end of the batch / deferrable), an owner delete and
the batch boundary. Its one implementation, JsonRegistry, is today's
bots.json and groups.json code moved out of the Store unchanged: the
same atomic writes, fsync, 0600 mode, unchanged-text skip, saveSoon and
saveLater keys, and supersede on a whole save of the live list. The
Store's own saveBots/saveGroups stay the single write path, so rollback
on a failed save is untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Registry seam: rooms cannot ask for a deferred save; reorder test fails saveGroups

store-reorder-groups.test.ts spied on the Store's private groupsFile,
which moved into JsonRegistry; it now fails the save through saveGroups,
as store.test.ts does. upsertThread refuses "later" for a room at the
type level: nothing of a room may wait, and no room save supersedes a
waiting write, so a deferred room save could otherwise overwrite newer
state after the fact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Chat: a preview card under a reply that links to a published site

A bot reply that links to a site a bot put online (a Netlify site, a
published page, or an app in the Published apps list; https only) shows
one card per site under it: the site drawn small with the card picture's
sandbox, its name and address, Open (the preview beside the chat, full
screen on a phone) and Open in browser. At most three a message, none
while the reply streams, none for links in code.

The framing check now answers "login" for a site that answers 401, so the
card and the side preview show the login line instead of a frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat site cards: only the person's own sites, newest reply only, frames unloaded off screen

A live card is drawn only for a site in the viewer's Published apps list,
which now loads when the app starts and again (throttled, once per link)
when a reply links a Netlify site or page the list doesn't hold; any other
netlify.app link stays a plain link. A site is drawn only on the newest
reply that links it, a published page's own card gets none, the picture's
frame is dropped while the card is well off screen, and the click target
is an overlay button beside the frame rather than around it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Chat site cards: no card on a template message; the probe test expects the answer's status

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
About 48 English lines named Settings pages that no longer exist (API keys, General, Remote access, Logins,
Computers, Backups, MausBot Cloud, Usage…). Each now names a real place, and its translations swap in the same
place in their own words; a translation the swap can't fix falls back to English, and pt-br is written by hand
where needed. The guard now also reads src and the English catalog, and the ›, > and -> forms.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- memory_update, attach_file and send_voice_note go up as names on a Claude
  turn with tool search on; a Chief keeps coordinate_bots whole so a hand-off
  needs no search request first.
- A Claude turn whose tool search defers the agents tools is not bridged,
  whatever the switch says; ENABLE_TOOL_SEARCH=false in the instance's
  environment brings the bridge back. A local model keeps its default bridge.
- The bridge rule and an automation run's reply rule ride the volatile half,
  so a routine run reads the bot's cached prefix instead of writing a new one.
- The Data server stays mounted wherever it was; its 1.2 KB prompt section is
  sent where the bot has used Data or the conversation's first turn asks for
  data work, and a one-line pointer elsewhere. The choice is kept for the
  conversation, so it never relaunches a warm engine.

New bot: 33,875 -> 29,967 bytes up front per request; Chief: 36,628 -> 35,051.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Rewords the stable system prompt's own blocks tighter (who is speaking, team
roster, shell, data, credentials, threads, widgets, Just do it, recall,
automations, profile, reply habits, the Chief's delegation and setup
paragraphs): duplicates merged, examples and explanations cut, every rule
kept. The applied-result rule is sent once when both profile and /learn
rules are present (LEARN_RULES_PROMPT).

Moves the static memory rules (memoryRulesPrompt) and computer-selection
rules (computerSelectionPrompt) from the volatile first-message note into
the stable half, so they are cached; the note keeps what memory holds now
and one line saying this turn may choose a computer.

Lowers the prompt budget baselines to the new sizes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page opening with an h4, h5 or h6 got the card title on top of its own
heading. After an update, the wait for the page's answer started while the
previous version's document was still in the frame, so a fetch slower than
the wait put the title over a page that had not been asked yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Main brought agents-call.ts to 1,000 lines, so #6189's added check made it 1,001. The check now sits on the
previous if's else branch; behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While an updated page was still being fetched, the frame of the previous
version could report its heading and have it stored for the new version.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A queued room line steered while a member works a job the lead handed it
no longer folds into that member's turn. A line that @mentions bots
steers only a bot it names; an unnamed line goes to the lead. The line
stays queued and nothing is stopped.

Refs #5937
A switch sent while a tapped field's keyboard was still coming up left the field with no keyboard, and the call was refused.
The model menu's usage rows covered only the bot's own AI. When another
connected AI reports usage too, a row of small rings now sits above them,
one per AI: the arc is the share left in the deciding window, coloured
success, warning or danger as it runs down. Pressing a ring shows that
AI's rows. With one reporting AI the menu is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude Code waits for every synchronous hook before it hands a tool's result
back, and each hook starts the helper as its own process (in the desktop app,
the whole Electron binary). Every tool call of every Claude bot paid for one,
and every turn paid again at its start and end.

- PostToolUse only saves the full output: async, with a 60 s timeout so a slow
  start still finishes.
- PostToolUseFailure only answers a timed-out Bash call: matcher Bash.
- SessionStart only answers after a compaction: matcher compact.
- Stop did nothing: not registered.

Fixes milind-soni/OpenMausBot#5783
The usage bars by the model name were grey with room left and orange both
near the limit and at it, so a glance did not tell "fine" from "out". They
now use the theme's success, warning and danger colors, and each window's
track in the hover card matches, like the plan usage bars in Settings.

Closes #6296

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PostToolUse now runs in the background, so the last tool call's hook can
arrive after the turn has ended and its hook token is revoked. For 60 s after
a turn ends, its hooks bearer is honoured for one thing only: saving the full
output of that turn's own tool calls not yet saved, each once. Revoking the
conversation's bearers ends the window at once.

The fake CLI can run async hooks after the turn's result
(FAKE_CLAUDE_HOOKS_AFTER_TURN_MS), and the hooks e2e plays that case.
- A late PostToolUse names its ended turn by the bearer it presents; another
  turn's bearer on the same conversation gets nothing.
- A tool call is marked saved only after its output is written, so a failed
  write can be sent again.
- A hook request whose turn ends while its body is read falls through to the
  ended turn's window instead of a 401.
- A turn that completes before it is bound to its generation keeps its window.
- The fake CLI runs deferred hooks after a failed result too, and does not exit
  while a batch waits.
The "Every bot is paused" line tells the person to resume every bot from
any bot's menu in the sidebar, but only the Simple-mode menu (under More)
had Pause bot / Pause every bot / Resume every bot. In Advanced mode, the
default for anyone with an earlier run, the bot menu had no pause items,
so an owner could not resume at all.

Build the two items once, before the Simple/Advanced split, and list them
after Duplicate in the Advanced menu. Same rules as before: owner or admin
only, not on a paired desktop.

Closes #6305

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It becomes a hooks capability that is never active, so the route's bot,
fence and kind checks apply to it like any other, and index.ts gains no
request-path guard.
The panel's resize edge stopped at a fixed 960 px, so on a wide window
it could not take more room. It now measures the chat beside it and
can grow until the chat is down to 360 px. The chosen width is kept,
so the panel shrinks with a smaller window and comes back when the
window grows again. Without a chat beside it, the 960 px cap stays.

Closes #6245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit's review on #6300: with localVm false the catalog stopped listing
vm_exec, but select_computer still offered surface "vm". An explicit request
does not fall back to another place, so the handler refuses it with 409 and the
harness counts a failed step, the very outcome this change removes.

The same filter now applies to select_computer's surfaces: "vm" is left out of
the list and "auto" is kept, since Auto already skips unavailable options.
A room turn can complete before sendTurn resolves; the room's cleanup then
revokes the generation before the bind learns the turn. Revoking a generation
keeps its hooks bearer (the last 64), so the bind can still open the window;
revoking the conversation's bearers forgets them.
announcesAction only matched an announcement at the start of a short reply, so a leading acknowledgement ("Yes, I'm here. Let me pull ...") hid it and the turn ended without the nudge. Also test the last sentence against the announcing phrases (allowing a leading "now").

Fixes #6290

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: ARAYN7011 <88572149+ARAYN7011@users.noreply.github.com>
Generated thread titles are always on
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without a late request to sweep them, ended turns' records stayed until one
came. Each turn's end now prunes the closed ones.
A 429 from a registration endpoint ("Please try again in an hour") was reduced to "would not register ... Try again later", so the person kept retrying. The message now carries the HTTP status, the server's error_description and any Retry-After.

Fixes #6299

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: ARAYN7011 <88572149+ARAYN7011@users.noreply.github.com>
A press on the drag edge without moving saved the width clamped to the
current window instead of the user's choice. The ResizeObserver watched
only the chat <main> present at mount, so after a view change swapped it
the maximum went stale; a MutationObserver on the row now moves it to the
new <main>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The digest re-sent after a compaction no longer keeps saying "from tool
previews" for a turn whose full outputs all arrived. The fake CLI also
ignores a deferred hook that closes its stdin early.
The checkpoint diff re-renders the digest from the copy built at turn end;
it now keeps the coverage stored by then. The fake CLI schedules deferred
hooks on every turn end, a failed stream script included.
A NavRow value was shrink-0 at up to 45% of the row while the title
could shrink to zero, so on a phone the title ("Apps it can use",
"Who can see it") was squeezed into a narrow column. The title now
keeps at least 45% of the row and the value shrinks and truncates.

Closes #6315

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DeepSeek Harness (@deepseek-ai/dsh) needs Node.js 24.9.0 or newer. On an
older Node it quits before answering (silently with exit 0, or with a
Node syntax error), and the chat only said "DeepSeek Harness exited 0
before the prompt result".

An ACP engine can now declare the oldest Node.js it runs on. While it
starts, the driver reads `node --version` from the engine's PATH; when the
engine then exits before its reply on an older Node, the error names both
versions and says to update Node.js. Engines without a minimum, and runs
on a new enough Node, keep today's words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
truncate on the inline-flex value box does not reach its text in Firefox
(the text becomes an anonymous flex item), so a long apps list was cut
without an ellipsis. Truncate an inner span instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A model that sent a tool call whose arguments were not valid JSON got a
tool error back, but the history kept the broken arguments, so a strict
OpenAI-compatible server refused the next request with HTTP 400
("Assistant tool call function.arguments must be valid JSON") and the
turn died before the bot could retry. Calls whose arguments the tool
loop refuses are now replayed as {}; the tool result still says why the
call didn't run. The argument parse moves to toolArguments() so both
places use one rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pressed ring stayed selected after that AI dropped out of the usage report,
so the menu showed neither rings nor rows while the bot's own AI still had
usage to show. The rows now fall back to the bot's own AI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Train U1 (Nov 16 b): 10 AdityaUmale fixes
A tool with no arguments can stream "" or whitespace; strict providers
reject that on replay just like cut-off JSON. Replay only arguments that
toolArguments accepts and are not blank; everything else goes back as {}.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bot's cloud backend starts as Boat. When Boat is not available but a
self-hosted VPS is saved, select_computer only said to connect a paid
Boat account. The cloud option's reason now names the VPS and says to
choose Self-hosted VPS as the bot's cloud backend in Bot settings, Access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Arguments led by a byte-order mark run (trim() drops U+FEFF) but were replayed
raw, which a strict provider refuses. Replay the trimmed text in that case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
list_models dropped models marked needsCliUpdate or orgBlocked without a
word, so after a Claude Code update a bot told a user Fable 5.2 was gone
from the Claude list, when it only needed a newer Claude CLI (2.1.321).
Each engine row now carries `blocked: [{ id, why }]` for matching gated
models (capped at 8), so the bot can say "update Claude Code" or "your
organization turned it off".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Chief's propose_team_setup can now set an existing bot's MCP server list.
A plan that touches that list never applies on its own, even under Full
Access: it always becomes the owner's card, which is answered from the
desktop or a paired Full-access device. Names are checked when proposed
and again when confirmed, a server another bot owns is refused, and a
change to the bot's list in between cancels the card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/openai-chat.ts
With an API-key engine every turn waited for every MCP server to start before the first model request, so the slowest
one (a remote URL server, composio, a configured stdio server) set the delay for every turn.

- mountChatTools takes `background` in its options; the chat runtime passes it. With the agents server present, setup
  waits only for the agents server, a computer (this desktop's own or a Local VM), the built-in browser, and servers
  sharing a name. The rest keep starting.
- Each round, joinLateChatTools takes in servers that finished since (tool-limit layout re-run, ask_user kept last);
  one that failed late gets the same "was skipped for this turn" notice.
- A tool, a searched tool and a tool-search tool keep the name they were first listed under, so a server that joins
  later never takes one over.
- This computer's late start keeps working beside it: its stand-in is listed until it starts, and a server joining
  meanwhile is listed after it.
- A refit after a tool call is allowed only in a round where servers just joined; the optional-ask_user downgrade now
  checks the listed definitions instead of a flag.
- Without the agents server, or without `background` (every other caller), setup still waits for every server.

Ported from #6144 onto the mount loop as it is after #6208.

Co-authored-by: AdityaUmale <146627237+AdityaUmale@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train U5: jagtapazad #6195–#6197 (self-hosted names, delegated-notify tests, room turns per member)
Merge train U3 (Nov 16b): 7 contributor PRs
A call whose arguments parse but are not an object (e.g. a JSON array)
now gets the same bounded quote in its failed result as a cut-off call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right-clicking anything but text, a link or a field did nothing: the window's
menu returned early, and the chat bubble's own menu swallowed a right-click on
a video. The menu now lives in electron/context-menu.mjs and is never empty:

- a picture: Copy Image, Save Image As..., Open in Default App;
- a video or audio player: Save As..., Open in Default App;
- a link: Copy Link as before, plus Save Link As... when it names a file
  and Open in Default App when that file is a picture, video or audio
  (a chat player's link included);
- anywhere else: Copy, Select All, Reload.

Text, field, link and spelling menus are unchanged. Save and Open go through
webContents.downloadURL, so each request carries what the page's own request
carries (the Cloud's session cookie, which a media link is bound to) and
streams to disk. Open keeps a private copy, only for picture, video and audio
types, named with the extension its type implies, then hands it to
shell.openPath. A right-click on a picture, video or audio in a chat bubble
now reaches this menu instead of the message menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Devin Pro account advertises 145 models. Discovery used the shared
128-model cap, refused the whole catalog, and the picker kept only
"Devin default". Devin now takes up to 4096 models and, past 128,
skips the per-model variant switches, as OMP does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chat videos already streamed through a viewer-bound media link (v0.1.155);
what still said "too big" or left a dead player was:

- audio, which was still read whole into memory and refused over 25 MB;
- a video Chromium cannot decode (.mov, HEVC on Windows), which showed an
  error over a Retry button;
- the "up to 25 MB" hint under every video.

The media link now covers audio as well as video, and a player's range
request is answered with at most 8 MB from fs.createReadStream, never a
whole read; a request with no Range (Save As) still streams the whole file,
and 416 stays as it was. The link's inline Content-Disposition now names the
file, so Save As offers clip.mp4 rather than "file". Audio asks for a link
and falls back to the bytes when a server links only videos (415). When the
video element fails, the frame offers Download for the same link, whose
right-click menu also opens it in the default app. PREVIEW_MAX_BYTES stays
25 MB for previews read whole.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train U2 (Nov 16b): UI polish, 14 PRs
* Vault: a person's own secret wins over the team's of the same name

usableSecret ranked a team secret and a member's own secret of the same name and bots by updatedAt alone, so when both
were saved in the same millisecond (fast CI runners) the stable sort kept the team's secret first, and a later edit of
the team's secret took over the member's turns. The member's own now ranks first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Activity: list a change the server already answered

Admin activity rows are appended through a background queue, and GET /api/admin-activity read the files without
waiting for it, so Settings > Activity (and bot-api-as-owner.e2e, which read the files straight after switching
acts-as-owner off) could miss the newest row on a slow disk. The route now drains the queue before it reads, and the
test reads through the route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Folders test: give the fake engine's cold start more than a second

bot-projects-api.test.ts waited for the fake engine's dump with expect.poll's default one second; a Windows runner
under load starts the engine later than that. Both of its waits now use hostTimeout like the other host tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The gated server shares the turn's startup budget, which ran out while the mount waited the first-start wait for this
computer, so CI saw it skipped. A driver that failed before gets the short wait instead, inside the budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The isolated openaiCompat fixture now returns a tool call whose arguments
are a JSON array. The continuation must replay the call with {} and send
back the bounded error text; on main the broken arguments are replayed
as sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
A configured secret that crossed the 500-character cut was split, so the
redaction after the cut no longer matched it and part of it was quoted back.
toolArguments now takes the redactor and masks the whole text first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The isolated openaiCompat fixture gets a bad-args-secret scenario: broken-off
arguments with the API key across the 500-character cut. The tool result is the
bounded, masked quote and every replayed call goes back as {}. Fails on b32cf2a83
(part of the key was quoted back), passes now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the MCP bridge for a bot's own computer started `docker exec -i`
(or `docker` over ssh for a VPS) without windowsHide. The bridge itself has no
console, so Windows opened a visible terminal window for each docker child.
Start these console children hidden; the local desktop driver keeps its
current spawn options because windowsHide would also hide a GUI program.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A custom theme with both a light and a dark block still fixed the mode
from its skin or top-level canvas, so the Settings Light or dark control
did nothing. When a theme has both blocks and a plain skin (left out,
system, daylight or midnight), the person's choice now picks the mode.
Decorative skins and single-mode themes keep their own look. The bot
theme guide now says how this works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Team Cloud: a private chat's box can't write team files or read others' conversations

On a Team Cloud a turn that is not the team's (a member's private chat, a
room) now has the bot's own folder (workspaces/<bot>: team notes, memory,
skills) read-only in the bot box, bound after every read-write line; its own
memory layer and conversation folder stay writable. A room's turn that works
in the bot's folder can still make files there, with MEMORY.md, memory/ and
skills/ read-only. A process a bot's conversations share (OpenCode) gets only
the conversation folders and uploads its audience may read: its own
read-write, the team's read-only, never another person's; the shared-process
key carries that set so a new conversation gets its own process.

The Team Cloud host registers the scope with the box
(server/host/team-box-scope.ts); the box learns a spawn's conversation from
its folder or the engine home it runs in. The turn's prompt says the team's
folder is read-only. Personal Clouds and the desktop are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run the Team Cloud box e2e with the locale tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Make a room overlay's memory and skills folders before its box starts

The read-only binds over the team's notes and skills in a room's working
folder are optional, so a missing skills/ would have stayed creatable.
The e2e also checks the team's chat runs in its own conversation folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Chat engines start without waiting for slow MCP servers (#6144, ported to main)
* Team keys and passwords: team 1Password, op:// references, the Vault in the Admin's report

- 1Password on a Team Cloud: an Admin connecting it in Settings → Vault connects it for the whole team,
  and the row says so with the setup to use ("Use a dedicated vault and a read-only service account.").
  It already served every team bot in shared and private chats; a new Team Cloud e2e pins that down:
  an Admin connects, a member's private chat and the shared chat get its secret with no card, a member
  sees connected:false and gets 403 on every /api/logins route.
- op:// references: request_credential resolves op://<vault>/<item>[/<section>]/<field> (titles or ids)
  onto the secrets the bot may already use by name. Never a Login's username, password or one-time code;
  an ambiguous title is refused.
- GET /api/cloud/team/admin gains an additive `vault`: the team's saved secret names (never a member's
  own), when added and the team bots that may use each, and 1Password's state with a fixed failure class.
- /?connect=vault opens Settings → Vault for a team's admin (the Admin's "Manage in the app").

Bitwarden Secrets Manager is not included: its SDK's license forbids redistribution and its protocol
is documented only in that SDK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team 1Password: tell a bot that may use 1Password secrets that an op:// reference works as a label

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
When a one-on-one chat's context was summarized (OpenMausBot's fold or the
engine's own compaction), show one line under the newest compaction note:
"Start a new chat to save tokens." with a New chat button that starts a new
conversation with the same bot (the existing newTask action). Not shown after
a Start fresh divider, on older compaction notes, or to people who can't write
in the chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Templates: a skill's scripts and text files travel with it

Files beside SKILL.md (text only, size-capped, no dotfiles, generated
folders or key files, none holding a credential) go in a template as
skills/<name>/<path>, named in the manifest's skillFiles so a raw GitHub
read fetches only them. Export reads only the files a stored skill's
record lists, still hashing as they came in; import installs them with
the skill. The community submission keeps SKILL.md alone for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Templates: a team's own library and GitHub repositories through the GitHub connection

On a Team Cloud an admin adds a template to team-files/templates/<slug>/
(re-adding keeps the replaced one as <slug>.previous/) and anyone who may
import lists and imports from it; removing is an admin's. Import reads a
private github.com link through the GitHub connection when the public
read finds nothing, and Share publishes to a person's own repository as
a pull request from a new branch or one commit on the default branch.
The share tool gets the same actions, for the team's admins only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Templates: Share and Import gain the team's templates and your own GitHub repo

Share (the chat card's menu, a department's Share) offers Add to the
team's templates to a Team Cloud's owner and admins, and Your GitHub
repo, which publishes through the GitHub connection or says to connect
it in Apps first. Import lists the team's templates with their kind,
who added them and when, with Remove. Strings in English and Brazilian
Portuguese, docs, and a Team Cloud e2e with an owner, an admin and a
member over HTTP and through the share tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Templates: review fixes for the repository dialog, uploads and the share tool

The repository dialog follows the server's reason (connect GitHub, or the
server's own sentence) and is offered to a team's owner and admins only;
an upload's unnamed skill files no longer count against the folder's caps;
a template added by chat records who asked; the tool reads a private link
through GitHub only for a team's owner or admins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat view now reopens the right-side panel (bot's screen or bot info)
the person last left open, after a restart and when coming back from
full-page views such as routines or files. Saved per device; off in the
phone layout, where a panel covers the chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
assignment_status refused every conversation except the one a hand-off was
sent from, so a bot could not check a hand-off it started in its main chat
from another of its own threads. Allow reads across the same bot's own
one-on-one chats when both belong to the same people; rooms, guest-driven
chats, another member's chats and other bots stay refused, and the refusal
now says why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Settings counts as "chat not shown": widening out of the phone layout no
  longer opens a panel over (and so closes) an open Settings, and opening
  Settings no longer forgets the remembered panel; it reopens after Settings
  closes.
- Clear the stored panel only when a panel really goes from open to closed,
  so a StrictMode effect replay can't drop an unavailable "inspector" choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Codex and ChatGPT plan rows can't be removed, and their menu only
offered Rename, so a signed-out row stayed in every model list. Add Hide
(the existing PATCH hidden) to those rows; Unhide stays under
More providers. Added accounts keep Remove.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
skill_manage gets action "import" with a source (owner/repo, a GitHub
link to a skill folder or SKILL.md, or a skills.sh link). The app
fetches it the same way the Skills page Import box does (HTTPS, no git
on the person's computer) and stages it as a create, so it goes through
the same card, secret scan, size and name-clash checks. SKILL.md and
references/*.md come in; the card's summary lists anything left behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Team files: one shared folder for the team and its bots

A Team Cloud gets team-files/ in its data folder (audience team) for every
teammate and bot. People use it from Team files in the Tools menu: folder
list with breadcrumbs, upload by button or drop (100 MB a file, 5 GB in all),
new folder, download, rename, delete (an admin anything, a member what they
uploaded), a preview of text and pictures, who changed each file last and the
space used. Routes under /api/team-files/* are a member's; off a Team Cloud
they answer 404 and nothing of this exists.

Every bot's box has the folder at /team-files, read-only; a bot an admin
marks Can edit team files (teamFilesEdit) has it read-write from any chat,
private ones too, while the folder has room. The prompt says where and
whether it may write. Claude Code's and ACP engines' kept processes are
keyed on that access, so a change takes effect at the next turn.
team-files-activity.json records page changes and, after each turn that
could write, what the bot changed (size and time compared), with the person
the turn worked for. Backups carry the folder (links skipped); a member who
leaves takes none of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name Team files in every language's menu

The account menu's rows must exist in every catalog (settings-words test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fetch the Team files page only when it opens

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Team files: the template library is the admins'

Team templates (team-templates.ts) now use Team files' own folder constant.
Inside Team files, templates/ is listed for everyone but only an admin
uploads, renames or deletes there; it stays read-only in every bot box, a
bot that may edit included, and no turn's changes are taken from it. It
counts toward the 5 GB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Right-click menu for media, and streaming for large chat videos and audio
fix(data): keep null coordinates out of numeric chart bins
A bot reading a hand-off it sent from another of its own chats was told
"Its result resumes you on its own", but the result goes back to the
sending chat. The status route now marks such reads (sentElsewhere) and
the tool text says the result returns to the other chat. The e2e test
also requires the sending chat's inbox to be non-empty before checking
delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/system-prompt.ts
* Bitwarden in the Vault: logins and secrets through the open-source CLI

An admin connects a Bitwarden (or Vaultwarden) account in Settings → Vault with its server, personal API key and
master password. Its Login items fill on their sites like any saved login; Secure Notes and Login custom fields are
secrets by name; and `bw://<item id or name>[/<field>]` references (password, username, totp, notes or a custom field)
resolve at run time where `op://` does. On a Team Cloud it is admin-only and for the whole team, like team 1Password,
and the Admin's report lists it as `bitwarden` with its server, never a value.

The tool is Bitwarden's open-source `bw` build (bw-oss-*, GPL-3.0), downloaded on first use from Bitwarden's GitHub
release cli-v2026.10.1, checked against a pinned size and SHA-256, kept in <data>/tools/bitwarden and only ever run as
a separate process with every secret in its environment. No @bitwarden/ package is a dependency; a test fails if one
appears in a manifest, lockfile or import.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bitwarden: name Bitwarden's own menu as its Account settings, never our Settings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/verification/room-coordination.md
#	server/host/room-jobs.test.ts
#	src/components/RoomHeader.tsx
#	src/locales/source-hashes.json
# Conflicts:
#	src/locales/source-hashes.json
The import fetch can take a while. Reading the thread's approval mode and
the open-card limit before it let a mid-fetch switch to Ask, or a second
concurrent import, slip past. Both are now read after the fetch, right
before staging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-wire.test.ts
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
#	server/index.ts
#	src/locales/pt-br.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/de.json
#	src/locales/es.json
#	src/locales/fr.json
#	src/locales/hi.json
#	src/locales/it.json
#	src/locales/ja.json
#	src/locales/ko.json
#	src/locales/pl.json
#	src/locales/pt-br.json
#	src/locales/ru.json
#	src/locales/tr.json
#	src/locales/uk.json
#	src/locales/vi.json
#	src/locales/zh-tw.json
#	src/locales/zh.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bundled guide sent bots to read and hand-edit config.json, which holds
every saved key. The app_settings tool already reads a setting's live value
and changes it the way the app does, with keys going through the secure card,
so the guide now names it first and keeps the files for what it does not cover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/chat-mcp-tools.test.ts
A stopped Podman machine or Docker daemon at launch no longer hides vm_exec: a
turn that needs the VM starts a stopped Podman machine itself. While no runtime
is installed, the answer is read again at most once a minute, so one installed
later shows up without a restart. The new const joins an existing line so
server/index.ts does not grow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PR gave every npm-backed MCP command a fresh cache under the temp folder
on each server start, for everyone. That fixed a server whose inherited cache
is not writable, but made every other install fetch each npx server again on
every launch, fail to start one offline, and leave a new cache folder in temp
each time. Now the inherited cache (npm_config_cache, or npm's default under
the home folder) is kept when its nearest existing folder can be written, and
only an unwritable one is swapped for the per-process temp cache. A server's
own npm_config_cache still wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
#	server/drivers/agents-catalog-wire.test.ts
The late-result bookkeeping (remembering an ended turn's unsaved tool calls and
the never-active capability for its bearer) moves into
server/host/late-tool-results.ts, and the remaining new statements join
existing lines. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/skill-library.test.ts
Generic "make an image" or "generate a video" requests no longer mount it, so
it never steers people away from the app's own image generation, and it costs
no prompt bytes on those turns. The skill no longer has the bot wait for an
approval before a generation; it says what it used instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner approved #6128 with a rework: a Chief's propose_team_setup may set an
existing bot's MCP server list, through the normal team-setup apply path with no
forced owner card. Under Full Access it applies at once with Undo, like the
plan's other changes; below Full Access it waits on the same card they do.

- submit no longer holds a plan that touches mcpServers back from autoApply.
- propose_team_setup no longer says it never raises another bot's execution
  permissions, which is now untrue for it: it says mcpServers sets an existing
  bot's MCP servers and no other execution permission changes. The other tools
  keep that sentence.
- Undo of an applied list puts back "every enabled server": the store drops the
  field when the restored value is not a list, instead of saving an empty string.
- Tests: the Full Access case applies and undoes; the stricter case waits on the
  card and applies the confirmed list.

Co-authored-by: TuftyBruno <72035488+TuftyBruno@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An import still fetching when the person turned skill authoring off in
Settings could reach staging. The route now reads the setting again after
the fetch, next to the turn-activity check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A plain text edit of the tool list golden; profile bytes and hashes follow from CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/locales/pt-br.json
#6308 read the hook body with readBody, which skipped readInternalBody's check
that a body naming a bot or conversation names the bearer's own. That check
moves into server/host/internal-body-ids.ts, and both readInternalBody and the
hook route use it, so a live or ended turn's bearer writes only into its own bot
and thread. The late hooks e2e now sends mismatched ids with the ended turn's
bearer while its outputs are still owed and expects 403 with nothing saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reverts merge 59393f06e2 and fix 735cf72480, so nothing from #6281 lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reverts merge 769d31cac8 and fix 36d06d01b5, so nothing from #6349 lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The skill_manage import fetch now takes the turn's call signal, combined
with the 120 s import limit, so a turn that stops mid-import cancels it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OMB_DEEPSEEK_SPEECH_API is the fixture endpoint override for DeepSeek speech, the
same kind as OMB_GEMINI_TTS_API, which is already server-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train V1 (Nov 17): 20 AdityaUmale PRs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#6149 (on main since this PR was written) runs room jobs side by side by
default, so the person's line goes straight to the lead instead of queueing
behind the member's job. The test turns parallelRoomJobs off, as
room-queue.e2e does, to cover the room where a steer could fold into a member.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Goldens: profile bytes and sha256 from CI for the new image tools (#6218, #6239)
  and the reworded propose_team_setup (#6128); edit_image joins the image profiles.
- BUDGET_BASELINE: each images profile rises by its new bytes only, 1,292
  (default+images 58718 -> 60010, ...+team+images 67952 -> 69244, ...+hosting
  69815 -> 71107). Claude up-front deferred, fullest: 1546 -> 1589 (+43).
- The edit_image mount test from #6239, lost in the budget-conflict resolution.
- agents-proxy test: propose_team_setup names what it may change (mcpServers)
  instead of claiming it never raises another bot's permissions.
- DeepSeek voice (#6247): the key is under Settings -> AI -> Other services, the
  real place, not "Settings -> API keys" (en, pt-BR, server text).
- Docs skill (#6219): drop team-escalations.md, which main removed in #5188.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	server/drivers/agents-catalog-goldens/profiles.json
#	src/locales/de.json
The gate's body bot/thread check is now internalBodyRefusal(...), so
sign-in.test.ts checks for that call instead of its old inline loops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge train V2 (Nov 17): 13 small fixes from Afloat16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Teams: a What's new for everyone, and an Announcements page with a dot

"MausBot is better with your team" is a centered popup in the What's new
family, first in the notice queue, once per person on every surface but a
branded build or an organization's desktop, never during onboarding. Its
buttons follow who is looking: a Team Cloud's Owner and Admins invite from
the team's People page, its members and a desktop already in a team are only
told, everyone else starts a team (the app's Add a Cloud for a plan of one's
own, else the website's Team checkout tagged app_whats_new_teams). The card
grows in and four teammates join the bot in about 600 ms; nothing moves with
reduced motion.

Profile menu -> Announcements lists, newest first, every announcement this
person could have had here (one registry, src/lib/announcement-history.ts,
plus the cards from announcements.json); popups open again, offers that ended
say so. A red dot on the avatar and the row shows while something is newer
than their last look, kept as announcements-read-<ms> in the browser, the
desktop's record and the place's hints (per person on a Team Cloud, through
PUT /api/me/welcome). Before the first look, everything up to the last
announcement before Teams counts as read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Announcements: its menu words in every language the menu is checked in, and it loads when opened

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Teams popup test: read styles.css the same on Windows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Announcements: the saved record keeps its type

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#6363 follow-up: stop a skill import when the bot's turn ends
Main's merge kept the catalog bytes unchanged; these are the same values as the
first CI round, applied on main's profiles.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Merge train V3 (Nov 17): 8 contributor PRs
Merge train V4 (Nov 17): 15 contributor PRs + #6128 rework
#6111 marked the selected row with a blue tint, a left accent bar, an inset
outline and a ring around the avatar. Back to the plain `raised` fill on rows,
tiles and thread rows, with no avatar ring.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
#6247's train fix moved the DeepSeek key hints to "Settings → AI → Other
services" in English and pt-BR. The 14 other languages still said "Settings →
API keys", so `pnpm i18n:check` refused them and the 0.1.168 release gate
failed. They fall back to English until translated again.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Merge upstream OpenMausBot v0.1.169 (b832de78) into fork main (cc280a91)
Some checks failed
Fleet CI / packaged server smoke (Linux) (pull_request) Failing after 14m20s
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Failing after 16m3s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 4m20s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Failing after 20m26s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Failing after 28m4s
Fleet CI / fleet CI gate (pull_request) Has been cancelled
Fleet CI / companion APK prerelease (main) (pull_request) Has been cancelled
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Failing after 18m29s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Failing after 45m8s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Failing after 45m8s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Failing after 45m8s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Failing after 45m9s
1df29b4eaf
Fork surface preserved on top of upstream v0.1.169:
- Fleet Forgejo CI (.forgejo/workflows/ci.yml, scripts/ci/forgejo-*.sh)
- FORK.md, flake.nix/flake.lock, nix/** (NixOS module + native package)
- docs/fleet-*, nixos, milestones, forgejo-ci, self-hosting, shipping-name, verification/*
- Companion QR pairing + OMB_COMPANION_AUTH_FILE relay (#33, #44): companion/src/{auth-file,qr-code,control,index,proxy}.ts, android STT (RemoteStt*/SpeechDictation*)
- Fleet headless relay (server/request-auth.ts relayCapability, server/index.ts companion auth-file read)
- T3 Code QR pairing + 'omb pair --companion' (server/cli.ts, cli.test.ts, companion/test/control.test.ts)
- Milestones (Forgejo) + Events feed: server/{milestones,events-feed}.ts, server/routes/{milestones,events}.ts, shared/{milestones,events}.ts, src/components/{MilestonesPage,EventsPage}.tsx, src/components/SidebarFooterNav.tsx, store.tsx/en.json view support
- Composer fleet STT dictation wired into use-composer-dictation.ts
Some checks failed
Fleet CI / packaged server smoke (Linux) (pull_request) Failing after 14m20s
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Failing after 16m3s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 4m20s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Failing after 20m26s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Failing after 28m4s
Fleet CI / fleet CI gate (pull_request) Has been cancelled
Fleet CI / companion APK prerelease (main) (pull_request) Has been cancelled
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Failing after 18m29s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Failing after 45m8s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Failing after 45m8s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Failing after 45m8s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Failing after 45m9s
This pull request has changes conflicting with the target branch.
  • companion/README.md
  • companion/src/control.ts
  • companion/src/endpoints.ts
  • companion/src/index.ts
  • server/drivers/pi.ts
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin sync/upstream-0.1.169:sync/upstream-0.1.169
git switch sync/upstream-0.1.169

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff sync/upstream-0.1.169
git switch sync/upstream-0.1.169
git rebase main
git switch main
git merge --ff-only sync/upstream-0.1.169
git switch sync/upstream-0.1.169
git rebase main
git switch main
git merge --no-ff sync/upstream-0.1.169
git switch main
git merge --squash sync/upstream-0.1.169
git switch main
git merge --ff-only sync/upstream-0.1.169
git switch main
git merge sync/upstream-0.1.169
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/openmausbot!45
No description provided.