A parent folder's VM can move a nested project folder aside and put a
link in its place. The checks around a start refuse what they see, but a
swap timed for the moment Virtualization.framework opens the share, and
put back before devvm's last check, made the nested VM mount the link's
target. On vz, the Lima backend now mounts the project folder as
location /.vol/<dev>/<ino>, from the folder devvm recorded (the state's
folder, passed as the new Want.ProjectID), with mountPoint set to its
path. macOS's volfs opens the folder by its inode wherever it is, so the
share is the recorded folder, never what's at the path.
Checked first on a real vz VM (Lima 2.2.1, macOS 26): vz and Lima accept
the /.vol location; with the folder swapped for a link before limactl
start the VM read the real folder's files at the project path, and wrote
there; limactl list --json keeps the location and mountPoint as set.
vz serves the share by the path the folder had at the start, so once
the folder is put back the VM gets Operation not permitted (as for any
rename while it runs) until its next start, and replacing that path with
a link while it runs gives the same: never the decoy.
The Lima backend alone decides it: projectMount (vz with a recorded
folder: by inode; otherwise, and on QEMU/9p, by path), used by CreateVM
(the image's vmType, which its clone has) and Start's wantEdits, which
now compares the project mount whole (location, path in the VM,
writable) through keptMounts, so a start edits nothing when they match
and limactl list's filled-in fields never cause an edit. Instance.Project
is the mount's path in the VM, so devvm's comparisons, devvm ls, devvm
ports and .git protection keep using the host path. mount_comma checks
the path in the VM too. platform.VolPath parses a FolderID. The checks
from the nested-replaced fix stay, as defence in depth and for Linux,
where 9p has no equivalent.
Docs: internals/lima.md (the mount, the compare), internals/overview.md
(what's checked and what stays open per OS), safety/attack-vectors.md
(the residual gap is Linux's only), using/vms.md.
Tests: TestVolPath (parsing; on macOS the path opens a moved folder),
TestProjectMountByInode (wantEdits on vz: as it is, another inode, moved,
a comma, a path mount before, no folder recorded, --clone; QEMU by path;
Instance.Project), TestCreateVMByInode (the clone's mount, no mount
edit), TestUp (spec and start carry the state's folder), TestUpClone
(none); e2e's project section: the folder swapped as limactl start runs
and put back when it returns, through the parent's VM (macOS: the VM
never sees the decoy, its mount is /.vol/<dev>/<ino> at the path;
Linux: noted), and the next start runs no limactl edit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A project VM mounts its whole folder read-write, so a nested project with
a VM of its own is in the parent folder's VM too: code there can change
the nested project's files, .git included where .git protection doesn't
cover it, and replace its folder (which devvm's start refuses since the
nested-replaced checks). devvm now says so each time it makes or opens
such a VM: once per run of devvm, naming the nearest parent folder's VM
that mounts the project (project_in_vm_folder, linked to using/vms.md's
"A nested project replaced").
The finder owns the walk up: parentVM's loop over project.Parents is now
finder.parents, which mountedBy shares. mountedBy reads only the states,
so a stopped parent VM counts (it writes whenever it runs), and it passes
over --clone VMs, which mount nothing, and states made for another
folder. warnMounted skips a --clone VM of the folder's own, new or not.
Only Up warns; devvm restart and the other commands don't.
Docs: using/vms.md says when devvm warns and why; internals/overview.md
how the finder finds the VM; attack-vectors.md's nested entry mentions it.
Tests: TestWarnMounted (the nested VM's creation and next launch with the
parent stopped warn once; the parent's own launch, the parent's VM in a
subfolder, a new --clone VM and a parent --clone VM don't);
nested_replaced.txtar checks the same through the CLI, and that devvm
restart doesn't warn.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each export in devvm's exports folder records its VM's network tier on
the last line of its .folder file (Exports.writeFolder, read back by
Exports.record, Export.Tier). Every import (devvm history import and the
one a new VM offers, both through importHistory) warns first, by
netpolicy's Tier.AtLeast, when the export's VM was on a less strict tier
than the VM it goes into (history_import_less_strict), or when there's
no record of its tier (history_import_tier_unknown, as if open): an
export without a tier, or any file outside the exports folder, whose
.folder file a VM could have written. Then it imports.
Tests: TestExportRecord, TestImportWarnsOfTier (open, internet, none,
the same tier, none recorded, a file elsewhere; an open VM warned of
nothing), TestRm's .folder file, history_import.txtar (the launch's
offered import from an open VM into an allowlist VM, and a file of
your own).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The history export keeps at most 2 GiB: past it, devvm stops the VM's
command, removes the partial file and keeps no export. devvm history
export fails with history_too_large; devvm rm, devvm rm VM and a remake
warn with it and go on. opencode's import of devvm's logins (devvm agent
login) is read up to 1 MiB, then stopped and refused
(opencode_import_too_much). Each VM command adds at most 4 MiB to the
run log (Env.vmLog), then a "devvm: truncated" line.
agentsave's bounded writer is the one owner, in bounded.go: it takes in
vm's capped, and with a cancel it fails every write past its max, so a
command that keeps writing ends. Its buffer is a field: embedded, it gave
the writer bytes.Buffer's ReadFrom, which io.Copy (os/exec's copy of a
command's output) used in place of Write, so no cap held, agent save's
128 MiB included. vmssh's capped had the same flaw, fixed the same way.
Env.HistoryMax, and DEVVM_HISTORY_MAX in a test build, stand in for the
export's cap in tests. The stub guest's opencode-floods and
history-floods switches write without end.
Tests: TestBounded (io.Copy too), TestVMLog, TestExportTooLarge,
TestRemakeHistoryTooLarge, TestImportLoginsTooMuch, TestShellFloods,
vmssh's capped through io.Copy; history_import.txtar (an export that never
ends: export fails, rm deletes and warns, the run log truncated) and
agent_login.txtar (opencode's import floods).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The maintainer tags main's HEAD (git tag -s vX.Y.Z) and runs
mise exec -- scripts/publish.sh, entering the minisign password once.
It checks the preconditions (release.sh --check for the tag and its
signer, main's HEAD and origin, a clean tree, gh logged in, minisign,
no other release, the tap's checkout clean on main), builds dist/ with
release.sh, prints the version, commit, files with sizes and SHA-256s,
the CHANGELOG entry and the tap's diff, asks once on the terminal, then
pushes main and the tag, makes the GitHub release as a draft with every
file and publishes it, and commits and pushes the tap's formula. Each
step skips what's done, a draft left by a failed run gets its files
again, and a failure says what was and wasn't published. --dry-run
stops before the question; --help.
release.sh gains --check (the tag's checks only, printing its commit),
fills in the formula's @URL@ and @SHA256@ only outside its comments,
and points at publish.sh in its last line.
Tests: testdata/script/publish.txtar (a local bare origin and tap, a
fake gh, SSH-signed tags, a passwordless minisign key): refusals (no
tag, a tag release-signer doesn't pin, a dirty tree, an existing
release without its files, gh logged out, no tap), --dry-run, n, y
failing at gh release create then at publishing the draft, the reruns
and the call order, and a run with everything done.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A parent folder's VM mounts a nested project folder read-write, so code in
it can move the nested folder aside and put a link (to the home folder, or
anywhere) in its place after devvm found the nested VM. Lima passes the
mount's location as it is, and QEMU's 9p and Virtualization.framework's
virtiofs follow the link when they open the share at the VM's start, so
the nested VM mounted the link's target read-write. The e2e check below
showed it on macOS (vz, virtiofs) and Fedora (QEMU, 9p) before this
change: devvm restart, and a start
whose limactl start found the link, both ran the nested VM with the decoy
folder's files at the project path.
devvm now checks the folder a start mounts (folderChanged: its path's
links resolved give the same path, and its FolderID is the state's) before
bringUp's host checks of a stopped VM, which would act on the link's
target, just before the backend's start, and once it returns. Before the
start it refuses (project_folder_changed); after, it stops the VM and its
proxy and refuses (project_folder_changed_stopped). Both link to the new
"A nested project replaced" section of using/vms.md; attack-vectors.md
and internals/overview.md say what's checked and what stays open (a swap
put back between the mount and the last check, and the boot it ran for).
Tests: TestFolderChanged (a link in its place, a link above it, another
folder, gone); nested_replaced.txtar, with the limactl stub's new
start-links and stop-links switches (fails without the fix); the project
section's "a nested project folder replaced by a link" (tests/e2e/
nested_test.go): replaced while the VM runs (9p keeps its folder, vz's
virtiofs answers Operation not permitted, neither shows the link's), once
devvm restart's stop ends, and as Lima starts it, through a limactl
stand-in that has the parent's VM make the swap.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
README.md, SECURITY.md and How it works' install page show the minisign
public key, and the install page links to Checking the install script:
download install.sh, SHA256SUMS and its signature, check the signature
with the key (minisign -Vm SHA256SUMS -P KEY), the script against the
sums (shasum -a 256 -c --ignore-missing), then run it. A key from the
docs, not the release, catches a release replaced whole.
TestDocsShowTheKey checks that every key in README.md, SECURITY.md and
docs/content is minisign.pub's, and that the three pages show it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
release.sh wrote install.sh after it signed SHA256SUMS, so nothing signed
covered the script and checking it by hand with the release key wasn't
possible. It now writes install.sh, adds its checksum to SHA256SUMS, then
signs. install.sh and devvm upgrade look up their archive by name, so the
extra line changes nothing for them. release_head.txtar checks the line.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
opencode 2.2.5's real database schema (sqlite3 .schema in an e2e VM after
opencode auth import, opencode mcp auth and opencode run; no rows) is now
a fixture, internal/vm/testdata/opencode-2.2.5.sql. TestOpencodeCleanSchema
builds a database from it, plants a row in every table, cleans it, and
checks that no byte of the copy holds a value of credential, account,
control_account or account_state, while every other table's row (the
session's included) stays; a table in neither list fails the test.
The real schema has no session_share (opencode 2.2.5 keeps share_url on
session_v2), and its kv table keeps each organization's remote config,
fetched with a well-known login, under wellknown:config:<origin>, which
the cleaning kept. The cleaning now deletes those rows (opencodeWellknown)
and checks none is left. e2e's network check plants one too.
Docs: the design note's steps and what it doesn't cover (plugin storage in
kv, remote workspaces' bindings); Maintaining says when and how to refresh
the fixture.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Builds carry packaging/minisign.pub's key now, so an empty DEVVM_RELEASE_KEY
falls back to it and the test server's release fails its signature check.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On Linux, a child another script forked while testscript's cp held the copy's write descriptor kept it open until that child exec'd, so running the copy failed with ETXTBSY. cp_exe writes it under syscall.ForkLock; upgrade.txtar and release_notice.txtar use it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The in-VM guide says the project folder is the only host folder the VM
can write to, with the agent store's folders and the shared tools
mounted read-only. design.md names internal/vmssh/links_test.go and
internal/proxy/testdata/nix/, and its devcontainer forwardPorts entry
says the file's ports are added, as its Ports entry does. Contributing
drops the old shared CA folder's paragraph; space.md says secrets/ is
for hosts without a Keychain. Coverage baselines raised (netpolicy,
settings, vm).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A lock entry's platform with a URL but no checksum counted as a
download, and its tool image would have rested on TLS alone. It now
counts as unpublished there, so devvm steps back to an older version
or says none has a download. Every entry of the locks today has its
checksum. TestHasDownload covers a lock without them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm images rm, layer add, layer rm and secret rm joined two strings of
their Long without a space (--no-input.devvm). TestEveryCommandsHelp
now fails on a sentence's end joined to the next one's start.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
msg.Fake's writers use cmp.Or in place of orDiscard, which only Fake
called, and LoopbackForward.Ports, which only its test called, is the
test's own listening helper.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Captured with mise run e2e -- --golden --only images,project on the Debian
13 x86_64 host (Lima v2.2.1, QEMU). TestGoldenLimactlList reads it with the
other systems' fixtures.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With nothing blocked, the proxy's /blocked answer (devvm-why) adds that a
DNS or connection error for an allowed host means the tool skipped the
proxy, to turn on its own proxy setting or give it $HTTPS_PROXY, and links
troubleshooting's A host on the allowlist doesn't resolve. The agents' note
in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md says the same in one sentence.
Tests: proxy_test's empty answer, network.txtar asks a running proxy's
/blocked, and the e2e network section checks that curl --noproxy fails for
github.com, devvm-why's hint and the note in CLAUDE.md. Docs: internals and
safety network pages.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
loginState and the Claude Code login's FIFO open wait with Until, in the
check's window. lkOwnServer waits with Until for the client's own server;
lkStopped waits for the network log's refusal of the stopped target,
then checks it still doesn't run; the fake desktop server's check waits
for its key event; the opencode keys check waits up to 10 s for no
opencode process to be left before making its database again.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The link, nix and --from sections take FeatureLink, FeatureNixLayer and
FeatureFrom once with S.Needing; --from's docker and nix layer checks,
the base VM's forward checks (FeaturePortsAll) and the listed ports'
(FeaturePorts) name theirs. TestHarnessNeeds shows a check skipped,
titled and counted on a fake doctor's backend without the feature.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The phase's review found helpers that the section ports copied:
- firstLine (tools) duplicated FirstLine: every caller uses FirstLine.
- tailLines moves beside FirstLine and LastLine (text_test.go), and
LastLine and link's errorsOf are built on it.
- Launch and launchWith share one launch (S.launch), which records the
VM through OwnVM, in place of two copies of OwnVM's body.
- Paths.RunLogs is the one reader of devvm's run-log folder:
RunLogHas, NewestLog, the heartbeat, from's corpLog and network's two
log reads use it, in place of six globs.
- MountsOf is built on MountLine, in place of a second limactl list
--json reader.
- Procs reads the processes through psAll, as the process watch does,
so the listing stays out of the check's log.
- network's dialable goes: its check uses ReachesWithin and Local.
- Res.Has is HasLine on its output; CA.Line is pemLine on its PEM;
link's out is Trim; tools' lockSum is readText.
- FilesHave goes: the desktop password's and agent save's checks that a
secret is in no file here use NoLeak, which also fails on a file it
can't read and names the file, never the secret.
- project's tarList reads the export with exportFiles (Go's tar) in
place of host tar -tzf.
Tests: TestHarnessNetReaders covers LastLine and Res.Has;
TestHarnessExport covers exportFiles and tarList. Contributing's
testing page lists RunLogs, MountsOf and tailLines, and drops FilesHave.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
opencode 2 keeps its logins in its database, so a VM whose database
existed kept the logins it had: a key saved from another VM, or a ChatGPT
login for another account, never reached it.
Every launch's setup now sends the store's opencode logins as opencode
auth import reads them (agentlogin.OpencodeImport: each API key the proxy
puts in and OpenAI's Codex login, placeholders alone, IDs
cred_devvm_<provider>; methodID chatgpt-browser and a whole-number
expires, as opencode 2.2.5's credential schema needs). The new guest
script assets/guest/opencode.sh reads them on its input, never argv, and,
once opencode has a database, imports them when they differ from its
record (~/.local/state/devvm/opencode-import.json) or when the database
no longer holds one of devvm's IDs (deleted, or replaced by a history
import; checked with opencode auth export, only the IDs kept). It logs
out of devvm's earlier entries (opencode auth import skips an ID it has),
imports each entry on its own and switches its provider to devvm's entry;
the user's own credentials stay in the database. devvm agent login
opencode --api-key runs the same script at once, in place of the old
one-key import. The record lives in the VM because only the VM knows its
database and what it holds.
No partial success: a provider whose import opencode refuses is printed
as devvm-opencode-failed PROVIDER, the script exits 1 and records
nothing, so the next launch tries again, and devvm agent login names the
providers in the new message opencode_import_failed.
Three faults found on real opencode 2.2.5 VMs and fixed: bash -lc runs
~/.bash_logout (Debian's clear_console, failing without a terminal),
which under set -e became the script's status after a good import, so
the work runs in a subshell; opencode 2.2.5 made its database without
importing auth.json while the script had recorded the entries anyway, so
nothing is recorded until the database exists; and a missing expires
becomes 0.
Every VM also sets OPENCODE_DISABLE_AUTOUPDATE=1, beside Claude Code's
DISABLE_AUTOUPDATER in base's /etc/profile.d/devvm-tools.sh: the agents
are read-only shared tools whose versions mise pins.
Tests: TestOpencodeImport; TestOpencodeScript (the script against a fake
opencode: no database, an import, the same input again, a database made
again, a refused entry); TestOpencodeRefused; TestToolsEnvironment;
agent_login.txtar (the script at a key's save, opencode-import.json in
the setup, a refused provider named through the guest stub's new
opencode-refuses switch). e2e's network section: OPENCODE_DISABLE_AUTOUPDATE in an
opencode VM's login shell; a second opencode VM with a database and a
credential of its own gets a key saved from the first at its next
launch, its own credential kept; and gets it again once its database is
deleted and made again. Failures print opencode.sh's stderr, the run
logs' opencode lines and the VM's credential IDs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The steps of each shared tool's build named the build VM every tool
shares (devvm-tools-build), so a build of several tools printed the same
lines over and over. Each step now names its tool: cloning base for
node 24.22.2, starting the build VM for node 24.22.2, building node
24.22.2, deleting the build VM for node 24.22.2. Lima's start, configure,
script and delete steps take the name from the context (withShown).
Messages: building_tool, cloning_for_tools, tools_build_vm; building_tools_in
goes. tools.txtar checks all five steps for each tool, in order.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
After the network tier, a picker (PickOne) offers every port, none, or
a list typed at new_vm_ports_prompt and checked by settings.ParsePorts,
asked again on port_invalid. The summary's ports are preselected and
Enter at the list keeps them; the choice is this VM's alone. --ports
skips it and counts in leftToChoose; where devvm can't ask, the
summary's ports stand. Ports are now read for the requirements after
the choice. new_vm_choose, the customize question and devvm's help name
--ports. Tests: TestPortsRows, TestChoosePorts, TestUpCustomize,
TestLeftToChoose, up_customize.txtar, network.txtar. Docs: commands.md,
first-vm.md, images.md, ports-size.md, devvm.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
TestE2E already set up the sandbox, slots, locks and flags itself, so the
898-line script only handed over. The run is now `mise run e2e -- FLAGS`
(go test -tags e2e from tests/e2e, CGO_ENABLED=0) with the same flags:
--only, --from, --clean, --every-feature, --slots, --slot, --newest-base,
--golden, plus --reuse.
- options: the flags named as the script's options; the hand-over flags
(lock-holder, count, total, started, summary) and the ported/unported
split are gone.
- e2eUbuntuRelease, a const in sandbox_test.go, holds the Ubuntu pin;
scripts/bump.sh e2e-ubuntu moves it (get_const), and TestE2EUbuntuPins,
bump.txtar and the E2E workflow read it there.
- From the script into Go: the OpenSSL-not-LibreSSL host check, and
--newest-base's start line and its UPSTREAM DRIFT summary.
- The script's leftover bash helpers (perl vm_state, no_leak, ca_*,
lima_listens, the retry list, its heartbeat) are gone with it.
- mise's e2e:go task merges into e2e; TestCommandLines drops its $D rule.
- Docs (contributing, testing, maintaining, internals) and AGENTS.md name
mise run e2e; testing.md's "Porting a section" becomes "Adding a section".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every launch sends assets/guest/guide.md with the guest setup, and sync.sh
installs it as /usr/share/doc/devvm/README.md (root's, mode 644, again
whenever it differs) with /usr/local/bin/devvm-help, which prints it. The
guide covers what a devvm VM is, network tiers and secrets, tools and
installs, and the host commands to ask the user for. TestGuideCommandLines
checks that the guide is among TestCommandLines' files and that each devvm
command and flag it names exists. Docs: using/coding-agents.md's The guide
in every VM. e2e: the project section checks the file's owner and mode,
devvm-help's output and that the VM's user can't write it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The disk's question (new_vm_disk_prompt) starts from the summary's disk,
after one line saying it grows with devvm size --disk but never shrinks
and takes only what the VM writes (new_vm_disk_question). It's this VM's
alone, skipped with --disk, and a disk below the image's or not a size is
refused with Size.Check's and ParseGiB's messages, then asked again.
leftToChoose counts the disk; new_vm_choose and the customize question
name --disk. Tests: TestSizeChoiceAskVM, TestUpCustomize, TestLeftToChoose,
up_customize.txtar. Docs: commands.md, first-vm.md, images.md, devvm.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
opencode 2 keeps its sessions and its logins in one SQLite database,
~/.local/share/opencode/opencode.db (opencode-<channel>.db for other
channels), in WAL mode, so the history export, which tarred
~/.local/share/opencode, carried its credential table (logins, API keys,
MCP OAuth tokens), account and control_account (its console's access
and refresh tokens) and session_share's secrets to this machine, and an
import gave them to another VM. The -wal file carries them too: it holds
full page images of what opencode wrote last, a just-saved credential
row among them, until a checkpoint, and opencode makes it at once.
The export now copies each database in the VM with sqlite3 (base
installs it: sqlite3 on Debian and Ubuntu, sqlite on Alpine), keeping
the sessions: VACUUM INTO (one snapshot, the WAL's rows included); every
trigger dropped; the login tables emptied (credential, account,
control_account, account_state, session_share, and any table whose name
or a column's says it holds a secret, for tables a later opencode adds);
the record of opencode's auth.json import migration taken out, so the
next VM's opencode imports the logins devvm's setup wrote there; WAL off
and secure_delete with VACUUM, so no free page keeps a deleted row; then
the rows counted, and the database left out on any failure or without
sqlite3. tar leaves the database and its -wal, -shm and -journal files
out and adds the copy at its path (--transform, links' targets kept).
The import does the same in the VM to an export it unpacks (one devvm
didn't write may hold the logins): it deletes the -wal, -shm and
-journal files and any database that isn't a regular file, and puts in
the copy, or nothing. Every sqlite3 runs with trusted_schema off.
opencode 1's mcp-auth.json joins the logins left out.
Rejected: excluding the database (loses opencode's sessions);
opencode session export (runs opencode and its server per session, and
per project, which rm's export can't count on).
Security review (security-audit skill, guidance mode, data isolation
and lifecycle): export scope, the WAL, import of an export holding the
logins, a trigger restoring rows and a hostile schema each have a holder
and a test (design.md's threat check). Not covered, documented: a secret
pasted into a session stays in it; a VM without sqlite3 exports no
opencode database; a remake's home copy keeps the database's logins, as
it's the same VM's data going to the same folder's VM.
Tests: TestOpencodeClean (a running opencode's database, its credential
only in the WAL of an open connection, an account's tokens, a share's
secret, a later table's key and a trigger: none in any byte of the copy,
the session kept; a file that isn't a database gives none),
TestHistoryExportRuns and TestHistoryImportCleansOpencode (GNU tar, with
and without sqlite3); the CLI tests' export calls; e2e's network section
plants a key with the VM's sqlite3 and finds neither it nor the login's
placeholders in devvm history export's file.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
opencode 2 reads its model catalog from models.opencode.ai
(core/src/models-dev.ts's defaultSource) and no longer from models.dev,
which it reads only from a custom source that lacks the v2 catalog.
opencode.ai stays for Zen, the console, MCP's OAuth client and its
schemas. e2e's network section checks both hosts are reached.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Toolchain request asks for the toolchain and its mise name, the files
that should pick it, why, versions, install source, package hosts for its
policy, what it writes into its folder, and its Linux builds. Built-in
layer request asks what it is, why built in, how it installs, run-time
needs, other layers and bases. Troubleshooting's Reporting a bug names both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
tests/e2e/project_test.go and desktop_test.go port tests/e2e.sh's
project and desktop sections, every check title word for word and in
the same order, with the same macOS and Linux branches (130 checks on a
Mac, 122 on Linux, with desktop's 16, its local proxy's two included). tests/e2e.sh drops both blocks
and the helpers only they used (tty_run, mounts_of, host_port_kept,
lima_serve, vm_say, lima_boot, ports_live, desktop_*, watch_*), their
host-tool checks and cleanup lines, and lists them in go_sections.
The project section sets the sandbox's Claude Code logins (which an
earlier network run leaves in devvm's store) aside while its agent VMs
run, as those VMs expect none, and puts them back after. The emptied
CA's check looks for the CA in the VM's bundle with vmHas.
Harness files: text_test.go (SaidLine, FirstLine, LastLine, Trim,
FilesHave, Listed, Locked, Procs, Forwarders, DevvmIn, OwnVM),
net_test.go (Reaches, ReachesWithin, Answer, Local, Local6, HostProgram,
LimaServe, VMSay, LimaBoot, PortsLive, HostPortKept), tty_test.go
(TTYRun, with Cmd's new Input), watch_test.go (WatchSees, WatchMisses),
ssh_test.go (SSHAgent, StopPid, KeyComments, RfwdLinks), goe2e_test.go
(ExecQuoting, ServeDesktop, Desktop's View and End). They use the
shared s.Start, NewCA, WatchProcs, MountLine, HasLine, ExitStatus,
gitTool, sshTool, devvmCmd, grepF, readText, vmHas, loopbackOnly and
limaListens. testing.md lists them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Customizing a new VM shows the four tiers in order, each with what it
reaches (Tier.Desc, which devvm setup's network picker shares), the
summary's tier chosen, through the UI's PickOne (vm.Env.PickOne). Where
the picker can't show, the VM keeps the summary's tier. net_ask,
net_about and net_tier_unknown go; network_default_open, _internet,
_allowlist and _none become net_tier_*; net_tier_help is the picker's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
opencode 2 keeps its logins in its database's credential table, not
auth.json. When this machine's opencode --version is 2 or later, the
import runs opencode auth export (its output read from stdout, never
logged) and maps each provider's active credential to the store's
opencode format (agentlogin.OpencodeFromExport): an API key as
{"type":"api","key"}, the OpenAI login from a Codex method
(chatgpt-browser, chatgpt-headless, or none for one imported from
auth.json) as {"type":"oauth","access","refresh","expires","accountId"}.
Sign in with ChatGPT, other providers' OAuth and unknown types are left
out with agent_import_opencode_skipped; a failing export fails the
import (agent_import_opencode_failed). opencode 1 keeps auth.json.
Tests: TestOpencodeFromExport, TestOpencode (the new opencode stub),
agent_import_opencode.txtar; AgentImport.Opencode is the seam.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The logo prints from the UI alone (ui.UI.Logo, msg.Reporter's Logo), once
a run, only with stdout a terminal (or a test build's PickOnPipe), not with
--no-input, --json or names mode; its mark green, plain under NO_COLOR. The
CLI reference's pages don't get it: only the root's help func prints it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>