Files
devvm/testdata
w3cjandClaude Opus 5.5 088f180842 fix(vm): an interrupted start under network policy stops the VM and its proxy
Ctrl+C while Lima's start waited for a VM with network policy left the
VM running: the hostagent runs on its own from early in the start, and
an interrupt skips everything after the backend's Start, so the proxy
kept running and the VM had no record of its confined start. devvm ls
then showed it unenforced, and the next launch asked to restart it
confined. Env.start now registers a cleanup around the backend's Start
for a NetProxy start (undoStart): interrupted, it stops the VM and its
proxy and says so (interrupted_start). Lima's Stop stops a VM it reports
as Broken (a start cut short before its hostagent answers) with
limactl stop --force, which plain limactl stop refuses.

Tests: net_interrupted.txtar (tools add on a VM with network policy,
its start hanging with the VM running, Ctrl+C: VM and proxy stopped,
state kept, ls --json net on, the next launch confined and unasked);
TestStartInterrupted (vm); TestStubStopBroken (lima). The limactl stub
gains start-hangs-running. e2e network: Ctrl+C during the start stops
it and its proxy, and ls shows its policy on. Coverage baselines raised
for backend/lima, cli and msg.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 16:27:05 -07:00
..
2026-10-24 09:50:15 -06:00