Files
devvm/testdata
w3cjandClaude Opus 5.5 23c8dedaba feat(vm): devvm in a subfolder uses the parent folder's VM
A folder with no VM and no state of its own uses the VM of the nearest
folder it's inside that has one. The lookup stops before the home folder
(by its physical path) and the root, and skips a parent whose VM was made
for an earlier folder at its path (sameFolder).

- devvm (up): in a terminal it asks whether to open the parent's VM in
  the subfolder ([Y/n]; no makes a new VM). Without a terminal it opens it,
  with an info line. --here and --clone make the subfolder's own VM
  without asking. An IMAGE adds to the parent's VM in place after the
  same question.
- stop, restart, update, remove, export, log, network, policy, secret,
  ssh-agent, git-protect, size, ports, ssh and code use the parent's VM,
  naming it and its folder first. rm never deletes it unasked: in a
  terminal it asks ([y/N]) even with -f, which still skips only its
  checks; without one it refuses, saying to run it in the parent's
  folder. adopt acts only on this path's VM.
- A repo of its own below the parent's folder (a .git folder or file in
  the subfolder or a folder between): up asks use_parent_vm_repo [y/N],
  the default a new VM, and makes one without a terminal; the other
  commands never reach up and say no_vm.
- The shell, devvm ssh's folder and devvm code open the subfolder; in a
  --clone VM, the subfolder when the clone has it, else the clone's top.
- project.Parents; Env.lookup and Env.inspect (find split); found.sub,
  found.shellDir; useParent; Options.Here and the --here flag.
- Messages: use_parent_vm (dir, parent, vm), using_parent_vm (dir, vm),
  delete_parent_vm (dir, vm), rm_parent_vm (dir, vm), use_parent_vm_repo
  (dir, parent, repo, vm); all but the delete_parent_vm prompt linked to getting-started/commands#a-subfolder.
- Tests: TestParents; TestLookupParents, TestUpInSubfolder, TestShellDir,
  TestCommandsInSubfolder, TestSubfolderRepo; testdata/script/subfolder.txtar; up_checks'
  "My App" folder is made at $WORK, where the script meant it. e2e: the
  project section opens the VM from a subfolder (pwd in the VM).
- Docs: first-vm (coming back to it), commands (--here, A subfolder),
  using/clone (Subfolders), internals/overview (A subfolder's VM),
  internals/security; the CLI reference for devvm and devvm rm.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 17:57:42 -07:00
..
2026-10-24 09:50:15 -06:00