mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
When devvm opens a running VM that gets changes only at its next start (its size, SSH agent forwarding, agent folder mounts, network policy turned off while it ran confined), it names them in at most two lines and asks restart_now once, in a terminal. It's yes by default ([Y/n]) when the agent folder mounts wait, as an agent just added needs them, and no ([y/N]) otherwise. Yes stops the VM, so the launch starts it with the changes and opens the shell; no, no terminal or --no-input keep the next-start warnings and open the shell in the running VM. - starter.restartForNextStart asks, on the launch path only (upOpts agentDirs); nextStartChanges is the one list both it and nextStart's warnings use; nextStartContext gives each change's line, or past two the first and how many more - messages: next_start_size, next_start_agent, next_start_mounts, next_start_net_off, next_start_more (plural); restart_now is plural (count), one change or several - Env.restartNow takes the question's form (Confirm or Ask), the count and its context lines - updateAgentDirs no longer asks on its own: a running VM's new mounts join the launch's one question, so a launch asks at most once - tests: TestOpenAsksToRestart (both defaults, yes, no, no terminal, one, two and four changes, nothing waits), TestUpdateAgentDirs updated; size.txtar opens a running VM with a size waiting without a terminal, then no and yes in one (yes ends at a failing setup, so its coverage is written) - docs: commands.md's restarting section and answers table, ports-size, coding-agents, ssh, safety/network, internals/overview Co-Authored-By: Claude Opus 5.5 <[email protected]>