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.
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.
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.
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]>
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'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]>
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'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]>