A fresh app adopted the first connected account its provider listed, even
when no request here started it. A leftover at the provider (a sign-in made
there, or an earlier attempt's) took that card, and the user's own sign-in
was then claimed beside it, so every connect in production made two cards
for one mailbox.
A row is now made only for a connected account a pending request names, an
unfinished sign-in stores nothing, and the insert refuses a second row for
the same provider account when a poll and the cron reach it at once.
Release 0.27.9.
A workspace's connector gave every member its tools but no account, so a
member with no sign-in of their own was told nothing was connected while
the super admin's account sat unused. Account reach now follows the
workspace grant, whoever connected the account, and the run names them.
The Composio listing also filtered on `user_id`, which it ignores, so one
person's sync adopted the whole project's accounts: it takes `user_ids`.
The drawer held only the bot's profile. Its memory and everything it works
with now have tabs of their own, the last one sharing the composer's own
list of tools and knowledgebases.
- Memory: core memory, plus the workspace's memory for the bot when the
conversation is in one. New `update-bot-memory` route; the workspace
request's fields are optional so a memory-only save cannot blank the
instructions there.
- Tools: computer, tools/skills/MCPs with connectors and browsers, and
knowledgebases.
A folder opened from the popup kept the previous folder's rows, trail and name until its own listing arrived, and it kept that listing's scroll offset, so a folder opened part-way down or at its bottom. The listing is now handed back only for the volume and path it belongs to, shows a loading line meanwhile, and is keyed by folder and search so each one starts at the top. The trail is built from the path at once instead of waiting for the listing, and the file preview header puts the size and full path on their own line so a phone no longer squeezes them into a character column.
The Token Plan host has no /audio/transcriptions: its ASR model is served at the DashScope host root, with the audio inline as a data URL and the model's own format and language hints. Async-only slugs (filetrans, paraformer) are refused with the synchronous model to pick instead. The image helpers that recognise those hosts move to one shared module.
A failed send, or a failed dictation, now shows as a dismissible card under the composer in the error or warning tint rather than a line of grey text.
An open panel now answers the swipe that undoes the one which opened it: a left drag closes the rail's drawer, a right drag the bot panel, through a panel-local listener sharing swipe-gesture.ts with the page swipes. SidePanel carries the bot panel's phone width (420px, at most 92vw) for both, and field detection moves to touch-in-field.ts so both hooks ignore a touch in a field.
The working context was 70% of the model's window, and a model whose
catalog never declared one got 70% of a guessed 131,072: a chat on a
custom provider was told it had 91,750 tokens, then had every tool result
trimmed to a bare note, including a 14-character shell answer, and spent
its remaining steps reading nothing.
- workingContextTokens: the declared window less the room the answer
needs (max_output_tokens, else a tenth clamped to 8,000-64,000),
capped by grabContextBudgetTokens when an install sets one.
- An undeclared window is assumed to be 1,000,000, and the guess is not
silent: the picker marks such a model and the Models page says what a
run works to. A provider that refuses the prompt for size stops the
run with its own limit (fatal: no fallback, no rest, no retry).
- fitTranscriptToContext: a result under 2,000 characters is never cut,
a trimmed one keeps its start and its end, and the newest turn's
results are cut last. over_budget says whether the static prompt or
the request is over; the static case stops the run at once instead of
trimming every turn.
- Built-in tools are deferred by family (groupTools, ToolGroups) on a
model short of window; load_tools takes a family name or a prefix.
Wrap-up tools, closing tools and load_tools are never deferred.
- Usage reports what the app's own prompt and tools took before the
conversation did.
twui 0.1.15 stops importing lodash for omit and merge, so a page that
renders a twui component no longer carries the library, and the form hook
takes a shallow copy instead of cloneDeep: EJSON serialises it anyway, and
lodash was putting the conversation page 8 KB over its bundle budget.
Composio's hosted MCP router answers a large tool result with a preview:
data becomes data_preview holding two of the ten messages, a "...8 more
items" marker, and next_steps telling the run to parse a saved response the
app never receives (ComposioHQ/composio#5025). A Gmail fetch of a primary
inbox therefore reached the model as "only 2 emails": a reply told the user
that, and then spent turns looking for the file.
A preview is now recognised wherever it sits in the answer (preview-result),
measured by the biggest cut in it, and rewritten to say that 2 of 10 items
are here and the other 8 were cut, with structure_info, next_steps and
log_id dropped. A connector tool asks the provider's REST API again for the
same tool and arguments, which returns the whole result, and falls back to
that note when it can't (expand-preview-result). ConnectorsNote tells a run
that a preview is never the total and never an empty result.
A coordinator leaked a mailbox password and then told its user an env was
empty. The value came from Chrome's saved-login vault in the browser
profile, which the run could read and printed in a snapshot; the env it
wanted was set all along, and the {{env.KEY}} it was told to write arrived
as literal text in a custom tool's arguments.
A password-named field's value, and that value inside its container's
accessible label, now become [hidden] in every browser tool result
(maskPasswordFieldValues), and a reply, an ask_user card, a suggested step,
a send_message and a task report are redacted through it plus redactSecrets
before they are stored. The profile keeps no saved logins: pruneProfileSecrets
removes the login and autofill stores at every Chrome start, and the managed
policy turns off the password manager, autofill and browser sign-in (site
cookies stay, so sessions stay signed in). SecretsNote says [KEY] means set
and hidden, never empty, and that a page credential is never repeated.
A custom tool's arguments are now filled too (fillEnvArgs on
build-custom-tool, with arg_envs = the computer's envs and the run's, the
run's winning): http and script tools get the value, a prompt tool the
[KEY] marker, and an unset key throws the same Settings > Environment
message as a config template. A filled value is redacted from the result.
The computer image is 1.4.5 (the agent changed), so AppData.ComputerImage
moves with it.
An Add form's Paste JSON button opens a modal that reads one item's JSON, a whole export or a raw config, fills the form and says what the export left out and which documents come with it.
Each existing row's menu copies that item's export-shaped JSON, and a pasted knowledgebase's documents are written when it is saved.
A reply that ran in Plan mode now records bot_messages.plan_mode (from the
job's params) and shows a Turn Plan mode off button under it while the
conversation is still in the mode: one click turns it off and puts
"Plan mode is off, go ahead." in the composer, never sending it.
The planning prompt, the tool gate's refusal and the file-escape review
fault now point at that button, so a bot says what it will do once the
mode is off instead of handing the work back to the user to paste.
Session 135 answered a coordinator's ask_user card and the next reply
proposed and created a custom tool while the header still said Plan mode
was on. Two gaps let it happen.
The card's answer was posted as an ordinary user message and queued as a
plain reply, so run-bot-reply read plan_mode as false and applied no
allowlist. bot_questions now records plan_mode from the run that asked,
and postBotQuestionAnswers carries it onto the message and the queued
reply, for both the answer and the skip. Only Tab, or approving a plan,
leaves the mode; the prompt's "their answer runs with the save allowed"
escape is gone from PlanModeNote, planModeFileEscape and their review
fault.
The mode also hid write tools, so a refused call came back as "There is
no tool called ...", which is untrue and hides the reason. filterPlanModeTools
becomes gatePlanModeTools: every tool keeps its name, description and
schema, and only run is replaced with the Plan mode refusal, so the bot
reads why it stopped and can say so. load_tools is gated the same way, so
a deferred tool can't be pulled in.
prose-choice-question now reads an offer ending in a colon ("Want me to:")
and treats "want me to", "should i" and "shall i" as choice cues, so the
reply that closed session 135 is sent back to ask_user instead of being
shipped as prose options.
Each of the four extension settings pages picks rows with a checkbox
and exports them as one JSON file, or imports such a file from another
install beside New. An import is previewed against what is already here
(item by item: new, already here, different, unreadable) and only then
applied, each item skipped, added, overwritten or added as a copy.
Keys never travel: {{env.KEY}} templates are kept while literal header
and env values are left out and named, so the preview can say which
keys to add. Access grants and all_bots stay behind, knowledgebase
documents travel as text, and nothing is connected on import.
The core takes and returns plain data so a chat path can reuse it later.
The rows' actions also move into a three-dot menu, and the list's
checkbox is pinned so a long title can no longer squeeze it.
list_schedules and list_hooks filtered by the calling bot, so the
coordinator saw only its own routine and reported that the user had no
morning-email routine at all, while the Routines page listed it. The
writes carried the same filter, so a fix that only widened the reads
would have found the routine and then failed to change it.
The coordinator now reads the user's routines and hooks across every bot,
each line naming the bot that runs it (and whose chat it runs in), and
changes, deletes or hands over any of them; a worker keeps its own and
its tools say the list is not a census. The prompt and ActionCheckNote
say the same, so a partial read is never reported as "there is none".
The proposal's own content (host, keys, what would be saved, the bot's check and sources) now scrolls inside a 24rem-tall box, while the outcome and the Reject/Confirm row stay visible below it. A test pins the cap.
Every InlineAddSelect now filters as you type, so a long list of
extensions, bots or workspaces is narrowed rather than scrolled.
InlineAddSelect remounts the field after adding, since SearchSelect
reads its value only on mount. twui 0.1.13 brings the portalled
search select list, which no modal can clip, and a dark low-opacity
shadow.
Below `md` the rail slides over the page, so two swipes anywhere on the page
move between panes: to the right opens the rail's drawer, to the left the
conversation's bot panel. A touch on a field, a code editor, something that
scrolls sideways, or a panel the app slid in belongs to it, and so does a
long press, a selection, a mostly vertical drag, a modal already up and any
swipe wider than a phone.
The panel that used to be the centred "Edit <bot>" modal is the same at every
width: the bot's avatar, its name, or the swipe all open it from the right
over the conversation, and Escape or the backdrop closes it.
The card that moves a plan now announces the new plan on the page, so the
header bar and every card of it change without waiting for a socket push
that a route may never land. The composer's Plan button is filled in the
primary colour while the mode is on, and the notice above the input is
gone: the header tag and the button already say it.
A Plan mode reply that says the write tool is missing, or asks the user to save the document themselves, is faulted: Plan mode is what stops the save, and answering an ask_user card runs with the save allowed. The prompt now tells the bot to ask once with that card rather than paste the whole document.
A reply that ends with a question asking the user to pick, over a numbered or bulleted list of options, is faulted unless the run made an ask_user card. The prompts now say a choice list in the text is not an ask, and that free-form details stay in the message while the choice goes on the card.
A step run that neither finished its step, asked the user, changed the plan nor handed work on is sent back, and a blocked step or one that queued work stops the plan instead of advancing over it. Approving or resuming a plan now turns Plan mode off for that conversation, since its steps write. The plan bar's In progress pill is gray outlined.
Questions, extension proposals, hook proposals and secret requests
used to be a chip on the line that opened their card in a modal. The
plan card already showed in full under the message, so the others now
do too: `RefCardShell` gives them one frame (icon, title, status, the
card body), and the old `*-ref-chip.tsx` files and `RefChipModal` are
gone.
A card is a block, which React refuses inside a `p`, so
`MarkdownParagraph` splits the message's paragraph around card refs
(`isCardRefHref`): the text stays in paragraphs, each card gets its own
full-width line in reading order, decided questions and proposals
included, so nothing waits to be opened.
Tests cover each card rendering its content expanded and the paragraph
hoisting, replacing the chip and modal tests.
A plan bar under the conversation header shows the open plan (title, status, step x of y) and opens it in a modal, and every message that belongs to a plan carries a Plan chip that opens the same card, so a plan is not lost once the thread moves on. The link is bot_messages.plan_id, written when the message is saved (the plan it wrote or the step it worked) since the job that made it is pruned; a finished plan's bar goes and its chips stay. The history read carries the open plan and server:bot-plan keeps it current.
Plan mode is toggled by Tab anywhere on a conversation page, or by the
Plan button in the composer's tools row, and it is remembered per bot and
workspace. It rides on the message as bot_messages.plan_mode, through the
reply job's params, so a retry of that message stays in Plan mode too.
A plan-mode reply reads and plans and changes nothing anywhere: the run's
tools are filtered through a fail-closed PlanModeToolNames allowlist, its
send_reply takes no work and refuses status working, and the computer and
browser notes are left out. The plan card, questions, suggestions and the
closing answer are the only things it puts up.
The header wears a green Plan tag while the mode is on.
A plan step is queued with no user message before it, so the thread read
no reply to come and dropped the thinking row between steps. The history
now carries its open replies, and a reply step for the session stands the
row up until the step's report lands.
`list_files` with only a search never looked past the root folder, so a
picture saved in `images/` was reported as missing and two tasks went
hunting a computer for a script that sat in `scripts/`. `write_file`
accepted base64 text under `.png` and attached a 2.6 KB file that would
not open while the reply said a 1376x768 PNG was there. Replies had no
`import_file`, so a real render made on a computer could only come back
through a shell cut at 4,000 characters.
- Search lists matches from every folder unless one is named, and an
empty search no longer says the bot has no files.
- `write_file` refuses binary extensions, and an image typed as a bot
write must carry a real image signature.
- A chat reply gets `import_file` from any of its computers, and the
task run still imports from its own.
- A rerun reads the failed attempt's reason instead of repeating the
premise that failed.
A bot's message can name the same card more than once, and each chip kept
its own copy of the view, so confirming one left the others saying
"Waiting for you" until a reload. primed views now reach the chips
already showing them, for proposals, hook proposals, questions and
secret requests.
Bump to 0.25.1.
deepseek wrote the answer as plain text in an earlier turn or as send_reply's
own argument, and every path deleted it: the text became a draft, a card turn
lost it, and a bare send_reply kept carrying a faulted draft until the
rewrites ran out. Six production replies failed that way.
- send_reply takes the message itself (message, or text as an alias), so the
shape a model reaches for is the one that works
- a message written beside a card goes out with the call that closes it
- a review send-back clears the held text and the reminder, so a refused
answer is never sent again
- ask_user and suggest_next_steps answer a repeat call instead of throwing,
which read as a failed closing turn and lost the whole answer
- card refs the app appended are stripped from answers and from history, the
way the model learned to write [question:24] itself
- the review faults [proposal:] and [hook-proposal:] refs no row backs
- a pending proposal for the same target is replaced across a conversation,
not just its session, and confirming one replaces the others
- a run queued by a tool wakes the queue and pushes, every active task is
pushed and a conversation keeps polling, so a queued run is not silent
- a failed run closes its bot_tasks row, so it cannot shadow later progress
stdout and stderr are separate pipes read as they arrive, so a line from
one can land before a line the other already had. The test asked for
stdout first every time and lost that race on CI; it now checks one
stream's order and that stderr comes back beside stdout.
The stub replaced the shared grab-provider-preset module for every file
that ran after it, which left generate-image with no image_path and broke
the DashScope image tests on CI. It was never needed: the real custom
preset already has video_path /videos.
Alibaba's Model Studio refuses a batch over 20 whole ("Value error, batch
size is invalid, it should not be larger than 20.: input.contents"), and
AppData.EmbeddingBatchSize is 32, so every knowledgebase document there
fell back to word search.
The adapter now reads the cap from the refusal, retries nothing-stored
batch at it, and remembers it per provider and model for the process, so
later documents start at a size that fits.
Failed documents can be read again on their own, from the row menu, a document, or retry_failed_documents. Knowledgebase and host directory actions move into a three-dot menu, and each mount shows whether it is a computer or a workspace.
A bare send_reply was shipping the previous draft and ending the run, so suggest_next_steps never got a turn. The closing turn now carries the message and its cards, and a cut-off draft is sent back instead of sent.
A crew change or hand-over now carries a because quote that has to be a span of a human message in that conversation. A missing session refuses the call, and crew briefs do not count. Review faults a task named in prose only when its row is gone, and a reply that never sends says why instead of calling the answer a lie.
A chip in bot text is rendered in a real <p>, and five of them put a div beside their label: twui's Modal wraps its target in one, and the secret chip returned a Row. React logged "p cannot contain a nested div" for each.
The new RefChipModal wraps the trigger in a span and mounts the modal only while open, so the card still opens exactly as before.
A reply's prose alone was delivered as its answer, so a bot could say work had started when nothing was queued. Replies and task reports now close with send_reply({status, work?}): bare text is a draft, working must queue work or follow a real run, and queued work is cancelled with an unsent message. The review reads the declared status, and a task report no longer counts its own job as open work.
A review rewrite said the Canva generation was starting now and called no tool. The start-now line only matched a short noun list with three words in front of it, so that sentence went out.
Token Plan has no compatible images endpoint, and a native body with prompt_extend closed the socket before any status. Classify grok-imagine-image and wan image ids as image models, and map an xAI size onto aspect_ratio.
A saving wrap up with nothing to hand off named a missing tool. A reply sent back on its last step shipped the rewrite unchecked. Task reports now use the same record check as replies.
Pull-to-refresh did nothing at all on Android, in Chrome as much as in
the installed app: no icon, no room, no movement. Two silent gates were
shut.
The pull required the content to sit at exactly zero pixels from the
bottom, while every other piece of thread logic calls 48px the bottom.
A phone's fractional device pixel ratio (2.625 on a Pixel) leaves the
content a hair short, and a thumb that stops one pixel early does too,
so atBottom() was false with nothing on screen to say why. atThreadEnd
reads the same measurement with PullToRefreshEndSlackPx (2px) of slack:
still stricter than near_bottom, since a pull needs the content to have
nowhere of its own to scroll, but no longer an exact zero. The old
`?? 1` fallback went too, which read a failed measurement as being at
the bottom.
The anchor was also taken once, at touchstart, and only if the thread
was already at its end, so the way a thumb actually uses it (flick up
until it stops, then keep going) handed over to nothing. The gesture is
now a plain state machine in pull-to-refresh-gesture.ts, tested without
a browser: a move that finds the thread at its end takes the anchor
then, which is the handover, while a move with conversation left gives
the finger back to the scroller and re-anchors if the end comes back.
The hold still arms only a full room, and a hold that outlives the room
no longer reloads.
Listeners stay on the scroll column. The wrapper would also catch taps
on the refresh button itself and could reload twice.
A production bot asked for an image with qwen-image-3.0-pro on the
"Alibaba Cloud Token Plan" provider and got "HTTP 404" six times. That
host serves chat and the native api/v1/services/aigc routes only: its
compatible-mode/v1/images/generations answers a gateway 404 with an
empty body. Nothing was wrong with the model. The reply was a one-turn
answer with no tool calls, so to explain the failure the bot made up a
routing story (google/nano-banana-2.1 through OpenRouter) and said the
models were benched until an app restart, and review had nothing to
check it against.
Four changes, each of which would have stopped it:
- A failure carries the model the candidate ran on, the request's method
and address, and a hint when a 404/405 came back with an empty body.
HarnessError gained model_name, method and url, withCandidates stamps
the candidate's slug, and the image tool's message now names the pick
instead of leaving the bot to guess it.
- A resting call says how long the wait is ("The next try is possible in
27s.") rather than "trying again shortly", which a bot read as forever.
- replyAppStateClaims faults how the app routes a model, a run the bot
says it stopped (Stop is the user's button) and a rest described as
unlimited or restart-only, unless read_message_usage or read_settings
answered in that reply.
- A 404/405 from a DashScope/Model Studio host falls back to the native
multimodal-generation route on the host root, references included, so
that provider makes images with no settings change. A task_id answer
means the async form, which is refused rather than polled.
The coordinator could search a knowledgebase given to it and nothing
else: no bot could add, fill, re-index, delete or share one. It now has
list_knowledgebases in every run and, in a reply or a task the user
follows, save_knowledgebase, add_knowledgebase_document (a saved file,
the user's own upload, a file on a computer or text), the document and
knowledgebase deletes and reindex_knowledgebase, each checking the super
admin again.
A document from a file is copied into private media by
recordKnowledgebaseFile, shared with the settings page's upload, so it
stays after the computer or the file it came from is gone. A scheduled,
hooked or hidden run only reads: what starts it comes from outside.
A workspace admin was asked to write production DB access into the
workspace's context. It had never read the context, so its save replaced
the whole text, the section listing the workspace's bots and their roles
went with it, and the bot reported that it had restored everything. Three
writes are whole-text: a workspace's context, a bot's instructions in one,
and memory in each of its scopes.
Each is now read before it is written. find_workspace takes workspace_id
and include_context and returns the context raw, so a coordinator
anywhere it works and a workspace admin can read what they are about to
replace. The write is then judged against the live row, not the reply's
snapshot: a save that drops a heading (markdownHeadings, ignoring fenced
code) or shrinks the text below AppData.SharedTextShrinkShare of its
length is refused once, naming what it would lose, until the caller says
replace: true. A refusal points at the read.
Each write is read back (updateWorkspace now returns the row, the others
use checkSavedText) and reported for what it is, "now 1234 characters, in:
Setup; Deploy", instead of a bare "saved".
No history yet: a save confirmed with replace: true cannot be undone.
A hook was inbound only: something outside POSTed to its URL, and
nothing owned that something. A WhatsApp bridge started by hand in a
computer's Shell died with the container and stayed dead, so the hook
went quiet with its sender, not with any run.
A hook now keeps a process for itself: runner_command, runner_dir inside
the bot's folder and runner_computer_id, which crew managers set from the
hook's form. syncHookRunners runs at the end of the sync-computers cron
(*/5, and unawaited after a hook changes) and reconciles desired.json in
the bot folder's .cobble/hook-runners through a small Python keeper that
starts bash -lc with the run's envs and its own session, keeps what is
up, stops what a paused, deleted or changed hook no longer wants (with
the env file it wrote, since those hold secrets), and reports one JSON
line. It runs as the hook bot's own account, so the bridge's files must
sit inside that bot's folder.
The hook's row and its modal show the runner's state, why it isn't up,
and restart it. A bot may propose a runner with the rest of a hook, and
only a crew manager's confirm saves one, since the card would start a
command on their computer. A dead runner is back within five minutes, or
at once with Restart.
The reply review refused "Converting both articles ... I'll report back
with the conversion results" and the rewrite answered "You're right - I
didn't call start_task. Starting the conversion run now." with no tool
call at all. That rewrite passed, because the detector only read "I'll"
and "Let me" openers: the work named as starting, in the present tense
with a closer, matched nothing.
claimsWorkUnderWay now reads "Starting the conversion run now", "Kicking
off the build now", "I'm reading the digests, then I'll build one" and
"I am ..." as well as "I'm ...". The present-tense rule is anchored to
the sentence's opening, so a table cell quoting the user ("I am telling
you the same day") stays silent.
Over 1,732 bot messages in three production exports this flags 8 more,
every one a real claim with no run; the 3 that had called start_task stay
exempt.
A silent hook's thread is left out of the rail, unread, pushes and the
face on purpose, so its runs show only in the thread. Since hook threads
became ordinary, chat-able sessions, a conversation a user had inside one
(a chat that ran on from a hook's report) was caught by that rule and
stopped updating live: no message pushed, no thinking row, no face, no
unread.
A human message now takes a silent hook's thread from the hook
(adoptHookSession, from insertUserMessage, so a chat message and a
question's answer alike), and the hook opens a fresh thread next time.
adoptChattedHookSessions does the same at boot for threads earlier
versions left that way, one holding a human's message or left active.
A reply keeps ending with "I'll connect and inspect the table, then
write both articles" or "Let me check the format, then convert if
needed", and nothing runs: the user waits for a report no run sends.
The review let both through, because it knew only the phrasing that
says work is already under way, with verbs the older lines did not
have and no "now" or "and see" to close them.
Read a promise one sentence at a time: "Let me <work verb>", "I'll
<work verb>" at the sentence's opening (with then/next/first in front,
and re- verbs), "Once I have it, I'll ..." and "I'm going to/about
to". A mid-sentence "and I'll run it" stays silent, since an offer
the user unlocks ("once you answer", "tell me", "say the word") is an
answer waiting exactly as it should.
chatReplyNote now ends by saying nothing happens after the message is
sent, and that work which needs no computer is done in the reply while
anything else starts a run.
Opening a conversation recorded the visit after the crew was read, so
the rail only showed it on top on the next page load. grabConversationProps
now records the bot's (and the workspace's) visit before reading, and the
bots list pins the open conversation first whatever the visits say.
A folder mounted from the host machine is the user's own data, and what
is removed there can't be undone, so a delete now stops at the tool.
computer_bash reads the command's plain spellings before running it
(rm/rmdir/unlink/shred, find -delete, >, tee, dd of=, mv, rsync --delete,
git clean, git rm). A path inside a read-write, gated mount that the run
reaches holds the whole command: the bot is told nothing ran and to ask
with ask_user, naming the exact path and what would go. The newest user
message carries the answer, so an ask_user answer counts and an old
approval never does; it must name the path and agree.
Once approved, each named path is copied into the bot's own folder
(recovered/<stamp>/) before the command runs, up to
HostDirectoryRecoverMaxBytes; past that the delete goes ahead without a
copy and the result says so. A path already gone is skipped.
gate_deletes on each link (on by default, toggled in Settings > Host
directories) turns this off per place, and a read-only link is never
gated since nothing can be removed there. Both are a heuristic at the
tool's edge: a script a bot writes and runs still deletes what its
account may, which is why the copy is taken.
Settings > Host directories adds a folder on the machine Cobble runs on
(super admin), linked to computers or workspaces with read-write or read
only access. A computer link shows at hosts/<name> in every bot's own
folder, a workspace link at <name> in the workspace's shared folder on
every computer the workspace is on, both inside computerRunDirs' roots.
A link is all it takes: applyHostDirectoryGrant gives every bot that sees
the folder an ACL entry of its own (never chown, chgrp or chmod), from a
throwaway container of the computer's image. It runs on link, unlink, a
source change, a bot joining, every sync-computers tick, and from Give
access when it failed. Checks record what each account can do per
computer; the permission command only appears when a check still says a
bot can't write.
Mounts exist only at container creation, so reconcileComputerHostDirectories
reprovisions a computer whose metadata.host_mounts differ, skipping a busy
one. Docker's Mounts array with CreateMountpoint: false means a missing
source fails the setup instead of becoming a root-owned folder, and mount
points under the run accounts are made by a throwaway root container when
the app runs on the host as a plain user.
The agent prunes every mount point from /proc/self/mountinfo in its
shareFolder walk and measures the workspace with du -x, so a mounted host
folder is never chowned or counted against the quota. Computer image is
1.4.4 and the workspace layout is cobble-computer-host-mounts.
NVIDIA's Nemotron embedding models (and other passage/query models) refuse
a batch without `input_type`, and that 400 is not retryable, so every
knowledgebase document stayed words-only with `embedding_model` null and
counting as stale: re-indexing appeared to do nothing.
`embedText` now says whether it embeds a stored passage or a query, which
the caller knows and the adapter did not: documents ingest as `passage`,
`embedQuery` sends `query`. The adapter asks without the field first; the
400 that names it is answered by asking again with the right value, and
that is remembered per provider and model for the process, so only the
first batch pays for finding out.
A run-limits save cleared the API bundle's copy of the cooldowns while the queue kept its own benches, so a model set to rest until the setting changed stayed benched until a restart, and the job it deferred slept out its day-long available_at with nothing left to wait for.
The cooldown object now lives on a globalCache slot (cobble.harnessCooldowns), and both the run-limits save and queue startup release the jobs a rest parked ahead of time (releaseRestingBotJobs), sparing any job that really failed a turn.
An MCP server's headers were one CodeEditor holding lines like
"Authorization: Bearer {{env.GITHUB_TOKEN}}", which had to be parsed by eye
and which silently lost how it was set up: a server saved with a key in its
own header reopened as Authorization "None" with the key as an extra header.
The form now asks for authorization directly - None, Bearer token, or API key
header with its own name - then lists any other header as a name and a value,
each added or removed on its own row. The values come from typed inputs, and
any of them can point at an env instead: a picker lists Settings >
Environment's general envs, and "New env" opens a small Key, Value,
Description modal over the form that saves a general secret and selects it
straight away. mcp-headers.ts composes and parses the map, so a bearer token
and an extra header can't both own Authorization, and a hand-written
"Authorization: Basic ..." stays a header of its own.
An MCP server's scheme is now stored (auth_scheme, auth_header), so editing
reads back the field it was written in; rows saved before the columns keep
being read the way they always were.
The browser form gets the same fields with literal values only, since browser
headers are never templated and pointing one at an install env would send that
secret to a member's own server.
Run again only appeared on a failed reply's notice, so a stopped run or a
finished answer could not be repeated. It now sits on the bot's last word
whatever it was (answer, stopped notice, task failure), and a failed reply
keeps Retry worded for the failure.
The thinking row was also drawn from the thread's own guess, so a user
message left unanswered by a stopped or pruned run showed it forever with no
Stop beside it. The row now follows the conversation's read, and when the
thread ends on the user's message with nothing on its way it says "No answer
came." with the same button under it.
A browser or MCP image is always handed to the vision harness through a
redactor, and the reading cache skipped both itself and the cross-run one
whenever a redactor was set. So every turn read every screenshot again: one
reply spent 43 vision calls on 5 images, 13 of its 15 minutes.
A redacted part now keeps its reading in the run's own cache under its own
key, so it is read once per run; only unredacted readings reach the shared
cache, so a redacted reading can still never be served from an unredacted
one.
The preview's gallery was one message's images; now it is every image in the session (image attachments and named image files, in message order, deduped by URL), built by sessionImageGallery and provided by MessageThread through a context, falling back to the message's own images outside a thread. Add Previous/Next arrows at the far middle left and right of the preview, beside the header stepper and the arrow keys.
The coordinator's last two replies ended with [suggestion:11] and
[suggestion:12], refs the model wrote itself after seeing a real
[suggestion:10] in an earlier message. Neither run called
suggest_next_steps, so no rows existed and the user read "next steps 11
(not available)". The reply review checked file, task and setting refs
but not the cards the app adds itself.
The review now faults any [suggestion:ID], [question:ID] or [plan:ID]
found in the model's raw answer: the app appends those refs after the
review, from the tool that made the card, so one already in the text is
made up or copied. The fault note tells the bot to take the ref out and
call suggest_next_steps, ask_user or create_plan if the card should be
there (AppCardRefTools, pinned to the declared tools by
tool-name-lists.test.ts). A [graphic:ID] is a ref the model is told to
write, so only one that doesn't exist for the user is faulted, through
grabBotGraphic.
Tests: a new review-bot-reply.test.ts covers each fault and the passing
cases; reply-ref-ids and reply-claim-problems tests grew with the new
kinds. The run-text-loop review test now mocks logError, so its "db
down" case stops writing error rows into the dev database.
A bot message now renders its image attachments and every image [file:ID] it names as thumbnails under the text, on both the chat and crew-request lines. A file attached and named shows once; refs follow the renderer's code rules. Each opens the shared file preview with the message's images as one gallery.
Named files resolve through a cached read shared with the file chip (useBotFile/useReferencedFiles), and the files API and conversation props now carry thumbnail_url via one mapper. A thumbnail request serves the original when no smaller copy was made (mediaServeWritePath), since bot files keep no thumbnail.
A crew request closed on the asked bot's first reply, so an answer that
acknowledged the brief and kicked off a task was faulted as "only said the
work was under way" and the task's real result never reached the asker.
The request now stays working while any run it started is still open: the
ack is not relayed as the outcome, each started run carries the ask_id and
its result comes back to the asking bot's own conversation as it lands, and
the last result closes the request answered. The under-way fault uses the
reply review's exemption, so an answer that really called start_task or
delegate_task is not faulted for saying so; a promise with no tool call still
fails. A new update_requester tool lets the asked bot send an interim word to
the asker while the request is open, without opening another ask or session.
Stopping now reaches the visible answer session and any job carrying the
ask_id, and a follow-up ask from an answer session links as a child so the
depth and loop caps apply.
Image generation: DashScope/Model Studio hosts take references as the image
extension field on /images/generations (no multipart edits endpoint) and
answer with URLs, ignoring b64_json. A call that only reaches benched models
records a failed-call row per resting candidate so the message shows why
nothing was tried, and the error names Settings > Models.
Work through the harness audit (.tmp/harness-audit-17-11-2026) in four
phases, with typecheck and the full test suite green after each.
High: bound the closing-tool loop and tell a mixed turn from a failed card
(H1); fire the over-quota warning that never could (H2); keep a crew-request
child task out of the user's browsers and propagate the run kind (H7); stop
a redacted image reading being served from the unredacted cache (H3); refuse
a member secret that repoints a wider-scope env and a templated MCP URL host
(H6); validate provider image URLs (https, internal-host refusal, redirect
re-check, byte cap, HarnessError wrapping) (H4); pin browser URLs to their
validated IPs, fail closed on the docker lookup, and cover IPv6 and every
IPAM config while keeping the LAN allowance (H5).
Medium: growth-only write quota (M7); empty /models no longer wipes the
catalog (M1); re-check a repaired answer before sending it (M3); stop
re-trimming a head+tail result to a stub (M4); place embeddings by index
(M5); header-only provider timeout with classified body aborts (M2); redact
key-shaped tokens from provider errors (M8); cap MCP pagination and HTTP
bodies, refuse redirects (M11); key the stdio pool per env and kill the
process tree (M12); close read-only classifier gaps (M13); snapshot every
repo a destructive command touches, ignored files for clean -x, and surface
a failed snapshot (M6); one shared video deadline and a download cap (M9);
check image dimensions before decode and honour abort (M10).
Low: explicit tool ok flag (L1); Retry-After floor (L2); forever-rest
sentinel in failure rows (L3); coordinator ignores workspace harness rows
(L4); task empty-report guard, plan-step open-work count, defensive turn
copy, exact truncation count (L5); encoding-aware secret redaction (L6);
quoted restore paths, unique snapshot names, prune by patch, room===0 guard
(L7); SHA-256 media keys, empty-transcript error, finite vectors (L8); gate
the image_edit hand-over on fallback and label failures per candidate (L9);
disambiguate long MCP tool names, redact setup logs, own-mode usage scope
(L10); doc corrections (L11).
Also close the latent reviewer findings reached along the way: an
already-aborted computer command (R2, bumps the computer image to 1.4.3),
the reference-blob URL path (R7), the never-throw usage guard (R11), core
chat fields spread first (R12), hardened tar import (R13), and a prompt
custom tool filling a secret value into the model's input - secret envs now
fill as their [KEY] marker there (R1).
Align the user-bubble clamp test with the bubble's 24rem height.
A custom provider's /models lists ids only, so its models advertise no
parameters. The old rule read unknown support as accepts-everything, so a
temperature saved on another model rode to one that rejects it and every
reply failed. A model now takes only what its provider advertises: the form
hides Model settings for such models, the wire sends only advertised values,
and switching the model or provider clears the saved settings and voice.
A failed reply's notice carries its job (bot_messages.failed_job_id) and shows
Retry while it still needs you. Retrying re-queues a reply with params.retry_of,
clears the notice's needs_you, and bypasses the silent-finish gate. Failure
notices are the app's record, never the bot's words, so they stay out of history.
Replies only.
A review of the queue, the turn loop and the consent gates found 29 ways a
run could go silent, act on nobody's word, or lose what it produced. Each
one is fixed here.
Stuck and lost work:
- A task claim took three jobs for one computer, so every task slot sat
waiting in `computer_lock` behind the one running, and replies stalled
with them. A claim now takes one job per computer and skips a computer
that already has one (`claim-bot-jobs`).
- A send stored the prompt and then enqueued in the same try: a throw left
a message with no job behind it, so the thinking row stayed up for good.
The insert, the enqueue (which deletes the message if it fails), the
attachments and the push are now separate steps, and `client_id` makes a
resend idempotent instead of posting the prompt twice.
- `open_jobs` in the catch-up read tells the thread whether a reply is
still to come, so a job that ends without a message can't leave the row
up (`grab-session-open-replies`, `useReplyCatchUp`).
- A completed job inserted its answer after marking itself done: a throw
lost it, with no notice. The answer lands first (and is taken back if
the completion fails), and nothing in the way of clearing up can lose it.
- A failed plan step left the plan active with nothing to advance it: it
is paused now (`pause-failed-plan-step`).
- Deleting a bot left its open crew requests `working` forever, costing
the asker its cap: they end with a reason and wake the asker
(`end-asks-for-bot`).
- A deferral refunded the attempt even when the run had spent real tool
work; cancelBotJob failed a possibly-running job without aborting it or
fixing the face; a face stayed `working` while only pending jobs were
left; a failed row with no bot was rescanned every poll. All four are
fixed, and the face now has one place that decides it
(`bot-face-after-job`, `answering-ask-face` keeps a crew request's
answer on show).
Acting without consent:
- `set_workspace_computer` was the one workspace mutation with no role
check.
- Any run could rewrite a bot's core instructions and core memory: those
are the admin's now, and a refusal says what to use instead.
- Schedules and irreversible crew deletion are off for a hook call (whose
payload is someone else's words) and for any run nobody is following.
- A hidden session no longer gets secret cards or questions nobody can
answer; `can_ask` checks `isHiddenSession` too.
- Answering a secret card no longer closes it on a swallowed failure: the
user gets a button that sends the bot the message it never got.
- Redaction skipped values under four characters, and `read_message_usage`
answered for any job id, not the run's own session.
Silently lost or wasted work in the loop:
- A reply is cleaned before review (unresolved `[setting:]` refs, app
record lines, work claims), and a refused closing tool or a card with no
text no longer ends the run on a sentence that promises something that
isn't there.
- The wrap up no longer marks a message answered, a session carry-over
takes queued replies with it, and a trimmed remembered result is read
again instead of answered with "its output is above".
- An oversized newest result is cut last instead of sent whole, an empty
answer fails with a reason rather than an empty bubble, orphan question
cards are deleted, a reply that ran out of steps marks its task
exhausted, and a throwing review is logged instead of swallowed.
AGENTS.md's two drifted lines are corrected (the crew request's face and
the task run's `can_ask`).
Verification: bun run typecheck clean; bun run test 2117 pass, 0 fail.
Replies that tried to do everything at once came out long and hard to
follow. A bot can now lay the work out as a plan instead.
`create_plan` stores one plan per conversation (`bot_plans`) and the reply
shows it as a card: its steps, where they stand and what it is for. The plan
goes nowhere until the user acts on it there, and they can rewrite its steps
first (steps already done stay as they are, `planStepsRewriteProblem`).
Once approved, each step is its own reply job (`params.plan_id`) with the
bot's tools, memory and browsers, one step per reply with a short report,
and `continueBotPlan` queues the next one: nothing follows while the user is
being asked something, while work was handed off (`WorkStartingTools`), or
when the plan was paused, ended or a reply already waits in the conversation.
A routine gets its plan approved at once and works it to the end in the run
(`ScheduledPlanNote`).
Bots are also told to keep a plan in memory when the same work comes back,
so a way of working survives as a runbook.
The card is built from spans, since its ref sits inside the message's
paragraph.
A reply that claimed a start_task it never called was rightly stopped, but the
check searched the whole answer for the phrase, so the bot's own correction -
"the [App record: ...] line was mine, not the app's" - tripped the same fault.
Three faults, the rewrites ran out and the job failed: the lie stayed in the
thread and the apology never reached the user (message #801, run #468).
- app-record-claims: only a line in the app's record shape naming tools this
reply didn't call is unsupported. A line the record supports - the old lie
quoted after really calling start_task - and a mention inside a sentence or
code span pass; strip-app-records now shares that one line shape.
- A fault note never quotes the text it faults or says "a report will follow",
which is itself pattern 4: the note had been teaching the model the string
that re-faulted it, and every reply's prompt already ships that shape in
ActionCheckNote. Tests pin both.
- ask_crew left over from 03e062d's rename in WritingToolNames,
WorkStartingTools, HandOverTaskNote and the hand-over description: a reply
that really had asked the crew was faulted for saying it was working.
tool-name-lists.test.ts pins those lists to the tools the harness declares.
Verification: bun run typecheck clean; bun run test 2052 pass, 0 fail
A reply claimed "I'm starting the hydration work as a single-route proof"
with no tool call behind it and the run ended there, so nothing ran. The
review missed it twice over: `claimsWorkUnderWay` had no pattern for the
phrasing (only "once the run is back|done|finished|complete", never
"once the run reports"), and the model wrote the app's own
"[App record: ...]" line itself, naming `update_task, start_task`, which
made the debug view read as tools having run.
The record line is the app's to write, so an answer forging one that
claims tools is now faulted and sent back; a mimic that only says
"called no tools" is still just stripped, so a formatting habit cannot
burn rewrites or fail a reply.
`update_task` also never moved `updated_at`, so a task whose status just
changed did not rise: `grab-tasks` orders by it, and the other task
helpers set it themselves.
A failed or hung read was kept as a miss for the life of the page, so a [suggestion:ID] or [question:ID] pushed with a run showed 'not available', or nothing at all, until the page was reloaded. One loader now keeps only what was read, aborts a read that hangs, and tries again.
A workspace-wide task (`workspace_id`, `bot_id` null) can now be split into
parts: one bot each, one level deep, with `tasks.parent_task_id` pointing at
it. A bot task joins or leaves a parent through `update_task`
(`parent_task_id`, `unlink_parent`) and crew managers through "Make it a part
of..." and "Unlink from parent" on the task's panel; both sides get a note.
The parent stays open until someone verifies every part, and the rules live
in one place each: `subtaskLinkProblem`, `subtaskAttachProblem`,
`subtaskMoveProblem` (refused by `moveTask`, so promotion and hand-over both
decline a task that is a part or has parts) and `subtaskDeleteProblem`
(deletion takes finished parts with it, refuses while one is open).
`AppData.TaskSubtaskMaxPerParent` caps a parent's parts.
The workspace dashboard's task list now starts with the workspace-wide tasks
and then each bot's, cut to `AppData.TaskSectionShown` rows with the rest in
`WorkspaceTasksModal`, and a wide row wears the workspace's picture
(`WorkspaceAvatar`) instead of a crew glyph.
Foreign keys are off outside the server process, so a helper that deletes a
parent row deletes its children. A crew request's hidden review session was
dropped with only its traces and tasks, leaving the review job that had just
ended, its queue updates and what its calls were billed pointing at a session
that no longer existed: the next `bun db:schema` refused the database
(bots_queue -> bot_sessions, token_usages -> bot_sessions).
The empty review session now goes through deleteSessionRows, and so does the
empty active session reopening closes, which had the same bare delete. Checked
against a copy of a real database: the review's session, job, updates, traces
and billed calls go together, while a session with an open job, with a message
or an answer's own session stays.
Picking a model for one bot inside a workspace changed it for every bot
there: the Models modal saved the workspace's setting when it was opened
in a workspace (bot_harness_form), and resolution read the workspace row
before the bot's, so the group setting shadowed any per-bot pick.
A bot's own models now win, its workspace's apply to the bots that have
none of their own (the coordinator there included), then the defaults.
The modal in a workspace saves the bot's own models again ("Same as the
default" drops them), the workspace's Models page stays the group
fallback and the coordinator in a workspace still edits it, and the modals
name whose models they change. The picker that decides the order is its
own module, tested.
The gate ran once per run, so a model that repeated itself word for
word had its claim delivered: a reply said a run was under way, was
sent back for it, and came back identical to the user.
Review now checks every answer the run writes, a bounded number of
times (AppData.HarnessReviewRewrites), tells a model that wrote the
same message back that it did (repeatedAnswerNote), and past the
bound returns review_note instead of the text: the reply job fails and
says so (BotJobFatalError), so nothing the app knows is wrong goes out.
The face alone was too quiet at 32px: a bot answering elsewhere or working
on a task looked idle in the rail. A working bot now shows an arc in its own
colour where its relative time was, and the time comes back when the work
ends. Nothing goes on the stone: no ring, badge or corner mark.
A bot's list named its tasks by title alone, so a user reading a task's
`[task:ID]` in a message, a report or a debug log had no way to match it to
the row. Every row now carries `#<id>` after its title (a task with no title
keeps `Task <id>`), inside the same button, so clicking it opens the task.
The button's content wrapper shrinks, so a long title truncates and the id
stays visible.
Pinned by task-list-item.render.test.tsx.
A delegated job's report was relayed verbatim into the requester's
conversation, so a worker's [question:ID] showed the same card in two
sessions: answered in one, left waiting in the other (and the card sent
its answers to whichever bot's page was open, so the worker that asked
never heard).
stripQuestionRefs takes those refs out of text copied into another bot's
conversation (a relayed report, a crew request's outcome, an install
request's answer) and the relay says which bot is waiting instead. The
answer and skip routes now post the user's message into the question's
own session (postBotQuestionAnswers), never the page's bot.
A worker that needs another bot's work calls `ask_bot` with one brief. The
coordinator reviews it in one turn with no tools (`runAskReview`) and answers
bounded JSON: approve, redirect to a better bot, or refuse with a reason
(`AskDecisionSchema`, `applyAskDecision`). An approved request becomes one
reply job in a new session of the target's conversation for the request's
workspace (`enqueueAskAnswer`), so the run keeps its workspace context; the
brief lands there as a crew message naming that workspace, and the answer
comes back to the bot that asked as a message that wakes it (`finishAsk`).
The gate fails closed, and the app owns reach, membership, depth and the open
cap while the coordinator's instructions own the judgement.
The user can follow it: the target's row says which bot is answering whose
request, an outcome carries an `[ask:ID]` pill that opens the session it ran
in, and that session has a bar back to the conversation the request
interrupted. Requests read their status with `list_asks` instead of guessing
ids, and files the asker can't reach are copied into its folder.
Chatrooms are gone: the tables, the hidden room sessions, the pages, the
tools (`ask_crew`, `ask_member`, `answer_requester`, `refuse_request`), the
relay and the rail section. Ended requests are pruned after `ask_keep_days`
and `ask_max_per_place`, and the sessions of old chatrooms are deleted at
boot (`migrateChatroomsToAsks`).
One production task run spent 58 turns building a single Canva text box and
reported nothing. Five browser_click calls each died on Playwright's 5
second action timeout, waiting for an element to be visible, enabled and
stable while the page animated, and the run only found browser_evaluate on
its own at turn 27. The same run called browser_find ten times, and every
one of those results stayed in the transcript for the rest of the run:
supersedeToolOutputs replaced only browser_snapshot, so the newest ten page
trees were resent on all 61 turns. 2.33M input tokens for one heading.
isSnapshot is isPageState now, matching browser_snapshot or browser_find.
Bucketing stays by tool name, so the newest snapshot and the newest find
each survive and one never evicts the other, and a failed call still
replaces nothing.
An action that timed out waiting for its element to settle is answered
with browserSettleTimeoutNote, from browserRecoveryHint: the page
animates, so the same call times out in the same place however often it is
made, and browser_evaluate drives it instead. It fires only on that one
failure and only for a browser tool, so a bad target still gets
Playwright's own message, which already names the fix. The 5 second
timeout is unchanged: the click still fails, it just fails usefully now.
SupersededSnapshotNote covers both readings, so it says "snapshot or find".
One production task run ended with three fixes written and none of them in
the tree: it had stashed its own work, run `git checkout -- .` and popped
the stash, and the pop restored the untracked files but not the tracked
edits. It spent the rest of the run re-reading the same file and reported
from memory, because the work it described was gone and nothing said so.
A command that would throw uncommitted work away (`isDestructiveGit`:
`git checkout --`, `restore`, `reset --hard`, `clean`, `stash`,
`switch -f`, `rm`, `worktree remove`) is now snapshotted first, into the
bot's own folder rather than the repository (`.cobble/pre-destructive/`,
newest 40 kept): the tracked diff, the index, and each untracked file as a
new-file diff, since a new module is what a run creates most often and what
`git clean` deletes. The tool result names the patch and how to apply it,
so a run that discarded its own edits can get them back instead of
rediscovering the loss. Verified against a real repository: modified file,
new file and nested new file all came back with `git apply` after
`git checkout -- .` and `git clean -fd`.
Repeats: `computer_bash` was never a repeat, so forty `cat` and `grep`
calls re-ran and re-entered the transcript every turn. It is keyed now
when the command provably only reads (`isReadOnlyCommand`: a read-only
program, no redirect, no `tee`/`xargs`, no writing git subcommand),
which also stops it clearing what was remembered.
Trimming was invisible: `fitTranscriptToContext` cuts old tool output down
to 60% of the working context, and the run kept asking again for what had
been cut. It is told now, every `AppData.HarnessTrimNoteEvery` trimmed
turns (`contextTrimmedNote`, traced as `trimmed`).
The wrap up is told what is on disk: a task run passes
`Params.wrap_up_note`, which runs `worktreeSummary` over the run's folders
(`git status --porcelain` and `git diff --stat` per repository, nested ones
included) and puts the machine's own account in front of the wrap-up
prompt. `TaskRunNote` also says the tree wins over the brief, and that
handing the rest on with `start_task` is finishing the task.
Debug view: `capTraceText` keeps a tool argument's `path` whole past
`BotTraceArgumentsMaxChars` (`toolArgumentPath`), so a trimmed write still
names the file it wrote.
A 30,000 character prompt is refused by default (bot_message_max_chars
is 20,000) and, once allowed, is stored and sent whole: nothing clips
user text. Two places then paid for it silently.
- name-bot-session.ts sent the session's opening verbatim, so a pasted
brief cost a second copy of itself in the naming call. Each message
is cut to BotSessionNameMessageChars (2,000) with a note that the
opening goes on.
- fitTranscriptToContext never trims user messages (the request must
not be lost mid-run), so a prompt over the working context was sent
anyway and the run was never told. It now reports over_budget, and
run-text-loop pushes oversizedRequestNote once: work in pieces, stop
pasting whole files in, say what it could not reach.
A reply was only the run's last message, so an answer written in a turn
that also called a tool was dropped: a bot listed the PR links the user
asked for and then called list_tasks, which TaskReminderNote told it to
do after answering, and the user was sent the short "still open" line
alone. same for a count written next to ask_user.
A turn that answers and put up ask_user or suggest_next_steps now ends
the run with that answer (ClosingToolNames), after the usual review. Any
other tool after a written message tells the run once, answerNotSentNote,
that the message never went out.
The debug logs rendered tool arguments and answers through twui's default
CodeBlock, whose block is a fixed #28272b: in light mode the text stayed
dark on dark, and it came out larger than the log around it.
A shared SunkenCodeBlock puts code on the theme's surface at 13px with the
copy icon and label recoloured, and now backs the trace blocks, the
message code block and the file preview.
A task run on a production install spent 30M prompt tokens over 195 turns
and wrote none of the rows it was asked for. Everything it did was
research: it re-derived the same four facts five times, re-read its own
engine in slices twenty times, and re-paid for the same failing command
five times. Nothing in the harness ever asked when the work would start,
and the ceiling it could hit was 40M, past the point where reaching it
would have meant anything.
- `RunMaxPromptTokens` is 4M, not 40M: the bound that always holds (step
limits are unlimited by default) now arrives while a run still has
budget to act on it.
- A run is told once, a quarter in and only while it has produced nothing,
to land one piece of the work end to end (`commitEarlyNote`,
`isWritingTool`, `AppData.HarnessRunTokensCommitShare`). It is also told
once at half the budget to land the rest (`tokensLowNote`), and the wrap
up follows.
- A trimmed tool result keeps its start and its end (`TrimmedKeepChars`)
instead of being replaced whole. It used to say "call it again if you
still need it", so runs did, paying twice for output they already had.
- An identical call that failed is answered from its failure past one
retry (`toolCallKey`, `AppData.HarnessSameFailureRetries`,
`failedToolCallNote`). `repeatToolCallKey` could only ever dedupe reads,
so a broken command cost a turn every time it was repeated.
The strip and the Details modal's Debug logs tab are lazy imports now:
most visits never open either, and together they tipped the
conversation page's initial JS 1 KB past its 450 KB budget (451 KB).
They load when they are opened (449 KB initial, budget holds), with
the panel chunk emitted beside the page bundle, so nothing is fetched
for a debug view nobody asked for.
A bot's thinking row now carries a bug button beside Stop: it opens a
250px strip under the row that streams the run's steps as they happen
and remembers being open per user, so it follows them across bots.
Hovering a line opens that step whole, from what the model reasoned
to what a tool was sent and answered.
Every step is kept in the new bot_job_traces table (turns, tool calls
and the loop's own events: wrap up, redraft, review, incoming, steps
running out), capped per entry and per run, redacted of env secrets,
and pruned after bot_trace_keep_days (7 by default, Settings >
General). A finished run's entries are tied to the message it ended
in, so that message's Details modal has a Debug logs tab, and its own
Copy debug logs.
The provider's reasoning is now read (reasoning, reasoning_content or
think tags) and kept for the debug view alone, never shown as the
answer. Tool calls report how long they took, and a read that was
answered from an earlier answer says which step answered it.
A bot's bash command was capped four times over, silently: 270 seconds in
`ComputerCommandMaxSeconds`, ten minutes by the harness's per-tool
deadline, two hours per task attempt, and an hour inside the agent. Long
scripts (a build, an install, a sweep) were cut with no way to ask for
more.
`computer_bash` now has no limit unless the bot names `timeout`, and then
that is what it asks for (`commandTimeoutSeconds`; `ComputerCommandMaxSeconds`
0 means no cap). A tool can name its own deadline now
(`HarnessTool.timeout_ms`, `null` for none) and `run-tool-call.ts` leaves
such a call to the run's signal. A task run has no attempt deadline
either (a reply keeps its two hours): Stop, a lost lock and the process
ending are what end it, and Stop still kills the command's whole process
group.
The agent has no ceiling left to hit. Measuring it turned up a last one:
Bun's `fetch` drops a connection that stays silent for about six minutes
(`TimeoutError` at 360s, whatever the `AbortSignal` says), so a long
command lost its output on the way home. The agent now opens the answer
and writes a space every `CommandHeartbeatMs` while the command runs, then
the JSON, which `JSON.parse` still reads.
The thinking row's step only ever came from `server:bot-job-update`, so a
refreshed conversation sat on its label until the run's next step, and a
socket that dropped silently left it there.
The reply's step is read from the server now: with the history
(`grabSessionReplyStep` through `openSessionReplyStepSql`, the open reply
job's newest tool step) and by the catch-up (`session-messages`), which
replays it as the push it would have been. `use-reply-progress` takes it
as a seed and only ever moves forward in `bots_queue_updates` ids
(`isNewerStep`), so a read that lands just before a newer push cannot take
the row back a line, and a step from another session never shows.
Handing a task to another bot started it by default: it went to doing and
queued a run, so handing three tasks over "to wait for the go-ahead" ran
three jobs that each only reported they were waiting.
handOverTask now only moves the task, as to do, with no job; `start: true`
(the user asked for the work to begin now) is what sets it doing and queues
the run. hand_over_task and delegate_task pass that only when the user asked
and are told to ask first with one ask_user card for every task they named,
since a worker can't start a task once it has left its list. The UI's hand
over form gains a "Start it now" toggle, unchecked by default, and the
coordinator and workspace-admin prompts say the same.
A worker told to hand its tasks to another bot had no tool for it: it asked
the crew instead, the coordinator answered over the Software Engineer's
still-running job (closing the room cancels it), and the answer said the
tasks were picked up. Nothing had moved.
hand_over_task passes an open task of the worker's own list to a bot it
could already ask, reporting back in its session. answer_requester and
refuse_request now refuse over a live job unless close_anyway says
otherwise. ask_user and suggest_next_steps stay out of hidden sessions,
where no card exists to answer and a bare ref reached the coordinator.
Up recalls the message the user sent before (the newest from an empty
input, older ones from there), Down comes forward again and back to what
was being typed, a keystroke takes the input back, and an open mention
menu or a selection keeps the arrows. Only the user's own messages, never
a crew message.
A clear button (X, disabled while the input is empty) empties the text
without sending it, keeping the quote and the picked files.
The composer now reads ordered lists from digit markers only: Tiptap also
takes `a.` and `i.`, so a recalled "Ok. Do another pass on the browser."
came back as item 401 with "Ok." eaten as the marker, while the thread
(remark) always showed it as plain text.
Every run limit was a number, so an install that wanted a bot to work
until the job was done had to guess at one, and the guess was wrong in
both directions: 300 steps cut long work short, and raising it to 10,000
made every short reply look like it had room to ramble.
- Each limit of Settings > General > Run limits can now be unlimited, and
the three step limits are unlimited by default: a task, a chat reply and
a routine or hook call run until their work is done, bounded by the
job's own deadline and the run's prompt-token budget, which always
holds. A failed model can rest for good too, until the setting changes
or the app restarts.
- `RunLimit` (`src/utils/run-limit.ts`) is a number or `"unlimited"`, read
by `read-run-limit` and saved as `-1` from the form (still `0` for the
code's default), so no caller has to tell 0 from "no limit" any more.
- `run-text-loop` drops its step ceiling to Infinity, skips the low-steps
warning and the notes that count steps left, and spends the model's own
window when the working context is unlimited; a task run is told it has
no step limit rather than "at most N steps", always plans first, and
never ends exhausted.
- A rest with no end stays benched until the setting changes or the app
restarts: saving the run limits clears the cooldowns, and the failure
log and the "every model is resting" error say so instead of promising
a retry in a minute.
- `token_usages` and `harness_call_failures` record `"unlimited"` as what
the run was allowed, and the usage chip, the message details and the
bot's own report say it rather than showing a number nobody set.
- The form labels each field (twui only draws its label with `showLabel`),
reads a limit that's off as `Unlimited`, and fills in the default, or
the number that was there, when its switch goes off.
- `BotStepLimitMax` is 10,000, so a limit the user picks can be as wide as
the work needs.
A bot that hit a limit could only say "in Settings > General", and a
user asking why one answer cost so much got a guess: nothing told the bot
which page held the value, and the limits a run worked under were never
written down.
- `[setting:<section>:<field>]` renders as a pill naming the group and the
field, opening `/admin/settings/general/<section>#<field>`
(`src/dict/general-settings-dict.ts`, `SettingRefChip`), and every group
of that page now has a page of its own with the same section in it:
whoever may change it gets the form, everyone else reads the live values
and who can raise them, since that is what a member sent there needs.
- `read_settings` gives every run the values, who may change them and the
ref to write; `SettingsNote` tells it to name the setting, its value and
its ref rather than pointing at a page in prose. `reviewBotReply` sends
back a ref the app can't resolve, like a made-up file.
- `read_message_usage` reads a message's or a job's calls: the model, the
prompt and cached tokens, what ran, and the cost drivers (steps resend
the whole transcript, a long session re-reads it every reply), with the
refs for the limits and for starting a session sooner.
- Every model call records the limits it ran under
(`HarnessCallSettings.limits`, from `run-text-loop`), so a diagnosis
compares then against today instead of assuming, and the message's
details show them.
A custom provider lists model ids and nothing else, so every
`harness_models.context_length` stayed null and `run-text-loop` assumed
32,000 for a model with a 1M window: 70% of that became the working
context, so the transcript was trimmed to 13,440 tokens and the run was
told to read the same files again, turn after turn, until its steps ran
out. The sync overwrites that column on every run, so editing the row by
hand never held.
- `harness_providers.context_length` is a field on the provider form
(Settings > Models), and the sync writes it into every model that
reports no window of its own (`modelContextLength`). Models that do
report one keep theirs, so OpenRouter needs nothing.
- `HarnessUnknownContextWindow` (131,072) is what a run assumes when
nothing declares a window, and `HarnessAutoMinContext` is back to
32,000, its own job being the floor for automatic picks: at 131,072 it
would have filtered out every 128k model.
- The defaults now suit work that takes hours: `HarnessContextBudgetTokens`
200,000, `HarnessMaxToolSteps` 300, a task attempt at 2 hours, and tool
results, file reads and task briefs large enough that a whole document
arrives in one call (`HarnessToolResultMaxChars` 60,000 above
`BotFileReadMaxChars` 55,000), so a run stops paying a call to see the
rest of what it just read.
A task run used to work out what the task was while spending its steps:
the same file read again to see it once more, the same folder listed
twice, a plan formed turn by turn at the price of a model call each.
- `planBotTask` spends one turn before the first step on the very system
prompt the run then sends, so the provider's cache serves it and it
costs little more than the plan. The bounded JSON plan
(`BotTaskPlanSchema`) opens the run as `taskPlanNote` and shows as its
first step line. `shouldPlanBotTask` keeps it off short runs and
chatroom turns, and a plan that can't be written starts the run the way
it always did.
- `runTextLoop` answers a read it already made from that answer
(`RepeatableToolNames`, `repeatToolCallKey`, `alreadyRanToolNote`)
instead of running it again; any non-read tool clears what was
remembered, so a file read, edited and read again is read again.
Five honest "I did nothing" reports in a row left nothing to notice them
by, so the app now has an opinion of its own:
- A reply's wrap up offers start_task beside write_file and import_file,
so work it can't finish in 20 steps is handed on with a brief instead of
being promised for later.
- A run that used every step it had blocks the task it was handed
(trackerTaskEnding), rather than leaving it open under a "run finished"
note.
- A full workspace names the folder holding the space and whether the run
can clear it (computerWorkspaceSpace), the agent reports the folder
sizes with its usage, a failed measurement no longer reads as 0, and a
daily cron logs a computer past 80% of its quota.
- A message's details count its run's calls by tool (MessageToolsRollup),
so 242 calls read as one line rather than 242 rows.
Opening the room is easy to do by accident on a thread whose scroll is
already exhausted, so reaching the limit no longer reloads on its own: the
finger has to stay on the full room for half a second, which lights the icon
so the release is the user's decision, and a release before that closes the
room and reads nothing. A finger that rests fires no further touch moves, so
a timer notices the hold, not the moves, and dragging back down starts it
over.
The gesture's geometry and its hold now live in AppData with the other
conversation timings, and the refocus debounce both use-refocus and
use-connection-epoch were carrying separately is one AppData.RefocusGapMs.
A thread that missed its pushes while the phone slept kept its thinking row
and a stale face until the page was reloaded. Every return to the page
(window focus, a hidden tab visible, back online) now reads the crew again
(api/admin/bots/live-crew -> cobble:live-crew-refreshed, taken by both
rails) and the session's latest messages, its bot's face and its task,
whether or not a reply is due, which is what the catch-up refused to do
before. The history is not reloaded: that would drop the older messages
loaded above it.
On a phone, pulling the thread up past its bottom lifts the newest message
off the edge, opening just enough room for a refresh icon (a ghost button,
no label) and letting go once that room is full reloads the conversation and
the rail, with the spinner up for at least a second. The room is written
straight onto the content as the finger moves, never through a render, the
pull owns the gesture until release, and a finger that rested first is a
selection, not a pull.
A production coordinator was asked only to create two bots. It placed
both in a workspace and handed each a task, then explained the extra
steps as the user's saved preference that new bots get put to work.
- RequestScopeNote, injected into every reply and task, says the request
sets the scope, that memory, habits, routines and initiative never
widen it, and that crew changes (create, place, remove, assign a
computer, change a role) and handing work out (delegating, handing over
a task or routine) happen only after the user asked for them: one
ask_user card in a reply or task, and a proposal in the report where
nobody watches (routine, hook call, chatroom).
- A decline is dropped, not done smaller and not re-offered.
- The memory sections of composeBotPrompt say memory shapes how the bot
does the work, never what it does beyond the request.
- The default coordinator prompt says a request to create a bot is a
request for that bot alone; existing installs keep their stored prompt
and get the rule from the note.
Recreating a profile's caches at every start also took Storage/ext,
which holds what an extension keeps rather than what Chrome rebuilds:
Cookie-Editor and every other extension lost their settings on each
container restart. Only caches go now, and the two GPU cache folders
that were missing are cleared with the rest.
A host updated for a year still held every older tag of the app's image
and every computer image the app had pulled, since the installer removed
only the tag the previous container ran. It removes them all now, and
docker refuses the ones a container uses.
Computers move to the image that reports its workspace: the layout name
changed, so migrateComputerLayout recreates each one, keeping its
workspace and browser profile.
One install's production archive was 2 GB: 2457 MB of computer
workspaces (983 MB of npm, pip and bun caches, plus 697 MB of
node_modules and 446 MB of pip installs), 993 MB of Chrome profile
caches, 148 MB of database snapshots and 15 MB of bun-sqlite scratch
space, against 178 MB of bot files. Runs had HOME on the mounted
workspace and no cache variables, so every side cache was persisted
forever, and the archiver tarred the whole volume with one exclusion.
- Runs keep their caches inside the container: computerCacheEnv points
XDG_CACHE_HOME, npm_config_cache, PIP_CACHE_DIR,
BUN_INSTALL_CACHE_DIR and PYTHONPYCACHEPREFIX at the account's own
home, never the run's folder.
- prune-computer-caches (daily) clears what earlier runs left in bot
folders, user folders, workspaces and Chrome profiles, skipping a
computer with a task queued or running. The agent clears a profile's
regenerable cache at each start and caps its HTTP cache.
- listArchiveExclusions is the one definition of what a data archive
leaves out, as exact member paths (--no-wildcards --exclude-from):
computers, Chrome profile caches, db/.backups and .bun-sqlite. A
restore keeps the running install's db/.backups, since no archive
carries them, and still leaves computer folders live.
- A computer's workspace has a quota (computer_workspace_quota_mb,
Settings > General, default AppData.ComputerWorkspaceQuotaMb): the
agent measures it, the app refuses a write past it and warns after
computer_bash and browser calls.
- An upload's bytes go with the messages that carried them, and
prune-orphan-media takes what is left after
AppData.MediaOrphanKeepDays; moved-aside old computer homes are
pruned after AppData.ComputerOldHomeKeepDays.
- install.sh removes the image the previous container ran and dangling
layers, so updates stop accumulating gigabytes on the host.
Two runs in a row measured to their last step with the report unwritten.
Long `du`/`find` output lost its tail twice (the bash tool kept 40k with
head and tail, then run-tool-call sliced the first 20k of it), so the
totals a sweep ends with were cut away and the run re-ran the command
until the steps ran out.
- run-tool-call and capToolOutput keep their result's start and end, the
note sized before the cut so the whole result stays inside the cap.
- ComputerCommandMaxOutputChars matches HarnessToolResultMaxChars.
- The wrap up keeps write_file and import_file for a saving turn (then
answers with no tools), so a run out of steps can still save its report.
- The save-first warning scales with the run (a tenth of its steps, never
below HarnessStepsLowWarning) instead of a flat 5 steps.
A reply was handed the files of the latest messages that have any, so in a
long conversation the last upload never aged out: one screenshot stayed
attached for session upon session, and since the text model is catalogued
text only it was read by the vision harness on every reply (7 calls, about
1,500 output tokens and 35 seconds each, in production).
- liveAttachmentMessages bounds an attachment by how far back it is too
(BotReplyAttachmentMaxAgeMessages), then by BotReplyAttachmentMessages:
older files are named, not attached.
- Readings are kept across runs in MediaReadings (HarnessMediaReadingsCached)
keyed by imageReadingKey, so an image the conversation carries is read
once rather than once per reply; a reading made to redact a secret is
never kept there.
- The Models page says when the text model is listed as taking text only
while "Use the model's own media reading" is on, which was silently
useless for a provider that lists bare ids (guessModelModalities).
The Details modal under a bot message now has a Copy report button: it
puts that message's whole details on the clipboard as one markdown
document, every call and failure it took included rather than only the
first the modal lists. The modal and the report share their at-a-glance
facts and the failure-source wording, and the route takes full=1 to list
up to AppData.MessageDetailsCopyMaxCalls calls.
- grabCoordinatorExtensionTools was pushed only in the coordinator's own
chat: both workspace branches returned before it, so a runbook asked for
inside a workspace had no propose_skill to write it with, and the bot
saved a file and called the skill created
- Pushed before the workspace split, so it comes wherever the coordinator
works; the tools still return nothing unless the run's user is the super
admin, and each re-checks on call (assertSuperAdminRun)
- grab-bot-chat-tools.test.ts pins all three cases: a workspace, a
workspace with no worker (the empty-crew return) and its own chat
- AGENTS.md records it
A crew manager can now write who a user is in one workspace: plain text,
separate from the user's bio, which the user never sees or sets.
workspace_user_roles holds one role per user per workspace. Every bot in
that workspace reads the role in its prompt whenever it works for that
user, in chat replies, tasks, routines and hooks. The role never appears
in a bot's own chat or in another workspace.
The super admin can set anyone's role, their own included. An admin can
set anyone's except a super admin's (canSetWorkspaceUserRole, checked
again in setWorkspaceUserRole). Roles are set from the workspace's
settings (People: everyone who works there) and from the user's settings
(Roles in workspaces). The coordinator can set them too, through
list_workspace_people and set_user_workspace_role. Its saves count as
made by the run's user and are read back to check they took.
A role is kept when the user loses access to a workspace and comes back
with it. Deleting the workspace or the user deletes it explicitly.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The computer under the bot's name is now a button opening the same
computers modal as the menu's Computer row: switch computers when there's
more than one, or open one in the viewer. The menu's row stays.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model failures get their own LLM log category instead of System; older
"Model failed" rows move at boot. Each failed model call is also recorded
in harness_call_failures (model, pick, status, the provider's reason,
rest) and attached to the message its job posts, including the failure
notice, so a message's details list the calls that failed and why.
Failures are pruned with the logs' retention.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The model under the bot's name is now a button opening the same models
form as the bot's settings, for whoever can edit them there; others
still see plain text with who can change it. The menu's Models row stays.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A layout migration whose image pull timed out left the old container
running but marked the computer failed, and nothing checked it again.
Now a setup that fails while the old container runs keeps it running
(retrying the migration after an hour), and a failed computer whose
container docker runs is revived by sync-computers and on first use.
start_task refused nothing, so a bot queued work on a failed computer
and the run retried three times before failing. start_task now refuses
a down computer, and a task run on one fails at once with a message
saying who can bring it back.
generate_image attaches what it makes unless told not to: a coordinator
asked the user to judge three versions it never sent.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two new harnesses, video and video_edit, with settings in Settings > Models
and per bot and workspace. Neither picks automatically (no video model is
free); video editing hands over to the video generation models that take
videos, as image editing does.
A video is a job at the provider: asked for, checked on until done, then
downloaded from the provider itself. OpenRouter takes frames, references
and videos to change; other providers get OpenAI's (Sora) form. Bots get
generate_video only while a video model is set up for them, and it saves
the video to their files like generate_image.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The composer only put a failed send's reason in the editor's tooltip, so a
message over the limit just came back with no visible error. It now checks
the length before sending and shows the reason under the input, as it does
for any failed send.
The limit moves from a literal 4000 in the schema to
AppData.BotMessageMaxChars (default 20,000), saved per install as
bot_message_max_chars under Settings > General > Messages (super admin),
and checked again by the send route.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
First-run setup can now restore another install's database file or
whole-data archive instead of creating a super admin. The upload is told
apart by its bytes, refused once any account exists or for a database
with no accounts, restored like Settings > Backups, and the app restarts
onto it.
Settings > Backups' database restore swapped in a new file from a
separate process while the server kept its handle on the old one, so
everything written until the next restart was lost. Database restores now
run in the background and restart the app, like data archive restores.
Log entries for a restore are queued in the data folder and written at
boot, into the restored database.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The chip is a twui ghost button, whose own dark fill and text won over
the chip's light-only classes, so in dark mode it lost its background
and took the wrong text colour. It now sets both for each theme, like
the link chips beside it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Which tasks a message concerns is now the app's record, not the bot's
word: a run's task tools report every task they read in full, add, move
along or hand over, plus a handed-over job's task, into
bot_messages.task_ids (also on its failure notice and the report relayed
to the requester). The thread shows them under the message as chips with
title and status, read per viewer and only for tasks they reach, on
loads and live pushes alike.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The proactive note asked for a next-step question in text, the questions
note only allowed asking when the bot couldn't tell what the user would
pick, and the coordinator prompt said to pick a sensible default. Next
steps and choices that are the user's now go on an ask_user card, in
replies, user-started task reports and the coordinator's prompts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The last-visited cookie now records the workspace too (`<bot>:<workspace>`),
the landing page still reading only the bot. Settings and the rail pages get
that conversation, access-checked, as `last_conversation`, shown above their
rail list as a way back naming the bot and its workspace.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A production chat dropped from the pinned DeepSeek to a free Nemotron
after one failed call mid-run, and every reply for the next half hour
ran on it: it called browser tools from chat replies, then said it had
no browser. Nothing recorded why.
- A failed model (or provider, for a key or credits) rests for the
install's model rest, 2 minutes by default (Settings > General run
limits, harness_model_rest_seconds), never longer, Retry-After
included. A refused request (400, 422) benches nothing.
- The text model takes up to 3 fallback models, from any provider,
tried in order after the pick and before the free automatic picks
(fallback_model_ids in the setting's options; defaults, bots and
workspaces).
- A run that fell back to an automatic pick goes back to the pick or
its fallbacks once they've rested.
- Every model failure is logged with the provider's error and its rest.
- A message answered in place of the model ahead of it shows the
fallback on its usage chip; the details list what failed and what
was passed over while resting.
- A computer or browser tool called from a reply is told to start a
task instead of getting a list of names.
- The work-under-way check catches "I'll open/drive/check ... now /
directly / and see" with no run started.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A production run kept a verdict the user had overruled while it worked,
and the reply to the correction queued a second run that redid the first.
- Task runs the user follows take in what they write in the conversation
since the run was queued: at the start, between steps, past a report
not yet out, and by the wrap up (no steps left: the report says what it
changes). A correction changes the work; anything else is left to the
chat, and crew messages to the reply they wake. Routines, hook calls
and rooms are unchanged.
- runTextLoop takes the caller's notes for what came in (incoming_notes)
and, with a wrap_up note, reads it before the wrap up too.
- A reply is told which of the bot's runs are open in its session and
hear the user, so a correction never starts another; start_task's
open-run refusal says the same.
- The reply's message-to-turn reading is shared (messagesToTurns).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A production chat took three chatrooms to get two files from one bot,
hit the step limit twice with the report unwritten, and spent three runs
on hand-overs that only said they were waiting.
- A room's answer copies every file it names that the asking bot can't
read (a member saves to its own folder) into the asker's folder under
crew/room-<id>/, and points the refs at the copies.
- ask_crew refuses a second open request from the same place unless it's
separate, and task runs, which see only their brief, are shown their
bot's open and recent requests.
- update_task unlinks files with unlink_file_ids (a task holds 20), and
list_tasks with task_id lists what's filed.
- A long run is told once, 5 steps before the wrap up, to save its report.
- delegate_task with start: false hands a task over without starting it.
- Prompt notes: task reports speak to the user as "you"; a bot goes with
the user's reading once overruled; a crew answer isn't the go-ahead and
silence isn't an answer.
- Quoting a message reads each ref chip as one inline label instead of a
paragraph per chip; a copied chat says "Task #27", not "Task task #27".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Production spent 284M prompt tokens against 4M written: every turn resends
the system prompt, tool definitions and whole transcript, and on 1M-window
models a run was only trimmed near 730k tokens (one routine run spent 39M,
one task ran 401 steps).
- A working context (Settings > General, 80k tokens by default) caps what a
turn sends whatever the model's window, counting tool definitions too.
Old tool output, then long tool call arguments, are cut in one block
down to 60% of it, so the cached start of the prompt holds between cuts.
- Routine runs and hook calls stop at 40 steps by default, and any run
wraps up once it has sent 4M prompt tokens; both are settings.
- Only the newest page snapshot of each browser stays in a run, and
browser results are capped at 12k characters.
- MCP server tools and a user's browser tools are listed by name and
loaded with load_tools when their definitions are large, instead of
riding along on every turn.
- token_usages records cached_tokens; the Usage page and message details
show the cached share.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chatroom job no longer waits behind the job holding its computer (often
the asking bot's own run, which could take an hour): it runs beside it with
the shell and files but no browser. Room jobs no longer count when a bot's
face is put back after another job ends, so a bot doesn't show work in its
own chat that only happens in a room. ask_crew tells bots not to start a
task that needs the answer in the same reply.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reply's history now shows the user's own reactions on each bot message
in its app record, and the chat reply note tells the bot to save the
lasting preferences they show in its memory of that user. Adds a Dislike
reaction so a bot can tell what to avoid.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
An image opened from a list (a folder, the Files page, the chat's files
modal, a message's images) gets that list's images as a gallery:
Previous and Next in the header and the arrow keys step through them in
the same modal, each opening at its own fit, neighbours preloaded.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A folder chip opens the folder's listing over the chat, files opening
their own preview on top; a modified click or Open in Files still goes
to the files browser. Image previews get a viewer: zoom buttons and
keys, Ctrl/Cmd+wheel or pinch at the pointer, Fit, Fit width (a
full-page screenshot opens that way and scrolls down), Actual size,
double click and drag to pan. Escape closes only the top modal.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A worker now works in /home/cb-<bot>/workspace/users/<user> (cwd, HOME
and ~), with its bot-wide folder at /home/cb-<bot>/workspace and, in a
workspace, the shared folder at /home/cb-<bot>/workspace/workspaces/<id>.
Only /home/cb-<bot>/workspace is kept: the agent makes it a link to the
bot's folder on the mounted workspace (bots/<bot>), and workspaces/<id>
in it a link to the workspace's shared folder, checking both on every
request and putting back one that's gone. Nothing on disk moves, so
existing work opens at the new paths.
Paths are checked on their real place (computerWorkspacePath), so the
real spelling still works, and shown to a worker its own way
(computerRunPath). Computer folder refs take either spelling. The
coordinator keeps working in the computer's workspace.
Computer image 1.3.0; the layout bump recreates every computer once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comments in pages, hooks and types name refs like [task:ID], which
Tailwind read as arbitrary properties and emitted as "task: ID", so the
build warned it isn't a CSS property. The ref forms are now excluded as
candidates wherever they're written.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reply wrote "I'm scanning the contests now" and the scan's made-up
results in one answer, with no tool called and a file that didn't exist,
and the user built tasks on it. Before a reply goes out, reviewBotReply
now sends it back once when it names a file or task that doesn't exist
for the user, or says work is under way or a report will follow while
nothing was started and nothing is open from the conversation. A long
bot message whose run called no tools shows "No tools used".
start_task takes max_steps, enforced below the install's limit, and
task runs are told to stop and report when several tries leave them no
closer. Chat replies the user follows get delete_task (never routines,
hook calls or rooms), so a bot deletes a task instead of cancelling it
and calling it removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The task modal showed a task's description and notes as raw markdown.
Both now render through the message elements (TaskMarkdown): formatted,
raw HTML never rendered, links opening in a new tab and refs as their
chips, with the page's crew when no conversation gives one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
update_task now takes a title and brief, refusing an open twin's title,
so a bot fixes a task's name instead of offering a second task. start_task
says different work is queued at once with separate, and the chat reply
note says nothing wakes a bot when a run ends, so it never promises to do
something once a run finishes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The file preview merged the message markdown elements at module load,
but those reach the preview again through their file chips, so loading
them first crashed. It merges them when it renders now. Chatrooms and
hook call threads give their chips the user's workspaces, so a
[workspace:ID] there links instead of showing its number.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A bot's [task:ID] now renders as a chip that opens the task's detail
modal, and bots are told to write it when they name a task. The
workspace dashboard's context runs through linkComputerRefs with the
crew contexts, so bot and workspace mentions show as chips there too.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
nft opens a netlink socket even for --version, which the emulated arm64 build has none of, so the v0.14.0 computer image failed to build. 1.2.0 was never published, so the fixed build keeps that tag.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A computer left 'creating' by a process that's gone stayed "Setting
up..." forever: the sync skipped it, and Retry and Rebuild were refused.
Setups and restarts now touch the row every 30s; one untouched for 3
minutes shows as failed with Retry, and sync-computers starts it again.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A computer's browser settings get a Lightweight browser switch (off by
default). With it on, Chrome runs with --disable-gpu (the GPU process
loads no Mesa or LLVM, so WebGL is off), forced reduced motion, no
smooth scrolling, no component updates and none of its background
features (optimization guide downloads, media router, translate,
autofill lookups), and Xvnc caps the screen view at 20 updates a second.
On a 1-CPU computer this took idle CPU from about 18% to 7% and memory
from 482 to 401 MiB. Sites see no WebGL, which fingerprinting scores as
less ordinary, so it stays a per-computer choice.
Chrome reads only one --disable-features/--enable-features, so the
agent's list and the user's extra flags are merged (mergeFeatureFlags).
Computers' health checks also run every second during the start period
(Docker 25+), so a ready computer is marked healthy sooner.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
cp keeps the source's mode, and a worker's files are 0660, so the copy
staged for the browser couldn't be read by it. The copy is now chmod
0644; the stage folder itself stays the computer user's and the worker's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings > General gets a Docker networks section (super admin) listing
networks the app's own container joins, e.g. a tunnel's or a database's.
Computers never join them. Networks are picked from the ones docker
lists on this machine, minus host, none, the computers' network and any
the container is on for another reason.
The list is the app setting app_extra_networks, so it lives in the
database and outlasts install.sh recreating the container on an update.
The app joins the networks itself over the docker socket
(syncAppNetworks): at boot, on save (leaving removed ones) and every
five minutes, since a network removed and made again drops its members.
A missing network or a refusal is logged once and retried. Outside
docker (a dev server) the list is only kept. The installer's
--extra-network still works beside it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every worker bot now works on a computer as its own Linux account
(cb-<bot id>, no sudo), owning its folder; a workspace's folder belongs
to a group its bots share. Only the coordinator works as gem, with sudo.
gem, and so Chrome, can't open worker folders: downloads, uploads and
files saved by name are copied by the worker's own account, and workers
open no file: URLs.
The computer's own services (agent, DevTools, Playwright MCP, VNC, ttyd)
are kept from worker accounts by an nftables rule, so containers get
NET_ADMIN; without the rule the agent refuses worker commands. The X
display needs gem's cookie. File reads for a worker are checked on the
open descriptor, and writes are made as the worker.
Workers ask the coordinator to install system packages with
request_install: a coordinator task in the super admin's conversation
weighs it and answers, and the answer wakes the worker. Stop ends a
worker's leftover processes on its computers.
Computer image 1.2.0; the layout bump recreates every computer once.
The computer modal kept every mode it had shown loaded in hidden frames,
so a Browser tab left behind the Shell still held the screen connection
(and kept the browser from parking). Now only the mode on show is
loaded: switching closes the other.
Each computer's last mode is remembered on the device (localStorage) and
opens next time; a take-over still opens in the mode the bot asked for,
and a mode the user can't open falls back to Browser.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The computer's screen has no GPU and no window manager, so the tab in
front is always on show and Chrome draws its animations in software at
full rate whether or not anyone watches: one animated site kept a
production computer at 200% CPU.
- The agent parks the browser after COBBLE_BROWSER_PARK_AFTER_SECONDS
(default 180, 0 turns it off) without a /mcp call or a screen view: a
blank tab goes in front of every site on show, as a person switching
tabs would, so pages keep their connections and see nothing unusual.
The next /mcp call or screen view brings them back before it goes
through. Done over the agent's own small CDP client (the image's Node
has no WebSocket).
- Chrome composites pages in software (--disable-gpu-compositing):
about half the CPU while a bot works, WebGL unchanged.
- The managed policy sets TabDiscardingExceptions so a parked tab is
never discarded and reloaded.
- The screen's websocket bridge now closes when a viewer goes away
without a close frame; it used to stay half open for good.
- Computer image bumped to 1.1.0.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Computers now run our own image (computer/, Debian 13): real Google Chrome
on amd64 (Debian's Chromium on arm64), headful on Xvnc with no automation
flags, so sites like Google treat it as a normal browser. One small Node
agent supervises the screen, the session bus, Chrome, Playwright MCP and
ttyd, and serves a single token-guarded port.
- Browser view: the computer's screen over noVNC, so Chrome shows whole
(tabs, address bar, menu, extensions, prompts); Ctrl/Cmd+V pastes the
viewer's clipboard (HTTPS or localhost). Cookie-Editor is installed by
default.
- Shell view (ttyd), for crew managers only.
- The /computers/<id>/ proxy passes only the view paths, never the agent's
API or MCP.
- Per-computer browser settings (super admin): timezone, languages, screen,
scale (125% by default, larger text in bots' screenshots), sandbox and
extra Chrome / Playwright MCP flags, with unsafe flags refused.
- Rebuild computer: pulls the image again and recreates the container;
files and logins stay.
- Bots' computer tools are the app's own (bash, read/write/edit file) plus
Playwright MCP; downloads move into the run's folder, MCP's snapshot and
console files point at the tools that read them.
- Release workflow builds and pushes ghcr.io/moduletrace/cobble-computer
for amd64 and arm64 once per tag.
Existing computers are recreated on the new image at boot (files and
browser profiles stay); run db:schema for the new browser_settings column
(the installer does this).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The stone breathes, rocks, hops, sinks or wobbles from its base under the
eyes' own motion. Transforms only: the outline and its cut never change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only the eyes move: idle blinks at a per-bot pace, working glances side
to side, done hops once, asleep breathes, needs-you nudges. Off under
reduced motion; the logo stays still.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A task still belongs to one bot by default. A workspace task can now be
workspace-wide (no bot) when asked for: every bot working there sees it,
works on it and logs what it did. On such a task update_task records each
call's status move and filed files as a note under the bot, and list_tasks
with task_id reads the whole log with who and when.
The coordinator and a workspace's admin bot (update_task workspace_wide)
or a crew manager (Make workspace-wide) turn a bot's open workspace task
workspace-wide; hand-over gives one back to a single bot. Other bots can't
switch or claim tasks. The boot step that gave bot-less tasks a bot is
gone, and a leaving bot's workspace-wide tasks stay.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
transform_image runs ordered steps (crop, resize, rotate, flip,
grayscale, blur, sharpen, adjust, trim) with sharp on raw pixels, so
the order is the bot's, after turning the source upright by EXIF. The
source is a file the run reaches or the user's own upload, checked like
a picture source, never SVG. Crops take pixels or percent, the result is
saved as a new file and a preview goes back to the bot so it can check
the crop landed.
It is named "transform", not "edit", so it can't be mistaken for the
image_edit model setting, and its description and generate_image's
point at each other: content changes go to generate_image with a
reference, cutting and adjusting to transform_image.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A workspace nobody visited yet ranks by when it was created, so one just
made leads the list instead of falling below every visited one and out
of the shown slice.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Zod dropped unknown keys silently, so a coordinator that sent the
workspace's id under the wrong name kept hearing that no id was given,
retried update_workspace fourteen times and blamed the tool. Unknown
arguments now come back as an error naming the tool's real ones.
The "No workspace has id" errors of update_workspace and create_bot now
list the workspaces as they are at call time, including one created
earlier in the same reply, and the coordinator's workspace tools are
offered even before the install has a workspace.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A "Use the model's own media reading" checkbox on the text model
settings (default, bot and workspace) lets a text model that takes image
input look at images itself: attachments, computer and browser
screenshots, MCP tool images and read_file images. Otherwise, or for a
model that can't see, the media reading model reads them as before.
Tools now return images instead of reading them; the run shows them in a
user turn after the tool results, fenced as tool output, and keeps only
the newest few so long runs don't resend every screenshot.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each user can add their running browsers in Settings > Browsers and pick
where they apply and which is the default, for all their bots, a bot or a
workspace. The computer's browser stays as the fallback. A browser only
serves its owner's runs; routines need its owner's say, and hook calls
and chatrooms never get one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rail remembered one workspace in a cookie, so opening another sent the
previous one back to its old place, sometimes behind "See all". Record
visits per user in workspace_user_visits and bot_user_visits instead, so
the order follows the user across devices and survives sign-out.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The asking bot's conversation now shows where each bot in an open
request stands, linked to the room, until it closes. A failed or stopped
room can be tried again from its header, the Chatrooms list or the
coordinator's message: the same room reopens with a fresh turn budget.
A stopped room no longer leaves the thinking row up.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hook runs now work in a hidden session per hook, so their results stay
out of chats, rails, session lists and notifications. Clicking a hook
opens a modal with its details and a live thread of its calls.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Markdown rendered, CSV/TSV as a table, images, PDFs, audio, video and
sandboxed HTML in place, other text as code, with Download and Open in a
new tab. Used by file chips, message attachments, the files modal, task
files and the files browser.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
generate_image takes reference images: files the run reaches as
[file:ID] refs, or the user's uploads by media id, up to four, each
checked like a picture source and limited to raster images.
Calls with references go to a new Image editing harness (no automatic
picks). While it has no model or is off, image generation takes them;
with its fallback on, image generation steps in after its pick fails.
Only models that take image input are tried with references, so none
drops them unseen. OpenRouter gets them on /images as input_references;
other providers as a multipart upload to /images/edits.
The Models pages show image editing's unset state as "Same as image
generation", and the models cache version is bumped so it shows at once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first super admin now lands on Settings > Setup after signing up: a
skippable walk through the app name, connecting a model provider and
picking models, ending with where to go next. It stays under Settings to
come back to.
While a bot has no text model, its conversation shows a notice in the
thread (centred when empty): super admins get Connect a provider and
Guided setup, everyone else is told the super admin sets it up. The
models modal keeps it current.
The Models page's data and save logic move into useModelsOverview, shared
with the setup.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ask_user puts up to six questions on one card (radios for one pick,
checkboxes for several, an optional typed Other) as a [question:ID] chip.
The user's answers are checked against the questions, stored in
bot_questions and sent to the bot as their chat message; Skip says so.
Offered in chat replies and user-started tasks, never in routines, hook
calls or chatroom sessions.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A session the coordinator's delegation, a routine or a hook opened has
no user message and no reply, so it was never named and showed as
"Untitled conversation". Tasks now name their session too, and a session
with no user message is named from the bot's own messages. Until a
session is named, Latest activity shows what it opened with, and
sessions with no messages are left out of it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stack lines its children up at the start, so a linked row title grew to
its full one-line width and pushed the card past the screen edge. The
link now fills the row and the title is a block, so it truncates.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A workspace task with no bot was seen by every bot working there. Now a
task can't be saved without a bot, a worker reaches only its own (the
workspace admin and the coordinator still reach all), the workspace page
picks who has a new task, and a bot leaving a workspace or deleted passes
its tasks there to the workspace's admin bot, else the coordinator (also
at boot for rows without a bot).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lists no longer add twui's 25px list margin on top of full width,
markdown blocks and list items are capped at the column, long words
and inline code wrap anywhere, and ref chips with long labels truncate
instead of pushing the line past the edge.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The modal shows who has the task and where, who added it and when it
moved, its files and notes (each note naming its bot). The task form's
fields all show their labels.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
An uploaded image's favicon now carries the stone mark like the PWA
icons and is cut to a circle. The mark is larger on the favicon and on
the regular (rounded-square) icons, and the settings preview matches.
A render revision in the set's version gives re-saved icons a new URL
past the immutable cache.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Logs grew forever. A daily prune-logs cron now deletes entries older
than the app setting logs_keep_days (Settings > General, super admin;
default AppData.LogsKeepDays, 90), with an index on logs.created_at.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Files page and the conversation's files modal searched only on
Enter. Both now search by name or path a moment after the last
keystroke (useDebouncedValue, AppData.SearchDebounceMs), clearing shows
the whole list at once, and the modal drops an answer a newer request
overtook. The Files search box no longer locks while a folder loads.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every bot file was chunked into bot_file_chunks and embedded into
bot_file_vectors, and uploads kept their extracted text in
media.text_content, which together took most of the database. Bot
files are no longer indexed: bots find them by name or path with
list_files and read them with read_file, and search_files, ingest_file
and the files modal's re-read button are gone. Attachments keep no
text; a reply reads a document from the file. Only knowledgebase
documents keep text.
The schema drops both tables and the ingest columns. At boot,
dropStoredFileText removes what older versions stored (file jobs,
upload text) and vacuums once much of the database is free. The
media:prune-text script it replaces is removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sandbox ignores sandbox_execute_bash's timeout and runs every call in
one shared shell session, so a command that never ended (a network read
without a timeout, a prompt) kept running after the call gave up, and
every later command on that computer, from any run, timed out behind it.
Each command now runs in its own bash under coreutils timeout (at most
ComputerCommandMaxSeconds, below McpToolTimeoutMs), reading no input, and
says when it was stopped.
Replies' env list says where each key comes from and that workspace,
computer and install-wide envs reach every bot there, so bots stop
telling users a workspace's keys must be set per bot. The computer
prompt says installed programs may be gone after a restart. An empty
open-only task list says closed tasks aren't shown, and update_task says
when a status was already set.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reply catch-up read the page's stale face, so after an interim
message it stopped while the thinking row stayed up. It now reads the
live face, checks at once when the page comes back into view or online,
and replays the bot's face and task too, so a reply that ended silently
can't leave the bot working on screen.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Job steps (bots_queue_updates) only feed the live working row, so the
new clear-job-steps cron deletes them shortly after a job ends, however
it ended, keeping their count on bots_queue.steps for the message
details. Not done the moment a job ends: the live relay would miss the
last ones.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Chat replies now list the envs that reach them (keys and descriptions,
never values), so a bot no longer asks for keys that are set or "checks"
them with show_secret or printenv. request_secret refuses a key that's
already set unless the user asked to replace it, and search_computers
says envs aren't loaded in its shell.
start_task and delegate_task results say "Run #N" and that list_tasks
doesn't show it, since bots sent users to the to-do list for queue jobs.
start_task refuses a second open run in the session on the same
computer unless it's separate work, and says how many runs are ahead on
that computer.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A task running in a workspace shows "Working on a task in <name>
workspace", so the bot's own chat and the main rail say where the work
is. Outside a workspace it stays "Working on a task".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A workspace's task now carries the bot that has it there (bot_id with
workspace_id), or none while it's shared. A bot reaches its own list and,
in its workspaces, its own tasks plus the shared ones; a workspace admin
every task there. Bots create workspace tasks for themselves by default,
take a shared one by starting it, and hand-overs record the new bot.
Removing or deleting a bot makes its workspace tasks shared again. The
conversation's Tasks modal shows that bot's tasks in the workspace.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A ref quoted alone in a code span now links like any ref, and refs
inside longer code stay literal instead of turning into broken link
text. A file chip opens a file from another bot's folder for a user
who reaches that folder, by the same rule as its bytes, so the
asked bot's files open from the asking bot's conversation. Bots are
told to keep refs out of backticks, and the coordinator to pass them
on as given.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A worker asks for another bot's help with ask_crew. The coordinator
reads the request, asks the right bot (in a workspace, only its
members), and sends the answer back into the asking bot's
conversation, waking it. Each exchange is kept as a read-only
chatroom: listed in the main rail after the workspaces, or in the
workspace's rail for requests made there, with live status rows for
each bot while it's open and a Stop button.
Room sessions are hidden from every conversation list, other bots'
words reach the model fenced as data, and turns, nesting and open
rooms are capped. Closed rooms are pruned after a retention period
and past a cap per place (Settings > General).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A workspace run saves to the bot's own folder unless it picks the
workspace's, but a file chip in a workspace conversation only looked in
the workspace's folder, so those refs rendered as dead text. The chip
now sends both ids and the single-file lookup also searches the bot's
own folder for a user who reaches that bot.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A managed Chrome policy, written as root into each running computer's
container on provision and every sync-computers run, installs the
default extensions (normal_installed: can be turned off, not removed).
Existing computers get it without being recreated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The update popup showed on installed PWAs after an update had already
landed: the new worker sat waiting behind the open window. Nothing in the
worker is per-version, so it now skips the wait on install, and the
popup is gone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bots can now show a concept as a visual: create_graphic (with
update_graphic, read_graphic and list_graphics, on every run, no computer
needed) stores one HTML document in bot_graphics, per user like the
conversation, and the chat renders its [graphic:ID] ref as an inline card
sized to fit, with a large view and a page of its own (no rail).
Graphic HTML is treated as hostile: it is only served at /graphics/<id>
with a CSP sandbox allowing scripts under an origin of its own and no
network, loading only the vendored Chart.js and Mermaid from
/graphics-lib/. The document carries the app's theme vars and scrollbars,
reports its height to the thread, and a frame that navigates away is
closed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two prompts sent close together (as while a bot is still answering)
shared one row under their group: every copy button bunched beside the
last message's time. Each user message now has its own row, with its
copy button, a new Reply button (once it is saved) and its own time.
copyableMessages is gone with the shared row.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Knowledgebases give bots RAG over documents, scoped like extensions: to
particular bots, to a workspace, or to every bot, with their own button
beside Tools in the composer. Documents are chunked and embedded by the
file-ingest worker with the install's embedding model, which is now an
install-wide setting rather than a per-bot one.
- Word search runs on an FTS5 index ranked by BM25, with a scored LIKE
fallback for scripts written without spaces.
- Changing the embedding model re-indexes documents automatically.
- Ingest jobs wait without spending attempts while every embedding model
rests, fail at once on errors retrying can't fix, and keep passages
searchable by words when the model refuses.
- Settings > Knowledgebases shows each knowledgebase's and document's
index state: spinner, warning, grey check (words only) or green check.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
MCP, skill and tool rows in Settings say "Updated 5m ago" beside how
they're reached and who gets them. updated_at now means a change to an
extension's settings (an edit, or any Access save): runs, connections and
MCP syncs keep their own last_checked_at / last_synced_at and no longer
touch it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sessions from v0.2.8 and earlier were linked to the one before them by
every rollover and New session, so production threads offered "Show the
previous session" (and prompts read summaries) for sessions nothing was
carried from. A link is kept only when the session opens with a message
carried from that session.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Coordinator and worker come from bots.kind; bot_types now only holds
workspace_admin (was admin), each row naming its workspace, with no scope
field. Rows from v0.2.8 and earlier are fixed at boot by migrateBotTypes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The conversation page tells the rail and the sessions modal which
session it shows (announceShownSession, useShownSession); they reload,
so a session reopened by ?session_id= shows at once.
- Only that session is Current and greyed out (the active one without
?session_id=); the active row then leads back to it.
- The rail lists the session on screen even when it's older than its
latest sessions.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Bots get continue_in_new_session: the bot writes a title and summary,
the session closes for good (read-only) and the new one opens with the
summary as a "Carried over from the last session" message that links
back to the old session.
- Continue in new session (conversation menu, sessions modal) and the
automatic rollover at the session length do the same; New session now
starts a fresh, unlinked session.
- Session length is an app setting in Settings > General.
- ?session_id= opens a session; a carried-over one shows a bar linking to
where the conversation went on instead of the composer.
- The thread can open the previous session above the current one (shown
only, never in the prompt), and replies get search_past_sessions and
read_past_session.
- Sessions are named from their opening messages, not their latest, and
a carried summary is labelled as the earlier session's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A hook run follows its brief over the bot's memory. When the two disagree,
the run now reports the conflict and says the brief needs changing, rather
than offering to fix its memory. In chat, a change to how a hook's calls are
handled is proposed as a new brief, not saved to memory or promised.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A hook call used to record only how it was taken; its run's answer went
to the chat alone and was lost to the call once the job was pruned. Now
`bot_hook_events` keeps `response`, `response_message_id` and
`responded_at`, written on every call a run took in when that run ends
(completed, failed, lost, stopped or cancelled) by
`recordHookCallResponse` in the job helpers, and calls turn done or
failed. The Calls view searches what calls sent and what runs answered,
filters by status and pages; Show all loads one call whole. Bots get
`search_hook_calls` and `read_hook_call` for their own hooks (never in a
hook call's own run), with payloads always marked as outside data.
Calls are kept for the app setting `hook_events_keep_days` (Settings >
General, default now 30 days). The caller still only gets 202 Queued.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A hook's calls used to run in whatever session was active at the time.
Now `bot_hooks.session_id` pins them to one session, open or closed
(null still follows the active one). The hook form picks where it runs
(the bot's own chat or one of its workspaces) and a session there, or a
new one of its own started beside the active one so the chat on screen
stays. A bot's proposed hook gets the session it was proposed in, and a
missing session is replaced on the next call. Changing place or session
is refused while a run is open; the computer stays only if reachable.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A new personal env scope (paradigm user: one user's secret for one bot)
beats every other scope, reaches only that user's runs of that bot, and
is redacted like any secret. Bots take secrets in with request_secret,
which puts a [secret-request:ID] card in the chat: the user types the
value into a masked input there, never into a message, and the bot is
told only the key. Bots show secrets with capture_secret (a task's
computer tool that saves a file or a command's output straight to a
personal env, then redacts it from the rest of the run) and show_secret
(an env by key): both give a [secret:ID] chip whose Reveal and Copy fetch
the value on click, for its own user (personal) or a super admin
(anything else), logged by key. Values never go into messages, page
props, history, Copy chat or logs. Users manage their own secrets on
Settings > Secrets; the Environment page lists everyone's, remove only.
Deleting a bot or user removes its personal secrets, and SecretsNote
tells bots never to ask for or print secrets in chat.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
propose_skill took no strict schema, so a runbook sent under another key
was dropped and the saved one proposed again; the confirm still said
"Saved". Now an unknown key is an error, a change that changes nothing is
refused, and both the bot and the confirm outcome are told which fields
change and whether the runbook is among them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each computer's Chrome profile now lives on the data volume
(DATA_DIR/computer-browsers/<id>, mounted at ~/.cobble-browser) and
Chrome is pointed at it with --user-data-dir. The sandbox image resets
its own profile's preferences to session-only cookies on every boot,
which signed every site out whenever Chrome exited. New profiles are
seeded with the image's preferences minus that rule, stale Singleton
links are removed before each provision, and existing computers are
recreated once (skipped while a job runs on them).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bots get list_hooks, pause_hook and delete_hook, which act directly since
they only take away. A new hook, or a new name, brief or filter, or
switching a paused one back on, goes through propose_hook: it stores a
hook_proposals row and puts a [hook-proposal:ID] card in the reply, which
the user it was proposed to confirms or rejects. The card is read from
what Confirm saves, with the bot's reason labelled as its own; confirming
checks everything again and saves through the Hooks modal's helpers. A
new hook's URL is shown on the card once, to the user only, never in the
outcome the bot is told. What calls a hook, its computers and its signing
are never proposed. Only chat replies propose, and a hook call's own run
gets no hook tools, so a caller's payload can't reach them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A bot hook (bot_hooks) is a secret URL, POST /api/hooks/<token>, whose
calls queue the hook's brief plus the raw body as a task, per user and
bot like a routine. Only the token's hash is kept (shown once, rotatable);
an optional HMAC-SHA256 signing secret is stored encrypted. Calls are
rate limited per address and per hook, recorded in bot_hook_events
(pruned daily), deduplicated by delivery id, and a call while the last
run still waits joins its brief instead of queueing another. The payload
is fenced data and HookRunNote tells the bot never to take instructions
from it; failed runs retry like routines.
A hook can instead watch a computer's browser notifications: the app
installs a small watcher that owns org.freedesktop.Notifications on the
sandbox's session bus, so Chrome hands it every notification (it only
looks for that service at start-up, so Chrome is restarted once, never
mid-task), and it posts each one to its hooks, optionally filtered.
Computers reach the app at COMPUTER_APP_URL or the app container's name.
Users make hooks in the conversation's Hooks modal and manage them all
on /admin/routines; bots never create or change hooks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A bot's instructions and memory for one workspace were only reachable
from the workspace's settings. The editor is now shared and also opens
from the conversation menu in that workspace ("Instructions here",
loaded on open through api/admin/workspaces/workspace-bot) and from the
workspace rows on the bot's settings page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The conversation header menu gets a Copy chat row that puts the active
session on the clipboard as one markdown document: a summary, then each
message under its author and time, with quotes, attachments and
reactions. Bot and workspace refs read as names, message headings drop
below the message headings and code blocks stay untouched. The clipboard
write starts on the click with a pending ClipboardItem so Safari allows
it after the fetch.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The wrap-up turn now gets the run's actual tool calls, each bot message
keeps them as bot_messages.tool_log, and history follows recorded bot
messages with an [App record] line. The coordinator also gets update_bot
in workspaces, so it can fill a bot's core prompt from there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
delegate_task takes a task_id to hand over a task already on a list: it
moves to the worker (a workspace's task stays on its list), goes to
doing, and the job is linked back so its end is noted on the task.
hand_over_schedule moves a bot's own routine to another bot, keeping its
workspace. Users get Hand over in the Tasks UI and both routine lists.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings > General gets an App icon (super admin): one of the seven
stones, or an uploaded image with the picked stone as a top-left corner
mark (inside a round launcher's crop, clear of the browser's badge),
previewed in both launcher crops before saving.
Uploads are decoded and cropped to a stored square (no SVG); the set is
drawn into DATA_DIR/install-icon/<version>/ and served publicly and
immutable. The manifest, head icon links and push notifications point at
it; the ember stone keeps the stock icons. The generator shares the icon
renderer.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Settings > General: an App name (super admin) for the installed app.
The manifest's name/short_name, the iOS head tags and the loading
page's title use it, so two installs on one phone can be told apart.
- Notifications get a real badge (white stone silhouette): Android masks
the badge by alpha, so the opaque app icon showed as a square.
- The loading and offline pages load the app's font.
- The font is now Archivo (variable, one request for every weight),
matching the marketing site.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 10:17:40 +01:00
2428 changed files with 134536 additions and 7399 deletions
@@ -29,9 +29,8 @@ A crew of small AI worker bots you host yourself (alpha).
Cobble is a self-hosted crew of small AI worker bots. You get a coordinator
and a set of workers, each with its own job, models, memory and workspace.
They talk to you in one chat, share workspaces, run routines on a schedule,
and drive their own computers: Docker sandboxes with a browser, a terminal,
a code editor and a desktop that a bot can use and hand back to you when it
needs help.
and drive their own computers: lean Docker sandboxes with a real Chrome and
a shell, which a bot can use and hand back to you when it needs help.
It is an install, not a SaaS. One SQLite database, one Docker container, and
your data on your own machine.
@@ -61,12 +60,13 @@ your data on your own machine.
| Workspaces | A shared home for a group of bots: shared context, per-workspace instructions and memory, a default computer, and a dashboard |
| Memory | Each bot keeps core memory, memory about you, and workspace memory, and rewrites it as it works |
| Routines | Cron schedules per bot, written in chat, that queue a task on its own |
| Computers | Docker sandboxes with browser, terminal, code editor and desktop, opened from the chat and handed back to you mid-task |
| Computers | Docker sandboxes with a real headful Chrome and a shell, shown live in the chat and handed back to you mid-task |
| Files | Bots keep files on your data volume, search them by meaning, and attach the ones they make to a reply |
| Models | OpenRouter, OpenAI, Anthropic, Gemini, DeepSeek, Groq, Mistral, xAI, Ollama or any OpenAI-compatible server, per bot and per harness |
| Voice | Dictate into the composer, play any bot reply, with speech-to-text and text-to-speech models of your choice |
| Tools | Install your own MCP servers and custom HTTP, script or prompt tools, and give them to bots or workspaces |
| Skills | Write runbooks your bots follow. Each bot sees what a skill is for and reads the whole thing only when it needs it |
| Knowledge | Knowledgebases of documents and notes, given to bots or workspaces: every reply starts from the passages that fit, searched by one embedding model |
| App | Installable PWA with Web Push, dark mode, and a rail built for a phone |
## Screenshots
@@ -90,7 +90,7 @@ The app serves plain HTTP on the port it prints, usually
`http://<your-ip>:7227`. Put a reverse proxy or tunnel in front of it for
HTTPS (see [HTTPS](#https)), then open the proxy's address and create the
super admin account. The first signup also creates the coordinator and the
main computer, which pulls the sandbox image in the background. Give it a
main computer, which pulls the computer image in the background. Give it a
few minutes.
Then open **Settings > Models**, add an OpenRouter key (or another provider)
- **Browser:** Google Chrome on amd64 (the real "Google Chrome" Client Hints
brand, Widevine, full codecs); Debian's Chromium on arm64, where Google
ships no Linux build. It runs headful on Xvnc with a normal profile and no
automation flags: the app attaches over CDP, it never launches it, so
`navigator.webdriver` is false. WebGL runs on Mesa's software renderer;
pages are composited in software (`--disable-gpu-compositing`, half the
CPU of compositing through Mesa).
- **Parking:** with no GPU and no window manager, the tab in front is always
on show, so its animations are drawn at full rate whether or not anyone
watches (one animated site can take a core or two). After
`COBBLE_BROWSER_PARK_AFTER_SECONDS` without a `/mcp` call or a screen view,
the agent puts a blank tab in front of every site on show (over DevTools,
as a person switching tabs would: the site keeps its connections, Chrome
just stops drawing it). The next `/mcp` call or screen view brings them
back before it goes through. Tabs are never discarded (managed policy), so
a parked one never reloads.
- **Agent** (`agent/`): the container's main process (under tini). It keeps
Xvnc, the session bus, Chrome, Playwright MCP and ttyd running (each restarted
when it exits), stops them in order on `docker stop` so Chrome saves its
profile, and serves the app on port 8080. Node, no dependencies; bundled by
Bun when the image is built.
- **Screen** (`/desktop/`): the virtual screen itself, so Chrome shows as
it is: its tab strip, address bar, menu, extensions, drop-downs and
prompts. The screen is Xvnc (an X server that is also a VNC server, on
loopback, no password); noVNC (the project's release, settings in its
`defaults.json`/`mandatory.json`) draws it scaled to the window, and the
agent bridges noVNC's websocket to Xvnc itself (no websockify). The
screen's size is a setting; a viewer can't resize it. `novnc/cobble-clipboard.js`
makes Ctrl/Cmd+V on the screen paste the viewer's clipboard (browsers allow
that over HTTPS or localhost), and copies the computer's back.
- **Shell** (`/terminal/`): ttyd, a terminal in the browser, as `gem`.
No window manager, desktop or code editor: the image stays small and starts
fast.
## Accounts
The services run as `gem` (passwordless sudo), and so do the coordinator's
commands. Every worker bot works as its own account, `cb-<bot id>` (uid and
gid `100000 + id`, no sudo), made by the agent the first time the app acts
for it (`run_as`). Its folder `bots/<id>` is its own (`2770`), and a
workspace's folder `workspaces/<id>` (root's) belongs to the group `cw-<id>`
its bots join. A worker works through its home: `/home/cb-<id>/workspace`
is a link to `bots/<id>` (the only part of its home that's kept, since the
home itself lives in the container), its users' folders are `users/<user>`
in it, and in a workspace `workspaces/<workspace id>` in it is a link to
that workspace's folder. The agent checks both links on every request for
the worker and puts back one that's gone (whatever sits in its place is
moved aside). `gem`, and so Chrome, can't open either: the app passes a
worker's uploads, downloads and files saved by name through a folder of the
call's own, copied by the worker's account (`sudo -u`), and a worker can't
open `file:` URLs. Its env files live in its own home.
A worker can't reach the computer's own services: an nftables rule
(`guardServicePorts`, which needs `--cap-add NET_ADMIN`) resets its
connections to the agent, Chrome's DevTools, Playwright MCP, VNC and ttyd,
and the X display asks for gem's cookie (`XAUTHORITY`). If the rule can't be
set, the agent refuses everything asked for a worker. Workers install
Python and Node packages into their own folder (`pip install --user`,
`npm install -g` into `~/.local`); system packages are the coordinator's
(`request_install` in the app), lost when the container is recreated.
## API
Every path but `/health` needs `Authorization: Bearer $COBBLE_COMPUTER_TOKEN`
when that's set (the app sets it per computer).
| Path | |
| --- | --- |
| `GET /health` | 200 once Chrome's DevTools and Playwright MCP answer |
| `GET /api/info` | home, workspace, user, browser binary and version, whether workers are guarded |
| `POST /api/exec` | `{ command, timeout_seconds?, cwd?, run_as? }`: one `bash -c` as `gem` (or, with `run_as: { bot_id, workspace_id? }`, as that worker's account), own process group, no stdin, killed with its children at the timeout or when the request goes away. `{ output, exit_code, timed_out, truncated }` |
| `GET /api/files/stat?path=` | `{ exists, type, size, mtime_ms }`; with `run_as_bot_id` (and `run_as_workspace_id`) only inside that worker's folders and home |
| `GET /api/files/download?path=` | the bytes; the connection is cut if the file changes mid-send; `run_as_*` as for stat |
| `POST /api/files/write` | `{ path, content, encoding?: "utf8" \| "base64", mode?, run_as? }`, owned by `gem`, or written by the worker's own account |
| `/mcp` | Playwright MCP (`--shared-browser-context --codegen none --no-webmcp --file-paths absolute`, its files in `~/.cobble/playwright`, capped at 256 MB); Chrome saves downloads in `~/Downloads` |
| `/desktop/` | the screen (noVNC); `/desktop/websockify` is its websocket to Xvnc |
| `/terminal/` | a shell in the browser (ttyd, as `gem`, in the workspace) |
## Settings
| Env | Default | |
| --- | --- | --- |
| `COBBLE_COMPUTER_TOKEN` | none (open) | the token the API asks for |
| `COBBLE_BROWSER_PROFILE_DIR` | `/home/gem/.cobble-browser` | Chrome's profile (mount it to keep logins) |
| `COBBLE_SCREEN` | `1920x1080` | the virtual screen, and the window that fills it |
| `COBBLE_BROWSER_SCALE` | `1.25` | how large Chrome draws pages (its device scale factor, 1 to 3): larger text in screenshots |
| `COBBLE_BROWSER_LANG`, `COBBLE_BROWSER_ACCEPT_LANG` | `en-US`, `en-US,en` | keep them, and `TZ`, matched to where the traffic comes from |
| `COBBLE_BROWSER_SANDBOX` | `true` | Chrome's sandbox; it's turned off by itself when the host blocks user namespaces |
| `COBBLE_BROWSER_PARK_AFTER_SECONDS` | `180` | idle this long, the sites on show are parked behind a blank tab; `0` never parks |
| `COBBLE_BROWSER_ARGS` | | more Chrome flags, space separated (ones that would open DevTools or move the profile are dropped) |
| `COBBLE_MCP_ARGS` | | more Playwright MCP flags, e.g. `--caps vision` (where it listens and which browser it drives can't be changed) |
| `TZ` | `UTC` | the browser's timezone |
Chrome's sandbox needs user namespaces, so run the container with
`--security-opt seccomp=unconfined` (the app does), a big `/dev/shm`
(`--shm-size 2g`), and `--cap-add NET_ADMIN` for worker accounts.
## Building
The app runs the tag in `AppData.ComputerImage`
(`ghcr.io/moduletrace/cobble-computer:<version>`). Any change here bumps that
tag; the release workflow builds a tag once (a dispatch with
`rebuild_computer` rebuilds it, for a newer Chrome).
```sh
bun run build:computer # builds AppData.ComputerImage for this machine
docker run -d --name cobble-computer-dev --shm-size 2g \
message:`This computer can't keep its bots apart, so it runs nothing for a worker bot: its firewall couldn't be set up (${AgentState.guard_error||"unknown error"}). Rebuild the computer from its settings; its container needs NET_ADMIN.`,
printf' %sThis port is reachable on your network, without encryption. Put a proxy or tunnel in front of it for HTTPS.%s\n\n'"$C_DIM""$C_RESET"
printf' %s!%s %sThis port is reachable on your network, without encryption. Put a proxy or tunnel in front of it for HTTPS.%s\n\n'"$C_YELLOW""$C_RESET""$C_DIM""$C_RESET"
expect(note).toContain("Read a page as text before you look at it");
expect(note).toContain("browser_snapshot");
expect(note).toContain("Take a screenshot only to confirm something visual at the end");
});
});
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.