mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 14:33:17 -10:00
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]>