1.19.4 skipped the password check for a request whose path matched the pattern of the terminal's
connect route and carried a ticket, leaving the ticket to that route's handler. 1.19.5 skips it only
when the server dispatches the request to that handler (anomalyco/opencode#58258). It also answers a
request of the TUI's worker that fails instead of leaving it waiting, updates the package of GitLab's
provider, which this repo does not use, and otherwise removes unused code.
Checked against 1.19.4 side by side on 2026-10-30: the overflow phrases and exclusions are the same
block byte for byte, max_tokens 32,000 and 182,000 on a fake endpoint with the same headers, the same
default permissions, --yolo still read as --auto, keys still masked, sessions read both ways, the
Agent tab through a copy of the relay with its terminal and its phone layer, and a shell command
naming an aliyuncs.com host refused under --yolo and under AGENT_AUTO's permission when a fake
endpoint asked for it. On the box's FP4-Local lane both sent the same request shapes, read
hello.txt with a tool and answered 7351. The x64 digest is GitHub's, checked against the download.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in the second review. The check that the rules held probed each
pattern, so a key after the block that allows only some commands
("bash": {"curl *": "allow"}) was not seen, and a curl to an
aliyuncs.com host stayed allowed: the block has to be the last key, as the
check after a write already required. The copy a fresh box gets carries
the rules of the generated config, so it no longer runs --deny-bash, which
said "hold already" on every first install.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in review. --deny-bash called rules "already there" that a key added
after them overrode, and it rewrote the user's own "bash". The rules now
live under "bash*", a wildcard that matches the shell tool, as the last
member of "permission": in the config install.sh generates, which oc and
the Agent tab load over the user's own, so they come after the user's rules
whatever those say, and put last again in the global config plain opencode
reads when it is this repo's. AGENT_AUTO repeats them under "*bash": with
the box's own global config, which has no "*", the bare value still came
last (checked with opencode debug agent).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install.sh runs --deny-bash on the box's own opencode config, the one
opencode, oc and the Agent tab all read, and tells a user's own config the
rules to add. AGENT_AUTO=1 put a bare {"*":"allow"} after every rule of
the config, under which an echo naming an aliyuncs.com host ran on the box:
the unit now repeats the rules after it, and the cockpit still reads it as
auto.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.18.35 runs on Bun 1.3.14, without the fix, and the agent's web fetch decodes whatever a page
sends (both read in their binaries). 1.19.4 was checked against 1.18.35 side by side: the same
overflow phrases, max_tokens 32,000 and 182,000 with the same headers, the compaction,
permission, flag and request code unchanged, keys still masked, sessions read both ways, no
update check and no OpenCode 2 offer with autoupdate false, and an engine holding its headers
320 s waited for through the proxy. The test of a newer opencode now takes a version past
whatever the pin is (1.18.40 is older than 1.19.4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For Homebrew opencode's upgrader runs brew upgrade, which installs the formula's own version
whatever version it is asked for, and Homebrew Core's formula is OpenCode 2 now (2.1.2 on
2026-10-22): up to 1.19.1 an update put OpenCode 2 under oc and the Agent tab. opencode's own
tap (anomalyco/tap, sst/tap before the project moved) stays on 1.x and still goes through the
upgrader: the keg's install receipt says which (source.tap), and a keg whose receipt names no
tap is kept. The pin tests clean their homes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With any value but false, opencode 1.19 checks for a release every 10
minutes and, once on the newest 1.x, shows "/update to upgrade to
OpenCode 2.0" on its TUI's home screen (cli/upgrade.ts, home.tsx), and
1.18.35 announces 2.x as soon as GitHub's latest release is one.
OpenCode 2's server is not the 1.x `opencode serve` the Agent tab's
relay is written for. Only false or OPENCODE_DISABLE_AUTOUPDATE turn the
check off. oc-merge-limits.py now writes the JSON boolean, and refuses a
value opencode's schema does not take: the old code wrote the string
"false", which that schema refuses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.18.32 printed this box's API key in clear in `opencode debug config`; 1.18.35 prints ***
(checked with a fake key on both). What the repo relies on was checked against 1.18.32:
the overflow phrases and exclusions are the same block of the binary byte for byte,
max_tokens is 32,000 without the oc launcher's variable and 182,000 with it on a fake
endpoint, serve --hostname and the hidden --yolo are there, and the release diff touches
neither the compaction nor the permission code. Its model requests carry one more header,
x-opencode-session-id, with the session id x-session-id already carried.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CI's own /tmp audit (a full ci-local.sh run, everything created
since its start) still found files: the cockpit unit rendered by
dashboard/install-dashboard.sh, the image smoke's curl output, and
cockpit config directories with a one-byte api-key.
dashboard/install-dashboard.sh, dashboard/install-agent.sh and install.sh
render each unit (and the flash launch script) into a mktemp file and
removed it only on the way that succeeds; a run that stopped in between,
as several tests make it, left it in /tmp. An EXIT trap now removes it
however the script ends (install.sh: forget_rendered, which keeps the
exit status, checked with a run that ends 0 and one that ends 1).
tests/test_image_smoke_says_why.py ran install-image.sh's smoke block,
whose trap is set further up the script, with an environment that had
no TMPDIR: it passes the test's own directory now, and removes it.
tests/test_install_opencode_pin.py made the cockpit's config directory
inside a child with no TMPDIR: the test makes it, passes it, removes it.
dashboard/tests/smoke-http.sh (run by hand) also removes its second
cookie jar, which holds a cockpit session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The monolithic app.js and the tab <select> become a rail of views:
index.html plus css/cockpit.css and nine scripts sharing one scope
(base, now, lanes, ops, agent, decide, image, video, boot). Every
regression the swap left behind is fixed here, not papered over.
The one-click lane change (the point of the redesign): the page walks
switch, stop, start as one journey, one job per step, stopping at the
first gate that refuses. In dry run the state never moves, so the wait
for the engine to go down was a 90 s stall against a wall; dry run now
skips that wait and the sheet says up front that a later gate can
refuse because the box still reads as it was.
Tests that read app.js read the page the browser loads instead:
pagejs concatenates the nine scripts in the order index.html asks for
them, and the CI target step reads LANE_TARGETS from base.js, the one
list the UI actually keeps. No assertion was weakened or deleted to
get here; the app.js readers were moved to the new markup, and the
video journal gained an end-to-end class over the real 12-minute
journal captured 2026-09-29.
House style reached the new files before they were tracked: five en
dashes in ops.js became the ellipsis the rest of the page already
uses for no-data cells.
Held by: ci-local 40 ok 0 fail (5 skip = missing packages on this
runner), ruff F/E9 clean, page tests 4/4, mobile-check 184/184 on four
iPhone viewports against this front, monkey 58/58, lifecycle mutation
93.4% over the 91% floor.
With any one DRAFT2_* passed, the other three fell back to the defaults: DRAFT2_TOKENS=8 on
a box serving the BF16 draft moved it to the NVFP4 one. Each follows the unit unless it is
passed, the revision and quantization only with their repo. A pin a release replaced kept
its qwen38-pinned tag, so its 30 to 39 GB image survived every prune: the lane's other tags
go once its current pin is tagged, unless a container uses them. A df that failed under
pipefail ended the install before its "found unknown GB" message. An OPENCODE_VERSION
without its sha256 is refused before step 1, not at step 7. The download hint names
DRAFT2_REV, not the retired DRAFT_REV, and a disk comment gives the sizes the code asks.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- oc and the Agent tab load the box's generated opencode config through
OPENCODE_CONFIG: on a box emptied and installed with the published
one-liner, both answered with opencode's hosted free model (big-pickle),
not the model the box serves.
- uninstall.sh --yes takes the providers that read the API key out of
opencode's config before deleting the key (opencode refused to start at
all: "bad file reference"); a file with nothing else of the user's goes to
a backup (oc-merge-limits.py --remove-providers).
- The uninstall inventory knows the image lane's checkpoint (31 GB), and the
CI gate on inventory pins reads install-image.sh too.
- The docker room check asks only for the container's room when the image is
already here (an update with 36 GB free was refused for want of 40).
- A commented-out opencode PATH line no longer counts as one.
- uninstall.sh says when there was nothing to remove.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- A box with no ~/.config/opencode/opencode.json gets this repo's (it was a
printed cp: a first install left opencode answering "Provider not found:
qwen38"). A config that exists is never overwritten.
- A config with one of this repo's providers gains the provider of a lane
installed since (oc-merge-limits.py --add-providers: targeted edit, backup,
read back and compared, restored if anything else moved). The 27B first and
the flash lane later left opencode sending the 27B's limits to the flash lane.
- A missing opencode is said plainly where a first-time user meets it: the
installer's step 7 and last lines, the oc launcher, the cockpit's Agent tab.
- The last lines name a command the user's shell can run, and the config
opencode actually reads.
- CI: the unittest step prints what failed instead of dying silently.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Until now the repo installed no opencode: it took whatever was on PATH, and
opencode installs its own patch releases unless "autoupdate" says otherwise
(read out of its binary: only false, "notify" or a minor/major release stop
it), so two boxes installed a week apart ran two versions. The reference box
sat on 1.18.27 while 1.18.32 was out. Four things the repo does were read out
of one opencode binary and checked against its behaviour: the compaction
threshold oc-fit-limits.py sizes for, the hidden 32,000-token output cap the
oc launcher lifts, the overflow phrases the proxy answers with so a refusal
makes opencode compact, and --yolo / OPENCODE_PERMISSION for the Agent tab.
OPENCODE_VERSION=1.18.32 with OPENCODE_SHA256, GitHub's digest of
opencode-linux-arm64.tar.gz. Checked against 1.18.27 before pinning: the 21
overflow phrases and 3 exclusions verbatim in both binaries; max_tokens
182,000 with the launcher's variable and 32,000 without, on both, recorded
on a fake OpenAI endpoint with isolated config, data and cache; the code
around compaction and OPENCODE_PERMISSION identical once the bundler's chunk
names are set aside; serve --hostname and the hidden --yolo on both.
install.sh, step 7: none found, the release asset is downloaded, checked
against its sha256 and installed where opencode's own installer puts it,
with its PATH line in ~/.bashrc; an older one there is replaced the same
way; an older one from npm, brew or bun goes through `opencode upgrade`,
which knows its method; a newer one is kept and said so, because going back
a version can leave sessions a newer opencode wrote unreadable. A download
that does not match is not installed, a version without its checksum is
refused, and nothing about opencode fails the rest of the install.
OPENCODE_PIN=0 keeps whatever you have. The generated config and the user's
get "autoupdate": "notify" (oc-merge-limits.py --autoupdate, a targeted edit
that keeps comments; a stricter false is kept).
The Agent tab says when the opencode it serves is not the pinned one, read
from install.sh so the two cannot disagree. uninstall.sh lists an opencode
this repo installed and leaves it. CI downloads the pinned asset and checks
its sha256 on every run (and fails with a wrong one, checked).
docs/opencode.md said the 1M starting pair sits under the worst measured
pool; it does not (832,993 to 922,094 over sixteen boots), which is why it
is fitted after each boot.
Tests: eleven on the installer's own lines in a throwaway HOME with a fake
curl and fake opencode binaries (absent, pinned, older in place, older from
npm, newer, bad checksum, pin off, version without checksum), the merge, and
the cockpit's read of the pin. The checksum, no-downgrade and opt-out guards
were each undone once and their tests failed. CI 61/61.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>