Files
devvm/testdata
w3cjandClaude Opus 5.5 e9aba7360d feat(gc): gc --tools [TOOL...] deletes current tool builds no VM has
gc keeps every current tool build, so a toolchain tried once stayed
until a newer version came out. --tools also deletes the current builds
that no VM's state lists (Share.NoVM), on every backend format and C
library; with tool names (the names images use, so node takes pnpm and
bun too) only those. A build whose hash was written in the last hour
stays: a launch builds its tools before it records them in the VM's
state. A tool any state lists stays, a stopped VM's and a leftover
state's included. With --backend, only that backend's builds. Names
without --tools, or a name that isn't a shared tool's, are refused.
Like gc: it lists them first (gc_tools_no_vm, naming each), asks in a
terminal, goes ahead without one, never deletes a VM. A VM that names a
deleted tool builds it again.

devvm space's tool rows say gc --tools frees the rest.

Messages: gc_tools_no_vm, deleted_tools_no_vm, gc_names_need_tools,
gc_unknown_tool. Docs: using/images.md's Cleaning up,
internals/images.md's listing and cleaning up, the What devvm keeps
page, the CLI reference.

Tests: TestNoVM (a VM's, not current, missing hash, built just now,
names); gc_tools.txtar (a leftover state's claude kept, a just-built
codex kept, node's three deleted, names refused without --tools, an
unknown name refused, node built again after).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 12:36:50 -07:00
..
2026-10-24 09:50:15 -06:00