mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 14:33:17 -10:00
A review of the remount restart found its failure paths loose: - A restart whose limactl stop failed returned the plain message, and the caller then stopped the VM's proxy with the VM still running. Now a folder still mounted with the old mode is warned of and the VM goes on with its proxy, and anything else fails as a logged stop_failed, saying the VM didn't stop. - The interrupt's cleanup was dropped before the restart's stop, so a Ctrl+C during that stop could leave an open-tier VM running. It now stays until any stop in remountProject returns. - The start again repeated the first start's warnings (policy lines, pins, a degraded start). The UI now says each warning once a run, by its name and values, which covers every package's warnings without a flag through each of them. - mount_cache_unmounted and mount_cache_unchecked come only after the restart failed, so they no longer say to run devvm restart: they say the VM is stopped and its console log may say why. mount_cache_remount_failed says the old mode can lose writes and what may hold the folder. Their doc links stay on "When the cache mode changes", which now points to the console log. - The mountinfo check's comments and docs say why it's used (portable: any awk, no util-linux tool but mountpoint), not that Alpine lacks findmnt, which devvm's base layer installs there. - design.md: the stop that fails, the warnings said once, the cleanup through the stop, and the older race of another devvm starting the VM in the gap, which fails closed. Tests: TestRemountRestartStop (the cleanup held through the stop; a stop that fails, mounted or not), TestRemountRestartConfined (each start's undoStart, an interrupt between the starts: one start, the proxy stopped, the one undo kept; a start again whose proxy fails), TestWarnOnce, and mount_cache.txtar's allowlist restart warning of a bad policy line once. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HTFcPrY8FzzQMopN5wgpLQ